I did some time runs to see where I am.
Maybe first some little notes about the outlay. Having a debian system with xen running. I have a 500Gb hd that has one big partition and several small ones with 9.2GB of space. Those 9.2GB patitions get filled with a customised debbootstrap image in a directory. We are talking 330 MB per image.
Here are the testruns.
Creating filesystem:
Code:
Machine:/home/user/xend# time mke2fs /dev/sdb15 -q
real 0m13.095s
user 0m0.008s
sys 0m0.348s
Deleting the 330MB:
Code:
Machine:/media/cdrom# time rm ./* -rf
real 0m0.269s
user 0m0.024s
sys 0m0.212s
So the quick maths would be that a 10GB partition would be deleted faster then recreating the filesystem.
0.3s = 300 MB
1s ~ 1GB
13 secs for creating the filesystem means 13GB of data to be deleted. Right know I'm creating a 10GB random file to see how the delete rate develops.
I just bloged the script I'm using here:
http://www.linuxquestions.org/blog/z...xen-domu-2590/
@AwesomeMachine
Little typo you got there its an uppercase F to create it in anymeans.
Also this is not a problem. mke2fs is happy to just create a new one over an existing.
Thanks for your inputs. I'll post back as soon as the random file is done.