From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 22 16:47:48 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 140E3106568F for ; Fri, 22 Jan 2010 16:47:48 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-iw0-f198.google.com (mail-iw0-f198.google.com [209.85.223.198]) by mx1.freebsd.org (Postfix) with ESMTP id CB0588FC12 for ; Fri, 22 Jan 2010 16:47:47 +0000 (UTC) Received: by iwn36 with SMTP id 36so1148703iwn.3 for ; Fri, 22 Jan 2010 08:47:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=t8o9p/8fatDSBQCsW3Ky3om2opXuQVLMzJmc/ER8fqA=; b=seXNmCJChm1R0fUKsznzKyTyCHpTdWCnHsfZXE2WjlA2jMB4lBqzyrklYh+rgmRVNO 3bV9WKr3Uz9Gr/i6/Vwy1ZCwOBYJ8NhHPORiaLy1RHRcPqDMGVMKE9MbD0jzJef1yTjN ISzl3A7eZQy4AGJjAB4aUl5GuES0CBrWESDy0= 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=cewf065WpAKtx//LcmXuwbtvFMUxShNaod2NBoY1FLB7a0PO0LJQKmFzbT2SL/oeFx 6ebzOf771PJU55pIk8FMlltknsTPKNTodB2utkJ0wTjF6GQhueZ7Cck6ECqLSaX9GXQc VEM4VcaRFZhztIqZvaGyqnvylz9WHfhtjXndk= MIME-Version: 1.0 Sender: artemb@gmail.com Received: by 10.231.150.73 with SMTP id x9mr5100828ibv.75.1264178866763; Fri, 22 Jan 2010 08:47:46 -0800 (PST) In-Reply-To: <20100120111433.25801pnmhrxnirok@webmail.leidinger.net> References: <7f14551c1001190119x46c6b04dx2362cd1252f0d81@mail.gmail.com> <7f14551c1001190216w49814186n1ada2b721380502b@mail.gmail.com> <4B55C5A6.2020109@DataIX.net> <20100120111433.25801pnmhrxnirok@webmail.leidinger.net> Date: Fri, 22 Jan 2010 08:47:46 -0800 X-Google-Sender-Auth: 0f73be3a8120ce2a Message-ID: From: Artem Belevich To: jhell Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Alexander Leidinger , freebsd-hackers@freebsd.org Subject: Re: Setting "zfs_arc_max" value in FreeBSD 8. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jan 2010 16:47:48 -0000 >> Anyone know if it is adjustable on a system with 1024MB of ram ? Is this >> just being auto calculated by some other value ? You may want to make sure that vm.kmem_size is set to a value much larger than vfs.zfs.arc_max. Default value may be too small to allow such a large ARC. On a side note, I'm not sure that ZFS is a good match for system with only 1G of RAM. By trial and error on my box with 8G or memory I've figured out that I need to set arc_max ~1G below physical memory size to avoid lockups under load. YMMV. --Artem On Wed, Jan 20, 2010 at 2:14 AM, Alexander Leidinger wrote: > Quoting jhell (from Tue, 19 Jan 2010 09:45:58 -0500): > >> On 1/19/2010 5:16 AM, Sherin George wrote: >>> >>> Thanks Ivan :) >>> >>> I found It. add following in /boot/loader.conf >>> >>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>> vfs.zfs.arc_max=3D"10244M" >>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >> I just thought I would give a shout at this for stable/7 as of last >> week. I am not sure if this is just me but I had tried to adjust >> zfs_arc_max and found out that it was unadjusted to my value after the >> system came back up. >> >> Anyone know if it is adjustable on a system with 1024MB of ram ? Is this >> just being auto calculated by some other value ? > > Can you confirm that you made the modification in /boot/loader.conf, and > that you used the double-quotes around the value as shown above? > > The code in 7-stable regarding this is the same as in 8-stable and > 9-current, so if it is done correctly, it has to change accordingly. > > Bye, > Alexander. > > -- > You ain't learning nothing when you're talking. > > http://www.Leidinger.net =A0 =A0Alexander @ Leidinger.net: PGP ID =3D B00= 63FE7 > http://www.FreeBSD.org =A0 =A0 =A0 netchild @ FreeBSD.org =A0: PGP ID =3D= 72077137 > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " >