Skip to contentSkip to conversation

DNS server reading directly from reiserfs

DISCUSSION Phil Howard 2 participants 2 messages May 2, 2002

lore
Share & tools
lore
#0 lore raw

Continuing from an earlier discussion I had regarding the use of reiserfs based files in place of databases, I was thinking about the issues involved in serving DNS data directly from files. The concern I had previously was the performance hit from open(),read(),close() to access a single piece of data to answer a query. Today I realized that DJBDNS uses the CDB format and does an open(),read(),close() sequence for each query as well. So it can't be that bad. This would come down to reiserfs vs CDB for which is the faster in finding the desired piece of data, not the syscall interfaces, in terms of comparing these two. Assuming all data is in a single directory, or maybe is in a directory tree structured TLD-first, what performance level might one expect doing this? With ext2 it could be quite costly due to the O(N) lookup. With reiserfs tree structure, this would be a lot better. And with tail-packing, less RAM would be needed to keep lots of data in cache for large servers. Any thoughts or benchmark data along these lines?

Signature · 4 lines
-----------------------------------------------------------------
| Phil Howard - KA9WGN |   Dallas   | http://linuxhomepage.com/ |
| [email protected] | Texas, USA | http://phil.ipal.org/     |
-----------------------------------------------------------------
#1 lore raw
Quoted 6 lines · Phil Howard

Continuing from an earlier discussion I had regarding the use of reiserfs based files in place of databases, I was thinking about the issues involved in serving DNS data directly from files. The concern I had previously was the performance hit from open(),read(),close() to access a single piece of data to answer a query. Today I realized that DJBDNS uses the CDB format and does an open(),read(),close() sequence for each query as well. So it

Quoted 11 lines

can't be that bad. This would come down to reiserfs vs CDB for which is the faster in finding the desired piece of data, not the syscall interfaces, in terms of comparing these two. Assuming all data is in a single directory, or maybe is in a directory tree structured TLD-first, what performance level might one expect doing this? With ext2 it could be quite costly due to the O(N) lookup. With reiserfs tree structure, this would be a lot better. And with tail-packing, less RAM would be needed to keep lots of data in cache for large servers. Any thoughts or benchmark data along these lines?

You never know until you measure. Try it!

Hans