Page 1 of 1

L2Arc settings not honoured from loader.conf?

Posted: 17 Jan 2014 13:25
by ajm83
Hi, I'm using an L2Arc with the Full version of N4F (9.2....925 build).

What i'd like to do is apply the following settings in my loader.conf so that the l2arc is populated more quickly than default:

Code: Select all

vfs.zfs.l2arc_noprefetch="0"
vfs.zfs.l2arc_write_max="26214400"
vfs.zfs.l2arc_write_boost="52428800"
vfs.zfs.l2arc_feed_min_ms="100"
However, the values are not honoured. Running sysctl -a | grep l2arc shows that the values are just their defaults of 8MB.

I've also tried in sysctl.conf with the same results (though I think it does need to be loader.conf).

Any ideas? The other settings in loader.conf are applied successfully. The entire file is here:

Code: Select all

kernel="kernel"
bootfile="kernel"
kernel_options=""
kern.hz="100"
hw.est.msr_info="0"
hw.hptrr.attach_generic="0"
kern.maxfiles="65536"
kern.maxfilesperproc="50000"
kern.cam.boot_delay="8000"
autoboot_delay="5"
isboot_load="YES"
zfs_load="YES"
# ZFS kernel tune
#vm.kmem_size="31744M"
vm.kmem_size="65536M"
vfs.zfs.arc_min="4096M"
vfs.zfs.arc_max="26624M"
vfs.zfs.prefetch_disable="0"
vfs.zfs.txg.timeout="5"
#vfs.zfs.vdev.max_pending="10"
#vfs.zfs.vdev.min_pending="4"
vfs.zfs.vdev.max_pending="1"
vfs.zfs.vdev.min_pending="1"
vfs.zfs.write_limit_override="0"
vfs.zfs.no_write_throttle="0"

ahci_load="YES"

vfs.zfs.l2arc_noprefetch="0"
vfs.zfs.l2arc_write_max="26214400"
vfs.zfs.l2arc_write_boost="52428800"
vfs.zfs.l2arc_feed_min_ms="100"
Thanks

edit:

is there a log for loader/loader.conf ? regarding this part of the man page:
BUGS
The loader(8) stops reading loader.conf when it encounters a syntax
error, so any options which are vital for booting a particular system
(i.e. ``hw.ata.ata_dma=0'') should precede any experimental additions to
loader.conf.

Re: L2Arc settings not honoured from loader.conf?

Posted: 17 Jan 2014 13:42
by raulfg3
ajm83 wrote:What i'd like to do is apply the following settings in my loader.conf so that the l2arc is populated more quickly than default:
you need to aply from webGUI, otherwise are lost on restart

http://wiki.nas4free.org/doku.php?id=do ... ed_rc.conf
http://wiki.nas4free.org/doku.php?id=do ... ysctl.conf

Re: L2Arc settings not honoured from loader.conf?

Posted: 17 Jan 2014 13:48
by ajm83
raulfg3 wrote:
ajm83 wrote:What i'd like to do is apply the following settings in my loader.conf so that the l2arc is populated more quickly than default:
you need to aply from webGUI, otherwise are lost on restart

http://wiki.nas4free.org/doku.php?id=do ... ed_rc.conf
http://wiki.nas4free.org/doku.php?id=do ... ysctl.conf
Thanks, is that a new feature? I don't remember doing that before (it's a full install not embedded). Also the lines are still in the file but not applied.

Thanks for your help.

Re: L2Arc settings not honoured from loader.conf?

Posted: 17 Jan 2014 13:53
by raulfg3
ajm83 wrote:Thanks, is that a new feature?
yes.

loader.conf in webGUI was introduced on latest 9.1.0.1.847 and recent 9.2.0.1.925 and do not exist on older versions.

Re: L2Arc settings not honoured from loader.conf?

Posted: 17 Jan 2014 13:57
by ajm83
Makes sense. Thanks, I will add to the GUI and retest tomorrow.