All of lore.kernel.org
 help / color / mirror / Atom feed
From: Szakacsits Szabolcs <szaka@sienet.hu>
To: "Dieter Nützel" <Dieter.Nuetzel@hamburg.de>
Cc: "Chris Mason" <mason@suse.com>, "Oleg Drokin" <green@namesys.com>,
	"Marc-Christian Petersen" <m.c.p@gmx.net>,
	reiserfs-list@namesys.com,
	"Philippe Gramoullé" <philippe.gramoulle@mmania.com>
Subject: Re: Horrible ftruncate performance
Date: Sat, 12 Jul 2003 03:37:48 +0200 (MEST)	[thread overview]
Message-ID: <Pine.LNX.4.30.0307120213080.30730-100000@divine.city.tvnet.hu> (raw)
In-Reply-To: <200307112151.05829.Dieter.Nuetzel@hamburg.de>


On Fri, 11 Jul 2003, Dieter [iso-8859-1] Nützel wrote:

> As reminder the old numbers (single U160, IBM 10k rpm):

For the below test, disk doesn't really matter. It's almost [should be (*)]
pure CPU job. Otherwise I'd have suggested a 'sync' at the end(**).

> 2.4.21-jam1 (aa1) plus all data-logging
>
> SOURCE/dri-trunk> time dd if=/dev/zero of=sparse bs=1 seek=200G count=1
> 0.000u 362.760s 8:26.34 71.6%   0+0k 0+0io 124pf+0w
>
> It was runinng with a paralell C++ (-j20) compilation.
> Now the new ones (I've test with and without above C++ compilation ;-)
>
> INSTALL/SOURCE> time dd if=/dev/zero of=sparse2 bs=1 seek=200G count=1
> 0.000u 0.010s 0:00.00 0.0%      0+0k 0+0io 153pf+0w

This is too good to be true. You shouldn't have sparse2 before running the
test. You wrote you tried this twice ("with and without above C++
compilation"). This should be the result of the second run.

> More than 506 times...
> => 506.34 seconds (8:26.34) / 0.01 seconds = 50.634 times ;-)))

I guess you mean 50,634 or 50634 times faster? But I'm afraid you didn't
test what you should have. Interestingly, the above speedup, 50 times, is
just what I got with Oleg's patch. So now it's only about 2000 times slower
than XFS, JFS and ext3.

Footnotes:
(*) So disk shouldn't matter because the other filesystems use only 4kB to
    store this 200GB sparse file. ReiserFS wastes 201MB! One could
    mistakenly think this IO could be one of the reasons for the slowless,
    but not. No 'sync' and anyway it's just 2 sec to do it on my disk
    later on.

(**) There are a lot of bogus fs benchmarks out there. One of the many
    issues missed is sync after write tests. I also noticed ReiserFS is
    quick to say "I did it" but sometimes it "hangs" for a painful time.
    Ragged, sluggish. Without the sync, I've seen and experienced ResierFS
    frequently coming out as the winner [not sustained writes]. With sync,
    the results are different.

Ok, last complain for today :) I couldn't find an API (I admit, because of
the above reasons, I didn't search hard) to query the map of disk blocks or
[offsets, length] couples used by a file, like XFS's XFS_IOC_GETBMAPX does.
This makes also ReiserFS inadequate to work with sparse files efficiently.

	Szaka


  reply	other threads:[~2003-07-12  1:37 UTC|newest]

