Jump to content
bonienl

Dynamix - V6 Plugins

2501 posts in this topic Last Reply

Recommended Posts

Posted (edited)

Affects the dynamix.s3.sleep Plugin:

 

first, I like it, and it saves a lot of energy, because my Unraid server is close to 19 hours a day in standby, and very fast ready for koi include tvheadend (within 10-15 seconds) from sleep! Better than complete power off, there my computer needs nearly two minutes... :(

 

Just a few things, which would made the script better for me and my usecase (maybe and I am sure it does for others too)

 

  1. Can you change the main loop to:
    # main (continuous loop)
    extraDelay=$delayInit
    [[ $checkTCP == yes ]] && start=0 || start=-1
    while [[ -f $lockfile ]]; do
      if [[ -z $(exclude_period) ]]; then
        if [[ -z $(HDD_activity) ]]; then
          log "All monitored HDDs are spun down"
          if [[ $start -eq 0 ]]; then
            log "Initialize TCP activity counter"
            start=$(txrx_bytes)
          else
            log "Check TCP/SSH/TTY/IP activity"
            if [[ -z $(TCP_activity) && -z $(SSH_activity) && -z $(TTY_activity) && -z $(IP_activity) ]]; then
              log "Communication state is idle"
        
              if [[ $extraDelay -ge 0 ]]; then
                log "Extra delay period running: $extraDelay minute(s)"
                ((extraDelay--))
              fi
            else
              log "Communication activity detected. Reset timers."
              extraDelay=$delayInit
            fi
            [[ $start -gt 0 ]] && start=$(txrx_bytes)
          fi
        else
          log "Disk activity detected. Reset timers."
          [[ $checkTCP == yes ]] && start=0 || start=-1
          extraDelay=$delayInit
        fi
      
        if [[ $extraDelay -lt 0 ]]; then
          [[ $action == sleep ]] && system_sleep || system_down
          log "System woken-up. Reset timers"
          extraDelay=$delayInit
          [[ $checkTCP == yes ]] && start=0 || start=-1
        fi
      fi
      sleep 60
    done &

    Because actually, after HDDs spun down detected, the timer counts, after timer is set to zero, the other checks are maid, e.g. network activity. If I change my computer from living room to the office, the script detects (after HDD spun down) that my living room computer is offline, and server goes to sleep, before I can switch on my office computer. Now I have to switch On my office computer, and when it's on, I can switch off my living room computer.
    If you change the behavior when countdown starts, I have x minutes time to change my computer, because countdown starts AFTER the living room computer is off, and is reset after office computer is on.
    I hope it's understandable what I mean. :(
     

  2. And, maybe you can explain me, why there's one division by 120 in the function TCP_activity? (line 4 in this code segment, or line 255 in the original script)
    TCP_activity() {
      result=
      if [[ $checkTCP == yes ]]; then
        delta=$((($(txrx_bytes)-$start)/120))
        [[ $delta -gt $idle ]] && result=1
      fi
      if [[ -n $result ]]; then
        log "Network activity on going: $(($delta*8)) b/s"
        echo $result
      fi
    }

     

  3. And, again above code segment of function TCP_activity, is it possible to change the unit from b/s to kb/s? I don't know, who has such a slow connection that he must read how many bytes are now transfered :D (is it in line 8 in the above code segment, or line 259 in the original script)

 

Thank you very much :)

 

Best regards

Rain

Edited by AcidRainX
insert correct script...

Share this post


Link to post

Since I put in my new Ryzen build with Asrack mobo, I have a small problem.  Not as big as others here though.

The plugin finds nct6775, and the correct fan's and temps etc.

The issues only related to the mobo temp.

After some time, the temp is incorrect - as in -1 or some other random minus temp.

I just go to the plugin, unload drivers, reload and save and it is all back to normal.  For a while.

Is there anything that could cause this to be fixed ?  or it is sensor/bios support ?

Seeing as it is correct at load time, it should not change should it ?

Share this post


Link to post

Monthly "bump" regarding Autofan control plugin.  Issue still exists where "exclude" checkbox in plugin setup does not ignore NVME drive.  Result is much higher fan speeds than necessary to cool array of spinners.  Hopefully this can be addressed by developer when time permits.    Original post with diagnostics linked below.

 

 

Share this post


Link to post

Hi all,

 

Have installed this plugin onto my Unraid server running a SuperMicro X8DTE-F motherboard. When I hit DETECT nothing seems to happen. Is there anything special I need to do?

 

Many thanks

 

Share this post


Link to post
On 8/27/2019 at 12:02 PM, itfcjim said:

Hi all,

 

Have installed this plugin onto my Unraid server running a SuperMicro X8DTE-F motherboard. When I hit DETECT nothing seems to happen. Is there anything special I need to do?

 

Many thanks

 

Uninstall this plug in. It hasn't work for awhile and doesn't seem to be supported anymore. It's been months with no updates or replys.

Share this post


Link to post

Disk array size and free size calculation seems to be wrong during the pre-clearing of new drives in the array.

 

image.thumb.png.fcbd694a20dc306409f34b0a666b9e04.png

 

image.thumb.png.7d9a7900670144bff2227e8ef2afb022.png

Share this post


Link to post

Not sure what you think is wrong?    The screen shot seems to indicate that you are Clearing (NOT pre-clearing which is a different operation) the drives and until that has completed and the disks subsequently been formatted their space will not be taken into account.

Share this post


Link to post
10 hours ago, realies said:

pre-clearing of new drives in the array

As itimpi said.

 

It is not possible to preclear a disk in the array. But if you add a disk that hasn't been cleared to the array Unraid will clear it so parity remains valid. The "pre" part of preclear means clear a disk before adding it.

Share this post


Link to post

Thanks for pointing out the correct unRAID terminology. I have not used 82% of the available space and it is impossible to use 18.9 TB of a 9 TB total array size. Before adding the new drives the total space used percentage was at 55%, when the new drives were added it jumped to 82% during the clearing stage.

 

image.thumb.png.292f57e9d3490061fd1c5207d5ec6e00.png

Share this post


Link to post

hi,

I need help with the configuration of Sleep plugin. 

My Server starts through the bios, everyday at 18:00, and I want that it keeps working for 6 hours and go to Sleep again.

The problem is that I tried all possibilities, and nothing seans to work.

The "Excluded hours:" does not matter, he goes to speep anyway. 

The "Wait for array inactivity:" if I dont put as "NO" he keeps awake anyway.

The only thing that works is the "Extra delay after array inactivity:", that could solve it all, but this funcion accepted at most 99 minutes.

 

I printed my actual configuration.

 

Someone can help?
Thanks in advance.
I'm a beginner, so excuse me if this is a little basic.

 

 

 

Anotação 2019-09-04 180915.jpg

Share this post


Link to post
15 hours ago, esf said:

The "Excluded hours:" does not matter, he goes to sleep anyway. 

Its been a while since i used the S3 plugin, but I thought that the Excluded hours setting was for doing exactly what you are trying to do. If i remember correctly the S3 Sleep plugin has some debug logging that you can enable. Have you tried enabling that and watching the syslog? That should let you see what triggers the sleep function.

Share this post


Link to post
5 hours ago, primeval_god said:

Its been a while since i used the S3 plugin, but I thought that the Excluded hours setting was for doing exactly what you are trying to do. If i remember correctly the S3 Sleep plugin has some debug logging that you can enable. Have you tried enabling that and watching the syslog? That should let you see what triggers the sleep function.

Thanks a lot for the repply.

I solved the problem, my SETTINGS>DATE AND TIME was not configured. Now the "Excluded hours:" are working perfectly.

 

thank anyway

 

Share this post


Link to post

Greetings everyone,

 

I just built an unraid system with the TUF Gaming X570-Plus mother board and a Ryzen 5 3600.

 

I've looked all over in the forums on getting the motherboard/CPU temps to be recognized but cannot figure it out.

 

When I detect drivers in Dynamix System Temperature plug-in, nothing comes up.  Thanks.

Share this post


Link to post

Just a short question: Is the S3-Sleep Plugin still under support?

The last update was on 4. Feb 2018 - a long time... 😉

Share this post


Link to post

All the Dynamix plugins are "best effort" due to my busy schedule and other commitments.

 

S3-sleep is difficult to test, because I don't have all the different hardware that exists out there.

Recently, I did make a new test server with AMD though, just to see how things work.

 

Share this post


Link to post
6 hours ago, bonienl said:

All the Dynamix plugins are "best effort" due to my busy schedule and other commitments.

Would you recommend users of system temp and autofan plugins transition to script-based solutions at this time?  The plugins are very much appreciated, but having functional issues with Unraid 6.7.2.  As long as the plugins are available for download the nagging will continue ;)

Share this post


Link to post
9 minutes ago, poto2 said:

As long as the plugins are available for download the nagging will continue

The beatings will continue until morale improves.

Share this post


Link to post
31 minutes ago, poto2 said:

The plugins are very much appreciated, but having functional issues with Unraid 6.7.2.

AFAIK, there are no compatibility issues with the plugin and 6.7.x  Rather it's that not all combinations of hardware (due to a variety of factors, most outside of @bonienl's control) will work properly.  The apps tab does have a note on this plugin (and a few others) specifying this.

 

If there is an actual compatibility issue with 6.7.x, then let me know

Share this post


Link to post
19 minutes ago, pluginCop said:

AFAIK, there are no compatibility issues with the plugin and 6.7.x  Rather it's that not all combinations of hardware (due to a variety of factors, most outside of @bonienl's control) will work properly.  The apps tab does have a note on this plugin (and a few others) specifying this.

 

If there is an actual compatibility issue with 6.7.x, then let me know

I never stated that there is an incompatibility, not sure where that is coming from.    Just trying to determine if its worth waiting for @bonienl to address previously reported issue with autofanspeed plugin, or move on to script substitute.

 

I did read the notes on the apps, but a blanket warning that not all hardware is supported leaves a lot of gray area.  Is it OK for a user to ask questions if they are not sure if problem is drivers or hardware or incompatibility with plugin or OS? 

 

 

The hardware I'm running is not bleeding-edge - Supermicro X9SCM-iiF, X10SRM-tf use AST2400 and Nuvoton WPCM450 BMC's - pretty mainstream.  Unraid 6.7.0 + System Temp/Autofan works great, Unraid 6.7.2 + System Temp/Autofan = no sensors found.  Neither combination ignores HGST NVME SSD when selected to ignore.

 

If the developer states they are too busy, not gonna happen, no problem - I'll move on.

Share this post


Link to post

 

17 minutes ago, poto2 said:

I never stated that there is an incompatibility, not sure where that is coming from. 

To be fair, this can read as if you consider the problem to include the OS...

1 hour ago, poto2 said:

...but having functional issues with Unraid 6.7.2.

All pluginCop was saying is that if the issue goes beyond plugin/hardware compatibility and includes the Unraid OS in some way, then it can be flagged as such.  If you were just stating the version of Unraid you were using, rather than saying that Unraid 6.7.2 broke this plugin, then fair enough.  At least that's how it reads to me.

Share this post


Link to post

Agreed, language is tricky, and easily misunderstood.  I regret my wording, as I only intended to specify which version of Unraid I was using to test plugin.

 

Hopefully, the main part of the post, where I document ongoing issue since April 2019, will receive similar attention.

Share this post


Link to post
11 hours ago, bonienl said:

All the Dynamix plugins are "best effort" due to my busy schedule and other commitments.

 

S3-sleep is difficult to test, because I don't have all the different hardware that exists out there.

Recently, I did make a new test server with AMD though, just to see how things work.

 

Hi, I use the Sleep plugin and it`s great.
My hardware is really old, (12 years) and some functions don't work. But even like that, the plugin make a large economy in energy.
One thing that could help in the options of configuration is if the "Extra delay after array inactivity:" aloowed more then 99 minutes.  I know there is other options to prevent sleeping, but this optios is the easyest to configure and work in any hardware that I tried.

 

thanks in advance and congratulations for the app

Share this post


Link to post

"Fahrenheit" appears only in the first post ... (in my search?) ...where is the setting controlling the unit of measure for the temp display?

Share this post


Link to post
31 minutes ago, pepar said:

"Fahrenheit" appears only in the first post ... (in my search?) ...where is the setting controlling the unit of measure for the temp display?

Settings - Display Settings - Temperature unit:

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.