Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Tips and Tweaks Plugin to possibly improve performance of Unraid and VMs

Featured Replies

3 minutes ago, dlandon said:

It looks like this applies to the intel_pstate governor only. 

That's right. The plugin could check for the existence of energy_performance_available_preferences (and the values it contains) to determine if it's supported.

 

3 minutes ago, dlandon said:

There are more than two states available on my inel cpu:

I've got the other ones too. In my case at least, I've found "performance" focuses too much on performance (CPUs turbo a lot even when not needed - maybe good for gaming PCs where power saving isn't as important), and "power" focuses too much on power savings. "balance_performance" and "balance_power" are pretty well balanced.

Interesting that performance is the default for you... it was balance_performance for me. It might depend on BIOS settings maybe? I have some of the higher performance options disabled in the BIOS.

Edited by Daniel15

  • Replies 379
  • Views 140.9k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • You'll notice off to the right the CPU Scaling driver is intel_cpufreq.  This is apparently a new governor for some Intel CPUs and replaces the intel_pstate driver.  Tips and Tweaks is not setup for t

  • Not as a default, not in my opinion anyway, as setting this to a value of 1 can be dangerous.   The setting itself determines how the OS responds to memory allocation requests from applicati

  • I'm looking at what I think might be a better way of doing this so the mover won't hang while writting to disk.

Posted Images

  • Author

I am interested in anything that can save power for Unraid users, especially users in Europe.  I'll have to study this a bit to determine feasability and the best way to implement a feature like this.

i know its not belong to this plugin , but is 

vm.overcommit_memory=1 

is a good idea to use in Unraid as it has warning for Redis and other containers ?

by default is vm.overcommit_memory=0

51 minutes ago, Masterwishx said:

i know its not belong to this plugin , but is 

vm.overcommit_memory=1 

is a good idea to use in Unraid as it has warning for Redis and other containers ?

by default is vm.overcommit_memory=0

 

Not as a default, not in my opinion anyway, as setting this to a value of 1 can be dangerous.

 

The setting itself determines how the OS responds to memory allocation requests from applications, with the options being (take some of this with a grain of salt, been a while):

0 - default, responds to allocation requests via an algorithm to determine how much memory can be allocated based on currently reserved, free, and committed memory. Typically safe.

1 - always  accept any memory allocation request, regardless of (anything)

2 - never overcommit memory (never reserve more memory than actually exists, e.g. fail the allocation request if not enough exists)

 

In a system like unraid where we've no swap by default, setting to 1 could be problematic for some, especially lower memory systems, and should (I feel at least) have *some* kind of consideration from the user prior to making such a change (meaning 'make the user have to set this themselves, so at least they've the chance to consider the implications' lol). There are numerous use cases where it's beneficial to set vm.overcommit_memory=1, just have to be aware of the consequences... Which are potentially crashing your server if unraid attempts to allocate memory for itself (mover running, parity check, file access, etc) when there's not enough available.

 

If you plan to set vm.overcommit_memory to 1, it's important to be more cognizant of system memory utilization, being sure to monitor memory usage more closely than otherwise. I'd also consider setting up the swapfile ('fake it till you make it' ram) if you've any concerns over whether or not you've enough memory to handle all you're running on your server.

  • 2 months later...

I was wondering if it would be possible to turn the cpu booster feature

grafik.png.80e5195b6a9477cc54982ebcbfc75d32.png

On and off per cron/scheduler?

My tests showed a dramatic decrease in CPU Temp and power consumption if turned off. But of course, sometimes you need faster responses so it might be manageble per time like the Gouvernor feature below does.

Could this be added to the plugin?

 

  • Author
5 hours ago, MAM59 said:

I was wondering if it would be possible to turn the cpu booster feature

grafik.png.80e5195b6a9477cc54982ebcbfc75d32.png

On and off per cron/scheduler?

My tests showed a dramatic decrease in CPU Temp and power consumption if turned off. But of course, sometimes you need faster responses so it might be manageble per time like the Gouvernor feature below does.

Could this be added to the plugin?

 

I have to decide if it makes sense to turn off the boost with the power save cron, or be on it's own cron.  I'm kind of leaning towards its own cron.

On 12/4/2023 at 1:36 PM, dlandon said:

I'm kind of leaning towards its own cron.

Tnx, already activated it right now 🙂

I think the seperate cron is the correct way to do it because it adds more flexibility.

 

Hmm... something is wrong, or "mam is too stupid?":

Dec  7 00:00:01 F root: Executing /usr/local/emhttp/plugins/ca.turbo/scripts/turboSchedule.php enable 999999
Dec  7 00:00:01 F root: Warning: Overlapping schedules of CA Auto Turbo Mode Detected

Configured is 23:00 OFF and  06;00 On

So, why does it act on 00:00 ?

And yeah, its overlapping midnight, but what is wrong with this?

 

I set it to 00:00 - 08:00 now and see what happens...

Edited by MAM59

  • Author
5 hours ago, MAM59 said:

Hmm... something is wrong, or "mam is too stupid?":

Dec  7 00:00:01 F root: Executing /usr/local/emhttp/plugins/ca.turbo/scripts/turboSchedule.php enable 999999
Dec  7 00:00:01 F root: Warning: Overlapping schedules of CA Auto Turbo Mode Detected

Configured is 23:00 OFF and  06;00 On

So, why does it act on 00:00 ?

And yeah, its overlapping midnight, but what is wrong with this?

 

I set it to 00:00 - 08:00 now and see what happens...

There is something in the new cron tasks that triggers CA Turbo into thinking the schedule for T&T is the CA Turbo schedule and of course it could be seen as an overlapping schedule.

 

I'll have a fix once I know what I need to change.

  • Author
On 12/7/2023 at 12:34 AM, MAM59 said:

Hmm... something is wrong, or "mam is too stupid?":

Dec  7 00:00:01 F root: Executing /usr/local/emhttp/plugins/ca.turbo/scripts/turboSchedule.php enable 999999
Dec  7 00:00:01 F root: Warning: Overlapping schedules of CA Auto Turbo Mode Detected

Configured is 23:00 OFF and  06;00 On

So, why does it act on 00:00 ?

And yeah, its overlapping midnight, but what is wrong with this?

 

I set it to 00:00 - 08:00 now and see what happens...

I think your issue is that you've set a time value for turbo mode to be on for 999999 minutes which is way over a day (1440 minutes).

8 hours ago, dlandon said:

I think your issue is that you've set a time value for turbo mode to be on for 999999 minutes which is way over a day (1440 minutes).

I never used 999999 anywhere (btw: WHERE? you can only set start and end time and feature on or off).

They come somewhere deep outside your plugin. A miscalculation?

 

Since I've used 00:00 to 08:00 there are no message in syslog about this anymore (no message from the plugin at all?)

My educated guess would be that you just subtract the times and do not count in the time wrap.

23:00 - 07:00 should give 420mins.

 

  • Author
3 hours ago, MAM59 said:

I never used 999999 anywhere (btw: WHERE? you can only set start and end time and feature on or off).

They come somewhere deep outside your plugin. A miscalculation?

 

Since I've used 00:00 to 08:00 there are no message in syslog about this anymore (no message from the plugin at all?)

My educated guess would be that you just subtract the times and do not count in the time wrap.

23:00 - 07:00 should give 420mins.

 

The log messages are from CA Turbo, not T&T.  Check your schedule for CA Turbo.

14 minutes ago, dlandon said:

The log messages are from CA Turbo, not T&T.  Check your schedule for CA Turbo.

Sorry, but I have nothing like "CA Turbo" installed here. At least I dont know of any and installed Apps dont show it too.

So, where should I check???

 

