public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrea Arcangeli <andrea@suse.de>
To: Sasi Peter <sape@iq.rulez.org>
Cc: Godfrey Livingstone <godfrey@hattaway-associates.com>,
	linux-kernel@vger.kernel.org
Subject: Re: Ingo's RAID patch for 2.2.18 final?
Date: Fri, 16 Feb 2001 15:17:37 +0100	[thread overview]
Message-ID: <20010216151737.D14430@inspiron.random> (raw)
In-Reply-To: <200101241505.QAA01045@iq.rulez.org>
In-Reply-To: <200101241505.QAA01045@iq.rulez.org>; from sape@iq.rulez.org on Wed, Jan 24, 2001 at 04:05:12PM +0100

On Wed, Jan 24, 2001 at 04:05:12PM +0100, Sasi Peter wrote:
> > This isn't obvious. Your working may not fit in cache and so the kernel
> > understand it's worthless to swapout stuff to make space to a polluted
> > cache.
> 
> But your understanding agrees on that the larger chunks for each stream 
> we read into cache, the more efficient for this kind of RAID disk 
> structure the read is, thus basically the more cache we have, the more 
> bandwidth we can serve. (disks give more data in the same time with 
> fewer long reads than with several shorter ones)

The size of the I/O requests doesn't grow linearly with with the size of the
cache, as far as you have some mbyte of cache you will also be able to sumbit
full sized requests to disk (512K per req on 2.4). In your workload you just
had enough memory for the readahead.

In general if your working set doesn't fit in cache, the size of the cache is
unrelated to the bandwith you get out of your RAID, infact if your working set
doesn't fit in cache you should not pass through the cache at all to get the
best performance and to save CPU cycles and L1 dcache and L2 cache (O_DIRECT).

> So might it have been an accidental behaviour of the previous kernels 
> to swap out pages in favor of caching under high I/O pressure, but it 
> was certainly a benefical behaviour.

I trust you this is the case for your workload, but make sure to not assume
that because there's less cache and no swap you're running slower, you may be
running _much_ faster instead ;).

> What should I test with? (2.4.0/1pre?)

latest pre patch is ok.

Andrea

  reply	other threads:[~2001-02-16 14:18 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-24 15:05 Ingo's RAID patch for 2.2.18 final? Sasi Peter
2001-02-16 14:17 ` Andrea Arcangeli [this message]
2001-02-16 15:53   ` David Mansfield
2001-02-17 19:23     ` Andrea Arcangeli
2001-02-16 19:43   ` Can 2.2 Linux boot from an IDE ZIP? Dennis
2001-02-17 10:11     ` Sven Vermeulen
2001-02-17 10:14     ` Sven Vermeulen
  -- strict thread matches above, loose matches on Subject: below --
2001-01-11 21:36 Ingo's RAID patch for 2.2.18 final? Jens Petersohn
2001-01-11 22:22 ` Takacs Sandor
2001-01-11 22:27   ` Alan Cox
2001-01-11 22:42     ` Takacs Sandor
2001-01-11 22:48       ` Jens Petersohn
2001-01-11 23:14         ` Takacs Sandor
2001-01-11 23:56       ` Matthias Kilian
2001-01-12 15:20       ` Oliver Teuber
2001-01-12  1:30 ` Andrea Arcangeli
2001-01-14  4:55 ` Godfrey Livingstone
2001-01-14  7:54   ` junio
2001-01-14 12:35     ` Ingo Molnar
2001-01-23 23:52   ` Sasi Peter
2001-01-24  0:09     ` Andrea Arcangeli
2001-01-24  0:43       ` Sasi Peter
2001-01-24  1:27         ` Andrea Arcangeli

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=20010216151737.D14430@inspiron.random \
    --to=andrea@suse.de \
    --cc=godfrey@hattaway-associates.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sape@iq.rulez.org \
    /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