Messages in this thread | | | Subject | Re: 2.6.1 Scheduler Latency Measurements (Preemption diabled/enabled) | From | Robert Love <> | Date | Tue, 03 Feb 2004 19:37:35 -0500 |
| |
On Tue, 2004-02-03 at 17:24 +0100, Christoph Stueckjuergen wrote:
> The results are: > "loaded" system, 10.000 samples > average scheduler latency (preemption enabled / disabled): 170 us / 232 us > minimum scheduler latency (preemption enabled / disabled): 49 us / 43 us > maximum scheduler latency (preemption enabled / disabled): 840 us / 1063 us > > "unloaded" system, 10.000 samples > average scheduler latency (preemption enabled / disabled): 50 us / 44 us > minimum scheduler latency (preemption enabled / disabled): 46 us / 41 us > maximum scheduler latency (preemption enabled / disabled): 233 us / 215 us > > Any help in interpreting the data would be highly appreciated. Especially: > - Why does preemption lead to a higher minimum scheduler latency in the loaded > case? > > - Why does preemption worsen scheduler latency on the unloaded system?
Overhead, I guess - the place where preemption ought to pay off is with worst-case latency, where your results do show an improvement.
That said, I would of expected slightly better numbers. Although, note that you are not measuring latency, you are measuring jitter.
Latency is time actual minus time expected. It thus requires some notion of the absolute expected time. Without hardware support you generally cannot measure this.
Jitter is measuring the time between successive events subtracted by the expected duration, e.g. actual duration minus expected duration. It requires no knowledge of the absolute time.
Jitter tends to approximate latency, so that is OK, but all it really measures is the variance in results (the "jitter" between the durations).
Most people mix the two up.
Robert Love
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |