From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <13426df10811111641j181e3358la1b28471273d8834@mail.gmail.com> Date: Tue, 11 Nov 2008 16:41:08 -0800 From: "ron minnich" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net> In-Reply-To: <7e9abcc226acf9a6c04c415e1bca06bd@quanstro.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <13426df10811111613u4ed6c6a4n8e0359905dfdbe94@mail.gmail.com> <7e9abcc226acf9a6c04c415e1bca06bd@quanstro.net> Subject: Re: [9fans] 9grid Topicbox-Message-UUID: 3c7c39d6-ead4-11e9-9d60-3106f5b1d025 On Tue, Nov 11, 2008 at 4:11 PM, erik quanstrom 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