| 1 |
|
| 2 |
mke2fs time speedup |
| 3 |
=================== |
| 4 |
2009-05-01 |
| 5 |
Junichi Uekawa |
| 6 |
|
| 7 |
|
| 8 |
Background |
| 9 |
========== |
| 10 |
|
| 11 |
dd / mke2fs sequence takes around 7 seconds on my system (core2duo |
| 12 |
macbook). This is ran every time for create / update and build, which |
| 13 |
means it can be optimized. There are other parts, like kernel booting |
| 14 |
time and apt install time and dpkg configuration time that are taking |
| 15 |
majority of time (e.g. 2 minutes), and they will need to be looked at |
| 16 |
for individual cases, but this looks like a clear win on all cases. |
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
Plan |
| 21 |
==== |
| 22 |
|
| 23 |
create_ext3_block_device currently creates a sparse file, and then |
| 24 |
runs mke2fs and tune2fs on the resulting file. This can be modified |
| 25 |
so that a ext3 block device creater will create an empty file for the |
| 26 |
first time, and then reusing it with a copy. |
| 27 |
|
| 28 |
Initial measurement |
| 29 |
=================== |
| 30 |
|
| 31 |
*TODO* Say that copying a 10G sparse file is faster than rerunning mke2fs |
| 32 |
|
| 33 |
|
| 34 |
Final measurement |
| 35 |
================= |
| 36 |
|
| 37 |
*TODO* Actual results |
| 38 |
|