Set zfs_arc_max
Via http://www.solarisinternals.com/wiki/index.php/ZFS_Evil_Tuning_Guide#Limiting_the_ARC_Cache
1 | For example, if an application needs 5 GBytes of memory on a system with |
So basically, M(10243). Where M is the memory size in GB. I have 12 GB of memory, and I want ARC to only use up to half of it.
1 | su |
Then reboot. When you reboot, your system may go into maintenance mode, a message says something about the boot-archiveā being down because we changed /etc/system. Login with a user that has staff/root privileges and check the file, then clear the maintenance mode on the boot-archive service.
1 | less /etc/system |