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

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
–
Aleksandr LevchukApr 13 '11 at 13:49