reiser fs slow on mksf and mount
Hi, folks
I am not sure if this is normal or not.
I try to create&use a reiserfs on a 8 disk raid0. Then I found that mkfs need ~90 sec and mount need ~70 seconds.
Is there anything wrong on my side?
Thanks!
Ming
Detailed info followed.
---------------------------------------------------------------------
[root@bakstor2u root]# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] [faulty]
md0 : active raid0 sda[0] sdh[7] sdg[6] sdf[5] sde[4] sdd[3] sdc[2] sdb
[1]
3125690368 blocks 64k chunks
unused devices: <none>
[root@bakstor2u root]# time mkfs.reiserfs /dev/md0 -ff mkfs.reiserfs 3.6.13 (2003 www.namesys.com)
<...>
Guessing about desired format.. Kernel 2.6.11.12 is running. Format 3.6 with standard journal
Count of blocks on the device: 781422592
Number of blocks consumed by mkreiserfs formatting process: 32059
Blocksize: 4096
Hash function used to sort names: "r5"
Journal Size 8193 blocks (first block 18)
Journal Max transaction length 1024
inode generation number: 0
UUID: 98d990f3-d54f-43e3-9fde-8c9c9a6d3481
Initializing journal - 0%....20%....40%....60%....80%....100% Syncing..ok
Tell your friends to use a kernel based on 2.4.18 or later, and especially not a
kernel based on 2.4.9, when you use reiserFS. Have fun.
ReiserFS is successfully created on /dev/md0.
real 1m28.783s user 0m0.151s sys 0m0.398s
[root@bakstor2u root]# time mount /dev/md0 t
real 1m11.448s user 0m0.000s sys 0m0.225s
Hello
Quoted 9 lines · Ming Zhang
Hi, folks
I am not sure if this is normal or not.
I try to create&use a reiserfs on a 8 disk raid0. Then I found that mkfs need ~90 sec and mount need ~70 seconds.
Is there anything wrong on my side?
Your device is too big.
Quoted 40 lines
Thanks!
Ming
Detailed info followed.
---------------------------------------------------------------------
[root@bakstor2u root]# cat/proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] [faulty]
md0 : active raid0 sda[0] sdh[7] sdg[6] sdf[5] sde[4] sdd[3] sdc[2] sdb
[1]3125690368 blocks 64k chunksunused devices: <none>
[root@bakstor2u root]# time mkfs.reiserfs
/dev/md0-ff mkfs.reiserfs 3.6.13 (2003 www.namesys.com)<...>
Guessing about desired format.. Kernel 2.6.11.12 is running. Format 3.6 with standard journal
Count of blocks on the device: 781422592
Number of blocks consumed by mkreiserfs formatting process: 32059
Blocksize: 4096
Hash function used to sort names: "r5"
Journal Size 8193 blocks (first block 18)
Journal Max transaction length 1024
inode generation number: 0
UUID: 98d990f3-d54f-43e3-9fde-8c9c9a6d3481
Initializing journal - 0%....20%....40%....60%....80%....100% Syncing..okTell your friends to use a kernel based on 2.4.18 or later, and especially not a
kernel based on 2.4.9, when you use reiserFS. Have fun.
Quoted 6 lines
ReiserFS is successfully created on
/dev/md0.real 1m28.783s user 0m0.151s sys 0m0.398s
Hmm, mkfs.reiserfs had to write 32059 blocks. It is about 131mb. 1m28s is too much for that. Could it be that some of disks used in that raid were not spinning when you started mkreiserfs?
Quoted 6 lines
[root@bakstor2u root]# time mount
/dev/md0treal 1m11.448s user 0m0.000s sys 0m0.225s
There is a patch to cure this problem.
http://www.mail-archive.com/[email protected]/msg18442.html
Please note that it is experimental one.
Quoted 3 lines
i think 3.2TB partition is not that big these days right?
i would think some people that hold millions of files will have much larger partition than this.
so you think this is a normal speed for such size partition?
also iostat 1 -k shows that during mount, there are small size read happen each second. so this is because read meta data and metadata is not continuous on disk?
ming
Quoted 80 lines · Vladimir V. Saveliev
Hello
Quoted 9 lines · Ming Zhang
Hi, folks
I am not sure if this is normal or not.
I try to create&use a reiserfs on a 8 disk raid0. Then I found that mkfs need ~90 sec and mount need ~70 seconds.
Is there anything wrong on my side?
Your device is too big.
Quoted 40 lines
Thanks!
Ming
Detailed info followed.
---------------------------------------------------------------------
[root@bakstor2u root]# cat/proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] [faulty]
md0 : active raid0 sda[0] sdh[7] sdg[6] sdf[5] sde[4] sdd[3] sdc[2] sdb
[1]3125690368 blocks 64k chunksunused devices: <none>
[root@bakstor2u root]# time mkfs.reiserfs
/dev/md0-ff mkfs.reiserfs 3.6.13 (2003 www.namesys.com)<...>
Guessing about desired format.. Kernel 2.6.11.12 is running. Format 3.6 with standard journal
Count of blocks on the device: 781422592
Number of blocks consumed by mkreiserfs formatting process: 32059
Blocksize: 4096
Hash function used to sort names: "r5"
Journal Size 8193 blocks (first block 18)
Journal Max transaction length 1024
inode generation number: 0
UUID: 98d990f3-d54f-43e3-9fde-8c9c9a6d3481
Initializing journal - 0%....20%....40%....60%....80%....100% Syncing..okTell your friends to use a kernel based on 2.4.18 or later, and especially not a
kernel based on 2.4.9, when you use reiserFS. Have fun.Quoted 6 lines
ReiserFS is successfully created on
/dev/md0.real 1m28.783s user 0m0.151s sys 0m0.398sHmm, mkfs.reiserfs had to write 32059 blocks. It is about 131mb. 1m28s is too much for that. Could it be that some of disks used in that raid were not spinning when you started mkreiserfs?
Quoted 6 lines
[root@bakstor2u root]# time mount
/dev/md0treal 1m11.448s user 0m0.000s sys 0m0.225sThere is a patch to cure this problem.
http://www.mail-archive.com/[email protected]/msg18442.html
Please note that it is experimental one.Quoted 3 lines
forget to mention that original mount is immediately after mkfs. so no files in fs at all.
now i create 1048576 4KB files
then umount and remount
[root@bakstor2u root]# time mount /dev/md0 t
real 1m10.971s user 0m0.001s sys 0m0.188s
almost same as first one.
this is from dmesg
ReiserFS: md0: found reiserfs format "3.6" with standard journal
ReiserFS: md0: using ordered data mode
ReiserFS: md0: journal params: device md0, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
ReiserFS: md0: checking transaction log (md0)
ReiserFS: md0: Using r5 hash to sort names
so i could not understand why mount a fs with 0 files is same time with mount a fs with 1M files.
Thanks!
Ming
Quoted 96 lines · Ming Zhang
i think 3.2TB partition is not that big these days right?
i would think some people that hold millions of files will have much larger partition than this.
so you think this is a normal speed for such size partition?
also iostat 1 -k shows that during mount, there are small size read happen each second. so this is because read meta data and metadata is not continuous on disk?
ming
Quoted 80 lines · Vladimir V. Saveliev
Hello
Quoted 9 lines · Ming Zhang
Hi, folks
I am not sure if this is normal or not.
I try to create&use a reiserfs on a 8 disk raid0. Then I found that mkfs need ~90 sec and mount need ~70 seconds.
Is there anything wrong on my side?
Your device is too big.
Quoted 40 lines
Thanks!
Ming
Detailed info followed.
---------------------------------------------------------------------
[root@bakstor2u root]# cat/proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] [faulty]
md0 : active raid0 sda[0] sdh[7] sdg[6] sdf[5] sde[4] sdd[3] sdc[2] sdb
[1]3125690368 blocks 64k chunksunused devices: <none>
[root@bakstor2u root]# time mkfs.reiserfs
/dev/md0-ff mkfs.reiserfs 3.6.13 (2003 www.namesys.com)<...>
Guessing about desired format.. Kernel 2.6.11.12 is running. Format 3.6 with standard journal
Count of blocks on the device: 781422592
Number of blocks consumed by mkreiserfs formatting process: 32059
Blocksize: 4096
Hash function used to sort names: "r5"
Journal Size 8193 blocks (first block 18)
Journal Max transaction length 1024
inode generation number: 0
UUID: 98d990f3-d54f-43e3-9fde-8c9c9a6d3481
Initializing journal - 0%....20%....40%....60%....80%....100% Syncing..okTell your friends to use a kernel based on 2.4.18 or later, and especially not a
kernel based on 2.4.9, when you use reiserFS. Have fun.Quoted 6 lines
ReiserFS is successfully created on
/dev/md0.real 1m28.783s user 0m0.151s sys 0m0.398sHmm, mkfs.reiserfs had to write 32059 blocks. It is about 131mb. 1m28s is too much for that. Could it be that some of disks used in that raid were not spinning when you started mkreiserfs?
Quoted 6 lines
[root@bakstor2u root]# time mount
/dev/md0treal 1m11.448s user 0m0.000s sys 0m0.225sThere is a patch to cure this problem.
http://www.mail-archive.com/[email protected]/msg18442.html
Please note that it is experimental one.Quoted 3 lines
Hello
Quoted 29 lines · Ming Zhang
forget to mention that original mount is immediately after mkfs. so no files in fs at all.
now i create 1048576 4KB files
then umount and remount
[root@bakstor2u root]# time mount
/dev/md0treal 1m10.971s user 0m0.001s sys 0m0.188salmost same as first one.
this is from dmesg
ReiserFS: md0: found reiserfs format "3.6" with standard journal
ReiserFS: md0: using ordered data mode
ReiserFS: md0: journal params: device md0, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
ReiserFS: md0: checking transaction log (md0)
ReiserFS: md0: Using r5 hash to sort namesso i could not understand why mount a fs with 0 files is same time with mount a fs with 1M files.
Quoted 14 lines
Thanks!
Ming
Quoted 7 lines · Ming Zhang
i think 3.2TB partition is not that big these days right?
i would think some people that hold millions of files will have much larger partition than this.
so you think this is a normal speed for such size partition?
No. That was joke actually.
Speed of mkfs.reiserfs confuses me.
As you did answer about whether all disks were spinning - I suppose that they were. Can you please run vmstat 1 or iostat 1 while mkreiserfs is running?
Quoted 4 lines
Quoted 4 lines
also iostat 1 -k shows that during mount, there are small size read happen each second. so this is because read meta data and metadata is not continuous on disk?
Yes. On mount reiserfs reads all bitmap blocks to memory. Those blocks are spread over whole disk. There is workaround for this problem.
Quoted 10 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
There is a patch to cure this problem.
http://www.mail-archive.com/[email protected]/msg18442.html
Please note that it is experimental one.Quoted 2 lines
Quoted 5 lines · Vladimir V. Saveliev
Hello
Quoted 3 lines · Ming Zhang
Quoted 2 lines
i think 3.2TB partition is not that big these days right?
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
i would think some people that hold millions of files will have much larger partition than this.
so you think this is a normal speed for such size partition?
No. That was joke actually.
Speed of mkfs.reiserfs confuses me.
:) i captured vmstat 1 and iostat 1. i bet u will be confused more.
it is pretty big for email so i attached them.
Quoted 1 line
As you did answer about whether all disks were spinning - I suppose that they were.
no
Quoted 15 lines
Can you please run vmstat 1 or iostat 1 while mkreiserfs is running?
Quoted 4 lines
Quoted 4 lines
also iostat 1 -k shows that during mount, there are small size read happen each second. so this is because read meta data and metadata is not continuous on disk?
Yes. On mount reiserfs reads all bitmap blocks to memory. Those blocks are spread over whole disk. There is workaround for this problem.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
There is a patch to cure this problem.
http://www.mail-archive.com/[email protected]/msg18442.html
Please note that it is experimental one.Quoted 1 line
Does reiserfs4 have any improvement on this?
Thanks!
Ming
On Fri, 2005-08-26 at 21:32 +0400, Vladimir V. Saveliev wrote:
one more question about this bitmap blocks
are this bitmap data is pinned into system thus will not be swapped out?
Thanks!
Ming
Quoted 13 lines
Yes. On mount reiserfs reads all bitmap blocks to memory. Those blocks are spread over whole disk. There is workaround for this problem.
Quoted 10 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
There is a patch to cure this problem.
http://www.mail-archive.com/[email protected]/msg18442.html
Please note that it is experimental one.Quoted 2 lines
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 6 lines · Ming Zhang
On Fri, 2005-08-26 at 21:32 +0400, Vladimir V. Saveliev wrote:
one more question about this bitmap blocks
are this bitmap data is pinned into system thus will not be swapped out?
Yes, any buffers/pages with active reference counts are kept in memory. Since the current reiserfs bitmap implementation keeps a reference until filesystem umount, the bitmaps are pinned.
My dynamic bitmap patch fixes both of the problems you've posed so far. Mount time is reduced to O(1) time, since only the superblock and root node are read at mount time. On my system, it's something along the lines of 0.2s. Memory consumption is reduced also, because the bitmap block is released after the allocation/free that required it is complete.
It's a relatively straightforward patch - the error handling I refer to is how to handle block read failures, which would only occur if your disk is failing.
- -Jeff
- --
Jeff Mahoney
SuSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFDEL81LPWxlyuTD7IRAnHWAJ9TmL/5ziKt4ObSUR9c/MJps4HydQCfXj0s Kd4u+V+PYZQydA/YqelyJvo=
=pHCV
-----END PGP SIGNATURE-----
Quoted 12 lines · Jeff Mahoney
Quoted 6 lines · Ming Zhang
On Fri, 2005-08-26 at 21:32 +0400, Vladimir V. Saveliev wrote:
one more question about this bitmap blocks
are this bitmap data is pinned into system thus will not be swapped out?
Yes, any buffers/pages with active reference counts are kept in memory. Since the current reiserfs bitmap implementation keeps a reference until filesystem umount, the bitmaps are pinned.
Quoted 5 lines
My dynamic bitmap patch fixes both of the problems you've posed so far. Mount time is reduced to O(1) time, since only the superblock and root node are read at mount time. On my system, it's something along the lines of 0.2s. Memory consumption is reduced also, because the bitmap block is released after the allocation/free that required it is complete.
I've been reading about this patch with quite some interest. Would you say it's stable enough for daily use? I have a terabyte array that takes forever to mount, and probably uses quite a bit of memory too.
Another thing is that it can easily take several seconds to do "ls -l" on a directory with a 0-10 GB data in it. Is that normal? There's usually less than 50 files of test data, ranging in size from 200MB to 900MB. I've disabled atime updates, but that didn't help much. The controller and disks are plenty fast, so I feel something is amiss.
Signature · 2 lines
Regards, Christian Iversen
Quoted 5 lines · Christian Iversen
Quoted 1 line · Jeff Mahoney
Ming Zhang wrote:
Another thing is that it can easily take several seconds to do "ls -l" on a directory with a 0-10 GB data in it. Is that normal? There's usually less than 50 files of test data, ranging in size from 200MB to 900MB. I've disabled atime updates, but that didn't help much. The controller and disks are plenty fast, so I feel something is amiss.
Interesting, I'd always assumed this was an issue with the lazy allocation. On my box, this meant that occasionally, I'd run into a situation where some random FS operation would take 5-10 seconds, because (I assumed) it would have been the random operation that used up enough RAM that the FS decided to flush.
Quoted 7 lines · Jeff Mahoney
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 3 lines · Ming Zhang
On Fri, 2005-08-26 at 21:32 +0400, Vladimir V. Saveliev wrote:
Quoted 7 lines
Quoted 3 lines
one more question about this bitmap blocks
are this bitmap data is pinned into system thus will not be swapped out?
Yes, any buffers/pages with active reference counts are kept in memory. Since the current reiserfs bitmap implementation keeps a reference until filesystem umount, the bitmaps are pinned.
so u always keep a reference on all bitmap pages and thus they can not be umounted. yes, by this way it can be pretty fast to do any meta-data operation. but what if current RAM can not hold these bitmap. maybe u think if i want to use tens of TB storage, i of course will have 32GB RAM. :P
Quoted 6 lines
My dynamic bitmap patch fixes both of the problems you've posed so far. Mount time is reduced to O(1) time, since only the superblock and root node are read at mount time. On my system, it's something along the lines of 0.2s. Memory consumption is reduced also, because the bitmap block is released after the allocation/free that required it is complete.
ic. this is like a delayed lazy allocation.
Quoted 4 lines
It's a relatively straightforward patch - the error handling I refer to is how to handle block read failures, which would only occur if your disk is failing.
yes, understandable. thanks!
Ming
Quoted 13 lines
- -Jeff
- --
Jeff Mahoney
SuSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)iD8DBQFDEL81LPWxlyuTD7IRAnHWAJ9TmL/5ziKt4ObSUR9c/MJps4HydQCfXj0s Kd4u+V+PYZQydA/YqelyJvo=
=pHCV
-----END PGP SIGNATURE-----
Quoted 19 lines · Christian Iversen
Quoted 12 lines · Jeff Mahoney
Quoted 6 lines · Ming Zhang
On Fri, 2005-08-26 at 21:32 +0400, Vladimir V. Saveliev wrote:
one more question about this bitmap blocks
are this bitmap data is pinned into system thus will not be swapped out?
Yes, any buffers/pages with active reference counts are kept in memory. Since the current reiserfs bitmap implementation keeps a reference until filesystem umount, the bitmaps are pinned.
Quoted 5 lines
My dynamic bitmap patch fixes both of the problems you've posed so far. Mount time is reduced to O(1) time, since only the superblock and root node are read at mount time. On my system, it's something along the lines of 0.2s. Memory consumption is reduced also, because the bitmap block is released after the allocation/free that required it is complete.
Quoted 3 lines
I've been reading about this patch with quite some interest. Would you say it's stable enough for daily use? I have a terabyte array that takes forever to mount, and probably uses quite a bit of memory too.
yes, i think this will be a problem for 32bit box with large size storage.
Quoted 7 lines
Another thing is that it can easily take several seconds to do "ls -l" on a directory with a 0-10 GB data in it. Is that normal? There's usually less than 50 files of test data, ranging in size from 200MB to 900MB. I've disabled atime updates, but that didn't help much. The controller and disks are plenty fast, so I feel something is amiss.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 10 lines · Ming Zhang
Quoted 4 lines · Jeff Mahoney
Quoted 1 line
are this bitmap data is pinned into system thus will not be swapped out?
Yes, any buffers/pages with active reference counts are kept in memory. Since the current reiserfs bitmap implementation keeps a reference until filesystem umount, the bitmaps are pinned.
so u always keep a reference on all bitmap pages and thus they can not be umounted. yes, by this way it can be pretty fast to do any meta-data operation. but what if current RAM can not hold these bitmap. maybe u think if i want to use tens of TB storage, i of course will have 32GB RAM. :P
That's been the argument Hans has been presenting so far. I tend to disagree with it for several reasons:
* It used to be unheard of for huge filesystems to be accessible to users without high priced RAID arrays. Now, with individual disk capacities over 500 GB and the ease of software raid, multiple-TB filesystems are quite possible on a desktop machine. These machines, as desktops, have no need for 32 GB of RAM, but have a very real demand for large storage.
* We don't cache any other metadata (other than the superblock, which is standard practice) specially. In a mostly-reader environment, bitmaps would rank very low in importance for caching.
In short, we shouldn't be demanding that users of large storage also have loads of memory for what I feel is a very shaky argument in the first place.
Quoted 6 lines
Quoted 5 lines
My dynamic bitmap patch fixes both of the problems you've posed so far. Mount time is reduced to O(1) time, since only the superblock and root node are read at mount time. On my system, it's something along the lines of 0.2s. Memory consumption is reduced also, because the bitmap block is released after the allocation/free that required it is complete.
ic. this is like a delayed lazy allocation.
If I understand you correctly, you're referring to allocate-on-flush, which is a different idea entirely. What the dynamic bitmap patch does is similar to what most other filesystems do -- treat the bitmaps as any other kind of metadata is treated and read it on-demand. Allocate-on-flush allows the filesystem to wait until the last possible moment to allocate the space on disk, which makes performance a little nicer, but more importantly, allows the allocator to allocate entire chunks of a file rather than a block-at-a-time.
- -Jeff
- --
Jeff Mahoney
SuSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFDEP7ALPWxlyuTD7IRAj2+AJ9f2tHTlV3Mrl7m0jDtn50p1egacwCgjbT9 2HSYlvH9sIG53JGjBHgT+9s=
=Suud
-----END PGP SIGNATURE-----
Quoted 15 lines · Jeff Mahoney
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 10 lines · Ming Zhang
Quoted 4 lines · Jeff Mahoney
Quoted 1 line
are this bitmap data is pinned into system thus will not be swapped out?
Yes, any buffers/pages with active reference counts are kept in memory. Since the current reiserfs bitmap implementation keeps a reference until filesystem umount, the bitmaps are pinned.
so u always keep a reference on all bitmap pages and thus they can not be umounted. yes, by this way it can be pretty fast to do any meta-data operation. but what if current RAM can not hold these bitmap. maybe u think if i want to use tens of TB storage, i of course will have 32GB RAM. :P
Quoted 8 lines
That's been the argument Hans has been presenting so far. I tend to disagree with it for several reasons:
* It used to be unheard of for huge filesystems to be accessible to users without high priced RAID arrays. Now, with individual disk capacities over 500 GB and the ease of software raid, multiple-TB filesystems are quite possible on a desktop machine. These machines, as desktops, have no need for 32 GB of RAM, but have a very real demand for large storage.
yes, i have a 12*400GB SATA MD raid that want to store my huge number of pictures (i am not a good photographer, but a quick shooter.) all these files are named as DSCxxxxxx.jpg but not continuous since some are really bad so deleted. so i jump out these questions to stress the scalability of fs.
Quoted 3 lines
* We don't cache any other metadata (other than the superblock, which is standard practice) specially. In a mostly-reader environment, bitmaps would rank very low in importance for caching.
could u explain a bit more on what is the purpose of these bitmaps? what is the relationship between these bitmap and other metadata?
Quoted 4 lines
In short, we shouldn't be demanding that users of large storage also have loads of memory for what I feel is a very shaky argument in the first place.
assumed i have 2GB or 4GB ram, which is not unbelievable for a desktop now. but can these RAM be used by 32BIT arch?
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
My dynamic bitmap patch fixes both of the problems you've posed so far. Mount time is reduced to O(1) time, since only the superblock and root node are read at mount time. On my system, it's something along the lines of 0.2s. Memory consumption is reduced also, because the bitmap block is released after the allocation/free that required it is complete.
Quoted 6 lines
Quoted 1 line
ic. this is like a delayed lazy allocation.
If I understand you correctly, you're referring to allocate-on-flush, which is a different idea entirely. What the dynamic bitmap patch does is similar to what most other filesystems do -- treat the bitmaps as any other kind of metadata is treated and read it on-demand.
yes, sorry, it is not lazy allocation. it is load (into ram) on-demand or lazy load.
Quoted 4 lines
Allocate-on-flush allows the filesystem to wait until the last possible moment to allocate the space on disk, which makes performance a little nicer, but more importantly, allows the allocator to allocate entire chunks of a file rather than a block-at-a-time.
are u talking about allocating space after that file content is cached in RAM and before need to be flushed? this is then like a write-any file system that you can write to a place where it is still continuous and near to current disk head (though latter is hard to achieve since it is hidden by LVM/MD/...).
Quoted 13 lines
- -Jeff
- --
Jeff Mahoney
SuSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)iD8DBQFDEP7ALPWxlyuTD7IRAj2+AJ9f2tHTlV3Mrl7m0jDtn50p1egacwCgjbT9 2HSYlvH9sIG53JGjBHgT+9s=
=Suud
-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 7 lines · Ming Zhang
Quoted 5 lines · Jeff Mahoney
yes, i have a 12*400GB SATA MD raid that want to store my huge number of pictures (i am not a good photographer, but a quick shooter.) all these files are named as DSCxxxxxx.jpg but not continuous since some are really bad so deleted. so i jump out these questions to stress the scalability of fs.
ReiserFS is very well suited for lots of files, so you should be all set in that respect.
Quoted 6 lines
* We don't cache any other metadata (other than the superblock, which is standard practice) specially. In a mostly-reader environment, bitmaps would rank very low in importance for caching.
Quoted 2 lines
could u explain a bit more on what is the purpose of these bitmaps? what is the relationship between these bitmap and other metadata?
The bitmaps are used to keep track of which blocks on disk are used, and which are available for allocation. Every (blocksize * 8) blocks, there is a block reserved to keep track of which blocks in that range are allocated or not. On a 4k block filesystem, that boils down to 1 4k block for every 128 MB. If a block is used, the bit corresponding to it is set. When the block is freed, the bit is cleared.
Well there are a several kinds of metadata on the filesystem: The super block, the bitmaps, the journal, and the reiserfs s-tree itself. The journal and bitmaps are only used when writing to the filesystem. The superblock and s-tree are used for any filesystem access. The relationship is that before a file data block or an s-tree node can be allocated on disk, the bitmaps must be checked to see where the block can be allocated.
Quoted 2 lines
Quoted 2 lines
assumed i have 2GB or 4GB ram, which is not unbelievable for a desktop now. but can these RAM be used by 32BIT arch?
The RAM can be used, sure, but not for the bitmaps. I believe the buffer heads for the bitmaps need to come out of the memory < 1 GB. It would be possible to put the bitmaps in high memory (like any other data), but the patch to do so would likely be more involved than the dynamic bitmap patch, and still waste the memory anyway.
Quoted 10 lines
Allocate-on-flush allows the filesystem to wait until the last possible moment to allocate the space on disk, which makes performance a little nicer, but more importantly, allows the allocator to allocate entire chunks of a file rather than a block-at-a-time.
Quoted 5 lines
are u talking about allocating space after that file content is cached in RAM and before need to be flushed? this is then like a write-any file system that you can write to a place where it is still continuous and near to current disk head (though latter is hard to achieve since it is hidden by LVM/MD/...).
Well those are two different issues. Allocate on flush would try to keep the file as contiguous as possible, whether by appending (ideal) or by keeping the new chunk of data all together as a separate fragment rather than individual blocks scattered everywhere. As for writing near the current disk head, that is an operation that is performed by the block layer. It can make the best decisions on that, since it its at the lowest level of abstraction. It's entirely possible that a filesystem be mounted via file-loopback on an NFS mount. In that case, the local system has no information at all about where the disk head would be.
- -Jeff
- --
Jeff Mahoney
SuSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFDEgYNLPWxlyuTD7IRAlkgAKCM8evk+X3FSAw9IzEbeRKyo+N2tgCffyNi yNcc2G2Uy09X5zMI97AKaJc=
=UzK+
-----END PGP SIGNATURE-----
Quoted 6 lines · Jeff Mahoney
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 2 lines · Ming Zhang
On Sat, 2005-08-27 at 20:01 -0400, Jeff Mahoney wrote:
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
yes, i have a 12*400GB SATA MD raid that want to store my huge number of pictures (i am not a good photographer, but a quick shooter.) all these files are named as DSCxxxxxx.jpg but not continuous since some are really bad so deleted. so i jump out these questions to stress the scalability of fs.
ReiserFS is very well suited for lots of files, so you should be all set in that respect.
ic. thx.
Quoted 10 lines
Quoted 7 lines
* We don't cache any other metadata (other than the superblock, which is standard practice) specially. In a mostly-reader environment, bitmaps would rank very low in importance for caching.
Quoted 2 lines
could u explain a bit more on what is the purpose of these bitmaps? what is the relationship between these bitmap and other metadata?
The bitmaps are used to keep track of which blocks on disk are used, and which are available for allocation. Every (blocksize * 8) blocks, there
here blocksize is 512bytes right from followed data? this comes from sector size?
so what is the on disk layout? i asked this because when i have a slow mount reiserfs on top of RAID1, I saw many small write each second. I guess they scatter over whole disk.
Quoted 5 lines
is a block reserved to keep track of which blocks in that range are allocated or not. On a 4k block filesystem, that boils down to 1 4k block for every 128 MB. If a block is used, the bit corresponding to it is set. When the block is freed, the bit is cleared.
Quoted 7 lines
Well there are a several kinds of metadata on the filesystem: The super block, the bitmaps, the journal, and the reiserfs s-tree itself. The journal and bitmaps are only used when writing to the filesystem. The superblock and s-tree are used for any filesystem access. The relationship is that before a file data block or an s-tree node can be allocated on disk, the bitmaps must be checked to see where the block can be allocated.
ic. so other meta-data is checked as other file systems.
Quoted 9 lines
Quoted 3 lines
Quoted 3 lines
assumed i have 2GB or 4GB ram, which is not unbelievable for a desktop now. but can these RAM be used by 32BIT arch?
The RAM can be used, sure, but not for the bitmaps. I believe the buffer heads for the bitmaps need to come out of the memory < 1 GB. It would be possible to put the bitmaps in high memory (like any other data), but the patch to do so would likely be more involved than the dynamic bitmap patch, and still waste the memory anyway.
yes, i also suspect this 1GB limit. So 64bit is the way and AMD64 is cheap anyway rite?
Quoted 12 lines
Quoted 11 lines
Allocate-on-flush allows the filesystem to wait until the last possible moment to allocate the space on disk, which makes performance a little nicer, but more importantly, allows the allocator to allocate entire chunks of a file rather than a block-at-a-time.
Quoted 5 lines
are u talking about allocating space after that file content is cached in RAM and before need to be flushed? this is then like a write-any file system that you can write to a place where it is still continuous and near to current disk head (though latter is hard to achieve since it is hidden by LVM/MD/...).
Quoted 4 lines
Well those are two different issues. Allocate on flush would try to keep the file as contiguous as possible, whether by appending (ideal) or by keeping the new chunk of data all together as a separate fragment rather than individual blocks scattered everywhere. As for writing near the
ic. yes, delay to that point will have best knowledge.
Quoted 5 lines
current disk head, that is an operation that is performed by the block layer. It can make the best decisions on that, since it its at the lowest level of abstraction. It's entirely possible that a filesystem be mounted via file-loopback on an NFS mount. In that case, the local system has no information at all about where the disk head would be.
yes, but then block layer will need another bitmap to track which block is used or not and also do a mapping again...
the cost of layering?
ming
Quoted 13 lines
- -Jeff
- --
Jeff Mahoney
SuSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)iD8DBQFDEgYNLPWxlyuTD7IRAlkgAKCM8evk+X3FSAw9IzEbeRKyo+N2tgCffyNi yNcc2G2Uy09X5zMI97AKaJc=
=UzK+
-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 12 lines · Ming Zhang
Quoted 6 lines · Jeff Mahoney
* We don't cache any other metadata (other than the superblock, which is standard practice) specially. In a mostly-reader environment, bitmaps would rank very low in importance for caching.
Quoted 2 lines
could u explain a bit more on what is the purpose of these bitmaps? what is the relationship between these bitmap and other metadata?
The bitmaps are used to keep track of which blocks on disk are used, and which are available for allocation. Every (blocksize * 8) blocks, there
Quoted 2 lines
here blocksize is 512bytes right from followed data? this comes from sector size?
No. Block size is the declared filesystem blocksize, not the hardware sector size. It must be a power of 2, and 512-8192 bytes. The "standard" filesystem blocksize is 4k. If you've declared your block size as 512 bytes (using mkreiserfs -b 512), that would certainly be another source of performance issues.
Quoted 3 lines
Quoted 3 lines
so what is the on disk layout? i asked this because when i have a slow mount reiserfs on top of RAID1, I saw many small write each second. I guess they scatter over whole disk.
Well two things occur on mount: Reading the bitmaps causes a read every 128M to occur, and replaying the journal can cause up to 8192 block writes to occur. Replaying the journal is generally pretty quick. Reading the bitmaps on a large filesystem can take a while. This is the issue you originally asked about.
Quoted 5 lines
is a block reserved to keep track of which blocks in that range are allocated or not. On a 4k block filesystem, that boils down to 1 4k block for every 128 MB. If a block is used, the bit corresponding to it is set. When the block is freed, the bit is cleared.
Quoted 9 lines
Well there are a several kinds of metadata on the filesystem: The super block, the bitmaps, the journal, and the reiserfs s-tree itself. The journal and bitmaps are only used when writing to the filesystem. The superblock and s-tree are used for any filesystem access. The relationship is that before a file data block or an s-tree node can be allocated on disk, the bitmaps must be checked to see where the block can be allocated.
Quoted 1 line
ic. so other meta-data is checked as other file systems.
No. The bitmaps and journal are still part of the same filesystem. They are just not part of the s-tree.
Quoted 10 lines
Quoted 2 lines
Quoted 2 lines
assumed i have 2GB or 4GB ram, which is not unbelievable for a desktop now. but can these RAM be used by 32BIT arch?
The RAM can be used, sure, but not for the bitmaps. I believe the buffer heads for the bitmaps need to come out of the memory < 1 GB. It would be possible to put the bitmaps in high memory (like any other data), but the patch to do so would likely be more involved than the dynamic bitmap patch, and still waste the memory anyway.
Quoted 2 lines
yes, i also suspect this 1GB limit. So 64bit is the way and AMD64 is cheap anyway rite?
Personally, I think so.
Quoted 10 lines
current disk head, that is an operation that is performed by the block layer. It can make the best decisions on that, since it its at the lowest level of abstraction. It's entirely possible that a filesystem be mounted via file-loopback on an NFS mount. In that case, the local system has no information at all about where the disk head would be.
Quoted 4 lines
yes, but then block layer will need another bitmap to track which block is used or not and also do a mapping again...
the cost of layering?
The ideas of "in use" and "available" are purely filesystem abstractions to keep track of where we already have filesystem data/metadata. The block layer doesn't know or care about them - it's just a collection of blocks that the user may do whatever they please with. Now, not to confuse the issue, but the example of a loopback-mounted filesystem can cause an allocation if the host file is sparse, but that's really a corner case.
- -Jeff
- --
Jeff Mahoney
SuSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFDExsrLPWxlyuTD7IRAvGmAJ9QU16I2oz/kkCbqwdeGcIgkey8TgCgqS8s lI6YzJEJ20j5LiheAqw6eoE=
=YD9V
-----END PGP SIGNATURE-----
Quoted 14 lines · Jeff Mahoney
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 10 lines · Ming Zhang
Quoted 6 lines · Jeff Mahoney
* We don't cache any other metadata (other than the superblock, which is standard practice) specially. In a mostly-reader environment, bitmaps would rank very low in importance for caching.
Quoted 2 lines
could u explain a bit more on what is the purpose of these bitmaps? what is the relationship between these bitmap and other metadata?
The bitmaps are used to keep track of which blocks on disk are used, and which are available for allocation. Every (blocksize * 8) blocks, there
Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
here blocksize is 512bytes right from followed data? this comes from sector size?
No. Block size is the declared filesystem blocksize, not the hardware sector size. It must be a power of 2, and 512-8192 bytes. The "standard" filesystem blocksize is 4k. If you've declared your block size as 512 bytes (using mkreiserfs -b 512), that would certainly be another source of performance issues.
so 1 block per bit, thus (blocksize * 8) block per block.
Quoted 10 lines
Quoted 4 lines
Quoted 4 lines
so what is the on disk layout? i asked this because when i have a slow mount reiserfs on top of RAID1, I saw many small write each second. I guess they scatter over whole disk.
Well two things occur on mount: Reading the bitmaps causes a read every 128M to occur, and replaying the journal can cause up to 8192 block writes to occur. Replaying the journal is generally pretty quick. Reading the bitmaps on a large filesystem can take a while. This is the issue you originally asked about.
since that is a newly formatted fs, there is no journal to replay. because that FS is big with 3.2TB, if bitmap is not continuous on disks, then the read is like a random read to read around total ~100MB 4K piece from disk. so this is why it is slow?
any way to store these bitmap together?
Quoted 14 lines
Quoted 14 lines
is a block reserved to keep track of which blocks in that range are allocated or not. On a 4k block filesystem, that boils down to 1 4k block for every 128 MB. If a block is used, the bit corresponding to it is set. When the block is freed, the bit is cleared.
Well there are a several kinds of metadata on the filesystem: The super block, the bitmaps, the journal, and the reiserfs s-tree itself. The journal and bitmaps are only used when writing to the filesystem. The superblock and s-tree are used for any filesystem access. The relationship is that before a file data block or an s-tree node can be allocated on disk, the bitmaps must be checked to see where the block can be allocated.
Quoted 4 lines
Quoted 1 line
Quoted 1 line
ic. so other meta-data is checked as other file systems.
No. The bitmaps and journal are still part of the same filesystem. They are just not part of the s-tree.
yes. sorry i should say that file system still use s-tree to locate file data while bitmap is to assist the block allocation and journal is for consistency.
Quoted 25 lines
Quoted 11 lines
Quoted 3 lines
Quoted 3 lines
assumed i have 2GB or 4GB ram, which is not unbelievable for a desktop now. but can these RAM be used by 32BIT arch?
The RAM can be used, sure, but not for the bitmaps. I believe the buffer heads for the bitmaps need to come out of the memory < 1 GB. It would be possible to put the bitmaps in high memory (like any other data), but the patch to do so would likely be more involved than the dynamic bitmap patch, and still waste the memory anyway.
Quoted 2 lines
yes, i also suspect this 1GB limit. So 64bit is the way and AMD64 is cheap anyway rite?
Personally, I think so.
Quoted 10 lines
current disk head, that is an operation that is performed by the block layer. It can make the best decisions on that, since it its at the lowest level of abstraction. It's entirely possible that a filesystem be mounted via file-loopback on an NFS mount. In that case, the local system has no information at all about where the disk head would be.
Quoted 4 lines
yes, but then block layer will need another bitmap to track which block is used or not and also do a mapping again...
the cost of layering?
Quoted 8 lines
The ideas of "in use" and "available" are purely filesystem abstractions to keep track of where we already have filesystem data/metadata. The block layer doesn't know or care about them - it's just a collection of blocks that the user may do whatever they please with. Now, not to confuse the issue, but the example of a loopback-mounted filesystem can cause an allocation if the host file is sparse, but that's really a corner case.
yes, that is cost worthy being paid. file system just need a set of blocks to working on...
Quoted 12 lines
- -Jeff
- --
Jeff Mahoney
SuSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)iD8DBQFDExsrLPWxlyuTD7IRAvGmAJ9QU16I2oz/kkCbqwdeGcIgkey8TgCgqS8s lI6YzJEJ20j5LiheAqw6eoE=
=YD9V
-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 8 lines · Ming Zhang
On Mon, 2005-08-29 at 10:26 -0400, Jeff Mahoney wrote:
No. Block size is the declared filesystem blocksize, not the hardware sector size. It must be a power of 2, and 512-8192 bytes. The "standard" filesystem blocksize is 4k. If you've declared your block size as 512 bytes (using mkreiserfs -b 512), that would certainly be another source of performance issues.Quoted 1 line
so 1 block per bit, thus (blocksize * 8) block per block.
Exactly.
Quoted 4 lines
Quoted 4 lines
since that is a newly formatted fs, there is no journal to replay. because that FS is big with 3.2TB, if bitmap is not continuous on disks, then the read is like a random read to read around total ~100MB 4K piece from disk. so this is why it is slow?
I need to look into this some more, but I suspect it may be related to congestion avoidance. The requests don't bind up in waiting for the data to come back, but, rather, allocating the request in the first place.
Quoted 1 line
Quoted 1 line
any way to store these bitmap together?
The "old" reiserfs disk format did exactly that. However, the gain realized (if any, see above) at mount time is quickly lost when the filesystem can no longer be dynamically expanded/shrunk, and if the bitmaps are actually read on-demand, then it causes needless seeks to the "bitmap secion."
- -Jeff
- --
Jeff Mahoney
SuSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFDEyDlLPWxlyuTD7IRArjZAJoCxQCJ8Qs4AM1OQZEJIhz1BvYwDQCeIRk+ VvRxXcyH1puW2vq1xDYygL0=
=FVcM
-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 10 lines · Christian Iversen
Quoted 5 lines · Jeff Mahoney
My dynamic bitmap patch fixes both of the problems you've posed so far. Mount time is reduced to O(1) time, since only the superblock and root node are read at mount time. On my system, it's something along the lines of 0.2s. Memory consumption is reduced also, because the bitmap block is released after the allocation/free that required it is complete.
I've been reading about this patch with quite some interest. Would you say it's stable enough for daily use? I have a terabyte array that takes forever to mount, and probably uses quite a bit of memory too.
I've done testing with it, and it's been ok. I haven't heard any bug reports, but I haven't heard any "hey it works" comments either. It should be pretty stable - the only thing I'm concerned about is how it deals with I/O errors. That part of the patch will be dependent on my developing better i/o handling for reiserfs in general. That patch is also mostly done, but needs more testing.
- -Jeff
- --
Jeff Mahoney
SuSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFDEySgLPWxlyuTD7IRAoMXAJ9IozJtv2236HK1R/4bMMaK8/mrIACeMYUu tz7nPOMFTIY2dJ/j9DXjMG0=
=lGWE
-----END PGP SIGNATURE-----
Quoted 24 lines · Jeff Mahoney
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 8 lines · Ming Zhang
On Mon, 2005-08-29 at 10:26 -0400, Jeff Mahoney wrote:
No. Block size is the declared filesystem blocksize, not the hardware sector size. It must be a power of 2, and 512-8192 bytes. The "standard" filesystem blocksize is 4k. If you've declared your block size as 512 bytes (using mkreiserfs -b 512), that would certainly be another source of performance issues.Quoted 1 line
so 1 block per bit, thus (blocksize * 8) block per block.
Exactly.
Quoted 4 lines
Quoted 4 lines
since that is a newly formatted fs, there is no journal to replay. because that FS is big with 3.2TB, if bitmap is not continuous on disks, then the read is like a random read to read around total ~100MB 4K piece from disk. so this is why it is slow?
I need to look into this some more, but I suspect it may be related to congestion avoidance. The requests don't bind up in waiting for the data to come back, but, rather, allocating the request in the first place.
Quoted 7 lines
Quoted 1 line
Quoted 1 line
any way to store these bitmap together?
The "old" reiserfs disk format did exactly that. However, the gain realized (if any, see above) at mount time is quickly lost when the filesystem can no longer be dynamically expanded/shrunk, and if the bitmaps are actually read on-demand, then it causes needless seeks to the "bitmap secion."
but anyway the bitmap will not scattered all around the disk rite?
so where i could find a document about this bitmap layout? also detailed information on whole file system layout?
thanks.
ming
Quoted 13 lines
- -Jeff
- --
Jeff Mahoney
SuSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)iD8DBQFDEyDlLPWxlyuTD7IRArjZAJoCxQCJ8Qs4AM1OQZEJIhz1BvYwDQCeIRk+ VvRxXcyH1puW2vq1xDYygL0=
=FVcM
-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 8 lines · Ming Zhang
Quoted 1 line
Quoted 1 line
any way to store these bitmap together?
The "old" reiserfs disk format did exactly that. However, the gain realized (if any, see above) at mount time is quickly lost when the filesystem can no longer be dynamically expanded/shrunk, and if the bitmaps are actually read on-demand, then it causes needless seeks to the "bitmap secion."
Quoted 1 line
but anyway the bitmap will not scattered all around the disk rite?
If they were grouped together, no. As I said, though, there are other reasons not to do that.
Quoted 2 lines
Quoted 2 lines
so where i could find a document about this bitmap layout? also detailed information on whole file system layout?
Since Reiser4 became the focus of Namesys development, Reiser3 information has been somewhat difficult to find on the web site. It's possible to find it using archive.org, however.
Hans - would you consider restoring reiser3 information to the namesys web site?
- -Jeff
- --
Jeff Mahoney
SuSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFDEymZLPWxlyuTD7IRAv5wAJ9coGB6bChWSLyK1x7lB1LF2E4mIwCfUsEN 4nZnXzED8ytA5jiTkv0LbcE=
=Tocq
-----END PGP SIGNATURE-----
Quoted 19 lines · Jeff Mahoney
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 8 lines · Ming Zhang
Quoted 1 line
Quoted 1 line
any way to store these bitmap together?
The "old" reiserfs disk format did exactly that. However, the gain realized (if any, see above) at mount time is quickly lost when the filesystem can no longer be dynamically expanded/shrunk, and if the bitmaps are actually read on-demand, then it causes needless seeks to the "bitmap secion."
Quoted 1 line
but anyway the bitmap will not scattered all around the disk rite?
If they were grouped together, no. As I said, though, there are other reasons not to do that.
Quoted 2 lines
Quoted 2 lines
so where i could find a document about this bitmap layout? also detailed information on whole file system layout?
Quoted 6 lines
Since Reiser4 became the focus of Namesys development, Reiser3 information has been somewhat difficult to find on the web site. It's possible to find it using archive.org, however.
Hans - would you consider restoring reiser3 information to the namesys web site?
V4 information is great as well. but the namesys.com does not have detailed info.
ming
Quoted 13 lines
- -Jeff
- --
Jeff Mahoney
SuSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)iD8DBQFDEymZLPWxlyuTD7IRAv5wAJ9coGB6bChWSLyK1x7lB1LF2E4mIwCfUsEN 4nZnXzED8ytA5jiTkv0LbcE=
=Tocq
-----END PGP SIGNATURE-----
just reproduced this on a 18GB SCSI disk. mount is still slow. so not related to RAID but only with bitmap. i just do modprobe aic7xxx, mkfs, then do mount, so the disk should be spin up.
ming
--------------------------------------
[root@sc420 root]# time mkfs.reiserfs -ff /dev/sdh1 mkfs.reiserfs 3.6.13 (2003 www.namesys.com)
...
Guessing about desired format.. Kernel 2.6.12.4 is running. Format 3.6 with standard journal
Count of blocks on the device: 4421872
Number of blocks consumed by mkreiserfs formatting process: 8346
Blocksize: 4096
Hash function used to sort names: "r5"
Journal Size 8193 blocks (first block 18)
Journal Max transaction length 1024
inode generation number: 0
UUID: b3de310a-b494-4415-a921-090d94f2f211 Initializing journal - 0%....20%....40%....60%....80%....100% Syncing..ok
Tell your friends to use a kernel based on 2.4.18 or later, and especially not a
kernel based on 2.4.9, when you use reiserFS. Have fun.
ReiserFS is successfully created on /dev/sdh1.
real 0m5.018s user 0m0.028s sys 0m0.134s
[root@sc420 root]# time mount /dev/sdh1 t
real 1m3.608s user 0m0.000s sys 0m0.052s
[root@sc420 root]# df
Filesystem 1K-blocks Used Available Use% Mounted on/dev/sda5 20161172 6417940 12719092 34% /
/dev/sda3 194449 18990 165419 11% /boot none 127544 0 127544 0% /dev/shm
/dev/sdh1 17686944 32840 17654104 1% /root/t
[root@sc420 root]# rpm -q reiserfs-utils
reiserfs-utils-3.6.13-1
Quoted 80 lines · Vladimir V. Saveliev
Hello
Quoted 9 lines · Ming Zhang
Hi, folks
I am not sure if this is normal or not.
I try to create&use a reiserfs on a 8 disk raid0. Then I found that mkfs need ~90 sec and mount need ~70 seconds.
Is there anything wrong on my side?
Your device is too big.
Quoted 40 lines
Thanks!
Ming
Detailed info followed.
---------------------------------------------------------------------
[root@bakstor2u root]# cat/proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10] [faulty]
md0 : active raid0 sda[0] sdh[7] sdg[6] sdf[5] sde[4] sdd[3] sdc[2] sdb
[1]3125690368 blocks 64k chunksunused devices: <none>
[root@bakstor2u root]# time mkfs.reiserfs
/dev/md0-ff mkfs.reiserfs 3.6.13 (2003 www.namesys.com)<...>
Guessing about desired format.. Kernel 2.6.11.12 is running. Format 3.6 with standard journal
Count of blocks on the device: 781422592
Number of blocks consumed by mkreiserfs formatting process: 32059
Blocksize: 4096
Hash function used to sort names: "r5"
Journal Size 8193 blocks (first block 18)
Journal Max transaction length 1024
inode generation number: 0
UUID: 98d990f3-d54f-43e3-9fde-8c9c9a6d3481
Initializing journal - 0%....20%....40%....60%....80%....100% Syncing..okTell your friends to use a kernel based on 2.4.18 or later, and especially not a
kernel based on 2.4.9, when you use reiserFS. Have fun.Quoted 6 lines
ReiserFS is successfully created on
/dev/md0.real 1m28.783s user 0m0.151s sys 0m0.398sHmm, mkfs.reiserfs had to write 32059 blocks. It is about 131mb. 1m28s is too much for that. Could it be that some of disks used in that raid were not spinning when you started mkreiserfs?
Quoted 6 lines
[root@bakstor2u root]# time mount
/dev/md0treal 1m11.448s user 0m0.000s sys 0m0.225sThere is a patch to cure this problem.
http://www.mail-archive.com/[email protected]/msg18442.html
Please note that it is experimental one.Quoted 3 lines
Did you ever look into my question about device congestion, and whether raising that limit would fix the bitmap loading time issue?
Hans
Quoted 29 lines · Jeff Mahoney
Quoted 6 lines · Ming Zhang
On Fri, 2005-08-26 at 21:32 +0400, Vladimir V. Saveliev wrote:
one more question about this bitmap blocks
are this bitmap data is pinned into system thus will not be swapped out?
Yes, any buffers/pages with active reference counts are kept in memory. Since the current reiserfs bitmap implementation keeps a reference until filesystem umount, the bitmaps are pinned.
My dynamic bitmap patch fixes both of the problems you've posed so far. Mount time is reduced to O(1) time, since only the superblock and root node are read at mount time. On my system, it's something along the lines of 0.2s. Memory consumption is reduced also, because the bitmap block is released after the allocation/free that required it is complete.
It's a relatively straightforward patch - the error handling I refer to is how to handle block read failures, which would only occur if your disk is failing.
-Jeff
--
Jeff Mahoney
SuSE Labs
Quoted 14 lines · David Masover
Quoted 10 lines · Christian Iversen
Quoted 1 line · Jeff Mahoney
Ming Zhang wrote:
Another thing is that it can easily take several seconds to do "ls -l" on a directory with a 0-10 GB data in it. Is that normal? There's usually less than 50 files of test data, ranging in size from 200MB to 900MB. I've disabled atime updates, but that didn't help much. The controller and disks are plenty fast, so I feel something is amiss.
Quoted 7 lines
Interesting, I'd always assumed this was an issue with the lazy allocation. On my box, this meant that occasionally, I'd run into a situation where some random FS operation would take 5-10 seconds, because (I assumed) it would have been the random operation that used up enough RAM that the FS decided to flush.
This performance issue should be fixed in reiser4, please give it a try. It has to do with where stat data get stored.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 2 lines · Hans Reiser
Did you ever look into my question about device congestion, and whether raising that limit would fix the bitmap loading time issue?
I haven't really had the time recently. I'll look into it, but it doesn't change the fact that we're wasting RAM on huge filesystems.
- -Jeff
- --
Jeff Mahoney
SuSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFDE2WqLPWxlyuTD7IRAt8SAJ0b9JGq+vLlc4OXB+RSQUJsJIsfigCdFPVh 6UHE2ZO/z2cdXu/sQrkEYSY=
=Gvd6
-----END PGP SIGNATURE-----
Quoted 6 lines · Jeff Mahoney
Quoted 2 lines · Hans Reiser
Did you ever look into my question about device congestion, and whether raising that limit would fix the bitmap loading time issue?
Quoted 8 lines
I haven't really had the time recently. I'll look into it, but it doesn't change the fact that we're wasting RAM on huge filesystems.
-Jeff
--
Jeff Mahoney
SuSE Labs
Do you understand the argument, namely that it does not do any good to have N spindles if the device congestion limit prevents them from going in parallel?
An easy way to test this would be to see if striped devices mount faster than concatenated ones. If yes, then there is crap io scheduler and/or raid device driver code to fix, and it matters more than the original issue at question.