mirror of
https://github.com/bashclub/proxmox-zfs-postinstall.git
synced 2024-12-26 02:00:12 +01:00
Swapped ruond for arc min/max
This commit is contained in:
parent
78d4560cce
commit
52fc06c66f
@ -45,8 +45,8 @@ ARC_MIN_CUR_BYTES=$(cat /sys/module/zfs/parameters/zfs_arc_min)
|
|||||||
ARC_MAX_CUR_BYTES=$(cat /sys/module/zfs/parameters/zfs_arc_max)
|
ARC_MAX_CUR_BYTES=$(cat /sys/module/zfs/parameters/zfs_arc_max)
|
||||||
|
|
||||||
# calculate suggested l1arc sice
|
# calculate suggested l1arc sice
|
||||||
ZFS_ARC_MIN_MEGABYTES=$(roundoff $(($ZPOOL_SIZE_SUM_BYTES / 2048 / 1024 / 1024)))
|
ZFS_ARC_MIN_MEGABYTES=$(roundup $(($ZPOOL_SIZE_SUM_BYTES / 2048 / 1024 / 1024)))
|
||||||
ZFS_ARC_MAX_MEGABYTES=$(roundup $(($ZPOOL_SIZE_SUM_BYTES / 1024 / 1024 / 1024)))
|
ZFS_ARC_MAX_MEGABYTES=$(roundoff $(($ZPOOL_SIZE_SUM_BYTES / 1024 / 1024 / 1024)))
|
||||||
|
|
||||||
echo -e "######## CONFIGURE ZFS L1ARC SIZE ########\n"
|
echo -e "######## CONFIGURE ZFS L1ARC SIZE ########\n"
|
||||||
echo "System Summary:"
|
echo "System Summary:"
|
||||||
|
Loading…
Reference in New Issue
Block a user