今天看Oracle's db_block_size时,发现操作系统也有 block size,于是整理了一下几个可以接触的系统的block size 查看方法:
AIX :
查看AIX操作系统 每个block size 大小:
[ocrma:/#]lsfs -q /dev/arch_a
Name Nodename Mount Pt VFS Size Options Auto Accounting
/dev/arch_a -- /arch_a jfs2 120586240 rw no no
(lv size: 120586240, fs size: 120586240, block size: 4096, sparse files: yes, inline log: no, inline log size: 0, reserved: 0, reserved: 0, DMAPI: no)
Windows :
C:\Documents and Settings\wasd>fsutil fsinfo ntfsinfo c:
NTFS 卷序列号 : 0x4c1096d01096bffe
版本 : 3.1
区数量 : 0x0000000001388afb
簇总数 : 0x000000000027115f
可用簇 : 0x00000000000c45e0
保留总数 : 0x0000000000000040
每个扇区字节数 : 512
每个簇字节数 : 4096
每个 FileRecord 段的字节数 : 1024
每个 FileRecord 段的簇数 : 0
Mft 有效数据长度 : 0x000000000254c000
Mft 起始 Lcn : 0x00000000000c0000
Mft2 起始 Lcn : 0x00000000001388af
Mft 区域起始 : 0x00000000000c2540
Mft 区域结尾 : 0x00000000000cd100
Linux :
[root@web1 root]#
[root@web1 root]# tune2fs -l /dev/sdd1
tune2fs 1.32 (09-Nov-2002)
Filesystem volume name: /u3
Last mounted on:
Filesystem UUID: fb068839-f2a2-44b1-b114-4b3ddef468d6
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal filetype needs_recovery sparse_super large_file
Default mount options: (none)
Filesystem state: clean
Errors behavior.: Continue
Filesystem OS type: Linux
Inode count: 8962048
Block count: 17920499
Reserved block count: 896024
Free blocks: 17631055
Free inodes: 8962036
First block: 0
Block size: 4096
Fragment size: 4096
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 16384
Inode blocks per group: 512
Filesystem created: Tue May 22 07:07:29 2007
Last mount time: Sun Aug 31 03:33:37 2008
Last write time: Sun Aug 31 03:33:37 2008
Mount count: 14
Maximum mount count: -1
Last checked: Tue May 22 07:07:29 2007
Check interval: 0 ()
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 128
Journal UUID:
Journal inode: 8
Journal device: 0x0000
First orphan inode: 0
=== The End =====
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9719235/viewspace-578175/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/9719235/viewspace-578175/