Re: [patch-2.4.0-test7-pre7] do_fork() optimization.

From: Tigran Aivazian (tigran@veritas.com)
Date: Wed Aug 23 2000 - 13:36:54 EST


tested, using various tests (e.g. unixbench) - works fine.

On Wed, 23 Aug 2000, Tigran Aivazian wrote:

> On Wed, 23 Aug 2000, Linus Torvalds wrote:
> >
> > On Wed, 23 Aug 2000, Tigran Aivazian wrote:
> > >
> > > I was thinking if I could get a few more cycles out of do_fork() (the
> > > recent SCO propaganda about their _lwp_create(2) being faster than our
> > > clone(2) made me think). And I noticed that get_pid() doesn't actually
> > > need the lastpid_lock because it is only ever called from do_fork() inside
> > > the lock_kernel(). So, here is the obvious patch.
> >
> > Hmm.. I'd rather get rid of the _other_ spinlock, namely the kernel lock.
> >
> > I don't actually see anything that requires or even _wants_ the kernel
> > lock anywhere. Can anybody tell me what I'm missing?
> >
>
> I will test without BKL on my SMP and let you know. The code seems fine
> but I may be blind...
>
> regards,
> Tigran
>
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Aug 23 2000 - 21:00:09 EST