From owner-freebsd-stable@FreeBSD.ORG Fri Apr 29 02:13:18 2011 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 EFCBA106564A for ; Fri, 29 Apr 2011 02:13:18 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id A51A28FC0C for ; Fri, 29 Apr 2011 02:13:18 +0000 (UTC) Received: by qwc9 with SMTP id 9so1966163qwc.13 for ; Thu, 28 Apr 2011 19:13:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Baxs7jAIq5FCfeiAcIy1R2sh8CEW6XujghVI+7nmWvA=; b=Ld+Z6ec+3J5iT4sZXiX97GdcVJyL2Fu5j4rKQYOxYMxg1S+Z8XAFs6hUQmfuBcPE5e au/2gIhahz87PuiJg6YC6senkCQiEenvuIFtjL+7yoj2YmHLEguCGOivguEWKOuRxnBl pqf7aRvExcxUAPVhXxa6yxAZjm4XjG4Bfs/u0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=napQYeJbz0qwK6TOdH9opnE+SssXrp6xrdyxh6MrxpaSuEjnoZw8UbKXbyEj+Fp9KF FcGW4PDAXAVPCWSTeizeGB8RXapGpo+vy4Pz3uS/rT+Nwvf7L459YPcnnzdZ47WBPqUE itCduBFy9TMUDmbHqn+OAGVJZCI7yhXKrreeU= MIME-Version: 1.0 Received: by 10.229.27.193 with SMTP id j1mr3489082qcc.82.1304043197868; Thu, 28 Apr 2011 19:13:17 -0700 (PDT) Sender: artemb@gmail.com Received: by 10.229.95.140 with HTTP; Thu, 28 Apr 2011 19:13:17 -0700 (PDT) In-Reply-To: <20110429010829.GA36744@icarus.home.lan> References: <537A8F4F-A302-40F9-92DF-403388D99B4B@gsoft.com.au> <20110428195601.GA31807@icarus.home.lan> <20110429010829.GA36744@icarus.home.lan> Date: Thu, 28 Apr 2011 19:13:17 -0700 X-Google-Sender-Auth: tXHR5Io0WtoTMIuvgQTXLDuw0Ig Message-ID: From: Artem Belevich To: Jeremy Chadwick Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-stable List Subject: Re: ZFS vs OSX Time Machine 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: Fri, 29 Apr 2011 02:13:19 -0000 On Thu, Apr 28, 2011 at 6:08 PM, Jeremy Chadwick wrote: > I will note something, however: your ARC max is set to 3072MB, yet Wired > is around 4143MB. =A0Do you have something running on this box that takes > up a lot of RAM? =A0mysqld, etc..? =A0I'm trying to account for the "extr= a > gigabyte" in Wired. =A0"top -o res" might help here, but we'd need to see > the process list. > > I'm thinking something else on your machine is also taking up Wired, > because your arcstats shows: > >> kstat.zfs.misc.arcstats.c: 3221225472 >> kstat.zfs.misc.arcstats.c_min: 402653184 >> kstat.zfs.misc.arcstats.c_max: 3221225472 >> kstat.zfs.misc.arcstats.size: 3221162968 > > Which is about 3072MB (there is always some degree of variance). The difference is probably due to fragmentation (most of ARC allocations are served from power-of-2 zones, if I'm not mistaken) + a lot of wired memory sits in slab allocator caches (FREE column in vmstat -z). On a system with ARC size of ~16G I regularly see ~22GB wired. Ona smaller box I get about 7GB wired at around 5.5GB ARC size. --Artem