Re: Memory Management in Linux
I guess if you want to develop a program to monitor the memory usage,
you have firstly check the /proc directory to figure out if this
provides the information you need.
The link below explain what is /proc and how to access the many
entries in /proc from the user application:
http://docs.linux.cz/programming/other/ALP/advanced-linux-programming.pdf
If you do not find any information you need, so you have to develop
your own entry in /proc in order to provide the information required
by your program. This step require you to program at kernel space.
BR,
Mauricio Lin.
On Fri, 05 Nov 2004 19:37:56 +0100, Silvan Villiger
<vsilvan@stud.phys.ethz.ch> wrote:
> Hi,
>
> Can anyone give me a link to a guide which introduces into memory
> management?
>
> I need to understand expressions like "rss", "sz", "shared memory",
> "memory leak", "core image of a process", "data section", "kernel
> stack", "virtual size".
>
> I've googled a lot and have red the man page of ps. But it seems as most
> of the information out there expects me to know the basic stuff above. I
> only found this picture:
> http://www.phptr.com/content/images/chap3_0131429647/elementLinks/03fig01.jpg
> and an explanation to it, so you can expect me to understand these
> things, but nothing more.
> My goal is to write a script to monitor the memory-usage of a program
> and to detect memory-leaks using the ps-command. How would you detect
> memory leaks with it?
>
> Greetings... Silvan
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>
Reply to: