From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 23 01:28:21 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 47CE31065670 for ; Sat, 23 Jan 2010 01:28:21 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-qy0-f201.google.com (mail-qy0-f201.google.com [209.85.221.201]) by mx1.freebsd.org (Postfix) with ESMTP id EA3DD8FC17 for ; Sat, 23 Jan 2010 01:28:20 +0000 (UTC) Received: by qyk39 with SMTP id 39so968919qyk.27 for ; Fri, 22 Jan 2010 17:28:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:cc :subject:in-reply-to:message-id:references:user-agent :x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; bh=tfWc94/5KTzPlemQ0Tez5mXpx1ptZy6K+hCelidercw=; b=eXzisVt2a1AyKxGpdKA27kNgXHYniFEVjoBE1XFV/GriFE6J7I1uoUYPHyE5KO9NxQ WutNWsvXJp8SlaAwoac7KGUBr69jO0Fi5WZG/Cy06onVqxHgmosE3Pek7nwDkCKY79Nw i6Bf2IiD5qeNkTh223LftDaeazGho37n4ThA0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; b=EUeYwD0gmT4U7QbiJtoWUMf/leSfmowcdssmXQuunrYO4CmLsem956SVa7ZP2Y+63/ nL26nc9ItTXpfqna1VhHT97+YbAVax/9mBG8Mb3AveRK42DjcdBfUqWbE/iZgYPtJsJ9 CQx4unSLcaY7RjGXJqtDB+bms4SUT73ig8FpU= Received: by 10.224.32.11 with SMTP id a11mr2509183qad.3.1264210099925; Fri, 22 Jan 2010 17:28:19 -0800 (PST) Received: from centel.dataix.local (ppp-22.1.dialinfree.com [209.172.22.1]) by mx.google.com with ESMTPS id 23sm2087697qyk.15.2010.01.22.17.28.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 22 Jan 2010 17:28:18 -0800 (PST) Sender: "J. Hellenthal" Date: Fri, 22 Jan 2010 20:28:09 -0500 From: jhell To: Alexander Leidinger In-Reply-To: <20100120111433.25801pnmhrxnirok@webmail.leidinger.net> Message-ID: References: <7f14551c1001190119x46c6b04dx2362cd1252f0d81@mail.gmail.com> <7f14551c1001190216w49814186n1ada2b721380502b@mail.gmail.com> <4B55C5A6.2020109@DataIX.net> <20100120111433.25801pnmhrxnirok@webmail.leidinger.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Cc: 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: Sat, 23 Jan 2010 01:28:21 -0000 On Wed, 20 Jan 2010 05:14, Alexander@ 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 >>> >>> =================== >>> vfs.zfs.arc_max="10244M" >>> =================== > >> 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. > > Yes, The sysctl in question on my machine is/was put in loader.conf with the double quotes. Every time I have set this before I was trying to set it to a value >= 512M which with the values below must have not been excepted and fell back to 320M. If I set this to a value of <= 511M it works fine which leads me to believe this is limited by some other value listed below ? dmesg: real memory = 1072107520 (1022 MB) avail memory = 1035038720 (987 MB) loader.conf: kern.maxusers="512" << Not sure if this has anything to do with it. vfs.zfs.arc_min="80M" vfs.zfs.arc_max="512M" << This fails. stays at 335544320. vm.kmem_size="512M" vm.kmem_size_max="512M" << Maybe this one. kern.ipc.semmni="40" kern.ipc.semmns="300" kern.maxdsiz="536870912" kern.maxfiles="16384" There is points in time where I would like to dedicate 2/3 of ram or more using ZFS arc_max but somehow I feel like I have limited this by one of the other values that I had not had the time to look into if they impact larger values of arc_max being set. Thank you, Best regards,, -- jhell