Problem in proc(5), regarding loadavg

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

 



Hi,

I found that the information on proc(5) in the latest version of
man-pages (3.21) do not seem to match the real implementation, regarding
the file /proc/loadavg.

The manual page says that:

	"The first of these [the two numbers of the fourth field] is the
	number of currently executing kernel scheduling entities
	(processes, threads); this will be less than or equal to the
	number of CPUs."

By looking at the implementation in (v2.6.29)/fs/proc/loadavg.c, this
field returns the value of `nr_running()', which is defined in
/kernel/sched.c and returns the current number of *runnable* threads. It
is easily verifiable that this value may and will be greater the number
of CPUs if you start a number of processing-intensive threads, then
inspect /proc/loadavg.

Best regards,
Juliano.


-- 
Juliano F. Ravasi ·· http://juliano.info/
5105 46CC B2B7 F0CD 5F47 E740 72CA 54F4 DF37 9E96

"A candle loses nothing by lighting another candle." -- Erin Majors
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux