Master file/metadata table? dualistic trees?
ReiserFS/Reiser4 is supposed to be something like an efficient storage DB for lots of small files. Problem: perusing the files' metadata information (last modified time, file size etc.) takes much too much time -- most probably because that data is scattered all over the disk.
The rsync tool, for example, is mostly used to keep extremely large file repositories in sync. But, on reiserfs, it definitely takes much to much time to compile only the file list. I think this is pretty much an every day task and it should be used as a benchmark for ReiserFS/4.
Couldn't ReiserFS just be divided into two trees using _two_ root nodes? One tree could be located at the beginning of the disk, the other one at the end of it. The first one would contain all metadata information, the second one all file data. The first one would in most cases be rather small and therefore almost always reside in the read cache of the OS.
I don't know if the separation of metadata and file data would cause a degredation of performance in other use cases. Has someone already tested this?
Would be really great if I had not to wait a few minutes just to find and copy over a few updated files within my repository.
Signature · 2 lines
Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie! Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl
Quoted 16 lines · [email protected] wrote:
ReiserFS/Reiser4 is supposed to be something like an efficient storage DB for lots of small files. Problem: perusing the files' metadata information (last modified time, file size etc.) takes much too much time -- most probably because that data is scattered all over the disk.
The rsync tool, for example, is mostly used to keep extremely large file repositories in sync. But, on reiserfs, it definitely takes much to much time to compile only the file list. I think this is pretty much an every day task and it should be used as a benchmark for ReiserFS/4.
Couldn't ReiserFS just be divided into two trees using _two_ root nodes? One tree could be located at the beginning of the disk, the other one at the end of it. The first one would contain all metadata information, the second one all file data. The first one would in most cases be rather small and therefore almost always reside in the read cache of the OS.
Quoted 9 lines
I don't know if the separation of metadata and file data would cause a degredation of performance in other use cases. Has someone already tested this?
Would be really great if I had not to wait a few minutes just to find and copy over a few updated files within my repository.
You can just change the key assignment algorithm for stat data, and achieve the desired effect. Just assign keys such that all stat data and directory entries have keys that are less than all file bodies.
Quoted 3 lines
You can just change the key assignment algorithm for stat data, and achieve the desired effect. Just assign keys such that all stat data and directory entries have keys that are less than all file bodies.
Ok, I have done that by adding a Plan-R(SYNC) to key.h's keycmp routine: it changes the field ordering to type->locality->... .
But how do I make mkfs.reiser4 respect that change in the kernel source code?
Best regards,
Mark
Signature · 2 lines
Geschenkt: 3 Monate GMX ProMail gratis + 3 Ausgaben stern gratis ++ Jetzt anmelden & testen ++ http://www.gmx.net/de/go/promail ++
Quoted 5 lines · [email protected] wrote:
ReiserFS/Reiser4 is supposed to be something like an efficient storage DB for lots of small files. Problem: perusing the files' metadata information (last modified time, file size etc.) takes much too much time -- most probably because that data is scattered all over the disk.
I don't clearly understand the problem, but in Reiser4 sources I've seen a
concept of light-weight stat-data. This means, if you have a lot of small files and you don't care about the [amc]time correctness, you may ask Reiser4 to use the lightweight stat-data for your millions of files. In that case, it won't maintain stat-data objects in the tree for that files (it will generate it on-flight), i.e. you'll increase the performance greatly.
Not sure this is relevant for you, though.
Signature · 3 lines
Best Regards, Artem B. Bityuckiy, St.-Petersburg, Russia.
Quoted 1 line
Not sure this is relevant for you, though.
rsync needs proper last-modified times. That's what makes it fast.
Best regards,
Mark
Signature · 2 lines
Geschenkt: 3 Monate GMX ProMail gratis + 3 Ausgaben stern gratis ++ Jetzt anmelden & testen ++ http://www.gmx.net/de/go/promail ++