Full resolution of/etc/fstab configuration parameters

Source: Internet
Author: User
In/etc/fstab, set parameters for the ext4 format file system. # Vi/etc/fstabLABEL // ext4extents, mballoc, delalloc, barrier1, datawriteback, noatime, nodiratime, acl, user_xattr11 parameter description: extents: continuous physical block allocation, maximum availability

In/etc/fstab, set parameters for the ext4 format file system.
# Vi/etc/fstab
LABEL = // ext4 extents, mballoc, delalloc, barrier = 1, data = writeback, noatime, nodiratime, acl, user_xattr 1 1
 

Parameter description:
Extents: continuous physical block allocation, which can be up to MB of continuous blocks, can increase the performance of large files and reduce fragments.
Noextents: Do not use extents.
Mballoc: multiple blocks are allocated at the same time, which can reduce the number of block allocations. This requires that the file system's delayed allocation be enabled.
Nomballoc: mballoc is not required.
Delalloc: latency allocation, which can be used with mballoc.
Nodelalloc: Do not use delalloc.
Barrier = 1: ext4 is enabled by default, ext3 is disabled by default, 0 is disabled, and 1 is enabled.
Data = journal: ext3 is available, which is not described here.
Data = ordered: ext3 is available, which is not described here.
Data = writeback: ext3 is available, which is not described here.
Atime: ext3. Save the access time. it is used by default.
Noatime: ext3 does not need to be atime.
Diratime: ext3. Save the directory access time.
Nodiratime: ext3 does not need diratime.
Commit = nrsec: ext3 is available, and data and metadata are synchronized to the hard disk in seconds.
Orlov: ext3 is available. it is enabled by default.
Oldalloc: ext3 is available. it uses the old allocation method instead of orlov allocation, and the performance will be poor.
User_xattr: ext3 is available, and user attributes are extended. The kernel must support CONFIG_EXT3_FS_XATTR. The ext4 kernel must support this function.
Nouser_xattr: ext3 does not need user_xattr.
Acl: ext3 is available. use the access control list. The kernel must support CONFIG_EXT3_FS_POSIX_ACL. ext4 kernel must support this function.
Noacl: ext3 does not need noacl.
Bsddf: ext3, like the df command of bsd.
Minixdf: ext3, like the df command of Minix.
Bh: ext3 is available. buffer heads can be used to cache block ing information and provide sequence assurance.
Nobh: ext3 is available, and nobh is not required.
Journal_dev = devnum: ext3. set the master/slave device number of the journal device.
 
In the case of ext4, in addition to the ULTS method,
You can use extents, mballoc, delalloc, barrier = 1, data = writeback, noatime, nodiratime, acl, user_xattr to improve hard disk performance and security.
 

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.