Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jul 2002 18:38:53 -0400 (EDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Matthew Dillon <dillon@apollo.backplane.com>
Cc:        Julian Elischer <julian@elischer.org>, Peter Wemm <peter@FreeBSD.ORG>, freebsd-current@FreeBSD.ORG, Alfred Perlstein <bright@mu.org>
Subject:   RE: Proposed fix for SMP vm_zeroidle.c
Message-ID:  <XFMail.20020711183853.jhb@FreeBSD.org>
In-Reply-To: <200207112234.g6BMYXnH012160@apollo.backplane.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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() can
>     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 overhead
>     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.

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

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




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