SlideShare a Scribd company logo
1 of 17
ext4 即将到来的新特性— bigalloc Robin Dong <sanbai@taobao.com>
ext4硬盘布局 Image from: http://learn.akae.cn/media/ch29s02.html
ext4向后兼容ext2的文件布局 Image from: http://e2fsprogs.sourceforge.net/ext2intro.html
ext4 ,[object Object]
支持更大的文件系统
最大文件大小: 16TB
最大文件系统: 1EB(1048576TB)
ext4: extent Image from: http://www.ibm.com/developerworks/cn/linux/l-cn-filesrc5/
ext4: extent ,[object Object]
比如: 一个ext3下300G 的文件需要占用300MB 的硬盘空间做元数据, 但是 ext4 只需要占36KB 的元数据空间
ext4: flex_bg ,[object Object]
优点: 合并 Group 1,Group 2,Group 3 的空闲空间(尤其针对ext4的 extent )
ext4: flex_bg
为何“连续磁盘空间”这么重要? ,[object Object]
间断写入(每64K中间隔开64K):26s
间断且倒序:36s
为何需要超过4K的block(或称cluster)? ,[object Object]

More Related Content

What's hot

鏡像檔案系統 Mirror File System : MFS
鏡像檔案系統 Mirror File System : MFS鏡像檔案系統 Mirror File System : MFS
鏡像檔案系統 Mirror File System : MFSMark Ting
 
20030623 linuxbasic and-security
20030623 linuxbasic and-security20030623 linuxbasic and-security
20030623 linuxbasic and-security建融 黃
 
云存储系统设计
云存储系统设计云存储系统设计
云存储系统设计drewz lin
 
4, files & folders
4, files & folders4, files & folders
4, files & foldersted-xu
 
论Linux作为开发机的可能
论Linux作为开发机的可能论Linux作为开发机的可能
论Linux作为开发机的可能peigen
 
Ubuntu v.s. Windows 由自由軟體重新出發
Ubuntu v.s. Windows 由自由軟體重新出發Ubuntu v.s. Windows 由自由軟體重新出發
Ubuntu v.s. Windows 由自由軟體重新出發Kang-Min Wang
 
網路組-Ubuntu介紹
網路組-Ubuntu介紹網路組-Ubuntu介紹
網路組-Ubuntu介紹maryqute520
 
64位安装包和升级包
64位安装包和升级包64位安装包和升级包
64位安装包和升级包liangsuilong
 
[精华回顾]讲座:How To Install Linux
[精华回顾]讲座:How To Install Linux[精华回顾]讲座:How To Install Linux
[精华回顾]讲座:How To Install LinuxNJU OPEN
 
Introduction to FreeBSD commands
Introduction to FreeBSD commandsIntroduction to FreeBSD commands
Introduction to FreeBSD commands郁凱 黃
 
实习报告
实习报告实习报告
实习报告PengFan
 
Ch2 unix introduction(2013 ncu-nos_nm)
Ch2   unix introduction(2013 ncu-nos_nm)Ch2   unix introduction(2013 ncu-nos_nm)
Ch2 unix introduction(2013 ncu-nos_nm)Kir Chou
 
Linux安全配置终极指南
Linux安全配置终极指南Linux安全配置终极指南
Linux安全配置终极指南wensheng wei
 
ch9-pv1-the-extended-filesystem-family
ch9-pv1-the-extended-filesystem-familych9-pv1-the-extended-filesystem-family
ch9-pv1-the-extended-filesystem-familyyushiang fu
 

What's hot (15)

鏡像檔案系統 Mirror File System : MFS
鏡像檔案系統 Mirror File System : MFS鏡像檔案系統 Mirror File System : MFS
鏡像檔案系統 Mirror File System : MFS
 
20030623 linuxbasic and-security
20030623 linuxbasic and-security20030623 linuxbasic and-security
20030623 linuxbasic and-security
 
