Re: Re: a way of calculating cpu usage information in proc fs

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

 



 



Dear sir,
  I have calculated the user percentage and the nice percentage following your formulae.
  My objective is to find the CPU usage as plotted by the system monitor for an application in Qt that i am creating.

>total = user + nice + system + idle + iowait + irq + softirq

>user percentage = user / total * 100
>nice percentage = nice / total * 100

Is the user percentage calculated the CPU usage?
I would be grateful if u help me.
Sounak






[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