OpenVZ Forum


Home » General » Support » mem leak
Re: mem leak [message #29749 is a reply to message #29746] Thu, 24 April 2008 06:40 Go to previous messageGo to previous message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
Hi Harald,

i would note that I do not see any kernel-related problems here:
linux kernel by design frees the memory only when it really required -- due performance optimisation reasons.

By this way kernel without any significat load will use all RAM, for example for disk cache. however when somebody will request new memory -- kernel will drop oldest cache entries (it is quite fast operations) and give this memory to application.

Thereofre from kernel point of view the situation when kernel and running userspace programs eats toghether all memory -- is normal.

However from userspace point of view huge swap memory usage can point to memory leak in some aplication:
Huge swap usage points to huge userspace memory consumption (kernel do not uses swap for kernel structures, swap contains only rarely used programm's data). It may be normal, or may be caused by some memory leaks in applications.

thank you,
Vasily Averin
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Physical (RH7.3) to Container (CentOS 5)?
Next Topic: One NIC, Multiple Gateways
Goto Forum:
  


Current Time: Sat Jul 13 10:53:20 GMT 2024

Total time taken to generate the page: 0.02271 seconds