03-03-2004
The load average is not a percentage. It can be thought of as the number of processes waiting to run. So a load average of 0.25 means on average there is 1/4 of a process waiting to run, in other words most of the time none are waiting but a quarter of the time one is.
The 15.97 means on average there are about 16 processes waiting to run. If you have a medium to large multiprocessor box this might be ok. If it is a single processor box you'll have terrible performance.
It depends on what the processors are as well. I've had a 12 processor Sun box with 400 mhz Ultrasparc II processors start slowing down at a load average of 20, while a 4 processor box with Ultrasparc III 1.05ghz processors ran fine with a load average of 30. So a rule of thumb like "load average of 2x number of procs" won't help much, you need to compare to your system's historical behavior.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,:o
i am new to shell scripting and i have aproblem like i just want to extractthe uptime of the system from an uptime command which gives the output as the Current time , how long the system has been running,how many users are surrently logged on and the system load averages for past 1,5,... (5 Replies)
Discussion started by: tulip
5 Replies
2. AIX
what are the various methods through which a command is interpreted in AIX? (1 Reply)
Discussion started by: AIXlearner
1 Replies
3. Shell Programming and Scripting
The output ofthe uptime command gives:
9:40am up 9 days, 10:36, 4 users, load average: 0.02, 0.01, 0.00
How can i extract the portion "load average: 0.02, 0.01, 0.00". (3 Replies)
Discussion started by: proactiveaditya
3 Replies
4. AIX
hello, i send the uptime command in the AIX and the days that is UP 14652 days this is around 40 years, today is with the correct date&time, hos can I reset the counter days? somebody can help me? regards (3 Replies)
Discussion started by: timflr
3 Replies
5. Solaris
Hi,
Can someone explain in detail what 'uptime' ,'last reboot' and 'who -b' commands do in solaris.
this commands are not executing in every solaris box. why this is happening. Has solaris got some inbuilt commands into it. If yes then where i have found them?
Thanks,Soubhik (6 Replies)
Discussion started by: soubmukh
6 Replies
6. Shell Programming and Scripting
Hi!
I want to extract the uptime from the output of the uptime command.
The output:
11:53 up 3:02, 2 users, load averages: 0,32 0,34 0,43
I just need the "3:02" part. How can I do this?
Dirk (6 Replies)
Discussion started by: Dirk Einecke
6 Replies
7. Solaris
Hello folks,
uptime command not shows how long the system has been up.
I know it come from a corruption of /var/adm/utmpx file.
I've done :
cat /dev/null > /var/adm/utmpx
Now who and last commands work fine. But uptime still give me back an answer without the "up time".
In which... (6 Replies)
Discussion started by: gogol_bordello
6 Replies
8. Linux
What is the uptime command output when the server is running more than one year?
My doubt is whether it show in number of days format or number years and number of days format?
For example, Assume the server is running 400 days 3 hrs 3 min 3 secs. The output like 400 days 3:3 min or 1 year 5... (3 Replies)
Discussion started by: maruthu
3 Replies
9. Shell Programming and Scripting
Hi All
I am running a insatll script in linux which installs the project.
Could you please help in interpreting this command
gawk '{ if (substr($1,0,1) == "\047") gsub("^\047+|\047+$", "", $1); print }'
where $1 = BBME
Thanks (1 Reply)
Discussion started by: vee_789
1 Replies
10. UNIX for Beginners Questions & Answers
what does the below do.
echo * | xargs ls | wc –l
echo * - Output a string comprising the name of each file in the working directory, with each name separated by a space.
xargs ls - construct argument list command
wc -l - it will pipe the output to the wc command, which will... (4 Replies)
Discussion started by: houmingc
4 Replies
LEARN ABOUT OSX
pset_getloadavg
pset_getloadavg(3C) Standard C Library Functions pset_getloadavg(3C)
NAME
pset_getloadavg - get system load averages for a processor set
SYNOPSIS
#include <sys/pset.h>
#include <sys/loadavg.h>
int pset_getloadavg(psetid_t pset, double loadavg[], int nelem);
DESCRIPTION
The pset_getloadavg() function returns the number of processes assigned to the specified processor set that are in the system run queue,
averaged over various periods of time. Up to nelem samples are retrieved and assigned to successive elements of loadavg[]. The system
imposes a maximum of 3 samples, representing averages over the last 1, 5, and 15 minutes, respectively.
The LOADAVG_1MIN, LOADAVG_5MIN, and LOADAVG_15MIN indices, defined in <sys/loadavg.h>, can be used to extract the data from the appropri-
ate element of the loadavg[] array.
If pset is PS_NONE, the load average for processes not assigned to a processor set is returned.
If pset is PS_MYID, the load average for the processor set to which the caller is bound is returned. If the caller is not bound to a pro-
cessor set, the result is the same as if PS_NONE was specified.
RETURN VALUES
Upon successful completion, the number of samples actually retrieved is returned. If the load average was unobtainable or the processor
set does not exist, -1 is returned and errno is set to indicate the error.
ERRORS
The pset_getloadavg() function will fail if:
EINVAL The number of elements specified is less than 0, or an invalid processor set ID was specified.
The caller is in a non-global zone, the pools facility is active, and the specified processor set is not that of the zone's
pool.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Stable |
+-----------------------------+-----------------------------+
|MT-Level |Async-Signal-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
uptime(1), w(1), psrset(1M), prstat(1M), pset_bind(2), pset_create(2), Kstat(3PERL), attributes(5)
SunOS 5.10 28 Jun 2004 pset_getloadavg(3C)