From owner-freebsd-current@FreeBSD.ORG Tue Nov 11 19:28:44 2014 Return-Path: Delivered-To: freebsd-current@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 6C4BE117; Tue, 11 Nov 2014 19:28:44 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4661BFA9; Tue, 11 Nov 2014 19:28:44 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 19883B97E; Tue, 11 Nov 2014 14:28:43 -0500 (EST) From: John Baldwin To: freebsd-current@freebsd.org Subject: Re: r273165. ZFS ARC: possible memory leak to Inact Date: Tue, 11 Nov 2014 13:47:59 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20140415; KDE/4.5.5; amd64; ; ) References: <5458c456.25b9340a.54d5.6310SMTPIN_ADDED_BROKEN@mx.google.com> <5458CCB6.7020602@multiplay.co.uk> <5459F372.1010405@FreeBSD.org> In-Reply-To: <5459F372.1010405@FreeBSD.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201411111347.59169.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Tue, 11 Nov 2014 14:28:43 -0500 (EST) Cc: Steven Hartland , Andriy Gapon X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Nov 2014 19:28:44 -0000 On Wednesday, November 05, 2014 4:52:50 am Andriy Gapon wrote: > On 04/11/2014 14:55, Steven Hartland wrote: > > This is likely spikes in uma zones used by ARC. > > > > The VM doesn't ever clean uma zones unless it hits a low memory condition, which > > explains why your little script helps. > > > > Check the output of vmstat -z to confirm. > > Steve, > > this is nonsense :-) You know perfectly well that UMA memory is Wired not Inactive. Grab the code at www.freebsd.org/~jhb/vm_objects/. Build and load the kld and then use the vm_objects binary to generate a list of the active VM objects in the system along with counts of how many active / inactive pages each object contains. For your case with lots of inactive memory, you probably want something like 'vm_objects | sort -n -k 2'. -- John Baldwin