Differences
This shows you the differences between two versions of the page.
— |
topics:zfs-on-linux-memory-limit [2017/03/26 04:09] (current) orzfly created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Limit ZFS on Linux Memory Usage ====== | ||
+ | <code bash> | ||
+ | echo " | ||
+ | echo 1073741824 > / | ||
+ | update-initramfs -u | ||
+ | </ | ||
+ | |||
+ | 1073741824 is 1 GiB. It is good to use at most 50 percent (which is the default) of the system memory for ZFS ARC to prevent performance shortage of the host. | ||
+ | |||
+ | ===== Monitoring ===== | ||
+ | arcstat.py is located in '' | ||
+ | |||
+ | <code shell-session> | ||
+ | $ apt-file search arcstat.py | ||
+ | zfsutils-linux: | ||
+ | </ | ||
+ | |||
+ | <code shell-session> | ||
+ | # arcstat.py 1 | ||
+ | time read miss miss% dmis dm% pmis pm% mmis mm% arcsz c | ||
+ | 12: | ||
+ | 12: | ||
+ | 12: | ||
+ | 12: | ||
+ | 12: | ||
+ | </ | ||
+ | |||
+ | <code shell-session> | ||
+ | # arcstat.py -h | ||
+ | Usage: arcstat.py [-hvx] [-f fields] [-o file] [-s string] [interval [count]] | ||
+ | |||
+ | -h : Print this help message | ||
+ | -v : List all possible field headers and definitions | ||
+ | -x : Print extended stats | ||
+ | -f : Specify specific fields to print (see -v) | ||
+ | -o : Redirect output to the specified file | ||
+ | -s : Override default field separator with custom character or string | ||
+ | |||
+ | Examples: | ||
+ | arcstat.py -o /tmp/a.log 2 10 | ||
+ | arcstat.py -s "," | ||
+ | arcstat.py -v | ||
+ | arcstat.py -f time, | ||
+ | </ | ||
+ | |||
+ | ===== See Alsos ===== | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * http:// | ||
+ | |||
+ | {{tag> |