Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Mar 1999 16:25:51 +0100
From:      Pierre Beyssac <beyssac@enst.fr>
To:        Nocturne <dpilgrim@uswest.net>, Sascha Schumann <sas@schell.de>
Cc:        Greg Lehey <grog@lemis.com>, freebsd-chat@FreeBSD.ORG
Subject:   Re: Real performance comparisons (was: FreeBSD 3.1 SMP outperforms SuSE 6.0 SMP by factor 2.3 !!!)
Message-ID:  <19990318162551.A10594@enst.fr>
In-Reply-To: <36F10CAE.79A62FF7@uswest.net>; from Nocturne on Thu, Mar 18, 1999 at 06:24:46AM -0800
References:  <19990316150715.A3316@schell.de> <19990317111720.O429@lemis.com> <19990317173718.A2510@schell.de> <36F10CAE.79A62FF7@uswest.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 18, 1999 at 06:24:46AM -0800, Nocturne wrote:
> I talked with a friend at considerable length about SMP in Linux vs
> FreeBSD and we agreed that newer Linux kernels would be faster than
> FreeBSD.  This is going on the thinking that Linux uses a subsystem
> lock that allows all the CPUs to work on their own parts of the kernel
> simultaneously--theoretically eliminating processor idle time--whereas
> FreeBSD's spin lock allows only single CPU access at any given moment.

As others have said before, this all depends on your application.

For pure-CPU jobs with little or no system calls, the granularity
of the kernel lock doesn't matter at all.

Very thin lock granularity is not the panacea either, as you can
end up spending a lot of overhead just for taking/releasing locks.
This can really happen if your processes are very system-call
intensive.

Thus it's necessary to find a balance between lock granularity and
overhead that fits most applications.
-- 
Pierre Beyssac		pb@enst.fr


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-chat" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990318162551.A10594>