简体   繁体   English

块大小的大小限制

[英]size restriction of block size

As per the wiki entry for Ext2,"In Linux the block size is limited by the architecture page size." 按照Ext2的Wiki条目,“在Linux中,块大小受体系结构页面大小的限制”。

I think the restriction is due the fact in a typical file system(say ext2) data is handled in terms of pages and hence it gives more performance to use architecture page size. 我认为这种限制是由于典型文件系统(例如ext2)中的数据是按页面进行处理的,因此使用体系结构页面大小可提供更高的性能。

My question is : Can you point me where exactly this restriction is implemented ? 我的问题是:您能否指出这一限制在哪里实施? So I won't be able to format lesser than page size(typically 4k) ? 因此,我将无法格式化小于页面大小(通常为4k)的格式?

Thanks 谢谢

The limit on ext2 block size with respect to page size is an upper bound; ext2块大小相对于页面大小的限制是一个上限; ext2 blocks may be 1024, 2048, or 4096 bytes on an architecture with 4k pages. 在具有4k页的体系结构中,ext2块可以是1024、2048或4096字节。 On architectures such as Alpha that have 8k pages, a block size of 8192 bytes would be valid, but such filesystems would not be usable on systems with a smaller page size. 在具有8k页的架构(例如Alpha)上,8192字节的块大小将是有效的,但是在具有较小页面大小的系统上将无法使用此类文件系统。

See Documentation/filesystems/ext2.txt in the Linux kernel source for more information. 有关更多信息,请参见Linux内核源代码中的Documentation / filesystems / ext2.txt。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM