Re: Where does "top" get CPU Utilization

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

 



On Tuesday 17 May 2005 13:21, Yasmine Habib wrote:
> I know "top" program gets its information from several files in the
> /proc directory but does anyone know from which file exactly does it
> get the CPU utilization of the whole processor?
> I mean the total CPU% of all processes  ..

My guess would be /proc/stat and a few seconds with strace and grep
seemed to confirm that.


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux