Some more basic questions.
Hello,
I don't understand so well how the dancing trees work. I've seen in the documentation that are faster than B+ trees, but I don't understand the reason. Somebody can explain me how does it work a dancing tree and where does reiserfs use it?
Other thing that I don't understand is the cache design, where are used caches in the filesystem?
And why is better to use extents than BLOBs? A lot of databases use BLOB's to storage the data and get good performance with.
What security features provide reiser4? I have seen that you can use crypto support and crypto compressing, does it support other security features? does it use the new CryptoAPI?
And other thing, if I want to do a new plugin, what I have to do? Any documentation related?
Thanks in advance.
Signature · 1 line
Alejandro Sanchez Acosta <[email protected]>
Quoted 6 lines · Alejandro Sanchez Acosta
Hello,
I don't understand so well how the dancing trees work. I've seen in the documentation that are faster than B+ trees, but I don't understand the reason. Somebody can explain me how does it work a dancing tree and where does reiserfs use it?
Reiser4 tree has no strict invariant that each node (except root) should be filled by more than 50%. Instead it has a rule that ordinary tree modification deletes node only if it is empty. Modified nodes are not written to disk until jnode_flush() packs them more tighty. The idea is to make ordinary tree operations (insert, delete) cheaper and still have on-disk tree well packed, because tree packing saves i/o operations.
Quoted 2 lines
Other thing that I don't understand is the cache design, where are used caches in the filesystem?
?
Basically, reiser4 reads nodes from disk (into page cache), nodes remain in memory until system releases them and frees memory. It is pache cache functionality.
Quoted 2 lines
And why is better to use extents than BLOBs? A lot of databases use BLOB's to storage the data and get good performance with.
acessing BLOBs require one disk op than accessing meta data. In reiser4 you see an attempt to implement "equal access cost" for all data, including file bodies.
Quoted 1 line
What security features provide reiser4?
IFAIK, currently only traditional unix security checks are implemented.
Quoted 3 lines
I have seen that you can use
crypto support and crypto compressing, does it support other security features? does it use the new CryptoAPI?
no.
Quoted 2 lines
And other thing, if I want to do a new plugin, what I have to do? Any documentation related?
Write new plugins using existing ones as template.
What is bad is that reiser4 has no external API to bind reiser4 object and plugins of different types. I think Hans will agree with me that should be fixed soon.
Quoted 4 lines
Thanks in advance.
Signature · 1 line
Alejandro Sanchez Acosta <[email protected]>
Signature · 1 line
Alex.