Re: Instruction list with >=10 instructions

On Sat, 17 Jul 2004, Frank Mori Hess wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Saturday 17 July 2004 07:07 pm, David Schleef wrote:
> > On Sat, Jul 17, 2004 at 06:55:21PM -0400, Frank Mori Hess wrote:
> > > I've lifted the 10 insn limit in cvs.  Now it just checks
> > > need_resched() after each insn.
> >
> > The purpose of this was to run all of the instructions without a
> > reschedule, and 10 is a decent limit.  But in 2.6, this is hard
> > to achieve anyway, so it makes less sense.
> >
>
> Oh, I forgot about that.  Is it really harder to achieve with 2.6?  My
> understanding is that preemption is disabled in the ioctl due to the big
> kernel lock.  We could just check for reschedule every 10th insn.

Isn't this a moot issue in 2.4? I thought kernel preemption was only
introduced in 2.6, and even then you can build a custom kernel with it
off.

Jonathan

Received on 2004-07-19Z17:36:01