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

  • Author
4 hours ago, Rhuarc said:

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!

Yes.

  • 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

I only seem to have powersave and performance in the scaling governor. Does anyone know why?

 

Update. Okay having read through it is because that is all that is offered by Intel P-state driver it seems. Do you get to choose a driver or just have to haev the one it defaults to? I have an Intel i7 9700 8 core CPU.

 

 

Edited by planetwilson

  • 4 weeks later...

The issue with a server hangup when changing from turbo ON to turbo OFF can be mitigated by stopping the main array. Making the change then starting array again.

 

I'm still not sure what causes the issue but basically the server looses responsiveness and cannot be pinged.

 

Doe anyone else have any issues? I am on 6.12.6 with a intel 11900t

 

 

Anyone here with an AMD Ryzen? I’m using the 5800x3d on unraid. Changed the governor from performance to ondemand. But I read that there’s an AMD specific driver that is supposedly tailored for these Ryzen cpus? Is that true? Like it’s stated here:
 

Quote

amd_pstate_epp This "active" driver implements a scaling driver with an internal governor for AMD Ryzen (some Zen 2 and newer) processors.

https://wiki.archlinux.org/title/CPU_frequency_scaling#Scaling_drivers

Has anyone used this at all in unraid? Or should I leave it as ondemand/performance realistically?

I haven't heard of that driver, but I will confirm that "Ondemand" does work for my 3960x (Zen2) as far as I can tell, within the "Tips & Tweaks" plugin.  *Also, "Enable Intel Turbo/AMD Performance Boost?" seems to work as well.  The biggest difference is between "Power Save" and "Performance". YMMV I guess.

  • 2 weeks later...

New 13th Gen cpu on 6.12.8 - I can disable turbo but when toggle it back to ON doesn't yield a result without a reboot. Any ideas?

  • Author
7 hours ago, dopeytree said:

New 13th Gen cpu on 6.12.8 - I can disable turbo but when toggle it back to ON doesn't yield a result without a reboot. Any ideas?

What CPU Governor shows in the Tips and Tweaks UI page?

powersave & performance 

  • Author
3 hours ago, dopeytree said:

powersave & performance 

What driver shows on the UI?

Screenshot 2024-02-25 071220.png

CPU Intel 13500H

 

The issue is if I turn turbo off then turn back on it stays off until a reboot.

It's a minor issue but have seen it on 2x Intel cpus. First one is a 11900T & this one is a 13500H.

 

Does anyone else experience this? The new CPU is very good at stepping down so not such an issue.

 

 

1860735271_Screenshot2024-02-25at15_28_54.png.bff6f0d7d62279443c0d3265097b5cb0.png

1808809946_Screenshot2024-02-25at15_28_29.thumb.png.c6f5105cbe25a089fdc161cd71e62d34.png

1850571811_Screenshot2024-02-25at15_28_37.thumb.png.3971820c454e2a7b9854fec09cc062b5.png

  • Author
12 minutes ago, dopeytree said:

The issue is if I turn turbo off then turn back on it stays off until a reboot.

Turn off turbo boost and then go to a command line and run this command:

/usr/bin/flock -x -w 1 /sys/devices/system/cpu/intel_pstate/no_turbo -c 'echo "0" > /sys/devices/system/cpu/intel_pstate/no_turbo'

Let me know if this command generates any errors.  If there are no errors, does the turbo boost turn back on?

Hmm thanks yeah turbo seems to turn back on with this command as now boosting back up past 2.6Ghz which is the turbo off limit. 

 

  • Author
1 hour ago, dopeytree said:

Hmm thanks yeah turbo seems to turn back on with this command as now boosting back up past 2.6Ghz which is the turbo off limit. 

 

Does the right side of Tips and Tweaks show the proper status of the turbo mode when you turn it back on?

  • 3 months later...

Hello,

 

the links to the "Tips and Tweaks" Wiki end in a "404". Could that be fixed or a special page be placed, that informs the user, why that Wiki has gone?

Thank you.

  • Author
5 hours ago, amix said:

Hello,

 

the links to the "Tips and Tweaks" Wiki end in a "404". Could that be fixed or a special page be placed, that informs the user, why that Wiki has gone?

Thank you.

Where do you see a link to a "Tips and Tweaks" Wiki?

10 hours ago, dlandon said:

