Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


How to know how much neighbours you've got in your OpenVZ VPS
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

How to know how much neighbours you've got in your OpenVZ VPS

FredQcFredQc Member
edited May 2015 in Tutorials

Have you ever wonder how much containers are running on the VPS node you're at ? There is a little trick I found while browsing Reddit:

grep devices /proc/cgroups

This should returns something like this:

devices 1 20 1

20 is the number of neighbours you have

Be advised that this works only with recent OpenVZ kernels and a patch have already been provided to "mask" this information to the end-user. Because it's providers little secret, you know ?

If you get "1" as the second number, the patch has been applied on the node. If you see nothing, your provider run an ancient Kernel.

So, I tried this little trick on my VPSes that use OpenVZ:

ImpactVPS $7 bundle devices 1 93 1

ReliableHostingServices $2 VPS devices 3 71 1

TacVPS (GVH) $7 VPS devices 4 22 1

ZXPlay 800GB HDD Special devices 4 15 1

My other VPS shows 1 or nothing.

«13

Comments

Sign In or Register to comment.