Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to find out if Linux kernel is leaking memory by running some commands? I am almost positive that the linux kernel is leaking memory. However, the top and free -k do not reveal much. Is there a way that I can look at how much memory kernel has allocated and hopefully some kind of a memory map too? Thanks for any inputs

share|improve this question
Your question is pretty specific - you might get a more useful response if you describe the behaviour that you're seeing and say why you think there might be a kernel memory leak. – Tom Shaw May 26 '11 at 12:16
up vote 1 down vote accepted

Try looking at /proc/meminfo:

$ cat /proc/meminfo

The resulting fields are described in the kernel documentation.

If you see Slab or KernelStack growing over time then maybe you're on to something. However, if the big consumers are AnonPages, Mapped and Shmem then it's a userspace issue not a kernel issue.

share|improve this answer

Your Answer


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.