All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Clements <Paul.Clements@SteelEye.com>
To: ptb@it.uc3m.es
Cc: neilb@cse.unsw.edu.au, linux-raid@vger.kernel.org
Subject: Re: calc. of currspeed in md.c code in 2.4.20
Date: Wed, 14 May 2003 09:48:22 -0400	[thread overview]
Message-ID: <3EC24926.1D33CAAB@SteelEye.com> (raw)
In-Reply-To: 200305140833.h4E8X5P00764@oboe.it.uc3m.es

"Peter T. Breuer" wrote:
> 
> Can you shed some light on this for me?
> 
> currspeed =
>  (j-mddev->resync_mark_cnt)/2/((jiffies-mddev->resync_mark)/HZ +1) +1;
> 
> jiffies is divided by HZ here, which results in a quantity of dimension
> time-squared!
> 
> I could understand it (better) if jiffies were multiplied by HZ.

Just curious, but are you looking at this because the speed calculations
break when using a bitmap to resync? I realized this problem a few days
ago, but I'm not sure how to solve it, yet...

I think we might need two counters, one for the actual resync progress
(to display the progress bar, and show actual resync speed) and the
other to throttle I/O if actual I/O becomes too fast...

--
Paul

  parent reply	other threads:[~2003-05-14 13:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-14  8:33 calc. of currspeed in md.c code in 2.4.20 Peter T. Breuer
2003-05-14 11:47 ` Neil Brown
2003-05-14 13:48 ` Paul Clements [this message]
2003-05-14 13:54   ` Peter T. Breuer
2003-05-14 14:18     ` Peter T. Breuer
2003-05-14 14:41       ` Paul Clements
2003-05-14 14:53         ` Peter T. Breuer

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=3EC24926.1D33CAAB@SteelEye.com \
    --to=paul.clements@steeleye.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@cse.unsw.edu.au \
    --cc=ptb@it.uc3m.es \
    /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.