From owner-freebsd-fs@FreeBSD.ORG Fri Aug 26 14:19:12 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 33BCF106566B for ; Fri, 26 Aug 2011 14:19:12 +0000 (UTC) (envelope-from freebsd-fs@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id E63E48FC12 for ; Fri, 26 Aug 2011 14:19:11 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QwxFS-0006R3-NI for freebsd-fs@freebsd.org; Fri, 26 Aug 2011 16:19:06 +0200 Received: from ib-jtotz.ib.ic.ac.uk ([155.198.110.220]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Aug 2011 16:19:06 +0200 Received: from jtotz by ib-jtotz.ib.ic.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Aug 2011 16:19:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-fs@freebsd.org From: Johannes Totz Date: Fri, 26 Aug 2011 15:18:51 +0100 Lines: 25 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ib-jtotz.ib.ic.ac.uk User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20110812 Thunderbird/6.0 Subject: Monitoring zfs arc size (for tuning) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2011 14:19:12 -0000 Heya, I've been monitoring my arc size, hit and miss rates etc to determine what a minimum arc size would be without performance going down the drain, for my workload. The only interesting point so far is that arc size still exceeds its limit occasionally! That is, kstat.zfs.misc.arcstats.size is larger than kstat.zfs.misc.arcstats.c_max (which is the same as vfs.zfs.arc_max) by a few hundred megabytes. Also, some of the periodic tasks that this machine does makes kstat.zfs.misc.arcstats.size go down to almost zero, and then shoot up to the max again in a short period of time. This is on: FreeBSD XXX 8.2-STABLE FreeBSD 8.2-STABLE #0 r224227: Wed Jul 20 16:55:23 BST 2011 root@XXX:/usr/obj/usr/src/sys/GENERIC amd64 Johannes