From: <er...@he...> - 2004-03-31 20:08:17
|
On Thu, Apr 01, 2004 at 03:04:29AM +0900, Kimitoshi Takahashi wrote: > Hi all, > > Form what I read from Bproc documents, the process migration is volunatry, > meaning bproc_move() must be called from the proccess to be moved. > > The lovely bpsh seems to wrap non-bproc program, and cause the program to move involuntary, > using bproc_vexecmove(), only at the begining. > > I'm wondering if there is any way to cause a non-bproc procces to move involuntary any time > at user's will. > > My colleague uses a heterogeneous cluster where the memory sizes on nodes vary. > He sometimes wants to move small process on a large memory machine > before he starts obviously huge proccess. He is only using bpsh to start processes. > > Is it technically feasible to write a like of bpsh which always wraps a process on slave nodes, > and handles a "move now to where" signal ? > > How would you deal with the situation my colleague has ? I think a "wrapper" could take the form of a shared library. You could manually LD_PRELOAD yourself or you could modify bpsh to automatically set LD_PRELOAD for the child processes. A signal seems like a good way to get the process's attention but you still need another way to tell it where to move to. I can't think of anything easy for that off the top of my head. - Erik |