Date: Thu, 22 May 2014 15:16:43 +0000 From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: =?utf-8?Q?=22Hiroo_Ono_=28=E5=B0=8F=E9=87=8E=E5=AF=9B=E7=94=9F?= =?utf-8?Q?=29=22?= <hiroo.ono+freebsd@gmail.com> Cc: freebsd-bugs@FreeBSD.org Subject: Re: kern/164763: [vimage] Memory leak in VNET Message-ID: <DD9ABA88-080B-419A-AF4A-9662474AAB6B@FreeBSD.org> In-Reply-To: <201405221510.s4MFA2Ff029214@freefall.freebsd.org> References: <201405221510.s4MFA2Ff029214@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 22 May 2014, at 15:10 , Hiroo Ono (=E5=B0=8F=E9=87=8E=E5=AF=9B=E7=94=9F= ) <hiroo.ono+freebsd@gmail.com> wrote: > The following reply was made to PR kern/164763; it has been noted by = GNATS. >=20 > From: =3D?UTF-8?B?SGlyb28gT25vICjlsI/ph47lr5vnlJ8p?=3D = <hiroo.ono+freebsd@gmail.com> > To: bug-followup@FreeBSD.org > Cc: =20 > Subject: Re: kern/164763: [vimage] Memory leak in VNET > Date: Fri, 23 May 2014 00:02:36 +0900 >=20 > I tracked this issue down a little. >=20 > I put some printf's and found that this occurs in the function > vnet_destroy() in sys/net/vnet.c. > The memory leak seems to happen when vnet_sysuninit() is called. > So, something needs to be done before or inside vnet_sysuninit(), but > I do not know > what to do. >=20 > The messages I saw on head and stable/10 around 2014-04-30 are: > Freed UMA keg (udp_inpcb) was not empty (135 items). Lost 9 pages of = memory. > Freed UMA keg (udpcb) was not empty (250 items). Lost 1 pages of = memory. > Freed UMA keg (tcp_inpcb) was not empty (75 items). Lost 5 pages of = memory. > Freed UMA keg (tcpcb) was not empty (15 items). Lost 3 pages of = memory. The fixes for UDP have been in a perforce branch for two years and need = updating and merging into HEAD. TCP was and is the only thing that could not be completely freed (back = two years ago) synchronously and thus would continue to leak. It=E2=80=99= s not not fixable and probably with some tw changes lately got better = (or maybe they didn=E2=80=99t happen). =E2=80=94=20 Bjoern A. Zeeb "Come on. Learn, goddamn it.", WarGames, 1983
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DD9ABA88-080B-419A-AF4A-9662474AAB6B>