kern/164763: [vimage] Memory leak in VNET

Hiroo Ono (小野寛生) hiroo.ono+freebsd at gmail.com
Thu May 22 15:10:02 UTC 2014


The following reply was made to PR kern/164763; it has been noted by GNATS.

From: =?UTF-8?B?SGlyb28gT25vICjlsI/ph47lr5vnlJ8p?= <hiroo.ono+freebsd at gmail.com>
To: bug-followup at FreeBSD.org
Cc:  
Subject: Re: kern/164763: [vimage] Memory leak in VNET
Date: Fri, 23 May 2014 00:02:36 +0900

 I tracked this issue down a little.
 
 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.
 
 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.


More information about the freebsd-bugs mailing list