On Mon, Nov 15, 2010 at 07:09, Iain Buchanan <iai...@netspace.net.au> wrote:
> On Tue, 2010-11-09 at 23:24 +0200, Fatih Tümen wrote:
>> On Fri, Nov 5, 2010 at 08:45, Iain Buchanan <iai...@netspace.net.au> wrote:
>> > OK so vm.swappiness seemed to help a bit but today I notice that swap
>> > usage is up again.  It's firefox:
>> >
>> >  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
>> > 14072 iain      20   0 1369m 897m  15m S    3 29.5 113:14.91 firefox
>> >
>> > I think that's 1.3Gb + 900Mb... sounds like a memory leak to me.
>> >
>> > Anyone else run firefox for 113+ hours?  I'm using 3.6.9-r1.
>> >
>>
>> 1.3G is the grant total of Res and Swap.  You need to read man top
>> before judging not-entirely-accurate values reported by top.
>
> judging? I only said "I think"!
>
> sure, top has it's quirks, but it's ok for comparing against itself.
>
>> 900M is resident on your main memory. '113+ hours' is not a decent
>> information to draw conclusion from. Running firefox for 113+ hours
>> with a single tab on a text-only website is not same as running dozens
>> of tabs with dozens of multimedia/embedded objects.
>
> sure, but running it for 10 or 100 or 1000 hours should produce roughly
> the same characteristics for the same browsing behaviour if all other
> things are equal.  A few months ago this didn't cause any issues at all,
> now I'm seeing high swap usage.  I usually never use my 3G of physical
> RAM.
>

Can you recall what significant change have you made to the system?
For emerged packages you can try smth like genlop --list --date 1
month ago and then check against the versions upgraded from.

> Again today I see it is using about 900Mb in total, which seems quite
> large.  vm.swappiness is set to 0.  I've upgraded firefox to 3.6.12.
>
> I had to reboot, but I'll check the usual statistics next time I see it.
>

You say swappiness is set to 0 but dont give any swap usage info. If
there is any swap usage while swapiness is 0 then it would be weird
and we could blame it on the kernel.

I just googled mem usage firefox as I am running out of ideas. It seem
like you are not the only one complaining about this. Take a look at
these top results. There are some tweaking advice, see it they work
for you.
http://kb.mozillazine.org/Memory_Leak
http://support.mozilla.com/en-US/kb/high+memory+usage

Chromium, which I have been happily using for almost a year now, has a
task manager which shows mem usage of every extension and tab. If
firefox has switched to multiprocessing, which was a feature plan some
time ago, similar tool should likely be available for firefox as well.

--
   Fatih

Reply via email to