lkml.org 
[lkml]   [1999]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] small scheduling optimization
On Sun, Apr 11, 1999 at 07:36:08PM +0200, Rik van Riel wrote:
> This second patch is just a small optimization to the code calling
> the scheduling code. With a program like rc5des running (nice +19)
> in the background and NOTHING in the foreground Linux still goes
> through the scheduler 50 times a second!
>
> This small patch solves that problem by simply not rescheduling
> if there's nothing else to be run. A quite similar change has
> increased someone's rc5des keyrate by 3%, but it's probably
> somewhat less on modern systems. The effect is too small to
> really care about the change, but IMHO it's the Right Thing(tm)!

Thanks for your patch. It looks correct to me, but:

It might be that your patch is not fully correct or that you uncovered
another incorrectness, but I started to get problems with my modem tools
(mgetty+sendfax+voice): vm play -s file.rmd plays files half-way only.

I'm back to an unpatched kernel, but I can inspect further, if you want me
to.

--
Dipl.Phys. Kurt Garloff <kurt@garloff.de> [Wuppertal, FRG]
Plasma physics, high perf. computing [Linux-ix86,-axp, DUX]
PGP key: see mailheader / key servers [Linux SCSI driver: DC390]
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.057 / U:0.844 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site