On Tue, Nov 11, 2008 at 4:11 PM, erik quanstrom <[EMAIL PROTECTED]> wrote:
>> What if you for whatever reason want a ps to show all the proces on
>> all the nodes you're running on.
>>
>> for (i in $NODES) {
>> import -a $i .com /proc /proc
>> }
>
> what's the .com for?
>
it's when I forgot to take part of the test :-)
>> Your /proc is now the unified /proc of all your nodes. (I used to do
>> this all the time with my plan 9 minicluster)
>
> does ps not mind if several processes have the same pid?
>
It never seemed to.
But of course if you have procs with same pid, the collisions are obvious.
So, do the easy thing:
for all nodes, mount them at
/proc/localhost
/proc/hostname/whatever
Then modify ps (takes about 5 minutes) so it iterates over /proc/*
where * is a set of host names.
now you can do fun stuff
slay node8/mpirun | rc
slay node*/mpirun | rc
There's a lot of good stuff in there if you want to use it ... I
actually implemented all this a few years back when Vic did hist first
xcpu code. It was really nice.
ron