Limitare l'uso della Ram da parte di ZFS: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 2: | Line 2: | ||
* Se si vuole limitare, scommentare il valore voluto: | * Se si vuole limitare, scommentare il valore voluto: | ||
<pre> | <pre> | ||
cat <<EOFile | sudo tee /etc/modprobe.d/zfs.conf | |||
#1GB | #1GB | ||
options zfs zfs_arc_max=1073741824 | options zfs zfs_arc_max=1073741824 | ||
| Line 10: | Line 11: | ||
#options zfs zfs_arc_max=3221225472 | #options zfs zfs_arc_max=3221225472 | ||
#options zfs zfs_arc_max=4294967296 | #options zfs zfs_arc_max=4294967296 | ||
EOFile | |||
</pre> | </pre> | ||
cat /etc/modprobe.d/zfs.conf | |||
* Aggiornare l'initird: | * Aggiornare l'initird: | ||
Revision as of 18:00, 19 May 2018
- Zfs utilizza per la cache in lettura tutt ala Ram disponibile.
- Se si vuole limitare, scommentare il valore voluto:
cat <<EOFile | sudo tee /etc/modprobe.d/zfs.conf #1GB options zfs zfs_arc_max=1073741824 #options zfs zfs_arc_max=2147483648 #options zfs zfs_arc_max=3221225472 #options zfs zfs_arc_max=4294967296 EOFile
cat /etc/modprobe.d/zfs.conf
- Aggiornare l'initird:
sudo update-initramfs -u -k all
- Fare reboot, o impostare manualmente:
echo "1073741824" | sudo tee /sys/module/zfs/parameters/zfs_arc_max
- Verificare:
cat /sys/module/zfs/parameters/zfs_arc_max
1073741824
Riferimenti
- zfsonlinux - Why isn't the arc_max setting honoured on ZFS on Linux? - Server Fault
- Excessive memory use with ZFS [SOLVED sort of / Networking, Server, and Protection / Arch Linux Forums]