Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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

 
discard

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.