All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@zip.com.au>
To: Joerg Schilling <schilling@fokus.gmd.de>
Cc: zaitcev@redhat.com, linux-kernel@vger.kernel.org
Subject: Re: IDE/ATAPI in 2.5
Date: Sun, 14 Jul 2002 16:58:57 -0700	[thread overview]
Message-ID: <3D321041.2D25D649@zip.com.au> (raw)
In-Reply-To: 200207141811.g6EIBXKc019318@burner.fokus.gmd.de

Joerg Schilling wrote:
> 
> ...
> ftp://ftp.fokus.gmd.de/pub/unix/star/testscript/rock.tar.bz2
> 
> It is a tar archive that contains 207,440 empty files and one directory
> using the names of the files in the 'rock' subdirectory from the
> freedb project. This is a snapshot taken on May 30th 2002.
> 
> If you extract this archive on a machine running Solaris or FreeBSD,
> it takes less than 7 minutes.

With ext3 and the htree directory indexing, a 500MHz PIII does
it in 57 seconds.

tar xjf ~/rock.tar.bz2  19.63s user 29.42s system 84% cpu 57.879 total

> A pentium 800 running Solaris 9 results in:
> 
> # star -xp -time < rock.tar.bz2
> star: WARNING: Archive is bzip2 compressed, trying to use the -bz option.
> star: 10372 blocks + 1536 bytes (total of 106210816 bytes = 103721.50k).
> star: Total time 405.988sec (255 kBytes/sec)
> 6:46.051r 12.920u 63.420s 18% 0M 0+0k 0st 0+0io 0pf+0w
> 
> You see during the 6:43, the machine is 82% idle.
> 
> A Pentium 1200 running Linux-2.5.25 (ext3) results in:
> 
> # star -xp -time < rock.tar.bz2
> star: WARNING: Archive is bzip2 compressed, trying to use the -bz option.
> star: 10372 blocks + 1536 bytes (total of 106210816 bytes = 103721.50k).
> star: Total time 3190.483sec (32 kBytes/sec)
> 53:10.490r 12.299u 2970.099s 93% 0M 0+0k 0st 0+0io 4411pf+0w
> 
> You see, during the 53:20, the machine is only 7% idle!
> 
> It wasted 2900 seconds of CPU time on Linux. Let me guess: this was done
> inside the function strcmp().

Nope. ext3 and ext2 directories use the traditional first-fit
search-from-start for directories.  So adding 200k files to
a single directory is pathological.

> There are ~ 5 different filesystems on Linux, but none if the projects seem
> to care about the code outside the FS low level code. I suspect, that
> this is not any better if you use reiserfs.
> 
> Solaris and FreeBSD put all the effort into one filesystem trying to make
> it as good as possible. In Linux, it seems that nobody prooved the overall
> concept of the kernel.

Apply http://www.zip.com.au/~akpm/linux/patches/2.5/2.5.25/ext3-htree.patch
to your 2.5.25 tree, mount with `-o index' and enjoy watching ext3 eat
Solaris and FreeBSD's lunch.

htree isn't quite ready yet and development seems a little moribund.
It'd be nice to get it finished off.

-

  parent reply	other threads:[~2002-07-14 23:48 UTC|newest]

Thread overview: 205+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-14 18:11 IDE/ATAPI in 2.5 Joerg Schilling
2002-07-14 18:40 ` Tomas Szepe
2002-07-14 19:06   ` Tomas Szepe
2002-07-14 19:15     ` Sean Neakums
2002-07-14 19:42       ` Tomas Szepe
2002-07-14 19:02 ` Willy TARREAU
2002-07-14 23:58 ` Andrew Morton [this message]
     [not found]   ` <Pine.LNX.4.33.0207150831080.29242-100000@pc-3.office.scali.no>
2002-07-15  6:54     ` Andrew Morton
2002-07-15 20:26   ` 2.5 ext3 + htree (was: IDE/ATAPI in 2.5) Matthias Andree
  -- strict thread matches above, loose matches on Subject: below --
