This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/3916] improve timing monotony


------- Additional Comments From fche at redhat dot com  2007-01-24 19:32 -------
(In reply to comment #1)
> Possible solutions:
> * Find a better estimate of the cpu freq
> * Use a clock that's independent of cpu freq (e.g., a motherboard/chipset timer)
> * Get the kernel to provide a lockless gettimeofday
> * Others?

One simple thing is to keep the per-cpu counts from ever decreasing during
the resynchronization phase.  This could let them drift ahead of real time,
but so be it.  If it gets too bad, the runtime could emit a warning.
Also, the resync phase may not be necessary so frequently on stable_tsc
processors.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3916

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]