public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Bruce Guenter <bruceg@em.ca>
To: linux-kernel@vger.kernel.org
Subject: Re: How to diagnose a kernel memory leak
Date: Fri, 13 May 2005 15:28:16 -0600	[thread overview]
Message-ID: <20050513212816.GA29230@em.ca> (raw)
In-Reply-To: <20050512171825.12599c1e.akpm@osdl.org>

[-- Attachment #1: Type: text/plain, Size: 1577 bytes --]

On Thu, May 12, 2005 at 05:18:25PM -0700, Andrew Morton wrote:
> It all looks pretty innocent.  Please send the contents of /proc/meminfo
> rather than the `free' output.  /proc/meminfo has much more info. 

Here are the current meminfo numbers:

MemTotal:      2055648 kB
MemFree:         56512 kB
Buffers:        236880 kB
Cached:         869616 kB
SwapCached:          0 kB
Active:        1004124 kB
Inactive:       729732 kB
HighTotal:     1179072 kB
HighFree:         3584 kB
LowTotal:       876576 kB
LowFree:         52928 kB
SwapTotal:     1028152 kB
SwapFree:      1028096 kB
Dirty:            1036 kB
Writeback:           0 kB
Mapped:          13100 kB
Slab:           252444 kB
CommitLimit:   2055976 kB
Committed_AS:    25704 kB
PageTables:       1060 kB
VmallocTotal:   114680 kB
VmallocUsed:      4700 kB
VmallocChunk:   109836 kB

If I am counting right, free+buffers+cached+slab comes to 1415452 kB.
Of course, at this point, it is far from out of memory like it has been
in the past.  I am continuing to monitor, and will post numbers when it
gets closer to what I have previously observed.

> If the /proc/meminfo output indicates that there are a lot of slab pages
> then /proc/slabinfo should be looked at.

That was my first thought, yes.  However, when it has run out of memory,
even the slab totals were low (my first post showed only about 60 MB in
slab).
-- 
Bruce Guenter <bruceg@em.ca> http://em.ca/~bruceg/ http://untroubled.org/
OpenPGP key: 699980E8 / D0B7 C8DD 365D A395 29DA  2E2A E96F B2DC 6999 80E8

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2005-05-13 21:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-09  3:58 How to diagnose a kernel memory leak Bruce Guenter
2005-05-09  6:05 ` Zwane Mwaikambo
2005-05-09 14:20   ` Bruce Guenter
2005-05-09  8:29 ` Alexander Nyberg
2005-05-09 14:23   ` Bruce Guenter
2005-05-11 19:37   ` Bruce Guenter
2005-05-13  0:18     ` Andrew Morton
2005-05-13 21:28       ` Bruce Guenter [this message]
2005-05-18 18:32         ` Alexander Nyberg
2005-05-19 18:44           ` Bruce Guenter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050513212816.GA29230@em.ca \
    --to=bruceg@em.ca \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox