[mpich-discuss] How to check core load
Leon Yuhanov
leon at philipchun.com
Mon May 30 18:28:50 CDT 2011
If you know the program name use a combination of ps and grep.
Eg..if your application is testapp
'ps -A | grep testpapp'
I use php to monitor jobs on each node in this fashion. You can run:
'ps -A | grep testpapp > tasklog'
And then use php to open the tasklog file on each node and do something with it
Leon
-----Original Message-----
From: mpich-discuss-bounces at mcs.anl.gov [mailto:mpich-discuss-bounces at mcs.anl.gov] On Behalf Of Nicolas Rosner
Sent: Tuesday, 31 May 2011 9:16 AM
To: mpich-discuss at mcs.anl.gov
Subject: Re: [mpich-discuss] How to check core load
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
_______________________________________________
mpich-discuss mailing list
mpich-discuss at mcs.anl.gov
https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
More information about the mpich-discuss
mailing list