linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "Joseph D. Wagner" <wagnerjd@prodigy.net>
To: shajupt@qpackets.com, linux-mm@kvack.org
Subject: RE: How to study memory leakage
Date: Tue, 11 Feb 2003 10:10:14 -0600	[thread overview]
Message-ID: <000001c2d1e8$11409c20$b5425aa6@joe> (raw)
In-Reply-To: <200302110939.PAA09314@brahma.roc.com>

> System is becoming slow after some user space
> programs are run and the memory usage displayed
> also increasing
>
> is their any known procedure or tools to study
> the memory leakage both in user-space and kernel-space

1) Monitor current memory usage taking special care to note current memory statistics
2) Start the suspect program
3) Do stuff
4) Quit the suspect
5) Check back with memory statistics; they should be the same as when you started the program.  If you're missing memory, this is the confirmed leak.

Step 5 isn't as easy as it looks.  The memory leak may only be occurring in a particular part of the program.  For example, if you have a Word Processor, the leak may occur only after executing the Find/Replace functions, not simply from running the program.

Yeah, there are tools out there that make this a lot easier, but I don't know where these tools are on Linux.

Joseph Wagner

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

      reply	other threads:[~2003-02-11 16:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20030211055334Z26564-22042+45@kvack.org>
2003-01-11  9:21 ` SHAJU PETER
2003-02-11 16:10   ` Joseph D. Wagner [this message]

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='000001c2d1e8$11409c20$b5425aa6@joe' \
    --to=wagnerjd@prodigy.net \
    --cc=linux-mm@kvack.org \
    --cc=shajupt@qpackets.com \
    /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