[mpich-discuss] How to check core load

Nicolas Rosner nrosner at gmail.com
Mon May 30 18:16:09 CDT 2011


Hi Basak,

> my machine is a single box containing two processors (each having 6 cores)
> how do I know that it uses all the cores?

Run a system monitoring utility (like `top') and look at its output
while running your parallel program. You may want to adjust some
settings (e.g. I usually press "1" on my GNU/Linux flavor of top) to
get a clearer view. For even more explicit output, try installing
`htop' or some other similar tool.


> Also the associated calculation time is so small
> it is difficult to catch the processes using system monitor.

Make the program run for a longer time. For instance, on the cpi.c
example you mention,

    n = 10000;			/* default # of rectangles */

you can raise that value to force the computation to take ten seconds or so.

Hope this helps,
Nicolás


More information about the mpich-discuss mailing list