[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Why mozilla always starts five instances??



On Mon, 2003-07-14 at 14:24, Nathan Poznick wrote:
> Thus spake Zhao You Bing:
> > And every one cost 58M memory,
> > How to make mozilla only start one process??
> 
> It doesn't start 5 instances, and each one is not taking up 58M memory.
> Mozilla is a multithreaded program.  Under Linux, each thread appears to
> be a separate process, but in reality they share memory space.  Thus,
> what you see in 'ps' or 'top' may *appear* to be 5 processes, each
> taking up 58M memory, but is in reality 1 process (with multiple
> threads), which takes up a *total* of 58M memory.

You can see exactly what memory is being used by running gtop and having
a look at the memory map. If you check some of the addresses in each
thread you will see that they are the same.

rgh

-- 
"It is possible to make things of great complexity out of things
 that are very simple. There is no conservation of simplicity"
 -- Stephen Wolfram

Richard Heycock <rgh@roughage.com.au>
tel : 0410 646 369
key fingerprint : 909D CBFA C669 AC2F A937 AFA4 661B 9D21 EAAB 4291



Reply to: