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.

Giving docker higher priorty?

Featured Replies

Long story short, I run a mumble docker and even small delays get really annoying. In windows I had it set to the highest priorty and it worked good, is it possible to set a docker to a higher priority level so it gets first dibs on CPU cycles?

 

Looking around a think it is called niceness in linux?

 

For more advanced usage, you can google docker run reference

  • Author
20 minutes ago, Squid said:

 

For more advanced usage, you can google docker run reference

I saw that before but only saw how to limit cores and thus reduce priority. I did not see anywhere how to increase priority above normal?

 

I will google that in a min and see what turns up. Already googled a fair amount on this topic but could not find a solid universal answer. Just container specific options it seemed.

  • Author

I googled the run reference and only thing that seems to be along the lines I am looking for is:

 

SYS_NICE Raise process nice value (nice(2), setpriority(2)) and change the nice value for arbitrary processes.

 

It looks like I need to add this to the extra commands section in unraid:

 

--cap-add=SYS_nice -19

 

Is this the correct command and syntax? I am still very new to this.

Per the link, you can also prioritize the container.  Setting the shares to 1024 and everything else to 2 gives that container the highest priority and everything else the lowest.

10 hours ago, TexasUnraid said:

Is this the correct command and syntax? I am still very new to this.

Niceness is in the "do it if you know what you are doing" category. You seem to be focusing on a single thing (niceness) without considering any other option.

 

Read the post Squid quoted.

--cpu-shares is a better option to ensure a docker gets the biggest share of the processing.

 

The default value (if --cpu-shares is not set) is 1024. So for your mumble docker, you want something larger like --cpu-shares=10240.

  • Author
2 hours ago, testdasi said:

Niceness is in the "do it if you know what you are doing" category. You seem to be focusing on a single thing (niceness) without considering any other option.

 

Read the post Squid quoted.

--cpu-shares is a better option to ensure a docker gets the biggest share of the processing.

 

The default value (if --cpu-shares is not set) is 1024. So for your mumble docker, you want something larger like --cpu-shares=10240.

Not so much focusing on the niceness option as it is the only option I have found that was not pinning to cores and it seemed to be the linux equivalent to priority in windows.

 

Got to remember that when someone doesn't have a clue what things are called in linux, they don't even know what to search to find the answers they need and will latch on to the first thing that seems to do what they want since by that point that are just glad to see something that might work.

 

I missed the cpu-shares option as it was on the 2nd page. I tried searching for CPU, priority etc but nothing useful came up on the first page.

 

CPU-shares does seem to be what I am looking for, glad you mentioned that I can put the number higher then 1024, that is way easier then trying to change every other docker to lower priority.

 

Will this also give higher priority vs non-docker processes? Not as big of a deal but curious.

2 minutes ago, TexasUnraid said:

...

Got to remember that when someone doesn't have a clue what things are called in linux, they don't even know what to search to find the answers they need and will latch on to the first thing that seems to do what they want since by that point that are just glad to see something that might work.

...

Will this also give higher priority vs non-docker processes? Not as big of a deal but curious.

Apologies for that.

 

--cpu-shares is docker specific.

Given dockers are like apps, there are very few scenarios which would require giving a docker higher priority than non-docker processes.

 

  • Author

No worries, I have been in your shoes many times as well just assuming people know basic things and then quickly get put in my place again as soon as I move into another field lol. It is easy to forget the learning curve once you have climbed it.

 

Yeah, I was not super worried about giving it higher then non-docker processes but there are cases, like when doing a parity check for example, where the CPU can be pretty stressed and cause noticeably higher delay in mumble. Although by putting mumble ahead of all the other dockers should be good enough.

 

It just sips resources but it is really noticeable when there is a delay, particularly since some of us are in the same room due to covid right now and you hear them outside mumble and a second later in mumble. Very disorientating lol.

 

I added the cpu shares command, looking forward to testing it out at our next gaming session.

 

This also answers the question I had about how to give handbrake a lower priority.

Edited by TexasUnraid

  • Author

Slightly off topic question, what is the difference between these in the docker settings:

 

Extra Parameters:

 

and

 

Post Arguments:

53 minutes ago, TexasUnraid said:

Slightly off topic question, what is the difference between these in the docker settings:

 

Extra Parameters:

 

and

 

Post Arguments:

Extra param added stuff to after docker run command.

Post arguments added stuff to the very end of the command (e.g. to pass parameters to the docker or to run a command from within the docker).

 

You can think of it as the former is host-level parameters and the latter is guest-level parameters.

Edited by testdasi

  • Author

Ah, ok that makes more sense, wish they had a drop down explaining that like most other things in the GUI

Archived

This topic is now archived and is closed to further replies.

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.