Jump to content
itimpi

[Plugin] Parity Check Tuning

86 posts in this topic Last Reply

Recommended Posts

For general reference the diagnostic information that @vw-kombisupplied showed that the plugin is not updating the history correctly when errors were reported/corrected during the parity check.  The history will always show 0 errors until I issue a corrected version of the plugin. 

Share this post


Link to post
Posted (edited)

The plugin should low update the error count in the parity history for any future checks.

 

In addition I have exposed some functionality at the CLI level that some may find helpful.   

Usage: parity.check <action>
where action is one of
  pause            Pause a rumnning parity check
  resume           Resume a paused parity check
  check            Start a parity check (as Settings->Scheduler)
  correct          Start a correcting parity check
  nocorrect        Start a non-correcting parity check
  status           Show the status of a running parity check
  cancel           Cancel a running parity check

I would be interested any feedback on this feature.

Edited by itimpi

Share this post


Link to post

Has the statistics report (time, speed, etc) been updated to carryover after a pause, or is it still just for the currently running check?

 

Just trying to keep track of the changes.😁

Share this post


Link to post
13 minutes ago, wgstarks said:

Has the statistics report (time, speed, etc) been updated to carryover after a pause, or is it still just for the currently running check?

 

Just trying to keep track of the changes.😁

Not quite sure what you are asking?   If you are talking about the parity history then the plugin has always updated it to be correct for the run as a whole - not just the last increment.   It was already doing this for duration, speed etc, but there was a bug (now fixed) where this was not being done for the error count.  

 

While writing this it has just occurred to me that the parity check history does not currently show whether a run was correcting or non-correcting - would it be useful to have this displayed in the history as well? It should be an enhancement I could make to the plugin easily enough.

Share this post


Link to post

I know that originally if a check was paused the elapsed time would reset to zero after the check was resumed. I had assumed this would also effect the averaged speed, but that may be a mistake on my part, and possibly this has all been corrected already.

Share this post


Link to post
11 minutes ago, wgstarks said:

I know that originally if a check was paused the elapsed time would reset to zero after the check was resumed. I had assumed this would also effect the averaged speed, but that may be a mistake on my part, and possibly this has all been corrected already.

you need to distinguish what the core Unraid system does and what the plugin does.    Core Unraid seems to reset for each increment, but when the plugin is handling the pause/resume process it keeps track of how each increment went and then on completion it calculates the figures for the run as a whole and this is what ends up in the history.

Share this post


Link to post
17 minutes ago, wgstarks said:

that may be a mistake on my part,

Well then, I was correct. It was a mistake on my part.😀

 

Thanks for the explanation. I know there isn’t much the plugin can do to correct the core functionality, and honestly, the stats for a running check have never been very accurate due to the speed changes across the disk itself (and I’m sure many other factors).

Share this post


Link to post

So far this seems to function as expected. I have issues with heat, particularly during parity checks, on my system and have enabled that feature as well to see if it will help. 

Share this post


Link to post
47 minutes ago, jmcconathy said:

So far this seems to function as expected. I have issues with heat, particularly during parity checks, on my system and have enabled that feature as well to see if it will help. 

I will be interested to see how well this works.   My tests were a little artificial as my system does not suffer from heat problems.

 

if you have any problems then please enable the debugging log option in the plugin settings and then let me have a copy of the syslog so that I can see what is going on.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.