Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Uptime command
@ 2001-01-03 23:23 GTE News
  2001-01-04 13:03 ` Andrew Duane USG
  0 siblings, 1 reply; 7+ messages in thread
From: GTE News @ 2001-01-03 23:23 UTC (permalink / raw)


Can anyone explain *exactly* how the "uptime" command calculates the
"average load", and what the 3 numbers that follow mean? I am looking for
very specific information on how it does this. Thanks!!!

Angie Graves
angrav@acxiom.com




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Uptime command
  2001-01-03 23:23 Uptime command GTE News
@ 2001-01-04 13:03 ` Andrew Duane USG
  2001-01-04 16:43   ` GTE News
  2001-01-16 20:55   ` Eric Werme - replace nospam with werme
  0 siblings, 2 replies; 7+ messages in thread
From: Andrew Duane USG @ 2001-01-04 13:03 UTC (permalink / raw)


In article <GvO46.1157$6F6.298776@paloalto-snr1.gtei.net> "GTE News" <awebber@gte.net> writes:
>Can anyone explain *exactly* how the "uptime" command calculates the
>"average load", and what the 3 numbers that follow mean? I am looking for
>very specific information on how it does this. Thanks!!!

The kernel computes these numbers, "w" and "uptime" merely get them
from the kernel to print.

The three numbers are the average number of runnable processes
(i.e. those processes ready to actually do something, not waiting
for disk, network, paging, etc.) for the last 5 , 30 , and 60 seconds.

--

Andrew L. Duane (JOT-7)			duane@zk3.dec.com
Compaq Computer Corporation		(603)-884-1294
110 Spit Brook Road
M/S ZKO3-3/U14
Nashua, NH    03062-2698




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Uptime command
  2001-01-04 13:03 ` Andrew Duane USG
@ 2001-01-04 16:43   ` GTE News
  2001-01-05  7:31     ` Kevin Stevens
                       ` (2 more replies)
  2001-01-16 20:55   ` Eric Werme - replace nospam with werme
  1 sibling, 3 replies; 7+ messages in thread
From: GTE News @ 2001-01-04 16:43 UTC (permalink / raw)


So let me get this straight: the "average load" numbers are NOT utilization
stats, but the actual avg number of processes? And the numbers are not
calculated based on the last time to reboot? Our sys admin here claims the
numbers are the average server utilitization since the last reboot. Is there
any way that is correct? Also, what about the "mach factor" numbers, if you
run uptime -m? Thanks!!
"Andrew Duane USG" <duane@magma.uucp> wrote in message
news:931sai$97pc$1@lead.zk3.dec.com...
> In article <GvO46.1157$6F6.298776@paloalto-snr1.gtei.net> "GTE News"
<awebber@gte.net> writes:
> >Can anyone explain *exactly* how the "uptime" command calculates the
> >"average load", and what the 3 numbers that follow mean? I am looking for
> >very specific information on how it does this. Thanks!!!
>
> The kernel computes these numbers, "w" and "uptime" merely get them
> from the kernel to print.
>
> The three numbers are the average number of runnable processes
> (i.e. those processes ready to actually do something, not waiting
> for disk, network, paging, etc.) for the last 5 , 30 , and 60 seconds.
>
> --
>
> Andrew L. Duane (JOT-7) duane@zk3.dec.com
> Compaq Computer Corporation (603)-884-1294
> 110 Spit Brook Road
> M/S ZKO3-3/U14
> Nashua, NH    03062-2698
>
>




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Uptime command
  2001-01-04 16:43   ` GTE News
@ 2001-01-05  7:31     ` Kevin Stevens
  2001-01-05  7:48     ` Kevin Stevens
  2001-01-16 21:01     ` Eric Werme - replace nospam with werme
  2 siblings, 0 replies; 7+ messages in thread
From: Kevin Stevens @ 2001-01-05  7:31 UTC (permalink / raw)


In article <cL156.319$5X2.117718@paloalto-snr1.gtei.net>, awebber@gte.net 
says...
> So let me get this straight: the "average load" numbers are NOT utilization
> stats, but the actual avg number of processes? And the numbers are not
> calculated based on the last time to reboot? Our sys admin here claims the
> numbers are the average server utilitization since the last reboot. Is there
> any way that is correct? Also, what about the "mach factor" numbers, if you
> run uptime -m? Thanks!!

That's correct.  I run Solaris rather than Tru64 (just browsing), but for 
example Solaris man uptime says:

     The uptime command prints the current time,  the  length  of
     time  the system has been up, and the average number of jobs
     in the run queue over the last 1, 5 and 15 minutes.  It  is,
     essentially,  the first line of a w(1) command.

Looks like the decay is slightly different from Tru64, but in every *nix I've 
seen, what was being reported was the job average.

KeS


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Uptime command
  2001-01-04 16:43   ` GTE News
  2001-01-05  7:31     ` Kevin Stevens
@ 2001-01-05  7:48     ` Kevin Stevens
  2001-01-16 21:01     ` Eric Werme - replace nospam with werme
  2 siblings, 0 replies; 7+ messages in thread
From: Kevin Stevens @ 2001-01-05  7:48 UTC (permalink / raw)


In article <cL156.319$5X2.117718@paloalto-snr1.gtei.net>, awebber@gte.net 
says...
> So let me get this straight: the "average load" numbers are NOT utilization
> stats, but the actual avg number of processes? And the numbers are not
> calculated based on the last time to reboot? Our sys admin here claims the
> numbers are the average server utilitization since the last reboot. Is there
> any way that is correct? Also, what about the "mach factor" numbers, if you
> run uptime -m? Thanks!!

To look at it another way, if he says the numbers are an average since the last 
reboot, why are there three values instead of one?

KeS


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Uptime command
  2001-01-04 13:03 ` Andrew Duane USG
  2001-01-04 16:43   ` GTE News
@ 2001-01-16 20:55   ` Eric Werme - replace nospam with werme
  1 sibling, 0 replies; 7+ messages in thread
