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: Wed, 11 May 2005 13:37:26 -0600	[thread overview]
Message-ID: <20050511193726.GA29463@em.ca> (raw)
In-Reply-To: <1115627361.936.11.camel@localhost.localdomain>

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

On Mon, May 09, 2005 at 10:29:21AM +0200, Alexander Nyberg wrote:
> the patch below might help as it works on a lower
> level. It accounts for bare pages in the system available
> from /proc/page_owner. So a cat /proc/page_owner > tmpfile would be good
> when the system starts to go low. There's a sorting program in
> Documentation/page_owner.c used to sort the rather large output.

I've been running this for a day and a half now, and a few hundred megs
of memory is now missing:

# free
             total       used       free     shared    buffers     cached
Mem:       2055648    2001884      53764          0     259024     868484
-/+ buffers/cache:     874376    1181272
Swap:      1028152         56    1028096

I've put the output from the sorting program up at
	http://untroubled.org/misc/page_owner_sorted

Is this useful information yet, or is there still too much in cached
pages to really identify the source?
-- 
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 --]

  parent reply	other threads:[~2005-05-11 19:37 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 [this message]
2005-05-13  0:18     ` Andrew Morton
2005-05-13 21:28       ` Bruce Guenter
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=20050511193726.GA29463@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