From: Kimitoshi T. <kt...@cl...> - 2004-04-04 19:49:38
|
Sorry for the very slow response. er...@he... wrote: >> I still can't understand why I couldn't bpsh renice, >> since the PID on the slave was obtained by "bpsh 1 ps -ef" and hence it should be local pid. >> Would you elaborate a little more ? > >When you do a ps on the slave node (via bpsh) you see the same process >IDs that the front end sees. You'll note that a process doesn't >appear to change its PID when it moves to the back end. The proc file >system is modified to show the pids that the front end sees. This way >everything stays consistent when processes move around. The slave >node has different process IDs internally but you don't see those. Thank you very much for the explanation. >You can see them if you turn off the PID mapping in /proc like this: > >bpsh 1 -O /proc/sys/bproc/proc_pid_map echo 0 > >Putting a zero in that file turns off PID mapping. 1 means map for >non-root. 2 means map for everybody. It defaults to 2. If you turn >it off, then you get to see everything on the node. You should be >able to see that the real pid is in that case. If you use the real >pid, then I think renice should work. This worked. Thank you again. Kimitoshi Takahashi |