Re: Help clear up a misconception about SMP systems

Alex Belits (abelits@phobos.illtel.denver.co.us)
Sat, 10 Oct 1998 04:08:01 -0700 (PDT)


On Sat, 10 Oct 1998, Mike A. Harris wrote:

> For one, any programs you have, unless multithreaded will sit on
> one CPU or the other. So if you boot up, and run program "Foo",
> unless foo is multithreaded, it will run the same as on UP
> system, perhaps even a bit slower. If you have a bunch of
> processes running, however, each individual process will run no
> faster than on a single CPU system, but you can run more
> processes now. Multithreaded applications can take full power of
> the multi CPU though, since different threads can operating on
> different CPU's.

Program != process. Program can be multithreaded or can consist of
multiple processes that may talk to each other. As I understand it,
interprocess communication in SMP causes less context switches than on UP,
therefore the programs that consist of multiple processes should benefit
from it. OTOH, imperfect kernel locks granularity causes delays while
process/thread is in the kernel, and all kinds of programs regardless of
their processes/threads design suffer from that.

--
Alex

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/