public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Jeff V. Merkey" <jmerkey@timpanogas.org>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: CMA <cma@mclink.it>,
	tytso@mit.edu, card@masi.ibp.fr, linux-kernel@vger.kernel.org
Subject: Re: e2fs performance as function of block size
Date: Tue, 21 Nov 2000 17:37:57 -0700	[thread overview]
Message-ID: <3A1B1565.F6CD1810@timpanogas.org> (raw)
In-Reply-To: <E13yNlM-0005Q3-00@the-village.bc.nu>



Alan Cox wrote:
> 
> > It's as though the disk drivers are optimized for this case (1024).  I
> 
> The disk drivers are not, and they normally see merged runs of blocks so they
> will see big chunks rather than 1K then 1K then 1K etc.
> 
> > behavior, but there is clearly some optimization relative to this size
> > inherent in the design of Linux -- and it may be a pure accident.  This
> > person may be mixing and matching block sizes in the buffer cache, which
> > would satisfy your explanation.
> 
> I see higher performance with 4K block sizes. I should see higher latency too
                                                            
^^^^^^^^^^^^^^^^^
Since buffer heads are chained, this would make sense.


> but have never been able to measure it. Maybe it depends on the file system.
> It certainly depends on the nature of requests

Could be.  NWFS likes 4K block sizes -- this is it's default.  On linux,
I've been emulating other block sizes beneath it.  I see best
performance at 1024 byte blocks, worst at 512.  The overhead of buffer
chaining is clearly the culprit.

On the TCPIP oops on 2.2.18-22, I have not been able to reproduce it
reliably.  It appears to be in the ppp code, however, and not the TCPIP
code.  The problem only shows up after several pppd connections have
accessed the box then terminated the connections (which is why I think
it's pp related).  I would rate this as a level IV bug due to the
difficulty in creating it, and the fact that you have to deliberately
misconfigure a TCPIP network to make it show up.

Jeff

Jeff
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

  reply	other threads:[~2000-11-22  1:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-21 19:46 e2fs performance as function of block size CMA
2000-11-21 17:30 ` Reto Baettig
2000-11-21 23:34 ` Alan Cox
2000-11-22  0:06   ` Jeff V. Merkey
2000-11-22  0:27     ` Brian Pomerantz
2000-11-22  0:27     ` Alan Cox
2000-11-22  0:37       ` Jeff V. Merkey [this message]
2000-11-22 22:28       ` Michael Marxmeier
2000-11-24 13:11         ` Stephen C. Tweedie

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=3A1B1565.F6CD1810@timpanogas.org \
    --to=jmerkey@timpanogas.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=card@masi.ibp.fr \
    --cc=cma@mclink.it \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tytso@mit.edu \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox