Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jan 2010 08:47:46 -0800
From:      Artem Belevich <fbsdlist@src.cx>
To:        jhell <jhell@dataix.net>
Cc:        Alexander Leidinger <Alexander@leidinger.net>, freebsd-hackers@freebsd.org
Subject:   Re: Setting "zfs_arc_max" value in FreeBSD 8.
Message-ID:  <ed91d4a81001220847v15e26830la2d51479c3d104e1@mail.gmail.com>
In-Reply-To: <20100120111433.25801pnmhrxnirok@webmail.leidinger.net>
References:  <7f14551c1001190119x46c6b04dx2362cd1252f0d81@mail.gmail.com> <hj3v0i$i2p$1@ger.gmane.org> <7f14551c1001190216w49814186n1ada2b721380502b@mail.gmail.com> <4B55C5A6.2020109@DataIX.net> <20100120111433.25801pnmhrxnirok@webmail.leidinger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
>> 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
<Alexander@leidinger.net> wrote:
> Quoting jhell <jhell@DataIX.net> (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=
"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ed91d4a81001220847v15e26830la2d51479c3d104e1>