Tuesday 14 August 2012

Mac Speed Tweaks

These are some methods using which you can speed up your Mac :)

- Disable Spotlight Completely: 
This will stop mds and mdworker forever. Two processes that often use lots of cpu and ram.
some program require the metadata server(mds).

$ sudo mdutil -a -v -i off$ sudo chmod 000 /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Support/*
$ sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
$ cd /System/Library/CoreServices/Search.bundle/Contents/MacOS
$ sudo mv Search _Search
$ cd /System/Library/CoreServices/
$ sudo mv Search.bundle/ Search2.bundle/
$ sudo killall SystemUIServer 

This will stop file indexation services and remove the spotlight icon in menubar.

- Disable Swapping:
disables memory swapping, not useful.

$ sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist$ sudo rm /private/var/vm/swapfile* 

- Remove Sleepimage: (huge file)
This file is a by-product of Safe Sleep and it's basically a saved state of your Mac's memory when it goes to sleep. MacBooks especially use this file to save your contents before the battery completely loses its charge.


$ sudo rm /private/var/vm/sleepimage$ pmset -g | grep hibernatemode $ sudo pmset -a hibernatemode 0 


Enjoy :)

No comments:

Post a Comment