> I have found that Bochs is an amazing way to learn about how the Linux
> kernel works, since you can watch it and tinker with it in the debugger
> without crashing the "real" machine.  But now, I am trying to study how
> well Linux handles multiple processors, so I'm trying to extend bochs to
> handle two or more CPU models with shared memory space.

Unless Bochs exploits multiple CPUs so as to allow both virtual CPUs to run at 
once, I think you won't learn a lot. Without this capability you won't get any 
performance benefit, and you will get little if any serialisation problems. 
Linux will perform much as n SMP kernel on a UP machine.

user-mode-linux may suit you better;  I don't know how well it supports SMP, 
but it DOES run code natively (and so faster), and it does run a (modified) 
Linux kernel as a user program so you can using gdb without crashing the host.

See http://user-mode-linux.sourceforge.net/ for more.
-- 
Cheers
John Summerfield
http://www2.ami.com.au/ for OS/2 & linux information.
Configuration, networking, combined IBM ftpsites index.

Microsoft's most solid OS: http://www.geocities.com/rcwoolley/

Note: mail delivered to me is deemed to be intended for me, for my disposition.




Reply via email to