pstree

Using Docker on Grid Engine / Sun Grid Engine / Son of Grid Engine

安稳与你 提交于 2020-02-03 10:24:07
问题 Does anyone have experience running Docker on Grid Engine / Sun Grid Engine / Son of Grid Engine and being able to monitor the resource used by the daemon? The issue is that when I qsub docker run ... , the actual process in the container is run by the docker daemon rather than the docker client which means the process trees are different. Is there any way for SGE to track the resources of a process in a different tree (I would assume not)? Another option would be to qsub a script that first

Walking a process tree

拥有回忆 提交于 2019-11-29 23:18:13
I have the following scenario. The user would type the PID of a process, and the script should show the process and it's subprocesses, sub-subprocesses (and so on) of PID, and it should list it in a tree format. I tried using pstree PID and ps faux PID , but it doesn't work. It seems like it doesn't take PID of processes as arguments. Any ideas please? Just wanted to document my steps related to this problem. Say I execute this in a terminal: ~$ echo "read -p 'Press Enter'" > mytest.sh ~$ chmod +x mytest.sh ~$ bash -c bash ~$ bash -c ./mytest.sh ... and leave it waiting at the read input

Walking a process tree

梦想的初衷 提交于 2019-11-28 20:36:26
问题 I have the following scenario. The user would type the PID of a process, and the script should show the process and it's subprocesses, sub-subprocesses (and so on) of PID, and it should list it in a tree format. I tried using pstree PID and ps faux PID , but it doesn't work. It seems like it doesn't take PID of processes as arguments. Any ideas please? 回答1: Just wanted to document my steps related to this problem. Say I execute this in a terminal: ~$ echo "read -p 'Press Enter'" > mytest.sh ~