[mpich-discuss] resources are equally shared when running processe s in one machine ?

peter_raeth at juno.com peter_raeth at juno.com
Fri Jul 17 07:52:17 CDT 2009


hello, 
when i run my mpi code with "mpiexec -n 1 ./myprogram", everything work fine.
however, when i rn with "mpiexec -n 4 ./myprogram", performance of my program dropped significantly. 
I code my program to work only for "process 0" like this:-     if(id=0){  do_computation_task(); } else {  //do_nothing };
Is this mean physical resources are shared when I spawn more than one process in one physical machine(even all of work were done by "process 0" and other processes do nothing)?
If the answer is "yes", can you pls tell me if it's stated somewhere in official document that I can make reference to. 
Thx,Gra
================================= It is my opinion that the described code just adds operating system overhead so that one would expect throughput to drop. It is not an MPI issue since the OS appears to be the source of the drop in performance. The OS has to manage four processes instead of one.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20090717/72fe8b91/attachment.htm>


More information about the mpich-discuss mailing list