Re: [Vserver] Semaphores

From: Daniel Hokka Zakrisson <daniel_at_hozac.com>
Date: Sun 15 Apr 2007 - 22:55:23 BST
Message-ID: <46229F4B.90706@hozac.com>

Cryptronic wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi all,
>
> is there a possibility to see all semaphores vserver's are using?
>
> Because it is very difficult to enter each vserver and run ipcs. To
> see how much semaphores are in use would it do for me.

It depends on the kernel. For kernels < 2.6.19, chcontext --xid 1 ipcs
should do the trick. For newer kernels, the namespaces in mainline have
complicated this particular feature so you'll have to do something like
vsomething vserver --all -- exec ipcs

-- 
Daniel Hokka Zakrisson
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Sun Apr 15 23:31:53 2007
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sun 15 Apr 2007 - 23:31:58 BST by hypermail 2.1.8