* Monitoring memory usage
@ 2001-03-05 21:11 Trevor Osatchuk
2001-03-05 22:27 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
0 siblings, 1 reply; 2+ messages in thread
From: Trevor Osatchuk @ 2001-03-05 21:11 UTC (permalink / raw)
Pretty simple question to which I have not been able to find a simple
answer. Is there a way to monitor total virtual memory and total
actual memory used by a single process? Top will give a SIZE and RES
value in kilobytes, but I have heard that it may not be the most
accurate program around. I want to know if there is another tool that
can give me process by process vm usage and physical memory usage.
Thanks!
Trevor Osatchuk
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Monitoring memory usage
2001-03-05 21:11 Monitoring memory usage Trevor Osatchuk
@ 2001-03-05 22:27 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
0 siblings, 0 replies; 2+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 2001-03-05 22:27 UTC (permalink / raw)
In article <3aa400de.421702896@news.telusplanet.net>, trevor.osatchuk@nospam.pscl.com (Trevor Osatchuk) writes:
>Pretty simple question to which I have not been able to find a simple
>answer. Is there a way to monitor total virtual memory and total
>actual memory used by a single process? Top will give a SIZE and RES
>value in kilobytes, but I have heard that it may not be the most
>accurate program around. I want to know if there is another tool that
>can give me process by process vm usage and physical memory usage.
To verify the general quality of top's data, compare the VM and
RSS sizes for given process as listed by top and by ps(1). If
they're the same, then that's about the as good as you're going
to get without going deep within the kernel to get the data.
Both top and ps(1) probably use the various I/O controls that
are available with the process file system; proc(4). You can
change how the data is reported by writing your own program, but
the basic data won't change.
One of the things that complicates matter is how you want to
count shared pages. Should a process count shared page as
though it has a private copy? Or, should the program try
to figure out how many processes have the particular page
mapped and split the "cost" among them equally.
>
>Thanks!
>
>Trevor Osatchuk
>
--
Alan Rollow alan@nabeth.cxo.dec.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-03-05 22:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-05 21:11 Monitoring memory usage Trevor Osatchuk
2001-03-05 22:27 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox