From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 11 19:28:50 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3880216A407; Mon, 11 Sep 2006 19:28:50 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5164B43D60; Mon, 11 Sep 2006 19:28:49 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.6/8.13.6) with ESMTP id k8BJSkIm019780; Mon, 11 Sep 2006 15:28:47 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: "Intron is my alias on the Internet" Date: Mon, 11 Sep 2006 15:28:48 -0400 User-Agent: KMail/1.9.1 References: <200609100956.k8A9uD0P094639@repoman.freebsd.org> <20060911193600.7ab43fb6@Magellan.Leidinger.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200609111528.49054.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Mon, 11 Sep 2006 15:28:47 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.3/1857/Mon Sep 11 11:12:56 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: freebsd-hackers@freebsd.org, Alexander Leidinger Subject: Re: PERFORCE change 105930 for review X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Sep 2006 19:28:50 -0000 On Monday 11 September 2006 14:51, Intron is my alias on the Internet wrote: > Alexander Leidinger wrote: > > > Quoting John Baldwin (Mon, 11 Sep 2006 11:45:52 -0400): > > > >> On Sunday 10 September 2006 05:56, Alexander Leidinger wrote: > >> > PROBLEMS: > >> > > >> > 1. Why does uma_zdestroy(9) print message like: > >> > > >> > Freed UMA keg was not empty (100 items). Lost 2 pages of memory. > >> > > >> > Does it represent any problems? > >> > >> It means a memory leak. > > > > Because this is verbatim from the submitter and I don't know if he is > > subscribed to perforce@, we should tell him about it... CCed. :-) > > > > Bye, > > Alexander. > > > > But I have ensure that calling to uma_zalloc() and calling to uma_zfree() > appear strictly in pair in my code. Even the simplest testing program > can still lead to this kind of warning message (uma_zfree() is just next > to uma_zalloc()): > > uma_zalloc(...); > uma_zfree(...); I've only gotten this message when I've leaked memory in a zone. Do you have an example self-contained kernel module that produces this? -- John Baldwin