Inaccurate process time accounting
Jan Astalos
astalos en tuke.sk
Vie Ene 21 17:11:25 CST 2000
Hi all.
I'm working on monitoring system for Linux clusters and I need to get
dynamicaly CPU time consumed by process (no matter in which mode) for
performance prediction. It seems that time accounting in my kernel
(2.2.14) does not count time slices shorter than one jiffie. I made
process that runs for less than jiffie and then sleeps one jiffie (in
cycle). Although benchmarking showed that test takes around 30% of CPU
time, accounting said that it had consumed less than 1%.
I tested patch from Pavel Machek
http://www.tux.org/hypermail/linux-kernel/1999week20/0232.html
Results are more accurate but only if there is no other CPU bound
process.
Changing HZ helped but I don't want to increase kernel overhead.
Can be TSC used for this ? Is there any patch ?
Please, cc the answers to my address.
Thanks in advance.
Jan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo en vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
Más información sobre la lista de distribución Ayuda