Re: loadavg vs loadavgrt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Dec 21, 2007 at 10:28:39AM +0530, Jaswinder Singh wrote:
| On Dec 20, 2007 10:19 PM, Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
| >
| > So the numbers are bogus!
| >
| 
| Thanks, understood :)
| 
| root@xxxxxxxxxxxxx:~# cat /proc/loadavg
| 0.00 0.00 0.02 1/52 1159
| 
| This seems loadavg is calculating average for non-RT tasks.
| 
| I think loadavg should be loadavg(all RT Tasks) + loadavg(all non-RT
| tasks) , it means loadavg should be all Tasks(RT + non-RT)  running on
| the machine.
| 
| In RT we introduced loadavgrt, but we changed the meaning of loadavg.

In fact, we haven't changed the meaning at all. The question is that in
some cases the calculation happens in sync with some kernel threads
dispatch and that makes system load _artificially_ equal to the number of
processors in the system. Have fun reading kernel/timer.c (calc_load()) and
understanding the logic behind it. All the answers lie there...

| Currently loadavgrt is correct it is trying to calculate average of RT tasks.
| But currently loadavg is loadavgnonrt, it should be loadavg (for all Tasks)
| 
| Please correct me, If I am wrong.
| 
| Thank you,
| 
| Jaswinder Singh.
| -
| To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
| the body of a message to majordomo@xxxxxxxxxxxxxxx
| More majordomo info at  http://vger.kernel.org/majordomo-info.html
---end quoted text---

-- 
[ Luis Claudio R. Goncalves                    Bass - Gospel - RT ]
[ Fingerprint: 4FDD B8C4 3C59 34BD 8BE9  2696 7203 D980 A448 C8F8 ]

-
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux