Is “server performance mode” enabled or not

file-sharinghigh sierraserver.app

When experiencing some MAJOR file sharing slowdowns in a new macOS High Sierra machine running Server.app I came across this page from Apple showing how to enable "performance mode for macOS Server".

https://support.apple.com/en-us/HT202528

Some online resources make reference to the "old" procedure before SIP prevented that from working, and provided instructions on how to turn off SIP and then use "serverinfo" to enable perfmode, and then turn off SIP.

References at No boot-args in nvram and What does serverperfmode=1 actually do on macOS? gave me some more information, but I cannot find info about checking the perfmode status in High Sierra.

I have set the NVRAM variable like Apple says, and checking it returns the proper result of "boot-args serverperfmode=1" and I restarted a few times, but "serverinfo –perfmode" still returns the result of "Server performance mode is NOT enabled."

When set via the NVRAM, should "serverinfo –perfmode" tell me that performance mode is enabled? If not, how can I tell if it has been enabled? The NVRAM variable essentially says "turn it on when you boot", but it does not tell me "it got turned on when I booted".

Best Answer

OK, I guess I have one way to determine based on What does serverperfmode=1 actually do on macOS?

If you take the output from sysctl -a you can search it for some of the items listed above and see what their values are.

sysctl -a > temp.txt

Search temp.txt with your favourite editor and look for kern.maxvnodes, if it is 300000, and if kern.maxproc is 5000, then you are in "performance mode".

Or at least some of your settings match the "performance mode" settings.

Since I did both the NVRAM variable and the "disable SIP and use serverinfo --setperfmode 1" methods, I don't actually know if the NVRAM method by itself results in the changes for High Sierra.