- 最后登录
- 2013-11-14
- 在线时间
- 104 小时
- 威望
- 999
- 金钱
- 271
- 注册时间
- 2013-1-9
- 阅读权限
- 70
- 帖子
- 63
- 精华
- 0
- 积分
- 999
- UID
- 855
|
4#
发表于 2013-2-17 22:37:16
本帖最后由 Stone 于 2013-2-17 22:38 编辑
我的理解是Linux OS的 Filesystem的blocksize,这个在创建文件系统时确定。感觉IO block容易误解 :)
具体怎么查,补充一下:
http://www.planetmy.com/blog/how-to-check-filesystem-block-size-on-linux/- How to Check Filesystem Block Size on Linux?
- Example 1:
- # tune2fs -l /dev/sda1 | grep -i ‘block size’
- Block size: 4096
- Example 2:
- # dumpe2fs -h /dev/sda1 |grep “Block size:”
- Block size: 4096
- Example 3:
- # blockdev –getbsz /dev/sda1
- 4096
- Example 4:
- # echo “abc” >test.txt
- # du -h test.txt
- 4.0K test
复制代码 下面关于Raw Device的查询来自于wordpress blog,国内好像访问不了,所以粘了过来 。。。- Size of a Raw Device – Solaris/Unix/Linux
- “devinfo” can be used to determine the size of a raw device in solaris, unix operating systems.
- For example,
- > devinfo -i /dev/rdsk/c7t600A0B800029C7F40000087846354FAAd0s0
- /dev/rdsk/c7t600A0B800029C7F40000087846354FAAd0s0 0 0 16384 512 2
- (512 is block size in bytes)
- > devinfo -p /dev/rdsk/c7t600A0B800029C7F40000087846354FAAd0s0
- /dev/rdsk/c7t600A0B800029C7F40000087846354FAAd0s0 76 8 16384 996229120 0 0
- (996229120 is no of blocks)
-
- So,
- 996229120 * 512 =510069309440 Bytes
- 510069309440/(1024*1024) = 486440 MBytes
复制代码 |
-
总评分: 威望 + 8
查看全部评分
|