You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by drwho <dr...@yahoo.com> on 2006/07/13 08:23:02 UTC
DFS question: does append-only means faster updates ?
Hi,
I've always wondered if a lack of overwrite / random-write op means that updates are much faster than convention filesystems..
The fact that both (dfs, gfs) support delete op, does it mean that
fragmentation will still be a big problem ? Bcoz of snapshots, I note that delete actually doesn't blow away the data until it is garbage-collected.
But after gc, we should see some big holes...
Also, would the lack of overwrite / random-write ops mean that the filesystem is less suitable for apps like online word-processor or even online spreadsheet / database ?
Thx.
Re: DFS question: does append-only means faster updates ?
Posted by Benjamin Reed <br...@yahoo-inc.com>.
On Friday 14 July 2006 02:48, Doug Cutting wrote:
> drwho wrote:
> > Also, would the lack of overwrite / random-write ops mean that the
> > filesystem is less suitable for apps like online word-processor or even
> > online spreadsheet / database ?
>
> Yes, such applications are probably not appropriate for direct
> implementation on top of DFS. It would work, but it would not be the
> best utilization of resources. Google uses BigTable, layered on top of
> GFS, to store small items that may be independently updated. Hadoop may
> someday incorporate something like BigTable. Mike Cafarella has
> discussed this a bit on the hadoop-dev list:
In a past life I worked on a VFS and IFS implementation for Linux and Windows.
While testing with various applications we found that applications rarely do
overwrite and random-writes. Actually, since we weren't testing databases,
none of the applications we tested with did overwrite and random-writes.
Usually when an application saves something it writes it to a temporary file
and then does a rename to overwrite. This prevents problems if a crash occurs
during the save operation.
ben
Re: DFS question: does append-only means faster updates ?
Posted by Doug Cutting <cu...@apache.org>.
drwho wrote:
> I've always wondered if a lack of overwrite / random-write op means that updates are much faster than convention filesystems..
Not really, since DFS is implemented on top of the ordinary filesystem,
it's never any faster at serial access. What it adds is scalability
(petabytes in a single namespace) and reliability (continuous access to
data through disk and host failures) and distributed performance (1000
hosts reading or writing in parallel to the same logical FS).
> The fact that both (dfs, gfs) support delete op, does it mean that
> fragmentation will still be a big problem ?
Fragmentation should not be a problem, since files are chunked into
128MB blocks stored in local filesystems.
> Also, would the lack of overwrite / random-write ops mean that the filesystem is less suitable for apps like online word-processor or even online spreadsheet / database ?
Yes, such applications are probably not appropriate for direct
implementation on top of DFS. It would work, but it would not be the
best utilization of resources. Google uses BigTable, layered on top of
GFS, to store small items that may be independently updated. Hadoop may
someday incorporate something like BigTable. Mike Cafarella has
discussed this a bit on the hadoop-dev list:
http://www.mail-archive.com/hadoop-dev@lucene.apache.org/msg01415.html
http://www.mail-archive.com/hadoop-dev@lucene.apache.org/msg01443.html
Doug
Doug