From: Ray Olszewski <ray@comarre.com>
To: linux-newbie@vger.kernel.org
Subject: Re: Process table dump
Date: Thu, 26 Feb 2004 07:50:36 -0800 [thread overview]
Message-ID: <5.1.0.14.1.20040226073948.0200b548@celine> (raw)
In-Reply-To: <6CE6A442029B3347890ED9FCA94FAE0701EEAD38@nsxmail.netscout. com>
At 10:20 AM 2/26/2004 -0500, Gosselin, Mark wrote:
>Hi Everyone,
>
>I'm working on a problem we're seeing here running a program called
>'snort'. It appears that when
>the is running, it starts to consume large amounts of memory. When the
>process is killed, the
>memory, which should be released, is not. My theory is that the process
>still hangs around in
>some process table or soething, although it does not show as a zombie process.
>
>Can someone tell me the best way to dump any process table so I can verify
>that this is the case??
I assume you already know about the "ps" command. If not, that's what you
want to use; probably as "ps aux".
If you are not satisfied with any of the variants produced by the "ps"
command, you might want to look at the kernel's process records directly,
by way of the /proc filesystem interface. There is a pseudo-directory entry
there for each active process (using the pid as directory name).
But before you go too far down that road, you might want to post a followup
here detailing the evidence you are seeing. I regularly see people, on this
list and on others, misinterpret memory-usage reports to infer the presence
of memory leaks where none exist. For example, if you are using "free" to
check memory use, you should be using the second line of its output, not
its first. And if you are using "top" ... don't; use "free" instead. As
reported by "top" or the first line of "free", memory usage on any Linux
system will always increase until almost 100% of real (not swap) memory is
"in use" ... but that's just kernel buffering at work, not a real tying up
of RAM, and does not indicate a system or application problem.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
next parent reply other threads:[~2004-02-26 15:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <6CE6A442029B3347890ED9FCA94FAE0701EEAD38@nsxmail.netscout. com>
2004-02-26 15:50 ` Ray Olszewski [this message]
2004-02-26 15:20 Process table dump Gosselin, Mark
2004-02-26 20:13 ` pa3gcu
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=5.1.0.14.1.20040226073948.0200b548@celine \
--to=ray@comarre.com \
--cc=linux-newbie@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