Skip to content

Instantly share code, notes, and snippets.

@pythoninthegrass
Last active September 7, 2025 20:10
Show Gist options
  • Save pythoninthegrass/893aaa5ef0b38a923e5a46ee88920ba7 to your computer and use it in GitHub Desktop.
Save pythoninthegrass/893aaa5ef0b38a923e5a46ee88920ba7 to your computer and use it in GitHub Desktop.
Set macOS VRAM persistently
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.user.sysctl</string>
<key>ProgramArguments</key>
<array>
<string>/usr/sbin/sysctl</string>
<string>-w</string>
<string>iogpu.wired_limit_mb=122880</string>
</array>
<key>RunAtLoad</key>
<true />
<key>LaunchOnlyOnce</key>
<true />
<key>UserName</key>
<string>root</string>
</dict>
</plist>
@pythoninthegrass
Copy link
Author

pythoninthegrass commented Sep 7, 2025

Per reddit:

git clone [email protected]:893aaa5ef0b38a923e5a46ee88920ba7.git macos_sysctl && cd $_
sudo cp sysctl.plist /Library/LaunchDaemons/com.user.sysctl.plist
sudo launchctl load /Library/LaunchDaemons/com.user.sysctl.plist
sudo reboot
sudo sysctl iogpu.wired_limit_mb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment