From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PHudt-0003SE-Un for garchives@archives.gentoo.org; Mon, 15 Nov 2010 08:42:26 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8CA4CE07C8; Mon, 15 Nov 2010 08:42:17 +0000 (UTC) Received: from mail-gy0-f181.google.com (mail-gy0-f181.google.com [209.85.160.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 6924CE07C8 for ; Mon, 15 Nov 2010 08:42:17 +0000 (UTC) Received: by gye5 with SMTP id 5so4280516gye.40 for ; Mon, 15 Nov 2010 00:42:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:content-type:content-transfer-encoding; bh=NSSEAB0g+8pmPsApdvihhbQli998IcwrPNzciPqU+Hw=; b=VcMLP8vTeb0w/UAqI87GYucOv6XydxORtIU9PGo+yZtYXuTw4pccWlkqNquaPMxf8n BieECkx6BgXK3O7YHw7/jUoWl9jSU5VM4UQ8FA+qiDND6R0PwgwAUl/0M0jit4MJXBl9 W6Uwp1Im154tpRteNUCDpQbWr02RckuImpqnU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; b=BN8PPnD9AmSQIU/SmfYAhlKWs/6BjeMPT8UGH3z7+JfMSynWMa4M5GocxvzABSUvCr 68wxhleOFciGG2suKfkP5bOuaAkBCP2s6T34onDTq4dXeAfxwWEdUrEajpVDMNyHg2j+ KIctPQ0AtbKYl5wgdogMpSims1NsCmvDQ9aqU= Received: by 10.90.20.6 with SMTP id 6mr7372900agt.200.1289810535517; Mon, 15 Nov 2010 00:42:15 -0800 (PST) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Sender: fthtmn@gmail.com Received: by 10.90.174.18 with HTTP; Mon, 15 Nov 2010 00:41:44 -0800 (PST) In-Reply-To: <1289797773.3977.10.camel@localhost> References: <1288072147.8318.56.camel@localhost> <1288076539.8318.116.camel@localhost> <1288219650.8318.168.camel@localhost> <20101028004454.2d6cc500@zaphod.digimed.co.uk> <4CC8BCEB.50904@gmail.com> <4CC8F45A.10001@gmail.com> <4CC91904.7070506@gmail.com> <1288939512.14313.187.camel@localhost> <1289797773.3977.10.camel@localhost> From: =?ISO-8859-1?Q?Fatih_T=FCmen?= Date: Mon, 15 Nov 2010 10:41:44 +0200 X-Google-Sender-Auth: l1RHl59Hs5sLdbS2zj3-8TUW1-s Message-ID: Subject: Re: [gentoo-user] swap usage creeping up To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 7a33cb18-f3f5-43fd-876f-43d9f54eee3c X-Archives-Hash: 955d97a227fdc93e6f165ade486d581b On Mon, Nov 15, 2010 at 07:09, Iain Buchanan wrote= : > On Tue, 2010-11-09 at 23:24 +0200, Fatih T=FCmen wrote: >> On Fri, Nov 5, 2010 at 08:45, Iain Buchanan wro= te: >> > OK so vm.swappiness seemed to help a bit but today I notice that swap >> > usage is up again. =A0It's firefox: >> > >> > =A0PID USER =A0 =A0 =A0PR =A0NI =A0VIRT =A0RES =A0SHR S %CPU %MEM =A0 = =A0TIME+ =A0COMMAND >> > 14072 iain =A0 =A0 =A020 =A0 0 1369m 897m =A015m S =A0 =A03 29.5 113:1= 4.91 firefox >> > >> > I think that's 1.3Gb + 900Mb... sounds like a memory leak to me. >> > >> > Anyone else run firefox for 113+ hours? =A0I'm using 3.6.9-r1. >> > >> >> 1.3G is the grant total of Res and Swap. =A0You 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. =A0A few months ago this didn't cause any issues at all= , > now I'm seeing high swap usage. =A0I 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. =A0vm.swappiness is set to 0. =A0I'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. -- =A0 =A0Fatih