Re: Memory usage - Evoultion and Mozilla

From: Michael Pokraka (junkmail_at_quirky.me.uk)
Date: 04/13/04


Date: Tue, 13 Apr 2004 00:41:57 +0100

Harry Fine wrote:
> system guard, or with the ps command, I seem to have multiple instances of
> java, Mozilla and Evolution running. There are 4 Mozillas processes at
> about 50000 bytes each, and 4 Evolutions with 51,000 each.

Multiple threads sharing the same piece of memory end up having the same
memory listed again.

> I have 528 megs of ram in the machine. Using the free command, shows only
> 6788 free, and 508084 used. Why are these applications hogging so much
> memory? Same as other tools show.

Ahem, you're not looking at all the numbers.... apart from cache, free even
gives you an output line that excluded buffers and cache:
free -m
             total used free shared buffers cached
Mem: 502 484 18 0 38 258
-/+ buffers/cache: 186 315
Swap: 2055 168 1887

In this case I've used 506MB, but 258 of that is cache and some buffer
memory. So, by the adjusted numbers (second line), I've only got 186MB in
use, and 168 MB of swap. (That's leftover from earlier in my case).

Linux is very efficient that it will always try to make use of everything
that's available to it. If more memory is needed it simply ditches some
cache....

Cheers
Mike



Relevant Pages

  • Re: Memory usage - Evoultion and Mozilla
    ... >> system guard, or with the ps command, I seem to have multiple instances of ... >> java, Mozilla and Evolution running. ... > memory listed again. ...
    (alt.os.linux.suse)
  • Re: Over used cache memory?
    ... > in memory is less important than the disk cache. ... > quietly sitting in swap. ... mozilla and evolution take forever to swap in, ...
    (Linux-Kernel)
  • Re: Cached memory never gets released
    ... Stock linux 2.4.26 kernel. ... Due to flash bug 3M of memory gets lost due to font memory getting lost ... The output of "free" cache number steadily grows. ... longer to exhaust all of system memory with the cache. ...
    (Linux-Kernel)
  • Re: Problem: Creating a raw binary string
    ... > While its true that a 64-bit cpu will move twice the data per instruction it ... > Memory bus width plays an important role here and unless it too is widened / ... You are forgetting the two levels of cache in the processor. ... The memory chips are addressed in Row col fashion. ...
    (alt.comp.lang.borland-delphi)
  • Re: Is Greenspun enough?
    ... Most OSes memory map executables directly from the file system so code doesn't pollute the file cache or swap space. ...
    (comp.lang.lisp)