Subject: Re: [vserver] no processes in context 1 / vserver-stat shows no vservers running
From: Tor Rune Skoglund <trs@swi.no>
Date: Mon, 3 Apr 2017 10:21:59 +0200

Den 27. mars 2017 18:13, skrev Adam Osuchowski:
> Hi,
>
> I encountered problem with vservers 2.3.8.5.2 (patch-4.1.35-vs2.3.8.5.2.diff
> + delta-memcg-fix09.diff + delta-memcg-fix10.diff) on kernel 4.1.35.
> All processes should be visible in context 1 but in fact no processes,
> beside ps itself, are:
>
> # chcontext --xid 1 ps -ef
> UID        PID  PPID  C STIME TTY          TIME CMD
> root      8759  4470  0 17:23 pts/1    00:00:00 ps -ef
> #
>
> Probably, for the same reason vserver-stat show no contexts running:
>
> # vserver-stat
> CTX   PROC    VSZ    RSS  userTIME   sysTIME    UPTIME NAME
> #
>
> Could anybody confirm such a behaviour? Is it configuration mistake
> or rather patch issue?

Hello Adam,

I have been using that kernel version on several systems and have not 
seen that behaviour with vserver-stat .

Is this a newly created vserver? Then there will be no processes in it 
if no "persistent" processes are started...  If you change to plain 
initstyle, then you should at least see the init process in there. ( 
http://linux-vserver.org/util-vserver:InitStyles )

I'm no expert. Please correct me if I am wrong.

BR,
Tor Rune Skoglund