Disable Centos disk write function

Source: Internet
Author: User

Disable Centos disk write function

A Linux file has three times by default.

  • Atime: the access time to this file.

  • Ctime: the time when inode of this file changes.

  • Mtime: the time when the file was modified.

If there are multiple small files (for example, there are multiple small images on the Web server page), there is usually no need to record the file access time, which can reduce disk write I/O. How should we configure this?

First, modify the file system configuration file vim/etc/fstab. Then, use the noatime and nodiratime commands in the partitions that contain a large number of small files.

For example, when files such as/dev/sda5/data/pics ext3 noatime and nodiratime 0 0 are accessed, no disk I/O will be generated.

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.