From: <er...@he...> - 2004-03-31 18:33:15
|
On Mon, Mar 29, 2004 at 08:01:54PM +0100, Gerben Roest wrote: > Hi all, > > I want to know how to test BProc's funtionality. I have a > cpu-time-consuming little c program, which I want to run on the master and > hopefully see it running on the slave (I have a 2-node cluster for this to > test). > > On the master the daemons bpmaster and bpslave both run (the master can > join if he likes) and on another node only bpslave runs. > Doing a "bpstat" I get: > > Node(s) Status Mode User Group > 0-1 up ---x--x--x root root > > but when I run the program twice, they both run on the master, when I look > at it with "beotop". I mean, one should run on the master and one on the > slave, right? > Or do I have to run one on the master and run the other on the slave, by > hand? That's not so fancy.. I can do that with normal rsh or ssh as well. Stuff doesn't automatically move to different nodes on a BProc system. You need to place the processes on nodes manually. bpsh is usually an easy way to do this. After that a process can move itself using the BProc API. (bproc_move(), etc.) - Erik |