From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: Slow OOM in netif_RX function Date: Thu, 24 Jan 2008 20:12:46 +0100 Message-ID: <4798E32E.6080003@cosmosbay.com> References: <4798CAA9.1080005@obs.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: netdev@vger.kernel.org To: Ivan Dichev Return-path: Received: from neuf-infra-smtp-out-sp604003av.neufgp.fr ([84.96.92.124]:56084 "EHLO neuf-infra-smtp-out-sp604003av.neufgp.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752313AbYAXTNO (ORCPT ); Thu, 24 Jan 2008 14:13:14 -0500 In-Reply-To: <4798CAA9.1080005@obs.bg> Sender: netdev-owner@vger.kernel.org List-ID: Ivan Dichev a =E9crit : > Hello, > I got problem with my linux router. It has slow persistent OOM > problems from few months ago. > Every working(I mean days when more traffic is generated) day my > router is leaking with 15-20 MB memory and > after 2 weeks the restart is a MUST. >>>From /proc/slabinfo I saw that size-2048 and size-512 are growing > rapidly every day when traffic occur. >=20 > --------- /proc/slabinfo -------------------- > size-2048 20322 20349 2072 3 2 : tunables 24 =20 > 12 0 : slabdata 6780 6783 0 > size-512 50984 51016 536 7 1 : tunables 32 =20 > 16 0 : slabdata 7288 7288 0 >=20 >=20 > I was wondering who is allocating this mem pools and then I changed > the kernel with 2.6.23-rc12 including options > CONFIG_DEBUG_SLAB=3Dy > CONFIG_DEBUG_SLAB_LEAK=3Dy >=20 >=20 > Unfortunately changing the kernel didn't solve the mem leak.... > Now /proc/slab_allocators is showing that 3c59x driver is allocating > 2048 and 512 bytes memory pools > caused by RX function. > --------- from /proc/slab_allocators ------------------------------ > 7612 size-2048: boomerang_rx+0x33b/0x437 [3c59x] > 16018 size-512: boomerang_rx+0x165/0x437 [3c59x] >=20 > I was thinking that the 3com driver is bogus, .. but not! > After few days I changed the cards with rtl8139 and now .... > --------- from /proc/slab_allocators ------------------------------ > size-2048: 20159 rtl8139_rx+0x155/0x2dc [8139too] > size-1024: 2693 rtl8139_rx+0x155/0x2dc [8139too] > size-512: 50515 rtl8139_rx+0x155/0x2dc [8139too] >=20 > the memory leak appear again in the same function(RX). >=20 > I did search over the mailing list and found as similar only this > http://www.spinics.net/lists/kernel/old/2003-q4/msg03071.html >=20 >=20 > For sure it does not depend on kernel version and network > driver(except case if both drivers are bogus :) > Any ideas ? >=20 Could you post your iptable rules "iptables -t nat -nvL ; iptables -nvL= ", and=20 full "cat /proc/slabinfo" ?