Re: Jiffy is not able to measure the fraction of time a process runs a processor

From: Frank Ch. Eigler
Date: Tue Mar 14 2006 - 15:52:10 EST


"Mauricio Lin" <mauriciolin@xxxxxxxxx> writes:

> I am trying to measure the fraction of time a process runs on a
> processor, but the jiffies is not able to provide an accurate value.

See sched_clock().

> The example below [...]
> PID : NAME : LAST ARRIVAL : CPU TIME : CALLER
> 4544 : kmix : 6170433 : 0 : work_resched+0x6c
> 4078 : lpd : 6170433 : 0 : __down_interruptible+0x5
> 4544 : kmix : 6170433 : 0 : schedule_timeout+0xb8

What tool/patchset are you using to generate this trace?


- FChE
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/