Cpu
CpuCpu
Cpu
 
云存储系统设计
云存储系统设计云存储系统设计
云存储系统设计
 
4, files & folders
4, files & folders4, files & folders
4, files & folders
 
论Linux作为开发机的可能
论Linux作为开发机的可能论Linux作为开发机的可能
论Linux作为开发机的可能
 
Ubuntu v.s. Windows 由自由軟體重新出發
Ubuntu v.s. Windows 由自由軟體重新出發Ubuntu v.s. Windows 由自由軟體重新出發
Ubuntu v.s. Windows 由自由軟體重新出發
 
網路組-Ubuntu介紹
網路組-Ubuntu介紹網路組-Ubuntu介紹
網路組-Ubuntu介紹
 
64位安装包和升级包
64位安装包和升级包64位安装包和升级包
64位安装包和升级包
 
[精华回顾]讲座:How To Install Linux
[精华回顾]讲座:How To Install Linux[精华回顾]讲座:How To Install Linux
[精华回顾]讲座:How To Install Linux
 
Introduction to FreeBSD commands
Introduction to FreeBSD commandsIntroduction to FreeBSD commands
Introduction to FreeBSD commands
 
实习报告
实习报告实习报告
实习报告
 
Ch2 unix introduction(2013 ncu-nos_nm)
Ch2   unix introduction(2013 ncu-nos_nm)Ch2   unix introduction(2013 ncu-nos_nm)
Ch2 unix introduction(2013 ncu-nos_nm)
 
Linux安全配置终极指南
Linux安全配置终极指南Linux安全配置终极指南
Linux安全配置终极指南
 
ch9-pv1-the-extended-filesystem-family
ch9-pv1-the-extended-filesystem-familych9-pv1-the-extended-filesystem-family
ch9-pv1-the-extended-filesystem-family
 

More from Hao(Robin) Dong

flashcache原理及改造
flashcache原理及改造flashcache原理及改造
flashcache原理及改造Hao(Robin) Dong
 
ext2-110628041727-phpapp02
ext2-110628041727-phpapp02ext2-110628041727-phpapp02
ext2-110628041727-phpapp02Hao(Robin) Dong
 
Ext4 Bigalloc report public
Ext4 Bigalloc report publicExt4 Bigalloc report public
Ext4 Bigalloc report publicHao(Robin) Dong
 
Kernel在多核机器上的负载均衡机制
Kernel在多核机器上的负载均衡机制Kernel在多核机器上的负载均衡机制
Kernel在多核机器上的负载均衡机制Hao(Robin) Dong
 
Linux下Poll和Epoll内核源码剖析
Linux下Poll和Epoll内核源码剖析Linux下Poll和Epoll内核源码剖析
Linux下Poll和Epoll内核源码剖析Hao(Robin) Dong
 

More from Hao(Robin) Dong (8)

Transformer and BERT
Transformer and BERTTransformer and BERT
Transformer and BERT
 
Google TPU
Google TPUGoogle TPU
Google TPU
 
flashcache原理及改造
flashcache原理及改造flashcache原理及改造
flashcache原理及改造
 
ext2-110628041727-phpapp02
ext2-110628041727-phpapp02ext2-110628041727-phpapp02
ext2-110628041727-phpapp02
 
Ext4 Bigalloc report public
Ext4 Bigalloc report publicExt4 Bigalloc report public
Ext4 Bigalloc report public
 
why we need ext4
why we need ext4why we need ext4
why we need ext4
 
Kernel在多核机器上的负载均衡机制
Kernel在多核机器上的负载均衡机制Kernel在多核机器上的负载均衡机制
Kernel在多核机器上的负载均衡机制
 
Linux下Poll和Epoll内核源码剖析
Linux下Poll和Epoll内核源码剖析Linux下Poll和Epoll内核源码剖析
Linux下Poll和Epoll内核源码剖析
 

Ext4 new feature - bigalloc