Re: /proc/stat

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

 




> looking through the source code, i'm thinking that in /proc/stat:
>
> cpu  593139 9367 392256 29106036
> cpu0 271777 4322 225835 14548465
> cpu1 321362 5045 166421 14557571
>
> the 2nd column = number of seconds the kernel spent in user mode,
> the 3rd column = number of seconds the kernel spent in nice mode,
> the 4th column = number of seconds the kernel spent in kernel mode,
> 1st column is the sum.
>
> is this correct?
>
> and if so, what exactly is nice mode?

this is when you start processes with the nice command
or use renice to set the priority it more than 0
it is the same as the user time but the processes have
less priority


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/



[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