<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>Mini Laptop Zone &#187; Linux</title> <atom:link href="http://minilaptopzone.com/tag/linux/feed/" rel="self" type="application/rss+xml" /><link>http://minilaptopzone.com</link> <description>Mini Laptop Reviews, Ratings and Comparisons</description> <lastBuildDate>Tue, 24 Jan 2012 22:23:57 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.2.1</generator> <item><title>Tweaking SSD Performance in Linux Netbooks</title><link>http://minilaptopzone.com/2010/06/tweaking-ssd-performance-in-linux-netbooks/</link> <comments>http://minilaptopzone.com/2010/06/tweaking-ssd-performance-in-linux-netbooks/#comments</comments> <pubDate>Fri, 18 Jun 2010 10:33:30 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[News]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[SSD]]></category> <guid
isPermaLink="false">http://minilaptopzone.com/?p=541</guid> <description><![CDATA[Here are some tips submitted by a guest author/Linux guru on how to tweak your netbook&#8217;s SSD when running Ubuntu. Disclaimer: Use carefully! This website takes no responsibility if you mess up you Linux installation. Always create a full backup before attempting to modify system-critical files. Disable file access time updates to reduce writes When [...]]]></description> <content:encoded><![CDATA[<p>Here are some tips submitted by a guest author/Linux guru on how to tweak your netbook&#8217;s SSD when running Ubuntu. Disclaimer: Use carefully! This website takes no responsibility if you mess up you Linux installation. Always create a full backup before attempting to modify system-critical files.<strong></strong></p><p><strong>Disable file access time updates to reduce writes</strong></p><p><strong></strong>When a file is accessed, many file systems update the &#8220;last accessed  time&#8221;. This update generates additional I/O for all file reads, and has  little benefit. So, it&#8217;s probably a good idea to disable these updates. To disable file access time updates, you&#8217;ll need to edit the  &#8220;/etc/fstab&#8221; file, which tells the system what file systems to use and  how to use them. Since screwing up &#8220;fstab&#8221; can seriously mess up your  system, I recommend backing the file up, and having a boot able Linux  USB drive waiting will make it easier to fix the worse screw-ups.</p><p>To edit &#8220;fstab&#8221;, you&#8217;ll need to launch a text editor with root  privileges. One easy way to do that is to open a run dialog via Alt+F2,  then execute &#8220;gksudo gedit /etc/fstab&#8221;. Enter your password when  prompted. You&#8217;ll see a text file with several lines, each with several white space  separated fields. The first line describes the format of each line. The  first line starts with a &#8220;#&#8221; to indicate that it&#8217;s a comment.</p><p>Each non-comment line describes a file system. The default Dell Ubuntu  install, for example, only uses a single partition. The line describing that single  partition has a second field (mount point) of &#8220;/&#8221;. The fourth field is a  comma-separated list of mount options. Add &#8220;noatime&#8221; to the list of  mount options.</p><p><em>Code:</em></p><p>/dev/sda2 / ext3 defaults,noatime 0 0<br
/> proc /proc proc defaults 0 0</p><p>(The amount of white space between fields doesn&#8217;t matter.)</p><p>Reboot or run &#8220;sudo mount -o remount /&#8221; in a terminal to see the results  of your change.</p><p><strong>Move temporary files to a RAM disk to avoid unnecessary SSD I/O.</strong></p><p>Create a RAM disk and set it to be mounted at &#8220;/tmp&#8221; by adding the  following line to &#8220;/etc/fstab&#8221;.</p><p><em>Code</em>:</p><p>tmpfs /tmp tmpfs mode=1777</p><p>When you reboot, a dynamically-sized RAM disk will be created with a  maximum size of 1/2 your total RAM amount. It will be mounted at &#8220;/tmp&#8221;.</p><p>Some programs, like Firefox, will still need a setting changed to use  the RAM disk as temporary file storage. In Firefox, enter &#8220;about:config&#8221;  in the address bar, and add the preference  &#8220;browser.cache.disk.parent_directory&#8221; with the value &#8220;/tmp&#8221;. Or disable  Firefox&#8217;s disk cache entirely, and only rely on its own memory cache. Be aware that files under &#8220;/tmp&#8221; will be completely lost on reboot,  power down, or power loss.</p><p><strong>Change the I/O scheduler to one more suited for a SSD&#8217;s quick seeks</strong></p><p>The I/O scheduler manages I/O requests. The default I/O scheduler in  Linux is CFQ, the Completely Fair Scheduler. However, it&#8217;s designed to  maximize performance on conventional hard drives, not solid state  drives.<br
/> Based on what I&#8217;ve read, the dumb &#8220;noop&#8221; scheduler or the &#8220;deadline&#8221;  scheduler may offer improved performance on SSDs.<br
/> Add the following line to &#8220;/etc/rc.local&#8221; before &#8220;exit 0&#8243; to enable the  &#8220;noop&#8221; scheduler on the internal SSD.<br
/> Code:</p><p>echo noop &gt; /sys/block/sda/queue/scheduler</p><p>Add the following lines instead to use the &#8220;deadline&#8221; scheduler.</p><p><em>Code:</em></p><p>echo deadline &gt; /sys/block/sda/queue/scheduler<br
/> echo 1 &gt; /sys/block/sda/queue/iosched/fifo_batch</p><p>Adjusting the &#8220;fifo_batch&#8221; value for the &#8220;deadline&#8221; scheduler is another  tweak which I&#8217;ve read about. A higher value should reduce seeks, but  also increase latency. SSDs don&#8217;t need to worry about excessive seeks,  so we can set the value low. I&#8217;m using the &#8220;deadline&#8221; scheduler myself. Because when I had the &#8220;noop&#8221;  scheduler enabled on an SD card with my music, a large file copy was  able to interrupt my music playback for several seconds.</p><p>Unfortunately, my technique sets the I/O scheduler late in the boot  process. So, booting will still use the default CFQ scheduler. You can  override the default by setting options in GRUB&#8217;s config file, but  overall I prefer my solution.</p> ]]></content:encoded> <wfw:commentRss>http://minilaptopzone.com/2010/06/tweaking-ssd-performance-in-linux-netbooks/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
