From owner-freebsd-current@FreeBSD.ORG Wed Nov 5 09:26:18 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 CD7908AE for ; Wed, 5 Nov 2014 09:26:18 +0000 (UTC) Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 60560AE3 for ; Wed, 5 Nov 2014 09:26:18 +0000 (UTC) Received: by mail-wi0-f169.google.com with SMTP id n3so10835218wiv.2 for ; Wed, 05 Nov 2014 01:26:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=CTBY4Id++oF8O2ywM4KlgHoSaVFKQKrkY8Q68Z+OYuk=; b=MIunQ9OZgFpNz39bck4WPohJF7qllRIOT919Ta2vFidg5AJpDN9a4GsTZD/ASB5LHQ T6DWv3zkVBjL2xKYWXBThG9fKnSaQEKDAeheuUO811g1ZbvpXS5DiLU5bnAfBPrB4vSB 3wb+jVdOE9i72+A85UL/lzmfm/WNy1Hpfqr6I/bx6RUpnMJzuVlODNwl3EzruQ8eIAmE QnsqOasWTUTZQmX/4P+8IY70RaQlsYweL/4WVoOwt/5ffnEUeZQMl5bKFtviq0d0na1/ KJ1E2qrq2kmbZdbc36wjjSJtjyq6iaoKzxxHNJgfgGw/FS61JrjDhLvbDNCSISKNewnP faXw== X-Gm-Message-State: ALoCoQnwc9xUgNqSrNDwkMbFjPJZqOpiIyTVwSzzUfouZCyyFv2yvvcn0EzhJKpgufO/ygS2KurJ X-Received: by 10.194.184.199 with SMTP id ew7mr26170089wjc.85.1415179571088; Wed, 05 Nov 2014 01:26:11 -0800 (PST) Received: from [10.10.1.68] (82-69-141-170.dsl.in-addr.zen.co.uk. [82.69.141.170]) by mx.google.com with ESMTPSA id bq6sm15115246wib.1.2014.11.05.01.26.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Nov 2014 01:26:10 -0800 (PST) Message-ID: <5459ECDE.6090102@multiplay.co.uk> Date: Wed, 05 Nov 2014 09:24:46 +0000 From: Steven Hartland User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Marcus Reid Subject: Re: r273165. ZFS ARC: possible memory leak to Inact References: <1415098949.596412362.8vxee7kf@frv41.fwdcdn.com> <5458CCB6.7020602@multiplay.co.uk> <1415107358607-5962421.post@n5.nabble.com> <54590B55.3040206@freebsd.org> <54591758.7000909@multiplay.co.uk> <20141105061540.GA14812@blazingdot.com> In-Reply-To: <20141105061540.GA14812@blazingdot.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: gibbs@freebsd.org, George Kola , freebsd-current@freebsd.org, Allan Jude 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: Wed, 05 Nov 2014 09:26:19 -0000 On 05/11/2014 06:15, Marcus Reid wrote: > On Tue, Nov 04, 2014 at 06:13:44PM +0000, Steven Hartland wrote: >> On 04/11/2014 17:22, Allan Jude wrote: >>> snip... >>> Justin Gibbs and I were helping George from Voxer look at the same issue >>> they are having. They had ~169GB in inact, and only ~60GB being used for >>> ARC. >>> >>> Are there any further debugging steps we can recommend to him to help >>> investigate this? >> The various scripts attached to the ZS ARC behavior problem and fix PR >> will help provide detail this. >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=187594 >> >> I've seen it here where there's been bursts of ZFS I/O specifically >> write bursts. >> >> What happens is that ZFS will consume large amounts of space in various >> UMA zones to accommodate these bursts. > If you push the vmstat -z that he provided through the arc summary > script, you'll see that this is not what is happening. His uma stats > match up with his arc, and do not account for his inactive memory. > > uma script summary: > > Totals > oused: 5.860GB, ofree: 1.547GB, ototal: 7.407GB > zused: 56.166GB, zfree: 3.918GB, ztotal: 60.084GB > used: 62.026GB, free: 5.465GB, total: 67.491GB > > His provided top stats: > > Mem: 19G Active, 20G Inact, 81G Wired, 59M Cache, 3308M Buf, 4918M Free > ARC: 66G Total, 6926M MFU, 54G MRU, 8069K Anon, 899M Header, 5129M Other > > > The big uma buckets (zio_buf_16384 and zio_data_buf_131072, 18.002GB and > 28.802GB respectively) are nearly 0% free. > Still potentially accounts for 5.4GB of your 20GB inact. The rest could be malloc backed allocations? Regards Steve