V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
V69EX
V2EX  ›  Linux

怪事, ext2 确实要比 ext4 消耗更多 cpu 资源。。。。

  •  
  •   V69EX · Dec 12, 2015 · 4646 views
    This topic created in 3795 days ago, the information mentioned may be changed or developed.

    EXT4-fs (mmcblk0p1): mounting ext2 file system using the ext4 subsystem

    现在新版本的 linux 内核, ext2/3/4 文件系统都是通过 ext4 模块来支持的,我原以为不会有啥性能区别,因为是可移除的 sd 卡,我觉得最好不用日志型文件系统,所以才格式化为 ext2 ,没想到几番测试下来,明显 ext2 占用更多 cpu 时间,而且是 sys ,不是 usr 。

    3 replies    2015-12-13 16:20:16 +08:00
    tinkerer
        1
    tinkerer  
       Dec 13, 2015 via iPhone
    🐴 ext4 关日志,你值得拥有
    tempdban
        2
    tempdban  
       Dec 13, 2015 via Android
    f2fs 啊这还犹豫啥
    msg7086
        3
    msg7086  
       Dec 13, 2015
    因为 ext4 本身有优化。特别是大文件,优化太多了。
    用 ext2 的话连 extent 都没有,吃资源多不算太奇怪。
    去掉日志可以参考这篇帖子 http://fenidik.blogspot.com/2010/03/ext4-disable-journal.html

    mkfs.ext4 -O ^has_journal /dev/sda10 格式化
    或者
    tune2fs -O ^has_journal /dev/sda10 修改现有 FS
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2365 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 15:36 · PVG 23:36 · LAX 08:36 · JFK 11:36
    ♥ Do have faith in what you're doing.