[mnet-devel] Ickle me, pickle me, tickle me too...
Jim McCoy
mccoy at mad-scientist.com
Sat Aug 9 08:11:51 BST 2003
On Friday, August 8, 2003, at 05:02 PM, Zooko wrote:
> [...]
> So, this may be a dumb question, but what's wrong with just storing
> the block
> in a file named by the mojosixbit-encoding of the blockId, in a
> three-level
> deep directory tree of the leading characters of the
> mojosixbit-encoded id?
open(), close(), open(), close(), open(), close()
I would much rather open(), seek(), seek(), seek(), close().
You also end up with wasted space due to mnet blocks not matching up
with the block size of the filesystem.
We ended up doing a lot of this (using the filesystem as your db) at
Yahoo and while it is definitely the easy way out is also introduces a
degree of suckage that is hard to quantify but does exist. As a simple
example, it becomes a lot more expensive to determine the size of the
blockstore because of all of the filesystem calls you are introducing.
Putting lots and lots of small files into a filesystem might work fine
for your reiserfs, but for the rest of the world (and most of the
potential mnet userbase) this ends up looking crufty and working
poorly. There are a variety of things which are acceptable to put into
a requirements list for potential users, telling them that they will
want/need to use a particular filesystem is not one of them...
Jim
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
mnet-devel mailing list
mnet-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mnet-devel
More information about the Mnet-devel
mailing list