-
tozhuhello all, Please help me: I want to limit ARC to 16GB, how to configure it? (I need it is alway limited to 16GB, even the machine is rebooted, the limit is still 16GB), how can I set ti. then you very much
-
tozhuI mean I use smartos, not OmniOS
-
danmcdRead up on the zfscache(8) command, which is a SmartOS exclusive.
-
danmcdOh shoot. It *is* undocumented due to its experimental nature.
-
danmcd@tozhu ^^^
-
danmcd
-
fenix→ OS-8638: Want ability to specify zfs_arc_max (Resolved)
-
danmcd@tozhu the trick is to do it EARLY. If you're in Triton, see the ticket I pointed at for how you can do it today in Triton for CNs. (You'll have to use profiles, though, and unless your system is 128GiB the "compute-hvm" one will not help.
-
danmcdIf you use absolute values, you will need to use the -l option.
-
danmcd`zfscache -l $((16 * 1024 * 1024 * 1024)) `
-
danmcdANd you'll have to do it early in the system's boot for best results (it'll shrink but slowly, if you lower it mid-uptime).
-
danmcdThere's a reason it's undocumented and not advertised: the mid-uptime shrinking scenario is not comprehensively tested.
-
tozhudanmcd: Thank you very much
-
gemelenother way is to add a loader.conf.local, isn't it?
-
gemelenah, yes, this is what's there
-
gemelendanmcd: docs.smartos.org/modifying-boot-files looks a bit less scary to share