Re: Can /proc/stat be trusted?

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

 



On Tue, Jul 22, 2008 at 2:58 PM, Elad Lahav <elahav@xxxxxxxxxxxx> wrote:
> Are you running a tick-less kernel? That may explain the variations.
>
> Elad
>

I'm not (kernel 2.6.18, before all that tick update, even). Those
variations happen on other systems as well, like FreeBSD. So I think
they probably have a reasonable explation, I just can't figure it out
what happens.

>From what I'm reading here on the code the only place where the
account_* functions are called is in: account_process_tick
(kernel/timer.c:953). So, what I'd expect to happen is that after each
tick the kernel would look what's going on and it would increment the
cpustat->whatever by one jiffy (which seems to be the smallest unit it
can account for). So I'd expect that tick to happen a fixed number of
times each second. I can't figure out why that's not so.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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