Subject: Re: [vserver] Per Guest Statistics
From: Jean Weisbuch <jean@phpnet.org>
Date: Tue, 19 Nov 2013 23:27:42 +0100

Le 19/11/2013 22:34, Christian Bricart a écrit :
> Am 17.11.2013 15:26, schrieb Phil Daws:
>> Hello,
>>
>> is it possible for each guest to report display its own CPU, memory utilization eg.
via top ? I have disk working well using chxid but not sure about the others.
> do you mean like running "vtop"? you run that on the host and will have
> *all* processes listed in your regular "top" and an additional row that
> indicates the vserver jail it's running in.
>
> or do you want a regular top for only a guest's processes like you were
> running top directly within the guest?
>
> oh - and "htop"[1] has some vserver capabilities (read: can display a
> process' VXID)
>
>
> [1] http://htop.sf.net/
>
>
If you want to monitoring the processes from the host and the guest run 
htop with "chcontext --migrate --xid 1 htop" (or create an alias for it 
on ~/.profile) to have it list the processes from the host and the 
guest, you can add the cgroup column if you want the VServer name or the 
VXID one if you want the context ID.

But if you want per VServer usage infos you have vserver-stat that gives 
some infos, else i use homemade scripts.