Add macOS aliases for toggling debug.lowpri_throttle_enabled

This commit is contained in:
2020-05-13 10:26:48 +01:00
parent 6845aac296
commit 9a8167c821

View File

@@ -26,6 +26,12 @@ osx-disable-lookup-word-hotkey () {
echo "Command-Control-D hotkey disabled. Please reboot to take effect."
}
# Disable low-priority throttle for background tasks. Helps speed to up initial
# Time Machine backup. But do remember to re-enable when done.
# - from: https://osxdaily.com/2016/04/17/speed-up-time-machine-by-removing-low-process-priority-throttling/
alias osx-disable-lowpri-throttle='sudo sysctl debug.lowpri_throttle_enabled=0'
alias osx-enable-lowpri-throttle='sudo sysctl debug.lowpri_throttle_enabled=1'
#
# Power management
#