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 1STMnX-0000u4-C3 for garchives@archives.gentoo.org; Sun, 13 May 2012 00:36:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A4DB8E0B5F; Sun, 13 May 2012 00:36:15 +0000 (UTC) Received: from mx.virtyou.com (mx.virtyou.com [178.33.32.244]) by pigeon.gentoo.org (Postfix) with ESMTP id 9EAA8E0AFB for ; Sun, 13 May 2012 00:34:52 +0000 (UTC) Received: from weird.wonkology.org (xdsl-78-35-159-185.netcologne.de [78.35.159.185]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx.virtyou.com (Postfix) with ESMTPSA id 9F068DC041 for ; Sun, 13 May 2012 02:34:51 +0200 (CEST) Date: Sun, 13 May 2012 02:34:49 +0200 From: Alex Schuster To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] I want to play movies without hangs Message-ID: <20120513023449.6d7a0dca@weird.wonkology.org> In-Reply-To: <4FAB2376.6060804@gmail.com> References: <20120216162948.7eea6070@weird.wonkology.org> <20120218180407.74055f5e@weird.wonkology.org> <20120218220521.1278e023@bluewin.ch> <1705219.vsiCQe2Sr8@weird> <20120507144134.4ea24fc3@weird.wonkology.org> <20120507231123.49125d30@weird.wonkology.org> <20120509214419.34d6bbe4@weird.wonkology.org> <20120509213833.5e9911ba@digimed.co.uk> <20120510030001.0158d406@weird.wonkology.org> <4FAB2376.6060804@gmail.com> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu) 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 3f1ef87a-60f0-4efe-9119-08461bd214b6 X-Archives-Hash: d87a02e3031f9d95e34ac0b0f7ab61d6 Dale writes: > Is there a way to find out what is using swap? Maybe something related > to the video is on swap which at times can be slow, certainly slower > than ram. > > I have always wondered how to find this out myself. Me too, so when I had this sudden swap problem for the first time, I searched for a method to do this and found a script here: http://northernmost.org/blog/find-out-what-is-using-your-swap/ There's lots of information for all processes in /proc//. Trying to read /proc//mem (I think it was this file) in mc was not such a good idea, the system froze with lots of HD activity, and after half an hour I rebooted with Alt-SysRq-{K,E,I,S,U,B}. I improved the script a little, it allows sorting by PID, size and name, and can restrict the output to specific processes or show only those using more swap than specified. If interested you can download it here: http://www.wonkology.org/utils/getswap You need to be root to see processes you do not own. But of course, I forgot to run it after the sudden swap problem happened lately. So I still do not know what was going on there. I'll wait for the next time it happens. Wonko