From owner-freebsd-stable@FreeBSD.ORG Tue Feb 7 15:35:29 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 D64641065672; Tue, 7 Feb 2012 15:35:29 +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 2A99F8FC14; Tue, 7 Feb 2012 15:35:27 +0000 (UTC) Received: from [192.168.248.33] ([192.168.248.33]) by elf.hq.norma.perm.ru (8.14.4/8.14.4) with ESMTP id q17FZAvR013519 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 7 Feb 2012 20:35:11 +0500 (YEKT) (envelope-from emz@norma.perm.ru) Message-ID: <4F3144A9.2000505@norma.perm.ru> Date: Tue, 07 Feb 2012 21:35:05 +0600 From: "Eugene M. Zheganin" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: Andriy Gapon References: <4F30E284.8080905@norma.perm.ru> <4F310115.3070507@FreeBSD.org> <4F310C5A.6070400@norma.perm.ru> <4F310E75.7090301@FreeBSD.org> In-Reply-To: <4F310E75.7090301@FreeBSD.org> 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 [192.168.3.10]); Tue, 07 Feb 2012 20:35:12 +0500 (YEKT) X-Spam-Status: No hits=-101.0 bayes=0.5 testhits ALL_TRUSTED=-1, USER_IN_WHITELIST=-100 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on elf.hq.norma.perm.ru Cc: freebsd-stable@FreeBSD.org Subject: Re: 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 15:35:29 -0000 Hi. On 07.02.2012 17:43, Andriy Gapon wrote: > on 07/02/2012 13:34 Eugene M. Zheganin said the following: >> Hi. >> >> On 07.02.2012 16:46, Andriy Gapon wrote: >>> on 07/02/2012 10:36 Eugene M. Zheganin said the following: >>>> 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: >>>> >>>> >>>> Please try sysutils/zfs-stats; zfs-stats -a output should provide a good >>>> overview of the state and configuration of the system. >>>> >> Thanks. But it seems to be the same script. Anyway, it reports the same amount >> of memory: >> >> [emz@taiga:~]# zfs-stats -A > zfs-stats -A is not the same as zfs-stats -a > Okay, thank you once again, it made me more clear what is happening to the memory: System Memory: 4.39% 172.47 MiB Active, 0.29% 11.53 MiB Inact 90.68% 3.48 GiB Wired, 3.54% 138.98 MiB Cache 0.10% 4.12 MiB Free, 0.99% 39.07 MiB Gap Real Installed: 4.00 GiB Real Available: 99.61% 3.98 GiB Real Managed: 96.31% 3.84 GiB Logical Total: 4.00 GiB Logical Used: 96.22% 3.85 GiB Logical Free: 3.78% 154.63 MiB Kernel Memory: 393.82 MiB Data: 96.14% 378.63 MiB Text: 3.86% 15.20 MiB Kernel Memory Map: 2.68 GiB Size: 9.82% 269.77 MiB Free: 90.18% 2.42 GiB Looks like most of the 'wired' space is makred in kernel as free, though still 'wired', and thus for me it doesn't look that free as 'free' or 'inactive', and, as the paged out amount continues to grow, I want to ask if there's a way to make this address space availabe to a userland processes ? Thanks. Eugene.