[lkml]   [2000]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject(reiserfs) Re: More on 2.2.18pre2aa2 (summary of elevator ideas)
> "Jeff V. Merkey" wrote:
> >
> > One important point on remirroring I did not mention in my post. In
> > NetWare, remirroring scans the disk BACKWARDS (n....0) to prevent
> > artificial starvation while remirring is going on. This was another
> > optimization we learned the hard way by trying numerous approaches to
> > the problem.

Don't you want to do it a megabyte at a time to prevent abyssimal
disk-performance? (i.e. take the separate megabytes backwards, but do
every megabyte forwards)

instead of
for (b=max;b>0;b--)
for (bb=max-STEP;bb > 0 ; bb -= STEP)
for (b=bb;b<bb+STEP;b++)
(sloppy coding! this is pseudocde, don't copy-paste.)

I expect about 120 IO operations of say 4k (480k per sec) out of a
disk if you read strictly backwards. While you can get about 18 IOs of
1Mb per second (18M per second) out of a disk that you run a
(forwards) megabyte at a time.

The extra latency in the "elevator" is then the time to read a
megabyte, about 50ms, which sounds acceptable to me.


** ** ** +31-15-2137555 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
* Common sense is the collection of *
****** prejudices acquired by age eighteen. -- Albert Einstein ********

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:22    [W:0.084 / U:2.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site