Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932080AbVK1NRK (ORCPT ); Mon, 28 Nov 2005 08:17:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932091AbVK1NRK (ORCPT ); Mon, 28 Nov 2005 08:17:10 -0500 Received: from tirith.ics.muni.cz ([147.251.4.36]:57476 "EHLO tirith.ics.muni.cz") by vger.kernel.org with ESMTP id S932080AbVK1NRJ (ORCPT ); Mon, 28 Nov 2005 08:17:09 -0500 Date: Mon, 28 Nov 2005 14:16:48 +0100 From: Jan Kasprzak To: Andrew Morton Cc: Marcelo Tosatti , nickpiggin@yahoo.com.au, linux-kernel@vger.kernel.org, bharata@in.ibm.com Subject: Re: 2.6.14 kswapd eating too much CPU Message-ID: <20051128131648.GG19307@fi.muni.cz> References: <20051123051358.GB7573@fi.muni.cz> <20051123131417.GH24091@fi.muni.cz> <20051123110241.528a0b37.akpm@osdl.org> <20051123202438.GE28142@fi.muni.cz> <20051123123531.470fc804.akpm@osdl.org> <20051124083141.GJ28142@fi.muni.cz> <20051127084231.GC20701@logos.cnet> <20051127203924.GE27805@fi.muni.cz> <20051127160207.GE21383@logos.cnet> <20051127152108.11f58f9c.akpm@osdl.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051127152108.11f58f9c.akpm@osdl.org> User-Agent: Mutt/1.4.1i X-Muni-Spam-TestIP: 147.251.48.3 X-Muni-Envelope-From: kas@fi.muni.cz X-Muni-Virus-Test: Clean Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2209 Lines: 47 Andrew Morton wrote: : Marcelo Tosatti wrote: : > : > It does seem to scan SLABs intensively: : > : It might be worth trying the below. Mainly for the debugging check. : I have compiled a new kernel - 2.6.15-rc2 with the patch you recommended and with the slab statistics patch Marcelo mentioned. I have add the oprofile support, but apart from that it is the same kernel. It seems that the kswapd system time peaks has disappeared, or at least they are much lower - kswapd0 has eaten ~3 minutes from 11 hours of uptime (in one of my previous mails I found that it used to be 117 minutes after ~10 hours of uptime). On my MRTG graphs at http://www.linux.cz/stats/mrtg-rrd/cpu.html some _small_ peaks can be seen at 15 minutes after every odd-numbered hour. I have booted this kernel around 2am local time. I have no unusual error messages in dmesg output, so this must be this part of the patch: : + /* : + * Avoid risking looping forever due to too large nr value: : + * never try to free more than twice the estimate number of : + * freeable entries. : + */ : + if (shrinker->nr > max_pass * 2) : + shrinker->nr = max_pass * 2; The shrinker statistics displayed in /proc/slabinfo are # egrep '^(inode|dentry)_cache' /proc/slabinfo inode_cache 1338 1380 600 6 1 : tunables 54 27 8 : slabdata 230 230 0 : shrinker stat 261765504 16831100 dentry_cache 40195 49130 224 17 1 : tunables 120 60 8 : slabdata 2890 2890 204 : shrinker stat 57946368 28877600 -Yenya -- | Jan "Yenya" Kasprzak | | GPG: ID 1024/D3498839 Fingerprint 0D99A7FB206605D7 8B35FCDE05B18A5E | | http://www.fi.muni.cz/~kas/ Journal: http://www.fi.muni.cz/~kas/blog/ | > Specs are a basis for _talking_about_ things. But they are _not_ a basis < > for implementing software. --Linus Torvalds < - 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/