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.

Docker still scheduling on isolated CPU cores/threads

Featured Replies

I have a 24C/48T system which has "isolcpus=6-11,30-35" set at boot time to isolate 6C/12T for a VM. I am still seeing docker containers running on these cores when I do "ps -eo pid,psr,comm", and see their CPU utilization in the dashboard with the VM shut down.

 

Do I have to explicitly pin the containers to other cores/threads, or is this functionality broken? I don't see a way to set the cpuset globally for the docker cgroup, and since I have 60+ containers I was hoping to not have to manually set the cpuset on each one - that's a lot of clicking.

 

Is there a better approach for this, or am I misunderstanding how isolcpu works?

Shouldn't have to pin the containers.  Only reason OTOH a container would wind up running on an isolated core is if you've actually pinned the container to that isolated core.

  • 1 month later...

I've noticed this behavior too, despite the last 2core/2threads of my system being isolated, one docker container in particular will exclusively sit on an isolated thread and keep it pinned at 100%.  No amount of tinkering with privileged/unprivileged container settings has changed this.  I have confirmed that the docker is not assigned to any cores/threads and is most certainly not assigned to these isolated cores.

Edited by dgstewart

I can confirm too. Isolated 2 cores/4 threads but Tdarr node is still using the isolated cores. Potentially a bug.

For what it's worth, I have not observed this behavior since I changed my pinned cores from the last two cores of my system (CPU 22 - HT 46, CPU 23 - HT 47)

to the first few cores of my system (CPU 1 - HT 25, CPU 2 - HT 26).
Not sure if this is still the case, or ever was, but I remember being told specifically not to isolate Core 0 since the Unraid Host OS uses this for its related functions.

To reiterate, my particular issue was that a NON-pinned and NON-privileged container, after some time of running normally, was getting assigned to the last thread on my system (HT 47) I can only speculate as to why this was happening.

Hopefully this helps somebody and maybe confirms my procedure as a temporary solution.

I have a dual CPU system and I have the 2nd (CPU 1 - HT 29) and 3rd (CPU 2 - HT 30) on the first socket isolated for TrueNAS exclusively. But I have observed Tdarr using CPU 1 for video transcoding. Any solutions?

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.