netdev
[Top] [All Lists]

Re: 2.6.0: something is leaking memory

To: Erik Hensema <erik@xxxxxxxxxxx>
Subject: Re: 2.6.0: something is leaking memory
From: Linus Torvalds <torvalds@xxxxxxxx>
Date: Sun, 4 Jan 2004 18:30:21 -0800 (PST)
Cc: netdev@xxxxxxxxxxx, "David S. Miller" <davem@xxxxxxxxxx>
In-reply-to: <slrnbvh1hd.jl6.erik@xxxxxxxxxxxxxxxxxx>
References: <slrnbvgohn.1pb.erik@xxxxxxxxxxxxxxxxxx> <Pine.LNX.4.58.0401041257290.2162@xxxxxxxxxxxxx> <slrnbvh1hd.jl6.erik@xxxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx

On Sun, 4 Jan 2004, Erik Hensema wrote:
> Linus Torvalds (torvalds@xxxxxxxx) wrote:
> >
> > Can you do /proc/slabinfo too?
> 
> Sure, this is of course my currently running system, 4 days, 9:53
> uptime.
> 
> slabinfo - version: 2.0
> # name            <active_objs> <num_objs> <objsize> <objperslab> 
> <pagesperslab> : tunables <batchcount> <limit> <sharedfactor> : slabdata 
> <active_slabs> <num_slabs> <sharedavail>
> tcp6_sock          19729  19732   1024    4    1 : tunables   54   27    0 : 
> slabdata   4933   4933      0

You've got 19 _megabytes_ allocated to "tcp6_sock", and they are all 
marked as "active". That's almost certainly the leaking bug.

Everything else looks reasonably normal.

> I do use IPv6. I've got three active tunnels and native IPv6 over
> ethernet.

Yeah, but there is no way you have 19 MB worth of sockets active for three 
tunnels.

David?

                Linus

<Prev in Thread] Current Thread [Next in Thread>