Re: Re: Measure CPU time accurately

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

 



Hi...

On Wednesday 15 March 2006 21:26, Mauricio Lin wrote:
> Hi,
>
> I have managed to measure the cpu time in nanoseconds. On i386 I used
> the monotonic_clock() to measure the cpu time.

I haven't checked how monotonic_clock works..but if you think it 
provides finer granularity, then go ahead.

> Yes, it was based on t->sched_info.cpu_time, but instead of
> accumulate the all cpu time, I needed just the diff=jiffies
> -t->sched_info.last_arrival in the sched_info_depart().

OK, I got it now.

regards

Mulyadi


--
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