open的O_DIRECT选项



http://blog.chinaunix.net/uid-223060-id-2127385.html


http://blog.csdn.net/hhtang/article/details/6605951


查看磁盘分区:

#df -h

#tune2fs -l /dev/mapper/VolGroup-lv_root

或者

#dumpe2fs /dev/mapper/VolGroup-lv_root|grep -i "block size"


#man  open
O_DIRECT (Since Linux 2.4.10)
              Try  to  minimize cache effects of the I/O to and from this file.  In general this will degrade performance, but it is useful in special
              situations, such as when applications do their own caching.  File I/O is done directly to/from user space  buffers.   The  I/O  is  syn-
              chronous, that is, at the completion of a read(2) or write(2), data is guaranteed to have been transferred.  See NOTES below for further
              discussion.

              A semantically similar (but deprecated) interface for block devices is described in raw(8).


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值