* Re: Ingo's RAID patch for 2.2.18 final?
@ 2001-01-24 15:05 Sasi Peter
2001-02-16 14:17 ` Andrea Arcangeli
0 siblings, 1 reply; 7+ messages in thread
From: Sasi Peter @ 2001-01-24 15:05 UTC (permalink / raw)
To: Andrea Arcangeli, Sasi Peter, Godfrey Livingstone, linux-kernel
> > (30+ high speed streams from 4 disks does really need some caching).
> 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)
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.
> > Can't say, of these many daemons nothing can be swapped out (and
should
> > under I/O load)!
> If you run `cp /dev/zero .` on a smart VM nothing must be swapped out
even if
> it generated nearly the maximal I/O flood possible. It's worthless to
let a
> polluted cache to grow. It won't help anyways and you'll run slower
the next
> time you'll have to pagein from swap.
> It _enterely_ depends on the I/O load pattern if it worth to swapout
or not
> to make space for filesystem cache.
Ok (possibily incorrect, but simple) definition of I/O pressure of mine
is when the _real_ _physical_ disks are working all the time, pushing
data out of the box (in this case through the network).
"cp /dev/zero ." is a somewhat different from my case:
- mine is an IRL case (don't know how often a pattern like the "cp"
case show up IRL)
- Mine is about _reading_ from disks
> > Be this, if this is the price for stability.
> As said we can add bits of page aging (that can't destabilize
anything and it
> will only affect performance behaviour), but I'd prefer to be sure
you really
> get a slowdown due the new VM behaviour (because more aging if done
without
> multiqueue O(1) approch can introduces waste of CPU and cachelines in
kernel
> space), so could you try to kill notes and squid and the other unused
stuff and
> to see if you return to deliver performance as with the older
kernels? I still
It might and it should, but actually I gotta have these started in case
someone drops in for using them. As I understand the only thing this is
worth trying out for is that maybe even with more cache I will have
less performance, than before, because in this case to or not to swap
out dows not really matter. Is this correct? Beacuse I will have to
have these running anyways...
> miss this important information (last thing you said me was that with
100mbyte
> in cache it swapouts, and without knowing the details of the I/O
pattern it
like when decreasing constantly, at reaching that only 100MB cache we
have left do we start swapping to have more cache, or at least have the
100MB not less.
> looked sane). After that I'd also like to know what happens with
2.4.0 that
> uses multiqueue and that is also able to detect pollution and to
avoid swapping
> out in such case.
What should I test with? (2.4.0/1pre?)
-- SaPE / Sasi Péter / mailto: sape@sch.hu / http://sape.iq.rulez.org/
-
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/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Ingo's RAID patch for 2.2.18 final?
2001-01-24 15:05 Ingo's RAID patch for 2.2.18 final? Sasi Peter
@ 2001-02-16 14:17 ` Andrea Arcangeli
2001-02-16 15:53 ` David Mansfield
2001-02-16 19:43 ` Can 2.2 Linux boot from an IDE ZIP? Dennis
0 siblings, 2 replies; 7+ messages in thread
From: Andrea Arcangeli @ 2001-02-16 14:17 UTC (permalink / raw)
To: Sasi Peter; +Cc: Godfrey Livingstone, linux-kernel
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Ingo's RAID patch for 2.2.18 final?
2001-02-16 14:17 ` Andrea Arcangeli
@ 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
1 sibling, 1 reply; 7+ messages in thread
From: David Mansfield @ 2001-02-16 15:53 UTC (permalink / raw)
To: Andrea Arcangeli; +Cc: Sasi Peter, Godfrey Livingstone, linux-kernel
Andrea Arcangeli wrote:
>
> 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).
>
This may be a bit OT, but when you say O_DIRECT, that implies that you
can pass that flag to open(2) and it will bypass the page cache, and
read directly into user-space buffers (zero-copy IO)? Does this also
bypass the read-ahead mechanisms in the kernel? Does it imply O_SYNC?
Lots of questions... no answers. Sigh.
David
--
David Mansfield (718) 963-2020
david@ultramaster.com
Ultramaster Group, LLC www.ultramaster.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Can 2.2 Linux boot from an IDE ZIP?
2001-02-16 14:17 ` Andrea Arcangeli
2001-02-16 15:53 ` David Mansfield
@ 2001-02-16 19:43 ` Dennis
2001-02-17 10:11 ` Sven Vermeulen
2001-02-17 10:14 ` Sven Vermeulen
1 sibling, 2 replies; 7+ messages in thread
From: Dennis @ 2001-02-16 19:43 UTC (permalink / raw)
To: linux-kernel
Can 2.2.x linux made to boot from an ide zip drive? If so, what is required?
DB
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Can 2.2 Linux boot from an IDE ZIP?
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
1 sibling, 0 replies; 7+ messages in thread
From: Sven Vermeulen @ 2001-02-17 10:11 UTC (permalink / raw)
To: Dennis; +Cc: linux-kernel
On Fri, 16 Feb 2001, Dennis wrote:
> Can 2.2.x linux made to boot from an ide zip drive? If so, what is required?
There is a (rather old, but sufficient) mini-HOWTO about this. I use it to
create a Linux-From-Scratch with RPMs. The url is:
http://www.linuxdoc.org/HOWTO/mini/Zip-Install.html
--
Sven Vermeulen
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Can 2.2 Linux boot from an IDE ZIP?
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
1 sibling, 0 replies; 7+ messages in thread
From: Sven Vermeulen @ 2001-02-17 10:14 UTC (permalink / raw)
To: Dennis; +Cc: linux-kernel
On Fri, 16 Feb 2001, Dennis wrote:
> Can 2.2.x linux made to boot from an ide zip drive? If so, what is required?
Oops, sorry, wrong URL (damned):
http://www.linuxdoc.org/HOWTO/mini/Install-From-ZIP.html
Found it with google ("zip install linux mini"). Just to make sure that,
if it's the wrong URL again (but I doubt it), it's easy to find yourself.
--
Sven Vermeulen
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Ingo's RAID patch for 2.2.18 final?
2001-02-16 15:53 ` David Mansfield
@ 2001-02-17 19:23 ` Andrea Arcangeli
0 siblings, 0 replies; 7+ messages in thread
From: Andrea Arcangeli @ 2001-02-17 19:23 UTC (permalink / raw)
To: David Mansfield; +Cc: Sasi Peter, Godfrey Livingstone, linux-kernel
On Fri, Feb 16, 2001 at 10:53:51AM -0500, David Mansfield wrote:
> This may be a bit OT, but when you say O_DIRECT, that implies that you
> can pass that flag to open(2) and it will bypass the page cache, and
yes.
> read directly into user-space buffers (zero-copy IO)? Does this also
yes.
> bypass the read-ahead mechanisms in the kernel? Does it imply O_SYNC?
yes.
It's rawio through the fs. It's not included into 2.4-latest yet.
Andrea
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2001-02-17 19:23 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-24 15:05 Ingo's RAID patch for 2.2.18 final? Sasi Peter
2001-02-16 14:17 ` Andrea Arcangeli
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®