Thread overview: 68+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-10  3:23 Horrible ftruncate performance Szakacsits Szabolcs
2003-07-10  5:29 ` Oleg Drokin
2003-07-10  7:30   ` Szakacsits Szabolcs
2003-07-10  9:21     ` Oleg Drokin
2003-07-10  8:17       ` Szakacsits Szabolcs
2003-07-10 10:01         ` Oleg Drokin
2003-07-10 14:01           ` Szakacsits Szabolcs
2003-07-10 15:44             ` Oleg Drokin
2003-07-11 14:35       ` Dieter Nützel
2003-07-11 14:49         ` Oleg Drokin
2003-07-11 15:16           ` Dieter Nützel
2003-07-11 15:24             ` Oleg Drokin
2003-07-11 15:27               ` Dieter Nützel
2003-07-11 15:32                 ` Oleg Drokin
2003-07-11 15:35                   ` Dieter Nützel
2003-07-11 15:32               ` Dieter Nützel
2003-07-11 15:36                 ` Marc-Christian Petersen
2003-07-11 15:36                   ` Dieter Nützel
2003-07-11 15:38                 ` Oleg Drokin
2003-07-11 15:34               ` Marc-Christian Petersen
2003-07-11 15:44                 ` Oleg Drokin
2003-07-11 17:09                   ` Chris Mason
2003-07-11 17:27                     ` Dieter Nützel
2003-07-11 18:32                       ` Chris Mason
2003-07-11 19:51                         ` Dieter Nützel
2003-07-12  1:37                           ` Szakacsits Szabolcs [this message]
2003-07-12  5:16                             ` Carl-Daniel Hailfinger
2003-07-12  3:49                               ` Szakacsits Szabolcs
2003-07-12 13:51                                 ` Dieter Nützel
2003-07-15 12:19                                   ` Szakacsits Szabolcs
2003-07-15 16:48                                     ` Dieter Nützel
2003-07-15 17:05                                       ` Oleg Drokin
2003-07-15 19:55                                         ` Dieter Nützel
2003-07-16 10:35                                           ` Oleg Drokin
2003-07-16 10:47                                             ` Dieter Nützel
2003-07-16 10:57                                               ` Oleg Drokin
2003-07-17 18:12                                                 ` Dieter Nützel
2003-07-22 16:43                                         ` Hans Reiser
2003-07-22 16:50                                           ` Chris Mason
2003-07-22 18:09                                             ` Hans Reiser
2003-07-22 18:24                                               ` Chris Mason
2003-07-23  0:16                                                 ` Oleg Drokin
2003-07-23  6:25                                                   ` Hans Reiser
2003-07-23  5:49                                                     ` Voicu Liviu
2003-07-23  7:32                                                       ` Hans Reiser
2003-07-23  7:19                                                         ` Voicu Liviu
2003-07-23  6:14                                                 ` Hans Reiser
2003-07-23 14:38                                                   ` Chris Mason
2003-07-23 14:55                                                     ` Hans Reiser
2003-07-23 16:20                                                       ` Chris Mason
2003-07-23 12:25                                               ` Dieter Nützel
2003-07-23 13:39                                                 ` Hans Reiser
2003-07-23 13:46                                                   ` Dieter Nützel
2003-07-23 13:52                                                     ` Hans Reiser
2003-07-23 14:24                                                       ` Dieter Nützel
2003-07-23 15:24                                                         ` Philippe Gramoullé
2003-07-12 14:05                             ` Dieter Nützel
2003-07-13 13:00                               ` Oleg Drokin
2003-07-13 12:58                             ` Oleg Drokin
2003-07-14  8:45                               ` Hans Reiser
2003-07-13 13:03                             ` Oleg Drokin
2003-07-15 11:51                               ` Szakacsits Szabolcs
2003-07-15 13:51                                 ` Hans Reiser
2003-07-11 19:23                       ` Philippe Gramoullé
2003-08-03 14:05                     ` Hans Reiser
2003-08-04 13:41                       ` Chris Mason
2003-07-11 14:27   ` Chris Mason
2003-07-11 14:32     ` Dieter Nützel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.30.0307120213080.30730-100000@divine.city.tvnet.hu \
    --to=szaka@sienet.hu \
    --cc=Dieter.Nuetzel@hamburg.de \
    --cc=green@namesys.com \
    --cc=m.c.p@gmx.net \
    --cc=mason@suse.com \
    --cc=philippe.gramoulle@mmania.com \
    --cc=reiserfs-list@namesys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.