From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleg Drokin Subject: Re: Horrible ftruncate performance Date: Sun, 13 Jul 2003 16:58:04 +0400 Message-ID: <20030713125804.GB6061@namesys.com> References: <200307112151.05829.Dieter.Nuetzel@hamburg.de> Mime-Version: 1.0 Return-path: list-help: list-unsubscribe: list-post: Errors-To: flx@namesys.com Content-Disposition: inline In-Reply-To: List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Szakacsits Szabolcs Cc: Dieter N?tzel , Chris Mason , Marc-Christian Petersen , reiserfs-list@namesys.com, Philippe Gramoull? Hello! On Sat, Jul 12, 2003 at 03:37:48AM +0200, Szakacsits Szabolcs wrote: > Footnotes: > (*) So disk shouldn't matter because the other filesystems use only 4kB to > store this 200GB sparse file. ReiserFS wastes 201MB! One could Yes. The thing is reiserfs prepopulates the tree with empty pointers up to needed file length. Others just increase filesize. We found out that just increasing filesize leads to races later on when two parallel writers try to actually write somewhere past the real file end. Then we endup in a situation where same stuff in the tree is about to be inserted twice which is bad idea of course. Bye, Oleg