Re: How to get memory usage for process?

2004-04-09 Thread Uwe Doering
Artem Koutchine wrote:
Hi!

I need to figure out how much memory process really takes.
For example, i am running 100 perl scripts, they are all the
same source and i guess some memory is shared among them
(mostly perl interperter i guess). So, i need to know how much
memory is shared and how much memory is used for each new
running script (including buffers, e.t.c.). What command shoud
do the trick and with what options?
In case you have the PROCFS mounted (usually under /proc) you can get a 
detailed listing of the memory map of a process, together with the 
relevant flags for the various memory segments that indicate memory 
sharing etc.  Try this:

  cat /proc//map

'' is of course to be replaced by the PID of the process you want 
to examine.

   Uwe
--
Uwe Doering |  EscapeBox - Managed On-Demand UNIX Servers
[EMAIL PROTECTED]  |  http://www.escapebox.net
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to get memory usage for process?

2004-04-06 Thread Jan Grant
On Tue, 6 Apr 2004, Artem Koutchine wrote:

> Hi!
>
> I need to figure out how much memory process really takes.
> For example, i am running 100 perl scripts, they are all the
> same source and i guess some memory is shared among them
> (mostly perl interperter i guess). So, i need to know how much
> memory is shared and how much memory is used for each new
> running script (including buffers, e.t.c.). What command shoud
> do the trick and with what options?

You're probably after the sysutils/pmap utility, in the ports.

-- 
jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/
Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/
"...perl has been dead for more than 4 years." - Abigail in the Monastery
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"