Does EXT4 support asynchronous I/O or direct I/O?

219 篇文章 2 订阅

https://access.redhat.com/solutions/322213

 SOLUTION UNVERIFIED - 已更新 2014年七月31日02:42 - 

English 

环境

  • Red Hat Enterprise Linux 6
  • EXT4 Filesystem

问题

  • Does EXT4 support asynchronous I/O or direct I/O?
  • If EXT4 supports these features, how are they used?

决议

  • EXT4 file system supports both the asynchronous I/O and the Direct I/O features.

  • By default, asynchronous I/O is enabled.

  • If Direct I/O is needed, the application should use the O_DIRECT flag while doing the 'open()' system call.

  • If Direct I/O has to be used with an existing EXT4 filesystem, the 'sync' mount option should be used both while mounting manually, and when mounting via the /etc/fstab file for boot time activation.

NOTE: If both Direct I/O (DIO) and the 'sync' options are used, file performance will be decreased because the file system will over-ride the use of the kernel page cache. This increases the I/O calls to the underlying disk, which is hundreds of times slower than accessing data via the primary L1-L2 caches. It is best to understand the consequences/drawbacks of DIO prior to implementing it.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值