[Python-Dev] Python Benchmarks
Fredrik Lundh
fredrik at pythonware.com
Sat Jun 3 15:29:26 CEST 2006
Tim Peters wrote:
> Maybe this varies by Linux flavor or version? While the article above
> was published in 2001, Googling didn't turn up any hint that Linux
> jiffies have actually gone away, or become better loved, since then.
well, on x86, they have changed from 10 ms in 2.4 to 1 ms in early 2.6
releases and 4 ms in later 2.6 releases, but that's about it.
(the code in my previous post was from a 2.6.17 development version,
which, afaict, is about as up to date as you can be).
note that the jiffy interrupt handler does use the TSC (or similar
mechanism) to update the wall clock time, so it wouldn't be that hard to
refactor the code to use it also for process accounting. but I suppose
the devil is in the backwards-compatibility details. just setting the
HZ value to something very large will probably not work very well...
</F>
More information about the Python-Dev
mailing list