Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Physical vs virtual usage RAM in the OpenVZ VPS
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Physical vs virtual usage RAM in the OpenVZ VPS

postcdpostcd Member

Hi,

Im having OpenVZ VPS with vSWAP and privvmpages unlimited, physpages limitted. Should i care about processes virtual memory or only about real/physical memory usage?

When im checking "top -c", htop or ps ax --sort=vsz

I may be able to see the processes real used memory, but i see usually many processes from mysql, many from apache so i get desoriented.

When i do "ps awwlx --sort=vsz|tail -n 20" (vsz = virtual memory), i see (among others):

1 0 22052 1 20 0 679876 356072 poll_s Ssl ? 0:30 /usr/local/cpanel/3rdparty/bin/clamd

1 25 4029 1 20 0 784656 46000 rt_sig Ssl ? 157:13 /usr/sbin/named -u named

5 28 15144 1 20 0 2626584 2188 ep_pol Ssl ? 129:17 /usr/sbin/nscd

I think it tells me:

named 784MB (784656) virt. memory used

clamd 679 (679876) MB virt. memory used

nscd 2626MB (2626584) virt. memory used

Can i do anything with these processes so they do not allocate so much virtual ram, or i shouldn't care as their physical ram usage is small and my OpenVZ VPS performance is not affected by too much virtual, but only physical usage of RAM?

Thank You

Sign In or Register to comment.