How to view the Linux file system block size implementation _linux

Source: Internet
Author: User
Tags reserved cpu usage

On Linux systems, you can use command TUNE2FS to test the following

[Root@localhost test10g]# tune2fs-help tune2fs 1.35 (28-feb-2004) tune2fs:invalid option--H usage:tune2fs [-C Max-mo Unts-count] [e-errors-behavior] [G Group] [-I interval[d|m|w]] [-j] [-j journal-options] [-l] [-s sparse-flag] [ -M reserved-blocks-percent] [-O [^]mount-options[,...]]
    [R Reserved-blocks-count] [-u user] [-C Mount-count] [-L Volume-label]
    [M Last-mounted-dir] [-O [^]feature[,...]] [-T Last-check-time] [-u UUID] device [root@localhost test10g]# DF filesystem 1k-blocks Used Available use% mounted On/dev/sda2 8 776068 7576504 753764 91% /
/dev/sda1 497829 16303 455824 4% /boot
none 517300 0 517300 0% /de V/shm/dev/sda5 1035660 96452 886600 10%/tmp [root@localhost test10g]# tune2fs-l/dev/sda1|grep block block cou nt:514048 block size:1024 Blocks/group:8192 [root@localhost test10g]# tune2fs-l/dev/sda2|g Rep block blocks count:2229018 block size:4096 BlOcks per group:32768
 

The block size above is the blocks.

On a Windows system, you can use the command fsutil to view the following tests:

C:\Documents and Settings\ct2>fsutil--help
--HELP is an invalid parameter.
Commands that----support----

Behavior    Control file system behavior
dirty the      corrupted bits of the management volume file      file-specific commands
fsinfo     filesystem information
Hardlink    Hard link Management
objectid    Object ID Management
quota      Quota Administration
reparsepoint  re-analysis point management
sparse     sparse file control
USN       USN Management
Volume     volume management

C:\Documents and Settings\ct2>fsutil fsinfo ntfsinfo C:

NTFS Volume serial number:    0x72ccb5f2ccb5b129
version:             3.1
area number:         0x0000000008ff8235
cluster total:         0x00000000011ff046
Available clusters:         0x0000000000547b73
total reserved:         0x0000000000000050
per sector bytes:
4096 bytes per cluster
bytes per filerecord segment:  1024
per Filerecord segment: 0
MFT Valid data length:      0x0000000009cac000
MFT Start L CN:         0x00000000000c4df6
Mft2 start Lcn:         0x00000000008ff823
Mft zone start:         0x0000000001067920
Mft Zone End  :         0x000000000108ce60

The number of cluster bytes above is both block size.

Note: The second extended file system (second Extended filesystem,ext2). EXT3 (third Extended filesystem)

Man FS ext2 are the high  performance disk filesystem used by Linux for fixed disks as as a  removable Media.  The second extended filesystem is designed as an extension of the
       extended file
       System (EXT).  EXT2 offers the best performance (in terms of speed and CPU usage) of the filesystems supported under
       Linux.
    Ext3 is  a journaling version of the ext2 filesystem. It is easy to
       switch back and forth between ext2 and ext3.
    Ext3 is  a journaling version of the ext2 filesystem Ext3 offers the most
       complete set of journaling />available  among
       journaling filesystems.

The above is small series for everyone to see the Linux file system block size of the implementation of the whole content, I hope that we support cloud Habitat Community ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.