วันพุธ, มิถุนายน 13, 2555

Ubuntu on SSD; application tuning for best performance

Ubuntu on SSD

Tuning application's cache/temp directory for best performance.

    From previous post running-ubuntu-on-ssd-tweak. We already have instruction on howto move Firefox's cache to RAM, the tmpfs. This post will show howto do it with others.

Google Chrome

Change execute parameter in Google Chrome launcher file.
$sudo vi /usr/share/applications/google-chrome.desktop 

...
# Exec=/opt/google/chrome/google-chrome %U
Exec=/opt/google/chrome/google-chrome --disk-cache-dir="/tmp/" %U

...

duplicate old line then comment it. put additional parameter to a duplicated line; --disk-cache-dir="/tmp/" 

If you want to specify the cache size see the reference.

reference:
  1. http://www.ghacks.net/2010/10/19/how-to-change-google-chromes-cache-location-and-size/ 
  2. http://www.joeyconway.com/blog/2011/09/11/ubuntu-ssd-move-chrome-cache-to-ram/