Skip to content

Instantly share code, notes, and snippets.

@creaktive
Created September 7, 2011 16:01
Show Gist options
  • Save creaktive/1200970 to your computer and use it in GitHub Desktop.
Save creaktive/1200970 to your computer and use it in GitHub Desktop.
Mac OS X SSD hacks
launchctl unload -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist
rm /private/var/vm/swapfile*
cat > /Library/LaunchDaemons/com.stas.noatime.plist
<?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.nullvision.noatime</string>
<key>ProgramArguments</key>
<array>
<string>mount</string>
<string>-vuwo</string>
<string>noatime</string>
<string>/</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
sudo chown root:wheel /Library/LaunchDaemons/com.stas.noatime.plist
pmset -a hibernatemode 0
rm /var/vm/sleepimage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment