From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 1 Aug 2001 14:34:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 1 Aug 2001 14:34:14 -0400 Received: from humbolt.nl.linux.org ([131.211.28.48]:12811 "EHLO humbolt.nl.linux.org") by vger.kernel.org with ESMTP id ; Wed, 1 Aug 2001 14:34:05 -0400 Content-Type: text/plain; charset=US-ASCII From: Daniel Phillips To: "Mike Black" , , Subject: Re: 2.4.8preX VM problems Date: Wed, 1 Aug 2001 20:39:22 +0200 X-Mailer: KMail [version 1.2] Cc: , , "Andrew Morton" In-Reply-To: <20010801105419.8F078424A@lists.samba.org> <020001c11a80$43297110$e1de11cc@csihq.com> In-Reply-To: <020001c11a80$43297110$e1de11cc@csihq.com> MIME-Version: 1.0 Message-Id: <01080120392200.00933@starship> Content-Transfer-Encoding: 7BIT Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 01 August 2001 13:51, Mike Black wrote: > I have come to the opinion that kswapd needs to be a little smarter > -- if it doesn't find anything to swap shouldn't it go to sleep a > little longer before trying again? That way it could gracefully > degrade itself when it's not making any progress. > > In my testing (on a dual 1Ghz/2G machine) the machine "locks up" for > long periods of time while kswapd runs around trying to do it's > thing. If I could disable kswapd I would just to test this. Your wish is my command. This patch provides a crude-but-effective method of disabling kswapd, using: echo 1 >/proc/sys/kernel/disable_kswapd I tested this with dbench and found it runs about half as fast, but runs. This is reassuring because kswapd is supposed to be doing something useful. To apply: cd /usr/src/your.2.4.7.tree patch -p0