From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell King Subject: Re: Memory leak in 2.6.11-rc1? Date: Mon, 24 Jan 2005 11:48:53 +0000 Message-ID: <20050124114853.A16971@flint.arm.linux.org.uk> References: <20050121161959.GO3922@fi.muni.cz> <1106360639.15804.1.camel@boxen> <20050123091154.GC16648@suse.de> <20050123011918.295db8e8.akpm@osdl.org> <20050123095608.GD16648@suse.de> <20050123023248.263daca9.akpm@osdl.org> <20050123200315.A25351@flint.arm.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: To: Andrew Morton , Jens Axboe , alexn@dsv.su.se, kas@fi.muni.cz, linux-kernel@vger.kernel.org, netdev@oss.sgi.com Content-Disposition: inline In-Reply-To: <20050123200315.A25351@flint.arm.linux.org.uk>; from rmk+lkml@arm.linux.org.uk on Sun, Jan 23, 2005 at 08:03:15PM +0000 Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Sun, Jan 23, 2005 at 08:03:15PM +0000, Russell King wrote: > I think I may be seeing something odd here, maybe a possible memory leak. > The only problem I have is wondering whether I'm actually comparing like > with like. Maybe some networking people can provide a hint? > > Below is gathered from 2.6.11-rc1. > > bash-2.05a# head -n2 /proc/slabinfo > slabinfo - version: 2.1 > # name > bash-2.05a# cat /proc/net/rt_cache | wc -l; grep ip_dst /proc/slabinfo > 115 > ip_dst_cache 759 885 256 15 1 > bash-2.05a# cat /proc/net/rt_cache | wc -l; grep ip_dst /proc/slabinfo > 117 > ip_dst_cache 770 885 256 15 1 > bash-2.05a# cat /proc/net/rt_cache | wc -l; grep ip_dst /proc/slabinfo > 133 > ip_dst_cache 775 885 256 15 1 > bash-2.05a# cat /proc/net/rt_cache | wc -l; grep ip_dst /proc/slabinfo > 18 > ip_dst_cache 664 885 256 15 1 >... > bash-2.05a# cat /proc/net/rt_cache | wc -l; grep ip_dst /proc/slabinfo > 24 > ip_dst_cache 675 885 256 15 1 > bash-2.05a# cat /proc/net/rt_cache | wc -l; grep ip_dst /proc/slabinfo > 24 > ip_dst_cache 669 885 256 15 1 > > I'm fairly positive when I rebooted the machine a couple of days ago, > ip_dst_cache was significantly smaller for the same number of lines in > /proc/net/rt_cache. FYI, today it looks like this: bash-2.05a# cat /proc/net/rt_cache | wc -l; grep ip_dst /proc/slabinfo 26 ip_dst_cache 820 1065 256 15 1 So the dst cache seems to have grown by 151 in 16 hours... I'll continue monitoring and providing updates. -- Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/ 2.6 Serial core