Where do you see a link to a "Tips and Tweaks" Wiki?

In the first reply to your opening post, by @RobJ. And then later in some signature (or so), if memory serves me right.

  • Author
4 hours ago, amix said:

In the first reply to your opening post, by @RobJ. And then later in some signature (or so), if memory serves me right.

Those links are to the older documentation system that has been replaced.  Trying to fix those now would be pretty impractical and I cannot change a person's signature content.  About all I can do is strike out the links in the text that no longer work.

On 6/8/2024 at 2:53 PM, dlandon said:

Trying to fix those now would be pretty impractical and I cannot change a person's signature content.  About all I can do is strike out the links in the text that no longer work.

My post was meant for the admins, since they should do something about the 404. Maybe create a page explaining why the wiki is no more.

On 6/9/2024 at 11:02 AM, amix said:

My post was meant for the admins, since they should do something about the 404. Maybe create a page explaining why the wiki is no more.

 

The urls in that signature have not been valid for many years, I went ahead and removed them. The current docs are available at https://docs.unraid.net/

  • 1 month later...

Hey, so I'm new, and this is my first install.

 

Before fully using it I want to make shure my 12700K never enters turbo mode, can't do this in my BIOS, and while I'm at it, if I can make it go into a low power state while I'm at sleep better. I might as well even consider turning it off, I'll see.

 

So I landed is this plug-in. After reading through it I came up with these settings:

image.thumb.png.98ca30d497cb81e00927ef59ef3d7e81.png

 

However I got 2 doubts:

1. This line in the tips section:

Quote

If you set the 'Power Save' CPU Governor, you may see your processors stuck at 800 MHz. It is recommended you use the 'Performance' Governor for best performance and power savings.

If during my powersaving schedule I don't care about performance and all I'm looking for is power saving as I wont be using it, is it still ok to set it as I did?

 

2. From the Normal Governor tooltip

Quote

"Performance" - Set all CPUs at full frequency regardless of load. This can have a positive influence on performance and latency.

Will this still comply with the Intel Turbo configuration I set? Like will that "full frequency" ignore my config and push it to turbo levels?

 

Thanks in advance!

  • 1 month later...

How can I enable "turbo boost" and “performance" mode automaticly before starting the GamingVM?

every time I play game through the gamingvm, I have to enable these two functions with several steps.

Is there any commandline can help?

So do you still enable all the power saving features in your bios or does this defeat the object of this plugin?

 

 

  • 2 months later...

There's some indication that for very high memory systems (i.e i have 256GB of memory), it would be better to set dirty_bytes / dirty_background_bytes instead (https://www.suse.com/support/kb/doc/?id=000017857). Since the % numbers are limited to integers, 1% / 2% still causes quite some freezing when the mover is running (my rough model is reads are queued behind 2.56GB of cache, so transferring at ~100MB / s means operations freeze for ~30s while mover is running).

 

Could we add those two flags as an alternative way of setting dirty?

  • Author
On 11/5/2024 at 7:02 AM, jch said:

There's some indication that for very high memory systems (i.e i have 256GB of memory), it would be better to set dirty_bytes / dirty_background_bytes instead (https://www.suse.com/support/kb/doc/?id=000017857). Since the % numbers are limited to integers, 1% / 2% still causes quite some freezing when the mover is running (my rough model is reads are queued behind 2.56GB of cache, so transferring at ~100MB / s means operations freeze for ~30s while mover is running).

 

Could we add those two flags as an alternative way of setting dirty?

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.

  • Author

New release.  Two dirty cache settings:

  • Disk Cache 'vm.dirty_writeback_centisecs' - This controls how often (in hundredths of a second) the kernel checks for dirty data to flush in the background.  The Linux default is 5 seconds.  Tips and Tweaks defaults this value to 2 seconds.
  • Disk Cache 'vm.dirty_expire_centisecs' - This setting dictates how long (in hundredths of a second) data can stay dirty before it’s eligible to be written to disk.  The Linux default is 30 seconds.  Tips and Tweaks defaults this value to 10 seconds.

The Tips and Tweaks default values are reasonable for a system of 32GB of RAM.  For a system with large amounts of RAM, the writeback might be best at 1 second and expire at 5 seconds.

 

What all this means is that the cache is written more often and should improve the situation where the system pauses to write out a large cache.

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.