* SMP-Linux
@ 2003-02-10 15:36 James Buchanan
2003-02-10 16:08 ` SMP-Linux John W. M. Stevens
0 siblings, 1 reply; 5+ messages in thread
From: James Buchanan @ 2003-02-10 15:36 UTC (permalink / raw)
To: linux-kernel
Hello List,
I am new to this so please forgive this post if it seems stupid.
Is it possible to design a SMP-Linux kernel with architecture
independent SMP support, for example, like the VFS provides an
interface to specific filesystems, the "VSMP" can provide an
architecture independent way to support SMP? There can be a function
that does the spinlock stuff and underneath is a machine dependent
implementation (this is already done for x86, what about other MP
capable architectures?), and same for the scheduler. Lots of other
stuff like TLB issues and so on would have to be taken care of as
well. I'm no expert on SMP so I don't really know if a "virtual" SMP
support is possible in the way I am describing it.
Is this an interesting idea to anyone? I expect it has been thought
of before, but maybe it needs a hell of a lot of research to even
begin thinking about it seriously. If anyone is interesting in really
thrashing this out off list (or on list, but is this considered bad
netiquette?), please mail me. I am very interested in discussing this
in horrid detail :-)
When I buy my SMP system, I plan to hack in the first stages of such
"VSMP" support if it's feasible.
Again, I don't really know what I'm doing so please go easy on me :-)
I am still in the early stages of soaking up the stuff in the Intel
CPU programming manuals.
Thanks!
James
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: SMP-Linux
2003-02-10 15:36 SMP-Linux James Buchanan
@ 2003-02-10 16:08 ` John W. M. Stevens
2003-02-10 16:16 ` SMP-Linux James Buchanan
0 siblings, 1 reply; 5+ messages in thread
From: John W. M. Stevens @ 2003-02-10 16:08 UTC (permalink / raw)
To: James Buchanan; +Cc: linux-kernel
On Tue, Feb 11, 2003 at 02:36:48AM +1100, James Buchanan wrote:
> Is it possible to design a SMP-Linux kernel with architecture
> independent SMP support, for example, like the VFS provides an
> interface to specific filesystems, the "VSMP" can provide an
> architecture independent way to support SMP?
Why stop there? Why not make a complete hardware abstraction layer?
Oh, by the way, I have two words for you:
DUCK!
:-)
> There can be a function
> that does the spinlock stuff and underneath is a machine dependent
> implementation (this is already done for x86, what about other MP
> capable architectures?), and same for the scheduler. Lots of other
> stuff like TLB issues and so on would have to be taken care of as
> well. I'm no expert on SMP so I don't really know if a "virtual" SMP
> support is possible in the way I am describing it.
What you are describing sounds very much like a Virtual Machine.
Been there, done that, and it does have some benefits.
Good Luck,
John S.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: SMP-Linux
2003-02-10 16:08 ` SMP-Linux John W. M. Stevens
@ 2003-02-10 16:16 ` James Buchanan
2003-02-20 17:39 ` SMP-Linux Benjamin Herrenschmidt
0 siblings, 1 reply; 5+ messages in thread
From: James Buchanan @ 2003-02-10 16:16 UTC (permalink / raw)
To: John W. M. Stevens; +Cc: linux-kernel
> Why stop there? Why not make a complete hardware abstraction layer?
NetBSD has - hasn't it? Take a look!
> Oh, by the way, I have two words for you:
>
> DUCK!
>
> :-)
Uh oh ... ;-)
> What you are describing sounds very much like a Virtual Machine.
>
> Been there, done that, and it does have some benefits.
Yes, a HAL, very much, but not really a VM, only a very thin layer of
architecture-nuturalness. Very thin. The trickery I have learnt from
the NetBSD project is that it has some very clever glue code below
this HAL. I suppose to maintain acceptable performance levels. Then
again the goals of NetBSD and Linux are different in some respects,
Linux likes raw speed and was originally only for the x86 and NetBSD
likes portability above that.
So I suppose my experiment will never really take off, but could have
some interesting results!
--
James
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: SMP-Linux
2003-02-10 16:16 ` SMP-Linux James Buchanan
@ 2003-02-20 17:39 ` Benjamin Herrenschmidt
[not found] ` <200302211645.07356.jamesbuch@iprimus.com.au>
0 siblings, 1 reply; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2003-02-20 17:39 UTC (permalink / raw)
To: James Buchanan; +Cc: John W. M. Stevens, linux-kernel
On Mon, 2003-02-10 at 17:16, James Buchanan wrote:
> Yes, a HAL, very much, but not really a VM, only a very thin layer of
> architecture-nuturalness. Very thin. The trickery I have learnt from
> the NetBSD project is that it has some very clever glue code below
> this HAL. I suppose to maintain acceptable performance levels. Then
> again the goals of NetBSD and Linux are different in some respects,
> Linux likes raw speed and was originally only for the x86 and NetBSD
> likes portability above that.
>
> So I suppose my experiment will never really take off, but could have
> some interesting results!
Well... how do you think linux actually works ? Did you bother
_reading_ the code before proposing to do something that is
basically already there ? :)
Ben (happily running SMP on PowerPC architecture).
Ben.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-02-20 17:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-10 15:36 SMP-Linux James Buchanan
2003-02-10 16:08 ` SMP-Linux John W. M. Stevens
2003-02-10 16:16 ` SMP-Linux James Buchanan
2003-02-20 17:39 ` SMP-Linux Benjamin Herrenschmidt
[not found] ` <200302211645.07356.jamesbuch@iprimus.com.au>
2003-02-20 17:53 ` SMP-Linux Benjamin Herrenschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox