Skip to content

Commit

Permalink
rootfs,dom0-ztools: introduce etc/modprobe.d/zfs.conf
Browse files Browse the repository at this point in the history
Get rid of the custom '000-mod-params' script, which handles
setting of ZFS parameters using the sysfs, in a favor of the
/etc/modprobe.d/zfs.conf generic mechanism of loading modules.

Signed-off-by: Roman Penyaev <r.peniaev@gmail.com>
  • Loading branch information
rouming committed Mar 22, 2023
1 parent 805a340 commit d815eb5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 40 deletions.
2 changes: 1 addition & 1 deletion images/rootfs.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ onboot:
- CAP_NET_ADMIN
- name: modprobe
image: linuxkit/modprobe:v0.5
command: ["/bin/sh", "-c", "modprobe -a nct6775 w83627hf_wdt hpwdt wlcore_sdio wl18xx br_netfilter dwc3 rk808 rk808-regulator smsc75xx cp210x nicvf tpm_tis_spi rtc_rx8010 os-em32x regmap-i2c gpio_pca953x leds_gpio leds_siemens_ipc127 upboard-fpga pinctrl-upboard leds-upboard xhci_tegra 2>/dev/null || :"]
command: ["/bin/sh", "-c", "modprobe -a zfs nct6775 w83627hf_wdt hpwdt wlcore_sdio wl18xx br_netfilter dwc3 rk808 rk808-regulator smsc75xx cp210x nicvf tpm_tis_spi rtc_rx8010 os-em32x regmap-i2c gpio_pca953x leds_gpio leds_siemens_ipc127 upboard-fpga pinctrl-upboard leds-upboard xhci_tegra 2>/dev/null || :"]
# If you change the order of storage-init don't forget to
# change 003-installer in pkg/mkimage-raw-efi accordingly:
# storage-init must follow installer
Expand Down
39 changes: 0 additions & 39 deletions pkg/dom0-ztools/rootfs/etc/init.d/000-mod-params

This file was deleted.

20 changes: 20 additions & 0 deletions pkg/dom0-ztools/rootfs/etc/modprobe.d/zfs.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
options zfs zfs_compressed_arc_enabled 0
options zfs zfs_vdev_min_auto_ashift 12
options zfs zvol_request_sync 0
options zfs zfs_vdev_aggregation_limit_non_rotating 1048576
options zfs zfs_vdev_async_write_active_min_dirty_percent 10
options zfs zfs_vdev_async_write_active_max_dirty_percent 30
options zfs zfs_delay_min_dirty_percent 40
options zfs zfs_delay_scale 800000
options zfs zfs_dirty_data_sync_percent 15
options zfs zfs_prefetch_disable 1
options zfs zfs_vdev_sync_read_min_active 35
options zfs zfs_vdev_sync_read_max_active 35
options zfs zfs_vdev_sync_write_min_active 35
options zfs zfs_vdev_sync_write_max_active 35
options zfs zfs_vdev_async_read_min_active 1
options zfs zfs_vdev_async_read_max_active 10
options zfs zfs_vdev_async_write_min_active 1
options zfs zfs_vdev_async_write_max_active 10
options zfs zfs_smoothing_scale 50000
options zfs zfs_smoothing_write 5

0 comments on commit d815eb5

Please sign in to comment.