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?

link|improve this question

80% accept rate
feedback

2 Answers

up vote 2 down vote accepted

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

link|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
feedback

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.

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

Your Answer

 
or
required, but never shown

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