[Crash-utility] OpenVZ wishes for crash

Vasily Averin vvs at parallels.com
Thu Dec 4 15:34:08 UTC 2014


Dear Dave,

Could you please advise how it's better to add some OpenVZ-specific
functionality into mainline crash.

Most important tasks for us are:
1) for specified task: get its Container ID.

2) for specified container: get list of its processes, IP addresses,
  references to according structures: mounts/net devices/IPCs and so on.

3) list of running containers:
  Container ID, its IP addresses, reference to top parent task (aka init), number of running processes

Can we add some key to "ps" and "foreach" commands?
For example:
"ps -z  pid" allows us to get CT Id,
"ps -z CTID" helps to look/calculate number of processes in container
"foreach (ct?) net/ipcs/mount" -- to get container-specific information

Thank you,
	Vasily Averin




More information about the Crash-utility mailing list