3

I'm on a openvz vps and I have memory thats unaccounted for. When I run free -m it says I have 156mb used out of a vps with 256mb. Cached is 0, buffers are 0, shared is 0. But when I run "ps -faux" the memory usage is nowhere near 156mb and the total comes more to 50mb'ish.

Ive also run rootkit hunter and chkrootkit and nothing's shown up.

Anyone know whats going on and how to find out whats using the memory?

edit: ive doubled checked memory usage using a program I found vzfree which uses beancounters and is supposedly more accurate but I got the same memory usage.

edit2: If your running openvz they have different memory accounting. I found the solution here.stack size

2
  • Glad you found the cause. Commented Apr 13, 2011 at 6:39
  • In addition, in multiple threads, top will over count memory that's shared between threads. For accurate, top-like view of the memory usage per-thread check out my github.com/alevchuk/memtop Commented Apr 13, 2011 at 13:49

1 Answer 1

1

This handy tool might help decipher /proc/user_beancounters better:

vzfree

--edit--

Are you sure this isn't the reason ? I notice a massive difference between a minimal Ubuntu build and a Debian build ... Debian doesn't grab all the memory: Linux ate my RAM !

2
  • yeah I just read that somewhere but the numbers come out the same. Commented Apr 13, 2011 at 6:00
  • Wish I'd written it :-) Glad it helped. Commented Apr 13, 2011 at 13:36

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.