Re: Understanding and Reacting to Top.

From: Darren Dunham (ddunham_at_redwood.taos.com)
Date: 10/24/05


Date: Mon, 24 Oct 2005 18:51:32 GMT

Luke MacNeil <lukemacneil@listaintl.com> wrote:
> When I run top on this box, I can see 6 httpd processes each with a
> size of 148M... is the top "size" display directly related to memory?

Yes, it's the amount of virtual memory used by this process. You should
see a similar number (with much greater detail) by doing pmap -x on the
process.

> If it is, how can I possibly be running 6x148M processes just on apache
> alone?

Every page used by the process is not necessarily private to that
process. Read-only portions of the Apache binary may be shared among
all 6, and system libraries (like libC) may be shared by many programs.

The 'pmap -x <pid>' output shows that more explicitly.

-- 
Darren Dunham                                           ddunham@taos.com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >


Relevant Pages

  • Re: how much swap size did you take?
    ... virtual memory is used to contain executing processes. ... processes than can fit into real storage. ... to allocate a corresponding page on disk. ... This "duplicate" allocation scenario requires that amount ...
    (alt.os.linux.redhat)
  • Re: Added memory but only 30% of available memory ever used
    ... "At the same time an amount of virtual memory is in use equivalent to ... Use page file monitor to observe what is the peak usage. ... too small at 1 GB and that Windows would resize it automatically. ...
    (microsoft.public.windowsxp.general)
  • Re: Virtual Memory Error
    ... > I have a user that if he leaves his laptop on overnight he has a low ... > virtual memory error in the morning when he comes in. ... > the laptop are standard for this location. ... your maximum is set at 3 times the amount. ...
    (microsoft.public.win2000.general)
  • Re: paging file size doesnt change
    ... Did you select Custom size? ... for the maximum set a number way high beyond your expected usage? ... > the same but it has no bearing upon the amount of virtual mem that my ... >>>I am trying to increase my virtual memory and am doing so the way I am ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: how much swap size did you take?
    ... virtual memory is used to contain executing processes. ... I created lazy allocate ... ... to allocate a corresponding page on disk. ... This "duplicate" allocation scenario requires that amount ...
    (alt.os.linux.redhat)