How to enter various nvram boot-args
Solution 1:
If you want both arguments in one command, you can use a space to separate:
sudo nvram boot-args="vm_compression=1 serverperfmode=1"
Solution 2:
Guess I found a way to do it. Open Terminal and run
sudo nvram boot-args="vm_compressor=1"
sudo nvram boot-args="$(nvram boot-args) serverperfmode=1"
then use nvram boot-args
to check
$ nvram boot-args
boot-args vm_compressor=1 serverperfmode=1