Turn on performance mode for OS X Server

Performance mode changes system parameters so your Mac can take better advantage of its hardware for demanding server applications like serving multiple web or file sharing clients. 

Macs with OS X Server that need to run high-performance services can turn on performance mode to dedicate additional system resources for server applications.

OS X El Capitan 10.11 and later

To turn on performance mode in OS X El Capitan 10.11 and later, use the nvram command to adjust the boot-args NVRAM variable.  If you reset NVRAM, this setting will be cleared.

This command displays the boot-args NVRAM variable. If you see serverperfmode=1, performance mode is already turned on.

nvram boot-args

If performance mode isn't already turned on, you can enable it by setting serverperfmode=1 in the boot-args NVRAM variable with this command:

sudo nvram boot-args="serverperfmode=1 $(nvram boot-args 2>/dev/null | cut -f 2-)"

To disable performance mode, use this command:

sudo nvram boot-args="$(nvram boot-args 2>/dev/null | sed -e $'s/boot-args\t//;s/serverperfmode=1//')"

Earlier versions of OS X

To turn on performance mode in OS X Mountain Lion, OS X Mavericks, or OS X Yosemite, use the serverinfo command in Terminal.

To get the current mode, use the command:

serverinfo --perfmode

To set high performance mode:

serverinfo --setperfmode 1

To disable high performance mode:

serverinfo --setperfmode 0

Transitioning to or from high performance mode requires a restart.

Learn more

If you a developer and want to learn more about how performance mode can optimize your system for server-specific applications, see the sysctl(3) manual page.

 

Last Modified: