Optimized ssd hard drive in Ubuntu

Source: Internet
Author: User
My Ubuntu12.10 is installed on Samsung's 64 GB ssd, so it is necessary to optimize it and give full play to the ssd's best performance. As for ssd's 4 K alignment, do not worry about it in ubuntu11.10 or later versions, because it has been aligned during formatting, we recommend that you manually partition the data by dividing it into one EFI boot partition. mb is enough, and then distribute the remaining data to/file systems using ext4, the Internet says that brtfs is optimized for ssd, but I personally think that stability is the most important thing. Partition/home to HDD

My Ubuntu 12.10 is installed on Samsung's 64 GB ssd, so it is necessary to optimize this and give full play to the ssd's best performance. As for ssd's 4 K alignment, do not worry about ubuntu 11.10 or later versions, because it has been aligned during formatting, we recommend that you manually partition the data by dividing it into one EFI boot partition. mb is enough, and then distribute the remaining data/

The file system uses ext4. The Internet says that brtfs is optimized for ssd, but I personally think that stability is the most important thing.

The/home partition is assigned to the mechanical hard disk. It is a single disk. Because I have 8 GB of memory, there is no need to divide the swap partition, select the following boot drive as the efi partition. You must select this one. Otherwise, the boot will fail after installation... (Personal experience ...)

After the installation is complete, Do not update the system, first optimize:

Cp/etc/fstab. bk

Nano/etc/fstab (nano and vi can be used if the new system does not have vim)

Find the ssd hard drive in the following format:

UUID :.... /Ext4 errors = remount-ro 0 1

Add the following code with a space after ext4:

Noatime, nodiratime, discard

If you do this several times carefully, do not make a mistake. It should be because ssd is most afraid of sustained reading and writing of small files, so the cached files can be transferred to the memory, of course, the memory is enough.

The following code is needed

Add at the bottom:

Tmpfs/tmp tmpfs defaults, noatime mode = 1777 0 0

Tmpfs/var/spool tmpfs ults, noatime mode = 1777 0 0

Tmpfs/var/tmp tmpfs defaults', noatime mode = 1777 0 0

Tmpfs/log tmpfs defaults, noatime mode = 0755 0 0

Press ctrl + x to exit, Press y to save, and press Enter.

You can modify the firefox cache file:

Enter about: config in the address bar.

Right-click to add a string: browser. cache. disk. parent_directory

Value:/tmp

Finally, the following command is completed:

Echo noop>/sys/block/sda/queue/schedue

After reboot, mount and check whether the word "discard" exists in the brackets at the end of sda. If yes, it indicates that it is successful.

That's it.

Ubuntu SSD Hard Drive Optimization full record http://www.linuxidc.com/Linux/2012-09/70519.htm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.