From: Eric Werme - replace nospam with werme @ 2001-01-16 20:55 UTC (permalink / raw)


duane@magma.uucp (Andrew Duane USG) writes:

>In article <GvO46.1157$6F6.298776@paloalto-snr1.gtei.net> "GTE News" <awebber@gte.net> writes:
>>Can anyone explain *exactly* how the "uptime" command calculates the
>>"average load", and what the 3 numbers that follow mean? I am looking for
>>very specific information on how it does this. Thanks!!!

>The three numbers are the average number of runnable processes
>(i.e. those processes ready to actually do something, not waiting
>for disk, network, paging, etc.) for the last 5 , 30 , and 60 seconds.

Well, that's not very specific, actually.  Let me add a couple things.
Caveat: I'm not certain of the below, but it should be close enough.
First, it only counts threads that are running or on run queues.  Some
other Unixes may include threads in short term uninterruptible sleeps, like
waiting on disk I/O, Tru64 doesn't.  (Yes, Andrew said the same.)

Second, the "last 5 seconds" isn't really right.  If you start an infinite
loop and watch with xload, you'll see an exponential curve, not a straight
line. Each second, the code does

   load_avg = (load_avg * FACTOR + (active + queued) * (1000 - FACTOR) / 1000;

for FACTORs of:

	800,			/* (4.0/5.0) 5 second average */
	966,			/* (29.0/30.0) 30 second average */
	983,			/* (59.0/60.) 1 minute average */

and "active" being the busy CPUs and "queued" the threads waiting their turn.

It's a lot like the time constant of a RC network, if you're an EE.

The mach factor uses the same exponential decay, but goes from the number
of CPUs on an idle system to 0 on an infinitely loaded system.  I've
no idea what it's good for.

	-Ric Werme
--
<>    Eric (Ric) Werme    <> The above is unlikely to contain    <>
<>    ROT-13 addresses:   <> official claims or policies of      <>
<>   <jrezr@mx3.qrp.pbz>  <> Compaq Computer Corp.               <>
<>  <jrezr@zrqvnbar.arg>  <> http://people.ne.mediaone.net/werme <>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Uptime command
  2001-01-04 16:43   ` GTE News
  2001-01-05  7:31     ` Kevin Stevens
  2001-01-05  7:48     ` Kevin Stevens
@ 2001-01-16 21:01     ` Eric Werme - replace nospam with werme
  2 siblings, 0 replies; 7+ messages in thread
From: Eric Werme - replace nospam with werme @ 2001-01-16 21:01 UTC (permalink / raw)


"GTE News" <awebber@gte.net> writes:

>So let me get this straight: the "average load" numbers are NOT utilization
>stats, but the actual avg number of processes?

Right.

 And the numbers are not
>calculated based on the last time to reboot? Our sys admin here claims the
>numbers are the average server utilitization since the last reboot.

Absolutely not.  There could be the barest trace of the load at startup,
but the math is all integer, so it will absolutley disappear.

The cpu times printed by vmstat are indeed the average over all time:

% vmstat
Virtual Memory Statistics: (pagesize = 8192)
  procs      memory        pages                            intr       cpu
  r   w   u  act free wire fault  cow zero react  pin pout  in  sy  cs us sy id
  3 480 127  97K 2579  26K    3M 668K   1M   515 719K    0 945  8K  4K  4 13 82
                                                                       ^^ ^^ ^^

However, they have little to do with load averages.

	-Ric Werme
--
<>    Eric (Ric) Werme    <> The above is unlikely to contain    <>
<>    ROT-13 addresses:   <> official claims or policies of      <>
<>   <jrezr@mx3.qrp.pbz>  <> Compaq Computer Corp.               <>
<>  <jrezr@zrqvnbar.arg>  <> http://people.ne.mediaone.net/werme <>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-01-16 21:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-03 23:23 Uptime command GTE News
2001-01-04 13:03 ` Andrew Duane USG
2001-01-04 16:43   ` GTE News
2001-01-05  7:31     ` Kevin Stevens
2001-01-05  7:48     ` Kevin Stevens
2001-01-16 21:01     ` Eric Werme - replace nospam with werme
2001-01-16 20:55   ` Eric Werme - replace nospam with werme

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox