ULE/sched issues on stable/9 - why isn't preemption occuring?

Andriy Gapon avg at FreeBSD.org
Thu May 31 12:33:29 UTC 2012


Sorry to hijack this thread, but just recently I've stumbled upon this Linux tool:
http://lwn.net/Articles/353295/

perf sched latency seems to be particularly convenient and useful.  The idea to
track time between a point when a thread is waken up and a point when the thread
actually run was quite good.

I am sure that something like this could be scripted on top of ktr(4) using the
trace points in the schedulers code.
schedgraph is very cool, but it seems to lack some auto-analysis capabilities
which would highlight the most interesting places.

In this vein it might make sense to enable KTR and KTR_SCHED in GENERIC.

-- 
Andriy Gapon


More information about the freebsd-hackers mailing list