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).