Skip to content

Instantly share code, notes, and snippets.

@wiedi
Created September 20, 2017 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wiedi/0325cb0281e6f54c30f111007f77ba26 to your computer and use it in GitHub Desktop.
Save wiedi/0325cb0281e6f54c30f111007f77ba26 to your computer and use it in GitHub Desktop.

priocntl inside SmartOS LX-Zone

Needs proc_priocntl privilege:

vmadm update 874520a9-708e-41d8-86a8-f46c7a8cdf28 limit_priv=default,proc_priocntl

Inside needs two symlinks:

ln -s /native/usr/bin/priocntl /usr/bin/
ln -s /native/usr/lib/class /usr/lib/class

After that settings priority works like:

priocntl -s -c FX -p 60 -m 60 -i pid 30586
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment