[MySQL optimization] optimizes Linux read performance without using the atime attribute.

Source: Internet
Author: User

Optimizes Linux read performance without using the atime attribute
When a file is created, modified, and accessed, the Linux system records the time information. Record the last time the file was read. When the system reads files frequently, it will be a lot of overhead. Therefore, to improve the system performance, we can read the file without modifying the atime attribute of the file. You can do this by using the notime option when loading the file system. When the noatime option is used to load (mount) the file system, reading the file will not update the atime information in the file attributes. The importance of setting noatime is to eliminate the file system's write operations on the file. The file is simply read by the system. Since write operations consume more system resources than read operations, such settings can significantly improve server performance. Note that the wtime information is still valid and is updated when the file is written.
For example, if you want to set the notime option for the/home file system in your system, you can modify the corresponding lines of the/etc/fstab file as follows:
LABEL =/home ext2 noatime 1 2
 
To make the setting take effect immediately, run the command "# mount-oremount/home ". In this way, the atime attribute will not be modified when the system reads files in/home.
 

Related Article

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.