2002-07-17 14:58 IDE/ATAPI in 2.5 Joerg Schilling
2002-07-17 13:46 Joerg Schilling
2002-07-17 14:00 ` Alexander Viro
2002-07-17 12:32 Joerg Schilling
2002-07-17 13:36 ` Rik van Riel
2002-07-17 13:54 ` Anton Altaparmakov
2002-07-16 17:49 Joerg Schilling
2002-07-16 17:34 Joerg Schilling
2002-07-16 14:30 Richard Zidlicky
2002-07-16 14:06 Joerg Schilling
2002-07-16 14:15 ` Christoph Hellwig
2002-07-16 14:17 ` Lars Marowsky-Bree
2002-07-16 14:02 Joerg Schilling
2002-07-16 12:49 Joerg Schilling
2002-07-16 14:28 ` Jauder Ho
2002-07-16 16:08   ` Buddy Lumpkin
2002-07-16 11:28 Joerg Schilling
2002-07-16  9:33 ` James Bottomley
2002-07-16 11:43 ` Martin Dalecki
2002-07-16 11:47 ` Lars Marowsky-Bree
2002-07-16 11:59 ` Vojtech Pavlik
2002-07-16 11:02 Joerg Schilling
2002-07-16 10:47 Joerg Schilling
2002-07-15 18:27 Nick Bellinger
2002-07-15 20:12 ` Jauder Ho
2002-07-16  7:49 ` Buddy Lumpkin
2002-07-15 15:08 Joerg Schilling
2002-07-15 13:26 Joerg Schilling
2002-07-16  3:16 ` Christer Weinigel
2002-07-15 13:07 Joerg Schilling
2002-07-16 10:16 ` Richard Zidlicky
2002-07-15 12:58 Joerg Schilling
2002-07-15 12:27 Joerg Schilling
2002-07-15 11:27 Joerg Schilling
2002-07-15 14:52 ` Rik van Riel
2002-07-15 11:09 James Bottomley
2002-07-15  9:20 Joerg Schilling
2002-07-15 11:23 ` Buddy Lumpkin
2002-07-15 12:22 ` Benjamin Herrenschmidt
2002-07-15 13:17 ` venom
2002-07-14 20:18 Joerg Schilling
2002-07-14 20:13 Joerg Schilling
2002-07-14 20:18 ` Rik van Riel
2002-07-15  9:11   ` venom
2002-07-15 10:01 ` Richard Zidlicky
2002-07-14 20:04 Joerg Schilling
2002-07-14 20:15 ` Tomas Szepe
2002-07-14 20:21   ` Mathieu Chouquet-Stringer
2002-07-14 20:27     ` Mathieu Chouquet-Stringer
     [not found]     ` <Pine.LNX.4.33.0207141704280.21492-100000@coffee.psychology.mcmaster.ca>
2002-07-14 21:09       ` Mathieu Chouquet-Stringer
2002-07-14 21:46     ` Alan Cox
2002-07-14 20:43       ` Mathieu Chouquet-Stringer
2002-07-14 21:59         ` Alan Cox
2002-07-14 20:54           ` Sean Neakums
2002-07-14 21:09             ` Mark Hahn
2002-07-14 22:20               ` Tomas Szepe
2002-07-14 21:07           ` Mathieu Chouquet-Stringer
2002-07-14 22:07             ` Mathieu Chouquet-Stringer
2002-07-14 22:14               ` Thunder from the hill
2002-07-15  3:34                 ` Mathieu Chouquet-Stringer
2002-07-15  3:38                   ` Thunder from the hill
2002-07-15  3:44                     ` Mathieu Chouquet-Stringer
2002-07-15  4:36                       ` Alexander Viro
2002-07-14 20:45       ` Mathieu Chouquet-Stringer
2002-07-14 20:49       ` Daniel Egger
2002-07-14 19:41 Joerg Schilling
2002-07-14 19:51 ` Tomas Szepe
2002-07-14 19:20 Joerg Schilling
2002-07-14 19:18 Joerg Schilling
2002-07-14 19:27 ` Thunder from the hill
2002-07-14 19:10 Joerg Schilling
2002-07-14 18:22 Joerg Schilling
2002-07-14 15:15 Joerg Schilling
2002-07-14 15:27 ` Rik van Riel
2002-07-14 15:12 Joerg Schilling
2002-07-14 16:45 ` Alan Cox
     [not found] <mailman.1026651901.18426.linux-kernel2news@redhat.com>
