This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

L2Arc settings not honoured from loader.conf?

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
ajm83
NewUser
NewUser
Posts: 7
Joined: 10 Jan 2013 10:18
Status: Offline

L2Arc settings not honoured from loader.conf?

Post 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.
i5 32GB RAM
6 x WD Red 3TB
1 x 128GB SSD L2ARC
http://www.webrecs.net

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: L2Arc settings not honoured from loader.conf?

Post 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
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

ajm83
NewUser
NewUser
Posts: 7
Joined: 10 Jan 2013 10:18
Status: Offline

Re: L2Arc settings not honoured from loader.conf?

Post 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.
i5 32GB RAM
6 x WD Red 3TB
1 x 128GB SSD L2ARC
http://www.webrecs.net

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: L2Arc settings not honoured from loader.conf?

Post 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.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

ajm83
NewUser
NewUser
Posts: 7
Joined: 10 Jan 2013 10:18
Status: Offline

Re: L2Arc settings not honoured from loader.conf?

Post by ajm83 »

Makes sense. Thanks, I will add to the GUI and retest tomorrow.
i5 32GB RAM
6 x WD Red 3TB
1 x 128GB SSD L2ARC
http://www.webrecs.net

Post Reply

Return to “ZFS (only!)”