From owner-freebsd-questions@FreeBSD.ORG Fri Oct 10 15:14:56 2014 Return-Path: Delivered-To: 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 19C1BB21 for ; Fri, 10 Oct 2014 15:14:56 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C0C497F3 for ; Fri, 10 Oct 2014 15:14:55 +0000 (UTC) Received: from kabini1.local (rbn1-216-180-19-37.adsl.hiwaay.net [216.180.19.37]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id s9AFEras030645 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Fri, 10 Oct 2014 10:14:53 -0500 Message-ID: <5437F964.7000109@hiwaay.net> Date: Fri, 10 Oct 2014 10:21:08 -0500 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: questions@freebsd.org Subject: Re: Freeing wired memory References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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 15:14:56 -0000 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 .... -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.