Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to check kmemsize. How do I do it on ubuntu hardy server?

Update: I am using AWS/EC2/Scalr AMI 32 bit which is based on Ubuntu 8.04Hardy Heron with Fedora kernel. How can I can find kmemsize?

share|improve this question
up vote 2 down vote accepted

/proc/user_beancounters only exists if you are running under an OpenVZ kernel.

share|improve this answer
Thanks. Please see my edit above. – Niro Jan 31 '10 at 9:24
Why are you trying to find kmemsize? Again, you need to use a VZ kernel and it will be under /proc/user_beancounters. Maybe you should try to explain what you are trying to achieve, rather than what you are trying to do. – sybreon Feb 1 '10 at 9:01

sybreon is correct. However, if you are trying to check the kmemsize in a VPS, try the following and look for the kmemsize line:

cat /proc/user_beancounters

You may also want to ask your host if you are using ubc counters at all, if they have Virtuozzo (the commercial version of openvz) they may be using SLM, which allows you to set a flat memory limit in megabytes.

share|improve this answer
Thanks. Please see my edit above. – Niro Jan 31 '10 at 9:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.