Turn off the CentOS write disk feature

Source: Internet
Author: User

A Linux file has a default of 3 time.
Atime: The access time for this file.

CTime: The time when the inode for this file has changed.

Mtime: The modified time of this file.

If you have multiple small files (such as multiple small images on a Web server page), there is usually no need to log the file's access time, which reduces the I/O to the write disk. How do you configure this?
First, modify the file system's configuration file: Vim/etc/fstab. Then, use both the Noatime and Nodiratime commands in a partition that contains a large number of small files.
For example:/dev/sda5/data/pics ext3 noatime,nodiratime 0 0 so the file is accessed and no more I/O is generated for the write disk.

Turn off the CentOS write disk feature

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.