|
本帖最后由 Yong Huang 于 2013-2-19 12:23 编辑
> 那是针对特定的OS的。最典型的是AIX,任何磁盘设备,不论hdisk/pv/lv都有两个设备文件,一个是字符设备,一个是块设备。
> 在AIX上面,后者是会通过fs cache的,因此要用裸设备需要用字符设备来作为datafile
wolfop,
You may be right about this, and what you say seems to be the same as what the books I have said. Suppose on AIX, you run "dd if=" passing the block device path to if=, will the page cache (filesystem cache) be used? I don't have access to any OS other than Linux. Can you test? Just run dd if=/dev/<block device interface> count=100000 of=/dev/null and check page cache size before and after (not sure what command to use, maybe topas, if not, vmstat has memory -> cache I think). |
|