Setting "zfs_arc_max" value in FreeBSD 8.

krad kraduk at googlemail.com
Tue Jan 19 09:49:18 UTC 2010


2010/1/19 Ivan Voras <ivoras at freebsd.org>

> On 01/19/10 10:19, Sherin George wrote:
>
>> Hello,
>>
>> I am trying to tune ZFS file system by setting "zfs_arc_max" value in
>> FreeBSD 8.
>>
>> In solaris, it is achieved like this
>>
>> =================================================
>> For example, if an application needs 5 GBytes of memory on a system with
>> 36-GBytes of memory, you could set the arc maximum to 30 GBytes,
>> (0x780000000 or 32212254720 bytes). Set the zfs:zfs_arc_max parameter in
>> the
>> /etc/system file:
>>
>> set zfs:zfs_arc_max = 0x780000000
>>
>> or
>>
>> set zfs:zfs_arc_max = 32212254720
>> =================================================
>>
>> But, I couldn't find /etc/system file in FreeBSD.
>>
>> Could some one please guide me to correctly configure "zfs_arc_max" in
>> FreeBSD 8.
>>
>
> You should probably start here:
>
> http://wiki.freebsd.org/ZFSTuningGuide
>
> and more generally, here:
>
> http://wiki.freebsd.org/ZFS
>
>
>
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>

sysctl vfs.zfs.arc_max=XXXX

add it to /etc/sysctl.conf to make persistent


More information about the freebsd-hackers mailing list