Or, could it be "CA Auto Write Turbo" ??? ?

Anyway, I deleted this one now, sorry that I have mixed up CPU Turbo with Write Turbo..

 

Edited by MAM59

  • Author
5 minutes ago, MAM59 said:

Or, could it be "CA Auto Write Turbo"

Yes, and you'll find it on the Settings tab towards the bottom called "TurboWrite".

8 minutes ago, MAM59 said:

r, could it be "CA Auto Write Turbo" ??? ?

Anyway, I deleted this one now, sorry that I have mixed up CPU Turbo with Write Turbo..

 

fixed

Turned boost off today and then server hang up... never had this before but I haven't tried it since the plugin was updated to have a turbo schedule.

 

am on 6.12.6

 

Will upload diagnostics if it saved them.

On reboot the server becomes unresponsive after a few seconds. 

I can boot unraid and log in on web guy.

But as soon as it starts loading the array & docker it seems to lockup.

This could be more of a 6.12.6 issue

  • Author

Uninstall Tips and Tweaks and reboot to be sure it is not causing any issues.

After a reboot I quickly logged in & turned turbo back on and back to normal. 

 

There is something wrong in 6.12.6 though as server never powers down it unmounts everything but then stays at the diagnostics collection bit on screen. So you have to do a manual hold of the power button. No parity check though as it does safely unmount drives etc.

 

May downgrade to 6.12.4

 

Anyway thanks for super fast reply.

Edited by dopeytree

Thank you for the tool. It helped me to understand unraid better due to the large help section (one thing that makes it hard for me to get into unraid sometimes when there is no good explanation available).

 

I have one issue with the plugin and I dont understand why it does not do what I want it to do:

- I did set different NIC settings, saved and rebooted

-> Current settings wont change on the NIC section. In the disk section changes work

 

grafik.thumb.png.06b609dbd05bcdd71cad374a59e88af6.png

  • Author
8 hours ago, Jannik_ said:

Thank you for the tool. It helped me to understand unraid better due to the large help section (one thing that makes it hard for me to get into unraid sometimes when there is no good explanation available).

 

I have one issue with the plugin and I dont understand why it does not do what I want it to do:

- I did set different NIC settings, saved and rebooted

-> Current settings wont change on the NIC section. In the disk section changes work

 

grafik.thumb.png.06b609dbd05bcdd71cad374a59e88af6.png

Post diagnostics.  I suspect your NIC doesn't allow any changes.

I have two NICs:

- One Realtek onboard

- One Trendnet USB-C Adapter w/ Marvell/Aquantia NIC

 

I think its the Realtek. Had the same issure when I just used the Realtek.

Would changing the order help here perhaps?

grafik.thumb.png.90b42848489a745434e4d3f58abad467.png

tower-diagnostics-20231219-1659.zip

Edited by Jannik_

  • 3 weeks later...

Having some issues getting boost scheduling to work. It may just need a re-boot after changing boost to schedule? Currently boost is ON and it should have swapped to Off due to the time being before 18:00. 

 

Also we should match the settings for the 2x scheduled items.

Boost & CPU mode.

 

Easiest is add the word schedule to the title so 'enable / schedule Intel Turbo/AMD Performance Boost?'

 

But maybe 'Intel Turbo/AMD Performance Boost MODE' is better contextually?

 

Or add another line 'Schedule Boost' = On / Off

 

See screenshot below.

 

1099868192_Screenshot2024-01-08at10_30_37.thumb.png.214b79fca27b2ff74382151482375bad.png

Edited by dopeytree

  • Author

I'll take a look at it.  I guess you want to be able to set the current mode and also be able to have it scheduled?

Any chance of getting fs.inotify.max_user_instances added to this plugin?  I had to increase that because of a Plex issue, but not sure if it is going to persist after reboot.  Would love to be able to set that and the existing one (max_user_watches) both.

 

Thank you!

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.