2002-07-14 15:05 ` Pete Zaitcev
2002-07-14 14:28 Joerg Schilling
2002-07-14 14:45 ` Anton Altaparmakov
2002-07-14 14:52   ` Thunder from the hill
2002-07-14 14:46 ` Thunder from the hill
2002-07-14 14:25 Joerg Schilling
2002-07-14 14:20 Joerg Schilling
2002-07-14 15:56 ` Erik Andersen
2002-07-14 14:18 Joerg Schilling
2002-07-14 14:35 ` Tomas Szepe
2002-07-14 15:00 ` Rik van Riel
2002-07-14 19:13 ` Richard Zidlicky
2002-07-14 14:07 Joerg Schilling
2002-07-14 15:28 ` Alan Cox
2002-07-18 18:51 ` Kelsey Hudson
2002-07-14 14:00 Joerg Schilling
2002-07-15  0:29 ` Richard B. Johnson
2002-07-14 13:55 Joerg Schilling
2002-07-14 13:47 Joerg Schilling
2002-07-14 14:31 ` Thunder from the hill
2002-07-14 21:23 ` Andre Hedrick
2002-07-14 13:26 Joerg Schilling
2002-07-14 14:28 ` Thunder from the hill
2002-07-14 13:24 Joerg Schilling
2002-07-14 13:39 ` Anton Altaparmakov
2002-07-14 14:10 ` Thunder from the hill
2002-07-14 14:35 ` Adrian Bunk
2002-07-14 16:52   ` Kurt Garloff
2002-07-14 13:17 Joerg Schilling
2002-07-14 14:03 ` Thunder from the hill
2002-07-14 14:44 ` Alan Cox
2002-07-14 13:08 Joerg Schilling
2002-07-14 13:59 ` Thunder from the hill
2002-07-14 13:02 Joerg Schilling
2002-07-14 12:50 Joerg Schilling
2002-07-14 12:44 Joerg Schilling
2002-07-14 12:38 Joerg Schilling
2002-07-14 12:32 Joerg Schilling
2002-07-14 16:01 ` Erik Andersen
2002-07-14  6:20 Adam J. Richter
2002-07-14 15:22 ` Bartlomiej Zolnierkiewicz
2002-07-13 23:27 Adam J. Richter
2002-07-13 23:47 ` Bartlomiej Zolnierkiewicz
2002-07-13 14:46 Adam J. Richter
2002-07-13 15:38 ` Bartlomiej Zolnierkiewicz
2002-07-12 20:08 Joerg Schilling
2002-07-12 21:31 ` Alan Cox
2002-07-12 19:57 Joerg Schilling
2002-07-12 21:17 ` Alan Cox
2002-07-13  5:49   ` Erik Andersen
2002-07-12 19:55 Joerg Schilling
2002-07-12 20:19 ` Richard B. Johnson
2002-07-13  5:40 ` Erik Andersen
2002-07-13 10:52   ` Anssi Saari
2002-07-14  0:35     ` Erik Andersen
2002-07-13 16:53   ` Olivier Galibert
2002-07-14  0:34     ` Erik Andersen
2002-07-16  5:46       ` H. Peter Anvin
2002-07-12 19:49 Joerg Schilling
2002-07-12 19:58 ` Thunder from the hill
2002-07-12 20:38   ` Thunder from the hill
2002-07-12 21:05 ` Alan Cox
2002-07-12 19:37 Joerg Schilling
2002-07-12 19:52 ` Thunder from the hill
2002-07-13  6:36   ` jbradford
2002-07-13 14:25     ` Alan Cox
2002-07-13 13:55       ` Thomas Molina
2002-07-13 15:31         ` Alan Cox
2002-07-13 14:31           ` Thomas Molina
2002-07-13 14:07       ` jbradford
2002-07-13 15:32         ` Alan Cox
2002-07-13 14:36           ` jbradford
2002-07-15 11:47   ` Henning P. Schmiedehausen
2002-07-15 18:44     ` Thunder from the hill
2002-07-12 20:06 ` Andre Hedrick
2002-07-12 20:52 ` Alan Cox
2002-07-12 19:25 Joerg Schilling
2002-07-12  0:27 H. Peter Anvin
2002-07-12  0:37 ` Bartlomiej Zolnierkiewicz
2002-07-12  1:00 ` Alan Cox
2002-07-12  1:23   ` Andre Hedrick
2002-07-12  5:03   ` H. Peter Anvin
2002-07-12  4:13 ` Erik Andersen
2002-07-12  4:17   ` H. Peter Anvin
2002-07-12  4:44     ` Erik Andersen
2002-07-12  4:46       ` H. Peter Anvin
2002-07-12  5:03         ` Andre Hedrick
2002-07-12  5:11           ` H. Peter Anvin
2002-07-12 13:15             ` Alan Cox
2002-07-15 10:24             ` Eric W. Biederman
2002-07-16  5:28               ` H. Peter Anvin
2002-07-12 12:11 ` Martin Dalecki
2002-07-12 12:51   ` Thunder from the hill
2002-07-12 14:17     ` Bartlomiej Zolnierkiewicz
2002-07-12 14:29       ` Martin Dalecki
2002-07-12 14:41         ` Jens Axboe
2002-07-12 15:00           ` Martin Dalecki
2002-07-12 15:05             ` Jens Axboe
2002-07-12 15:41           ` Andre Hedrick
2002-07-12 15:35         ` Alan Cox
2002-07-14  8:19         ` Paul Bristow
2002-07-14  9:11           ` jbradford
2002-07-14  9:16           ` Matthew D. Pitts
2002-07-14 14:04           ` Martin Dalecki
2002-07-14 16:56             ` Thunder from the hill
2002-07-12 15:26     ` Andre Hedrick
2002-07-12 13:22   ` Alan Cox
2002-07-12 13:07     ` Tomas Szepe
2002-07-12 14:06       ` Alan Cox
2002-07-12 15:34       ` Andre Hedrick
2002-07-12 17:52   ` Linus Torvalds
2002-07-12 18:33     ` H. Peter Anvin
2002-07-12 18:54       ` Anton Altaparmakov
2002-07-12 18:55         ` H. Peter Anvin
2002-07-12 19:35         ` Zwane Mwaikambo
2002-07-12 19:06       ` Bartlomiej Zolnierkiewicz
2002-07-12 23:17     ` Matthias Andree
2002-07-12 15:02 ` Kevin P. Fleming
2002-07-12 15:10   ` Martin Dalecki
2002-07-12 16:47   ` Andre Hedrick

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=3D321041.2D25D649@zip.com.au \
    --to=akpm@zip.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=schilling@fokus.gmd.de \
    --cc=zaitcev@redhat.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.