mirror of
https://github.com/bashclub/proxmox-zfs-postinstall.git
synced 2024-12-25 17:50:13 +01:00
Fixed total memory detection
This commit is contained in:
parent
363990b373
commit
701273ea91
@ -15,7 +15,7 @@ source ./ZPOOL_SIZE_SUM_BYTES
|
|||||||
rm -f ./ZPOOL_SIZE_SUM_BYTES
|
rm -f ./ZPOOL_SIZE_SUM_BYTES
|
||||||
|
|
||||||
# get information about available ram
|
# get information about available ram
|
||||||
MEM_TOTAL_BYTES=$(free -tb | tail -1 | cut -d ' ' -f3)
|
MEM_TOTAL_BYTES=$(($(awk '/MemTotal/ {print $2}' /proc/meminfo) * 1024))
|
||||||
|
|
||||||
# get values if defaults are set
|
# get values if defaults are set
|
||||||
ARC_MAX_DEFAULT_BYTES=$(($MEM_TOTAL_BYTES / 2))
|
ARC_MAX_DEFAULT_BYTES=$(($MEM_TOTAL_BYTES / 2))
|
||||||
|
Loading…
Reference in New Issue
Block a user