From owner-freebsd-stable@FreeBSD.ORG Tue Feb 7 08:36:38 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B70921065672 for ; Tue, 7 Feb 2012 08:36:38 +0000 (UTC) (envelope-from emz@norma.perm.ru) Received: from elf.hq.norma.perm.ru (mail.norman-vivat.ru [89.250.210.68]) by mx1.freebsd.org (Postfix) with ESMTP id 266678FC13 for ; Tue, 7 Feb 2012 08:36:37 +0000 (UTC) Received: from bsdrookie.norma.com. ([IPv6:fd00::7fc]) by elf.hq.norma.perm.ru (8.14.4/8.14.4) with ESMTP id q178aKmX085303 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Tue, 7 Feb 2012 13:36:20 +0500 (YEKT) (envelope-from emz@norma.perm.ru) Message-ID: <4F30E284.8080905@norma.perm.ru> Date: Tue, 07 Feb 2012 14:36:20 +0600 From: "Eugene M. Zheganin" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0) Gecko/20111001 Thunderbird/7.0 MIME-Version: 1.0 To: freebsd-stable Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (elf.hq.norma.perm.ru [IPv6:fd00::30a]); Tue, 07 Feb 2012 13:36:20 +0500 (YEKT) X-Spam-Status: No hits=-98.5 bayes=0.5 testhits RDNS_NONE=0.793, SPF_SOFTFAIL=0.665,USER_IN_WHITELIST=-100 autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on elf.hq.norma.perm.ru Subject: zfs arc and amount of wired memory X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2012 08:36:38 -0000 Hi. I have a server with 9.0/amd64 and 4 Gigs of RAM. Today's questions are about the amount of memory in 'wired' state and the ARC size. If I use the script from http://wiki.freebsd.org/ZFSTuningGuide , it says: ===Cut=== ARC Size: 12.50% 363.14 MiB Target Size: (Adaptive) 12.50% 363.18 MiB Min Size (Hard Limit): 12.50% 363.18 MiB Max Size (High Water): 8:1 2.84 GiB ===Cut=== At the same time I have 3500 megs in wired state: ===Cut=== Mem: 237M Active, 36M Inact, 3502M Wired, 78M Cache, 432K Buf, 37M Free ===Cut=== First question - what is the actual size of ARC, and how can it be determined ? Solaris version of the script is more comprehensive (ran on Solaris): ===Cut=== ARC Size: Current Size: 6457 MB (arcsize) Target Size (Adaptive): 6457 MB (c) Min Size (Hard Limit): 2941 MB (zfs_arc_min) Max Size (Hard Limit): 23534 MB (zfs_arc_max) ===Cut=== The arcstat script makes me think that the ARC size is about 380 megs indeed: ===Cut=== Time read miss miss% dmis dm% pmis pm% mmis mm% size tsize 14:33:35 170M 7466K 4 7466K 4 192 78 793K 3 380M 380M ===Cut=== Second question: if the size is 363 Megs, why do I have 3500 Megs in wired state? From my experience this is directly related to the zfs, but 380 megs its like about ten times smaller than 3600 megs. At the same time I have like 700 Megs in swap, so my guess - zfs isn't freeing memory for current needs that easily. Yeah, I can tune it down, but I just would like to know what is happening on an untuned machine. Thanks. Eugene.