Date: Sun, 8 Nov 1998 13:58:47 -0700 From: "Tim Pushor" <timp@orion.ab.ca> To: "Doug White" <dwhite@resnet.uoregon.edu> Cc: <questions@FreeBSD.ORG> Subject: Re: question about 'top' Message-ID: <002b01be0b5a$9a3cf180$9801a8c0@dedalus>
next in thread | raw e-mail | index | archive | help
I guess what I am really looking for is a way to find out exactly how memory is being used. You mention that processes can find out their own utilization, but if I wanted to write a chunk of code (or script) to interrogate memory usage, any idea of how I could go about doing that? What I am really looking for is: 1) Evidence that all children are using the same code segment 2) Size of the stack per process 3) Size of the data segment per process 4) Heap usage per process Thanks... -----Original Message----- From: Doug White <dwhite@resnet.uoregon.edu> To: Tim Pushor <timp@orion.ab.ca> Cc: questions@FreeBSD.ORG <questions@FreeBSD.ORG> Date: Saturday, November 07, 1998 3:42 AM Subject: Re: question about 'top' >On Mon, 2 Nov 1998, Tim Pushor wrote: > >> I have a question regarding the 'top' program included in FreeBSD. I >> am interested to see what resources are used by which process. I am >> running a server process that forks itself for every request, and am >> interested to know how much memory is being used by this process. I am >> assuming this would be the 'RES' column. > >The 'SIZE' represents all the memory the process is using. RES represents >the amount of RAM the process is presently using. That number deducts the >amount of SIZE that's swapped out. > >> I see sendmail 8.9.1 appears to use on the order of one megabyte per >> process. Does this seem reasonable? This would mean that to run 50 >> sendmail 'children' concurrently it would require ~50 megabytes for >> data, plus stack and text area. > >50MB in the VM system, yes. That doesn't necessarily translate to RAM. > >Programs can interrogate their own resource utilization, btw. > >Doug White >Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve >http://gladstone.uoregon.edu/~dwhite | www.freebsd.org > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002b01be0b5a$9a3cf180$9801a8c0>