All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oleg Drokin <green@namesys.com>
To: Szakacsits Szabolcs <szaka@sienet.hu>
Cc: reiserfs-list@namesys.com
Subject: Re: Horrible ftruncate performance
Date: Thu, 10 Jul 2003 14:01:11 +0400	[thread overview]
Message-ID: <20030710100111.GA825@namesys.com> (raw)
In-Reply-To: <Pine.LNX.4.30.0307101001150.26018-100000@divine.city.tvnet.hu>

Hello!

On Thu, Jul 10, 2003 at 10:17:40AM +0200, Szakacsits Szabolcs wrote:
> > angband:/mnt # time dd if=/dev/zero of=sparse bs=1 seek=200G count=1
> > 1+0 records in
> > 1+0 records out
> > real    0m19.205s
> > user    0m0.000s
> > sys     0m7.130s
> Interesting. For me, the real and the system time was always [almost] the
> same.

May be this is because when system time was very big, the difference looked like a noise? ;)

> > > > (on 4k blocksize)
> > > AFAIK, reiserfs supports only 4 kB blocksizes. At least the
> > > 'man mkreiserfs' said always so.
> > may be you just have old reiserfsprogs version.
> Yes, I have whatever the latest distros ship. Right now I could check out
> only Red Hat 9 and SuSE 8.2, they both have 3.6.4. The latest reiserfsprogs
> is 3.6.8.

Actually 3.6.4 has support for blocksizes other than 4k, this is controlled by
-b switch of mkreiserfs (run it without arguments and it will tell you)
man page on mkreiserfs (in SuSE 8.2 at least) have it listed too.

> > There are support for variable blocksizes in 2.5, and there is separate
> > patch for 2.4
> Cool. The max 4 kB block size was a long time common deficiency of the main
> Linux filesystems.

The 4k blocksize is not FS limit, this is VFS limit related to the fact that
buffer size cannot be bigger than PAGE_SIZE. PAGE_SIZE is 4k on x86,
but it is bigger on some other architectures (e.g. 8k on alphas).
Also there is an effort by William Lee Irwin III to create "clustered page cache"
or something like that (the patchset is named pgcl-something) for 2.5 kernels,
that one allows to cluster several physical pages into one logical, that will
allow to use blocksizes other than hardware PAGE_SIZE, too.

Bye,
    Oleg

  reply	other threads:[~2003-07-10 10:01 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 [this message]
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
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=20030710100111.GA825@namesys.com \
    --to=green@namesys.com \
    --cc=reiserfs-list@namesys.com \
    --cc=szaka@sienet.hu \
    /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.