Date: Sun, 27 Apr 1997 22:53:57 -0400 (EDT) From: Ben Black <black@zen.cypher.net> To: Chuck Robey <chuckr@mat.net> Cc: FreeBSD-SMP@FreeBSD.org Subject: Re: SMP Message-ID: <Pine.LNX.3.91.970427225228.32065M-100000@zen.cypher.net> In-Reply-To: <Pine.BSF.3.91.970427224649.22821F-100000@Journey2.mat.net>
next in thread | previous in thread | raw e-mail | index | archive | help
freebsd-smp is not the best example of how to do SMP. it uses the simplest method: one giant kernel lock. i don't know that it is particularly representative of advanced SMP operating systems (though linux also uses a giant kernel lock). b3n On Sun, 27 Apr 1997, Chuck Robey wrote: > On Sun, 27 Apr 1997, Ben Black wrote: > > > try: > > UNIX Systems for Modern Architectures > > and > > UNIX Internals: The New Frontier > > > > also, check out the VSTA kernel (it is fully threaded) as is Solaris. > > also, mach papers from CMU provide good info on it. > > I am looking for FreeBSD info, not Sun info. Heck, the Frontiers book > has a sum total of 4 pages on architectures, none of which is about > FreeBSD. I don't want all that much, a parapgraph or two on what I asked > would do. Could Steve or Peter do that? > > I don't need to know how semaphores work. I want to know how FreeBSD SMP > semaphores differ from the FreeBSD non-SMP semaphores (for instance). > > > > > > > b3n > > > > On Sun, 27 Apr 1997, Chuck Robey wrote: > > > > > I am in the throes of writing an OS for an OS class. This is a class > > > project, and not ever going to be made public, but it got me thinking > > > about smp. Specifically, I'm wondering how kernel stuff works with 2 > > > processors .... are there two copies of the kernel running? Or does one > > > processor have to interrupt the other to get the kernel stuff working? > > > > > > I'm curious about that, and about how mutual exclusion type things work > > > when there're two processors that could be doing top level things at once. > > > How are things like virtual memory handled? Do the two processors have > > > to cooperate on VM? > > > > > > How about FS stuff ... are the two processors having the same view of the > > > disk (especially vnodes?) > > > > > > I'm not looking for a treatise here, but maybe just a few words on the > > > major changes that the smp code does would be really appreciated. Even > > > one long paragraph would better than nothing (I don't have time to read > > > thru all the code now). > > > > > > ----------------------------+----------------------------------------------- > > > Chuck Robey | Interests include any kind of voice or data > > > chuckr@eng.umd.edu | communications topic, C programming, and Unix. > > > 9120 Edmonston Ct #302 | > > > Greenbelt, MD 20770 | I run Journey2 and picnic, both FreeBSD > > > (301) 220-2114 | version 3.0 current -- and great FUN! > > > ----------------------------+----------------------------------------------- > > > > > > > > > ----------------------------+----------------------------------------------- > Chuck Robey | Interests include any kind of voice or data > chuckr@eng.umd.edu | communications topic, C programming, and Unix. > 9120 Edmonston Ct #302 | > Greenbelt, MD 20770 | I run Journey2 and picnic, both FreeBSD > (301) 220-2114 | version 3.0 current -- and great FUN! > ----------------------------+----------------------------------------------- >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.91.970427225228.32065M-100000>