Subject: Re: [vserver] Checking processes in guests from host
From: Herbert Poetzl <herbert@13thfloor.at>
Date: Tue, 8 Dec 2009 18:05:51 +0100

On Tue, Dec 08, 2009 at 08:55:18AM -0800, Roderick A. Anderson wrote:
> Is there _direct_ way/method to check a process id in a guest from the host?

> I'm running some mini-web servers in 8-10 guests and yesterday several 
> ran a amok grabbing 95%+ CPU (dual processors and dual cores).  Until I 
> can sort out the problem I'd like to monitor them from the host and kill 
> them if needed.  I know the process ID in the guest but haven't figured 
> out how to get to /vservers/<guest>/proc/<pid>/* from the host.

if you are using pid namespaces, there is no such thing,
but if you use pid isolation (the Linux-VServer default)
then the pid on the host (from the spectator context) will
be the same as in the guest, except for the guest pid=1
which will be the initpid from /proc/virtual/<xid>/info

> Any suggestions how to check on this?

HTH,
Herbert

> \\||/
> Rod
> --