I was looking at the wiki on memory usage, and ran some of the commands to check what was going on with my machine:
- Code: Select all
sysctl kstat | grep arc_max
kstat.zfs.darwin.tunable.zfs_arc_max: 0
Hmm, that doesn't seem right? Unless it's set to zero to disable any memory limit and let the system deal with flushing it as necessary? However the amount in use seemed fairly low:
- Code: Select all
kstat.spl.misc.spl_misc.os_mem_alloc: 1377828864
~1.4GB? The machine has 8GB installed, and (at the minute) a 4 way mirror zpool that's 160GB in size. I thought it'd use more memory while resilvering?
- Code: Select all
pool: PlayPool
state: ONLINE
status: One or more devices is currently being resilvered. The pool will
continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
scan: resilver in progress since Fri Jul 22 07:05:25 2016
33.1G scanned out of 92.6G at 31.5M/s, 0h32m to go
33.1G resilvered, 35.69% done
config:
NAME STATE READ WRITE CKSUM
PlayPool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
media-A60B02CA-7402-7C45-B211-7A8CB12548B8 ONLINE 0 0 0
media-30C9BC7E-7CD4-7F4D-9A6F-8AB111C16C26 ONLINE 0 0 0
media-106B2374-76F3-7647-993F-1C0F45C983AA ONLINE 0 0 0
disk0s4 ONLINE 0 0 0 (resilvering)
Is arc_max meant to be set to zero, or should I set it to a realistic value for my machine?