Re: Examine route.c! (Was: memory leak detector, 2.0.32, patch)

Philip Gladstone (philip@raptor.com)
Tue, 02 Dec 1997 16:19:10 -0500


I'd be very interested if you could try and 'cat /proc/net/rt_cache'
when your system is in this state. My suspicion is that it will hang,
though it might not!

Philip

Daniel Ryde wrote:
>
> Well, Mingo you are an angel ;)
>
> In kernel 2.0.32 I have experienced a memory leak since 2.0.31. Which
> made me reboot my machines after two days of uptime. I finally found out
> that it was during backuptime that almost all memory was consumed. This
> can easely be reproduced by doing:
> cd /; tar clf - . | nc -w 1 somehost discard &
> Make "somehost" a machine on your local lan that has it's discard port
> enabled. This is very similar to what a network backup station does.
>
> And now, using your patch the leak seems to be in route.c line 1422:
>
> Up 9 min:
> 24 route.c:1422
>
> Up 11 min:
> 21277 route.c:1422
>
> Up 12 min:
> 44965 route.c:1422
>
> Up 13 min:
> 59828 route.c:1422
>
> Up 14 min:
> 75578 route.c:1422
>
> Up 16 min:
> 98298 route.c:1422
>
> ...And so on until out of memory. Now, thats what I call valuable
> information to be sent to you kernel folks. I hope this will help, and if
> you want more information just send me a note.
>
> And here is my .config again:
>
> CONFIG_NET=y
> CONFIG_PCI=y
> CONFIG_SYSVIPC=y
> CONFIG_BINFMT_ELF=y
> CONFIG_KERNEL_ELF=y
> CONFIG_M586=y
> CONFIG_BLK_DEV_FD=y
> CONFIG_BLK_DEV_IDE=y
> CONFIG_INET=y
> CONFIG_IP_FORWARD=y
> CONFIG_SYN_COOKIES=y
> CONFIG_IP_NOSR=y
> CONFIG_SKB_LARGE=y
> CONFIG_NETDEVICES=y
> CONFIG_DUMMY=y
> CONFIG_PPP=y
> CONFIG_SLIP=y
> CONFIG_SLIP_COMPRESSED=y
> CONFIG_NET_ETHERNET=y
> CONFIG_NET_EISA=y
> CONFIG_DEC_ELCP=y
> CONFIG_EXT2_FS=y
> CONFIG_FAT_FS=y
> CONFIG_MSDOS_FS=y
> CONFIG_PROC_FS=y
> CONFIG_SERIAL=y
>
> --
> Best Regards
>
> Daniel Ryde, System Administrator
> __________________________________________________________________________
> Tripnet AB Visit Address: Telephone: +46 31 7252500
> Box 5071 Avagen 42 Facsimile: +46 31 7252501
> S-402 22 GOTEBORG GOTEBORG Email: ryde@tripnet.se
> Sweden Sweden

-- 
Philip Gladstone                           +1 781 487 7700
Raptor Systems, Waltham, MA         http://www.raptor.com/