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 <gentoo-user+bounces-123148-garchives=archives.gentoo.org@lists.gentoo.org>) id 1QPG5s-0000BZ-LH for garchives@archives.gentoo.org; Wed, 25 May 2011 15:33:59 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DA5CC1C219; Wed, 25 May 2011 15:32:32 +0000 (UTC) Received: from mail-vx0-f181.google.com (mail-vx0-f181.google.com [209.85.220.181]) by pigeon.gentoo.org (Postfix) with ESMTP id A5BAA1C219 for <gentoo-user@lists.gentoo.org>; Wed, 25 May 2011 15:32:32 +0000 (UTC) Received: by vxb39 with SMTP id 39so7208851vxb.40 for <gentoo-user@lists.gentoo.org>; Wed, 25 May 2011 08:32:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:from :date:x-google-sender-auth:message-id:subject:to:content-type; bh=/5BQdX6FJPYi9hfcZfYNUzIuydyVdYHO60pQidsLxTE=; b=NgT5VD8ouIrHT+lp/kIOINA80tjunpa3U3qIdOGhc86MUy0B8SAIXxlxiqRLfE4YRC 6wfrAMpCATgnoLjXMiGFbWyvwK1z/KYL7kgaX/PLYjoCZBHq4aDPGzCc241A7qpaW+0s L95VfX4b97YEhNmMaQoeiFvYvCJFnT1KkRepA= 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; b=GjVk06sgIi3SixKuTyifhP5hus0+s05ErlfXraxBRHIpVEBGkIEiJZ+o/yZs6M8J6l 5KK9Mi5k6ANM0zZRWyPULjTpnELHj2SD5SN0BxM9tDAkPo+M72y+1KNpGK7iFbUvtGHu 4ZznBk0w0TMiPUQiCGtTqXgq7VmZiIks0s8zM= Received: by 10.52.71.240 with SMTP id y16mr433vdu.125.1306337499379; Wed, 25 May 2011 08:31:39 -0700 (PDT) Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Sender: paul.hartman@gmail.com Received: by 10.52.157.234 with HTTP; Wed, 25 May 2011 08:31:19 -0700 (PDT) In-Reply-To: <201105251621.00659.wonko@wonkology.org> References: <201105251621.00659.wonko@wonkology.org> From: Paul Hartman <paul.hartman+gentoo@gmail.com> Date: Wed, 25 May 2011 10:31:19 -0500 X-Google-Sender-Auth: B7KSexWP87uc7JmOfuaS9mhG3jM Message-ID: <BANLkTinOuL3EJ5T-+XoYiNP9vqKjV7qNGw@mail.gmail.com> Subject: Re: [gentoo-user] Swap performance To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 X-Archives-Salt: X-Archives-Hash: 1dfe266d0055708e8855b2cc413a6938 On Wed, May 25, 2011 at 9:20 AM, Alex Schuster <wonko@wonkology.org> wrote: > Hi there! > > I still wonder why my KDE4 system starts swapping so early. Until a week > ago, I had 6G of RAM, but after a day of being logged in, I usually had some > swap usage. Sometimes this goes up to 1.5G, this is when the system becomes > way too slow and I log out. I can't remember the last time my swap was used at all. I have 12G of RAM, but in my prior system with 8G it was the same. Only in a rare case when some program had run-away memory usage/memory leak did I ever get to swap usage... I'm using vanilla kernel 2.6.39 with no patches, no BFS. And I use proprietary nvidia-drivers. I normally don't have so many programs running at once, but it happens sometimes. Since 2.6.38 and enabling automatic process grouping, I don't use nice or ionice at all anymore. I do parallel emerge with -j along with make -j12 and never notice any slowdown or lag in UI at all. With KDE4 logged in, and no GUI apps running (other than knutmon and wicd), my RAM usage is slightly less than 900M (not counting filesystem caches). >BTW, does anyone else's kwin use 750M? That's pretty high, I think it used >to be more like 300M. My kwin (4.6.3-r1) has currently 507M VIRT, 54M RES, 37M SHR according to top. My worst memory offenders, by resident memory: clamd 124M denyhosts 114M X 75M plasma-desktop 56M By virtual memory: krunner 964M wicd-client (python) 681M plasma-desktop 643M kded4 581M >Or I do a 'swapoff -a && swapon -a', this empties the swap and also >frees memory. But this takes _quite_ _a_ _while_. Once I measured 37 minutes >to clear 1G of swap. My PC doesn't swap, but in my Nokia N900, it runs Linux and X, heavy use of gtk and Qt4 libs, it has 256M of RAM and 768M of swap on eMMC (transfer rate about 20MB/sec). It swaps like crazy. :) Usually there is more swap in use than RAM, actually. When I move the swap to a slow SD card instead (2MB/sec transfer rate), even in that slow device, swapoff on the eMMC swap partition with ~500M in-use takes about 2 or 3 minutes at most with the data being swapped slowly into the SD card. So I think in your case it should be much faster than that!