Linux SSD optimization policy

Source: Internet
Author: User

Linux SSD optimization policy 1. do not use a file system with logs. If you have the ability, consider a file system that supports ssd, such as ubifs. If not, use ext2 www.2cto.com 2. disable noatime nodiratime of the file system, because the access time will increase ssd write, there is no need to modify/etc/fstab, for example, change/dev/hda9/data ext2 defaults 0 2 to/dev/hda9/data ext2 defaults, noatime, nodiratime 0 2 3. disable swap partition. In today's memory cabbage price, it is strongly recommended to upgrade to 2 GB memory. Of course, the solution is to disable swap when partitioning. If you have already split the swap partition, disable it in fstab. put the tmp directory in ramdisktmpfs/tmp tmpfs size = 8 M 0 0 5. put the log records into ramdisktmpfs/var/log tmpfs size = 1 M 0 06. put some other variable files into ramdisktmpfs/var/run tmpfs 0 0 tmpfs/var/lock tmpfs 0 0

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.