About the use of SSDs under Linux

Source: Internet
Author: User

1. These file systems can be mounted with the discard option: Ext4, XFS, JFS, VFAT

2. Periodic trim can be achieved using the Fstrim command, and continuous trim can be achieved using the discard tag when mounted.

3. digression, setting the value of swappiness to 1, can reduce the exchange with the data in RAM

To view the value of the current swappiness:

Cat /proc/sys/vm/swappiness


Temporarily set the value of the swappiness:

Sysctl vm.swappiness=

To permanently set the value of the swappiness:

Edit file:/etc/sysctl.d/-sysctl.confvm.swappiness=Ten

4. Using Noatime to mount can reduce write operations (after trial, not found to cause system function is not normal)

About the use of SSDs under Linux

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.