Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263343AbTH0PzB (ORCPT ); Wed, 27 Aug 2003 11:55:01 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263430AbTH0PzA (ORCPT ); Wed, 27 Aug 2003 11:55:00 -0400 Received: from webmail2.vsnl.net ([203.197.12.44]:62428 "EHLO bom6.vsnl.net.in") by vger.kernel.org with ESMTP id S263343AbTH0PyJ (ORCPT ); Wed, 27 Aug 2003 11:54:09 -0400 Date: Wed, 27 Aug 2003 21:25:56 -0500 (GMT) Message-Id: <200308280225.h7S2PuM26198@webmail2.vsnl.net> Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: binary MIME-Version: 1.0 X-Mailer: MIME-tools 5.411 (Entity 5.404) From: warudkar@vsnl.net To: kernel@kolivas.org, wli@holomorphy.com, linux-kernel@vger.kernel.org Subject: RE:2.6.0-test4-mm1 - kswap hogs cpu OO takes ages to start! X-Mailer: VSNL, Web based email X-Sender-Ip: 203.197.141.34 Cc: Andrew Morton Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1377 Lines: 34 Con - With swappiness set to 100, the apps do start up in 3 minutes and kswapd doesn't hog the CPU. But X is still unusable till all of them have started up. Wli - Sorry, vmstat segfaults on 2.6! kernel@kolivas.org wrote On Thu, 28 Aug 2003 07:38, warudkar@vsnl.net wrote: > Trying out 2.6.0-test4-mm1. Inside KDE, I start OpenOffice.org, Rational > Rose and Konsole at a time. All of these take extremely long time to > startup. (approx > 5 minutes). Kswapd hogs the CPU all the time. X becomes > unusable till all of them startup, although I can telnet and run top. Same > thing run under 2.4.18 starts up in 3 minutes, X stays usable and kswapd > never take more than 2% CPU. Yes I can reproduce this with a memory heavy load as well on low memory (linking at the end of a big kernel compile is standard problem). I actually found the best workaround was to increase the swappiness instead of decreasing it. Try echo 100 > /proc/sys/vm/swappiness time it then try echo 0 > /proc/sys/vm/swappiness you'll see that at low swappiness kswapd0 can use ridiculous amounts of cpu trying to avoid swap. The default is 60. Con - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/