From owner-freebsd-chat Thu Jun 6 18: 7:22 2002 Delivered-To: freebsd-chat@freebsd.org Received: from flamingo.mail.pas.earthlink.net (flamingo.mail.pas.earthlink.net [207.217.120.232]) by hub.freebsd.org (Postfix) with ESMTP id E227C37B406; Thu, 6 Jun 2002 18:07:09 -0700 (PDT) Received: from pool0280.cvx21-bradley.dialup.earthlink.net ([209.179.193.25] helo=mindspring.com) by flamingo.mail.pas.earthlink.net with esmtp (Exim 3.33 #2) id 17G8Db-0006c6-00; Thu, 06 Jun 2002 18:07:08 -0700 Message-ID: <3D00070B.C04A8033@mindspring.com> Date: Thu, 06 Jun 2002 18:06:19 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: John Baldwin Cc: j mckitrick , freebsd-chat@freebsd.org, "Kurt J. Lidl" Subject: Re: SMP/5.0 performance on single CPU? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org John Baldwin wrote: > On 07-Jun-2002 j mckitrick wrote: > >| I don't know how much overhead the locking system that FreeBSD is > >| using will impose on a uniprocessor machine, but I would guess > >| anywhere from 10%-25% slower. I think that only 10% would be pretty > >| impressive for the very first release. Again -- this is a *guess*. > > > > Any idea if a custom kernel can completely leave out the SMP code and > > end up comparable to 4.x? > > A UP kernel will leave out some of the overhead, but SMPng fundamentally > changes the way you protect data in the kernel against interrupt handlers > as well as from other threads on other CPU's (basically we are now solving > that problem in a more general case) so you can't just turn it all off. Also, for what it's worth, SVR4.2 MP was significantly faster on UP than SVR4.0.2 UP. The number one reason for this was concurrency of operations that came about from kernel preemption and subsystem reentrancy (and specifically, the FS and networking, but to a lesser extent, other subsystems). Overall, if everything ends up going correctly, turning off the SMP stuff would actually give you *worse* UP performance. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message