-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2013-10-20 at 02:00 +0200, Carlos E. R. wrote:
On Friday, 2013-10-18 at 16:39 +0200, Jan Engelhardt wrote:
On Friday 2013-10-18 16:27, Lew Wolfgang wrote:
1. No more reiserfs! The package is still there.
If you can't select it there, what are your options if you want your system partitions to be reiserfs?
Why would *anyone* want to still use reiser3? There are, arguably, better choices available in this decade.
Really?
What filesystem is better for a million small files?
Ok, I have tested this myself, on reiserfs, ext4, btrfs, and xfs. I attempted to create 1 million files on a 2 GiB partition of those types. I use this code: ERROR=0 time for i in `seq -w 1 100`; do if [ $ERROR -ne 0 ]; then break fi echo $i for j in `seq -w 1 100`; do if [ $ERROR -ne 0 ]; then break fi for k in `seq -w 1 100`; do cp $SAMPLE $WHERE/TT-$i-$j-$k if [ $? -gt 0 ]; then echo "Copy error on TT-$i-$j-$k, abort" ERROR=1 break fi done done done The 'sample' file is 100B size, with random content, and the test is run on a virtual machine (vmplayer) with 13.1 RC1 These were the results: time (real/user/sys) number used free of files space space reiserfs 62m32s/ 11m24s/ 35m27s 1000000 286M 1,8G ext4 8m14s/1m28/4m41s 141736 541M 1,3G (fails) xfs 30m19s/ 5m25/ 17m7 488254 2,0G 104K btrfs can not test (1) ext4 aborts the test because inodes are spent too soon. xfs aborts because of lack of space, despite the fact that the files occupy just 100 MB, in theory. The rest is metadata, I assume. I can not test btrfs because I ran the test once previously, and despite deleting the files, they must be still there somewhere: Eleanor4:~ # df -h /data/btrfs/ Filesystem Size Used Avail Use% Mounted on /dev/sdb7 2,0G 264K 7,9M 4% /data/btrfs Eleanor4:~ # There is only 7.9 MB available. But the directories are empty, and there are no hidden files. yast-snapper says there is no configuration and exits. The partition is thus unusable. Besides reformatting it, I don't know what to do with it. Thus, so far only Reiserfs passes the test. *** raw data *** - --- reiserfs: 100 real 62m32.182s user 11m24.198s sys 35m27.802s 4,7G /data/reiserfs/test Filesystem Size Used Avail Use% Mounted on /dev/sdb6 2,0G 286M 1,8G 14% /data/reiserfs cer@Eleanor4:~> - --- ext4: Copy error on TT-014-017-036, abort real 8m14.710s user 1m28.186s sys 4m41.063s 519M /data/ext4/test Filesystem Size Used Avail Use% Mounted on /dev/sdb9 2,0G 541M 1,3G 30% /data/ext4 cer@Eleanor4:~> - --- xfs 047 048 cp: cannot create regular file ‘/data/xfs/test/TT-048-082-054’: No space left on device Copy error on TT-048-082-054, abort real 30m19.953s user 5m25.073s sys 17m7.339s 1,9G /data/xfs/test Filesystem Size Used Avail Use% Mounted on /dev/sda8 2,0G 2,0G 104K 100% /data/xfs cer@Eleanor4:~> - -- Cheers, Carlos E. R. (from 12.3 x86_64 "Dartmouth" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlJkL1wACgkQtTMYHG2NR9VQAgCfZLpQRtdsADT+fXD9AVTuXe91 qGoAn0+182zYSVDWSFsyQA+Hns5fEYdD =bF3M -----END PGP SIGNATURE-----