From owner-freebsd-current Thu Jul 11 16:31:54 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2916537B400; Thu, 11 Jul 2002 16:31:51 -0700 (PDT) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F03A43E4A; Thu, 11 Jul 2002 16:31:50 -0700 (PDT) (envelope-from peter@wemm.org) Received: from fw.wemm.org (canning.wemm.org [192.203.228.65]) by canning.wemm.org (Postfix) with ESMTP id 4D93A2A7EA; Thu, 11 Jul 2002 16:31:50 -0700 (PDT) (envelope-from peter@wemm.org) Received: from overcee.wemm.org (overcee.wemm.org [10.0.0.3]) by fw.wemm.org (Postfix) with ESMTP id EA57F4C2B9; Thu, 11 Jul 2002 16:31:49 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (Postfix) with ESMTP id 8732A3808; Thu, 11 Jul 2002 16:31:50 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: John Baldwin , Matthew Dillon , Julian Elischer , freebsd-current@FreeBSD.ORG, Alfred Perlstein Subject: Re: Proposed fix for SMP vm_zeroidle.c In-Reply-To: <20020711232614.CEDDD38CC@overcee.wemm.org> Date: Thu, 11 Jul 2002 16:31:50 -0700 From: Peter Wemm Message-Id: <20020711233150.8732A3808@overcee.wemm.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Peter Wemm wrote: > John Baldwin wrote: > > > > On 11-Jul-2002 Matthew Dillon wrote: > > > Here is my proposed fix for the page-zeroing problem w/ SMP. It > > > is untested (I'm about to test it)... I'm looking for comments on > > > the concept. If the comments are positive and my testing succeeds I > > > will commit it tonight. > > > > > > Basically the idea is simple. Provide a function that mi_switch() ca n > > > call when switching in a thread. The page zeroing code sets this > > > function to cpu_invlpg(CADDR3) on switch-in, thus dealing with any > > > potential switch between cpu's with virtually no overhead (no overhea d > > > that we care about anyway). > > > > > > I daresay that this mechanism could be used for a number of other > > > purposes as well. > > > > > > What do you think? > > > > Sounds fine to me. I'm not sure it will be all that useful for other > > things in the future but it conveniently solves the problem at hand > > at least. > > ARRGH!! NOOOO!!! To clarify, please hold fire for a day or so please. Let me finish validating what I'm working on now (I've been testing for three days). Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message