Memory utilization
From OpenZFS on OS X
Memory Utilization
To set a persistent arc maximum, you need to create a new file /etc/zfs/zsysctl.conf. An example file is installed at /etc/zfs/zsysctl.conf.example.
Open /etc/zfs/zsysctl.conf in your favorite text editor, and add a line like this:
kstat.zfs.darwin.tunable.zfs_arc_max=11811160064
This would limit the arc max to 11GB (see table below).
You may also wish to set the arc meta limit explicitly. The default is 1/4 of the arc max, but for some workloads 3/4 may be more appropriate. Setting 3/4 of the arc max above:
kstat.zfs.darwin.tunable.zfs_arc_meta_limit=8858370048
For additional information, please see Performance.
| GB | bytes |
|---|---|
| 1 | 1073741824 |
| 2 | 2147483648 |
| 3 | 3221225472 |
| 4 | 4294967296 |
| 5 | 5368709120 |
| 6 | 6442450944 |
| 7 | 7516192768 |
| 8 | 8589934592 |
| 9 | 9663676416 |
| 10 | 10737418240 |
| 11 | 11811160064 |
| 12 | 12884901888 |
| 13 | 13958643712 |
| 14 | 15032385536 |
| 15 | 16106127360 |
| 16 | 17179869184 |
| 17 | 18253611008 |
| 18 | 19327352832 |
| 19 | 20401094656 |
| 20 | 21474836480 |
| 21 | 22548578304 |
| 22 | 23622320128 |
| 23 | 24696061952 |
| 24 | 25769803776 |
| 25 | 26843545600 |
| 26 | 27917287424 |
| 27 | 28991029248 |
| 28 | 30064771072 |
| 29 | 31138512896 |
| 30 | 32212254720 |
| 31 | 33285996544 |
| 32 | 34359738368 |