From owner-freebsd-questions@FreeBSD.ORG Fri Oct 10 16:30:43 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A36EC480 for ; Fri, 10 Oct 2014 16:30:43 +0000 (UTC) Received: from new1-smtp.messagingengine.com (new1-smtp.messagingengine.com [66.111.4.221]) (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 74FBB101 for ; Fri, 10 Oct 2014 16:30:43 +0000 (UTC) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by gateway2.nyi.internal (Postfix) with ESMTP id 1E7E12A60 for ; Fri, 10 Oct 2014 12:30:36 -0400 (EDT) Received: from web6 ([10.202.2.216]) by compute2.internal (MEProxy); Fri, 10 Oct 2014 12:30:38 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:x-sasl-enc:from:to :mime-version:content-transfer-encoding:content-type:in-reply-to :references:subject:date; s=smtpout; bh=Z7B5HHqO36/bpb7rUDLCYig8 R6Y=; b=E8xKLjELTPBQ8hXZIyEXumKVdv3wq2TeS4xhLKeHqi43xCer0bH8XnWG 3uVKJxi2WZMNLIr4mR1zSvhqeVtcT1cC0VuR6a8w4Y14lkcYOW1p2S2exaks1j3k k9BciiM47rl3lyXVGQtkyqGZIWDuuFlVOfUEajk0liIlXQZ11eU= Received: by web6.nyi.internal (Postfix, from userid 99) id A1D5968003A; Fri, 10 Oct 2014 12:30:36 -0400 (EDT) Message-Id: <1412958636.2343973.177532689.62F117A8@webmail.messagingengine.com> X-Sasl-Enc: 5m23b1CZDH9CPc4rE19JCDp7MZWi2F/Cl0GHR+4Ppf07 1412958636 From: Mark Felder To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-7434a20c In-Reply-To: <5437F964.7000109@hiwaay.net> References: <5437F964.7000109@hiwaay.net> Subject: Re: Freeing wired memory Date: Fri, 10 Oct 2014 11:30:36 -0500 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Oct 2014 16:30:43 -0000 On Fri, Oct 10, 2014, at 10:21, William A. Mahaffey III wrote: > On 10/10/14 09:29, Daniel Corbe wrote: > > There's an application running on one of my hosts which has a memory > > leak in it. It ends up consuming a fair chunk of available RAM: > > > > Mem: 2312M Active, 69M Inact, 13G Wired, 39M Cache, 1684M Buf, 354M Free > > > > My understanding is Wired memory is memory that may not necessarily be > > in use but it is reserved for applications that either have at one point > > needed it or may need it in the future. > > > > I'll kill the app in another few days or so because calls to malloc() > > will begin to fail across the board. > > > > But my main problem right now is I usually have to reboot the box > > because killing the app and restarting it does NOT return any memory to > > the free pool. > > > > The step I'd like to avoid here is rebooting the box. > > > > So I'm obviously missing something. > > > > -Daniel > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > > > What CLI command (if any) did you use to get those memory stats ? TIA > It's the fourth line in the output of top