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.

16.12.8 - Processes running on isolated cores

Featured Replies

I've got a 64 thread Epyc 7551p in my unraid server, with threads 0-7 & 32-39 isolated for use in a vm. This should constitute the first numa node, and the first 8 cores/16 threads.

 

It appears that something is always being scheduled for use on the first 2-3 threads, and it appears to be some process(es?) related to docker, or one of my docker containers.

 

I have tried moving the isolated threads to another numa node but the first 2-3 threads always seem to be in use still.

I have also tried pinning docker containers, but that didnt have any affect either.

 

Ive attached a diagnostic.

 

Any help would be appreciated!

 

image.png.9fe3aa4c82a7dedb10f76ed43ec731b7.png

wiggum-diagnostics-20240227-1038.zip

  • Community Expert

Good practice is to never pin/isolate Core 0 for any VM/Docker, as this will usually be used by the bare metal OS.  This applies to most every OS, including Unraid.  With the number of cores you have, there should be plenty of room for everyone to play nice and have the space they need.

  • Author
35 minutes ago, ConnerVT said:

Good practice is to never pin/isolate Core 0 for any VM/Docker, as this will usually be used by the bare metal OS.  This applies to most every OS, including Unraid.  With the number of cores you have, there should be plenty of room for everyone to play nice and have the space they need.

 

Fair, that makes sense. I'll shift it off the first node to stick with best practice.

When I have moved the isolated threads for troubleshooting though, the processes seem to move with it. The first 2-3 isolated threads seem to be used, regardless of which ones I've got isolated.

 

For example, having just moved the isolation to the back 16 threads:

image.png.973eab2ea9d8ab6607430e1d1758574b.png

Edited by Flon22

  • 2 weeks later...
  • Author

Apolgies for the bump but I really am stuck with this if anyone has any ideas.

For a bit more information, here is what it looks like when I'm using the VM:

image.thumb.png.ff7c68796de889a09dc56bf4fdde6308.png

 

CPU 24 -> 31 and HT 56 -> 63 are isolated.

 

CPU 28 -> 31 and HT 58 -> 63 are pinned to the VM, the other 4 threads have nothing pinned.

 

No idea what is using CPU 24, 25 and HT 56.

 

This is what an average HTOP looks like with the VM running. Note whatever was pegging cpu 24 in the above screenshot had stopped at this point, but the unpinned, but isolated threads were still being used.:

image.thumb.png.a3440f319bc6bbf68630ddb06bf10d06.png

 

Edited by Flon22

  • Community Expert
On 3/9/2024 at 6:18 PM, Flon22 said:

Apolgies for the bump but I really am stuck with this if anyone has any ideas.

For a bit more information, here is what it looks like when I'm using the VM:

image.thumb.png.ff7c68796de889a09dc56bf4fdde6308.png

 

CPU 24 -> 31 and HT 56 -> 63 are isolated.

 

CPU 28 -> 31 and HT 58 -> 63 are pinned to the VM, the other 4 threads have nothing pinned.

 

No idea what is using CPU 24, 25 and HT 56.

 

This is what an average HTOP looks like with the VM running. Note whatever was pegging cpu 24 in the above screenshot had stopped at this point, but the unpinned, but isolated threads were still being used.:

image.thumb.png.a3440f319bc6bbf68630ddb06bf10d06.png

 

You may need to use Numa 1 for the VM as that is where most of your PCI passthru devices are.

 

I have exerimented on my system but only have 2 nodes and 64G per node.

 

I have added this to my xml and it does remain persistent even if you update on the gui.


  <numatune>
    <memory mode='strict' nodeset='1'/>
  </numatune>

 

This results in the following PID 18396 is the vm for the XML. not sure on impact if you set with 16Gb for the VM and only 16Gb is available on that node. Maybe try with 12Gb first, You can specify more that one node so you could do nodeset="1-2" or ="1,2".

 

Per-node process memory usage (in MBs)
PID              Node 0 Node 1 Total
---------------  ------ ------ -----
18396 (qemu-syst      2  32478 32480
31132 (qemu-syst   1183  15529 16712
---------------  ------ ------ -----
Total              1185  48007 49192
root@unraid:~# 

 

As you have somes PCI devices on different nodes you will see IO on some of the other cores not allocated to the VM.

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.