歪个楼,我在折腾 nas 之前也听说 zfs 对内存需求特别高,跑 zfs, 实际用的时候不知道为啥内存使用量上不去。三块 8T 组 raidz:
[email protected] ~# free -m
total used free shared buff/cache available
Mem: 9872 2692 6771 0 408 6888
Swap: 0 0 0
[email protected] ~# arcstat -a
time hits miss read hit% miss% dhit dmis dh% dm% phit pmis ph% pm% mhit mmis mread mh% mm% arcsz size c mfu mru mfug mrug eskip el2skip el2cach el2el el2mfu el2mru el2inel mtxmis dread pread grow need free avail waste
22:43:50 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.4G 1.4G 1.5G 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 6.8G 6.2G 19M
读写较多的情况下内存占用也不到 5G 内存。并且 arc 相关的 limit 都很高的…没有碰到限制。
可能是我读写较少的缘故?如果 NAS 上采用 zfs, 可以多实验,实际可能真的不需要 1T => 1G 。