Created
September 7, 2011 16:01
-
-
Save creaktive/1200970 to your computer and use it in GitHub Desktop.
Mac OS X SSD hacks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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