Re: Updated Linux kernel preemption patches

Daniel Phillips
2001-08-27T02:59:44Z

On August 27, 2001 03:57 am, Robert Love wrote:
> This is a straight update of Nigel Gamble's Linux kernel preemption
> patch from http://kpreempt.sourceforge.net, updated for the above
> kernels. Thus, this is Nigel's code -- I merely updated it.
> [...]
> The performance increase in kernel compile and dbench 16 is decent, but
> the decrease in dbench 1 is odd. I am curious what numbers others find.
> My "how does it feel" benchmark is that bandwidth seems similar while
> multitasking may be a tad smoother with the patch.

Congratulations on showing evidence that preemption can improve performance
under some loads, especially the all-important kernel compile. Don't be too
worried about the dbench 1 results, dbench can vary by a factor of 2
depending on the alignment of the planets (ask Tridge). Try something more
stable like bonnie.

The theory goes that preemption improves performance by cutting down the time
between IO completion and user task resume, with only a small cost in extra
locking. It would be nice to see profiling statistics to support this idea.

--
Daniel