Re: [vserver] Per Guest Statistics

From: Jean Weisbuch <jean_at_phpnet.org>
Date: Tue 19 Nov 2013 - 22:27:42 GMT
Message-ID: <528BE5DE.4090609@phpnet.org>

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.
Received on Thu Nov 21 07:49:17 2013

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 21 Nov 2013 - 07:49:17 GMT by hypermail 2.1.8