From owner-freebsd-bugs@FreeBSD.ORG Thu May 22 15:10:02 2014 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D8DD9463 for ; Thu, 22 May 2014 15:10:02 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C5DD82B4A for ; Thu, 22 May 2014 15:10:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s4MFA2CL029215 for ; Thu, 22 May 2014 15:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s4MFA2Ff029214; Thu, 22 May 2014 15:10:02 GMT (envelope-from gnats) Date: Thu, 22 May 2014 15:10:02 GMT Message-Id: <201405221510.s4MFA2Ff029214@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: =?UTF-8?B?SGlyb28gT25vICjlsI/ph47lr5vnlJ8p?= Subject: Re: kern/164763: [vimage] Memory leak in VNET Reply-To: =?UTF-8?B?SGlyb28gT25vICjlsI/ph47lr5vnlJ8p?= X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 May 2014 15:10:02 -0000 The following reply was made to PR kern/164763; it has been noted by GNATS. From: =?UTF-8?B?SGlyb28gT25vICjlsI/ph47lr5vnlJ8p?= To: bug-followup@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.