From 9a8167c821436e6da7054455b47f591a98b0fefb Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 13 May 2020 10:26:48 +0100 Subject: [PATCH] Add macOS aliases for toggling debug.lowpri_throttle_enabled --- zsh/macos.zsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zsh/macos.zsh b/zsh/macos.zsh index ae9920d..44dfef3 100644 --- a/zsh/macos.zsh +++ b/zsh/macos.zsh @@ -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 #