Performance Improvements in VMs by adjusting CPU pinning and assignment


Recommended Posts

  • 4 weeks later...
  • 11 months later...

Wondering if someone could recommend how I may increase performance in a VM with a Intel® Avoton C2750 Octa-Core Processor on an ASRock C2750D4I mb which has single thread pairings. I've tried googling it, but can't find much information what would be the proper or recommended way to pin the CPU.

 

The main purpose of the server is to run Plex and dockers, but as of recently I am trying to set up a VM to run Power BI and Excel mainly.

Screen Shot 2023-03-27 at 3.45.33 PM.png

Link to comment
1 hour ago, sonisame said:

I am sure, it has been asked before, but can I change machine type from Q35 to I440vx for existing VM? Do I need to change something in VM setting or will it work on the fly? 

as this is more or less just the "chipset", yes, it should work, may just needs some new drivers then ...

 

but, just to be safe and as its so easy ...

 

shut down your vm, copy the vdisk image as backup,  change  mashine type and see what happens, if all is ok, just wipe the vdisk image backup, if not wipe the non working one, move back the original one, change back your vm setting and all is like it never happened ...

 

or, after copy, just setup a new vm with your changed i440 setting and use the copied vdisk ... if all is ok, wipe the "old" vm ...

  • Like 1
Link to comment
  • 2 weeks later...
  • 11 months later...

If you are curious to see how your CPU is handle in unraid the following two commands can show you dies layout for CPU isolation.  For the chiplet designs coming out is best to put your workhorse vm on a single chiplet intead across multiple.  Hope this helps.

lscpu -e and lstopo

 

lstopo
Machine (126GB total)
  Package L#0
    NUMANode L#0 (P#0 126GB)
    L3 L#0 (32MB)
      L2 L#0 (512KB) + L1d L#0 (32KB) + L1i L#0 (32KB) + Core L#0
        PU L#0 (P#0)
        PU L#1 (P#16)
      L2 L#1 (512KB) + L1d L#1 (32KB) + L1i L#1 (32KB) + Core L#1
        PU L#2 (P#1)
        PU L#3 (P#17)
      L2 L#2 (512KB) + L1d L#2 (32KB) + L1i L#2 (32KB) + Core L#2
        PU L#4 (P#2)
        PU L#5 (P#18)
      L2 L#3 (512KB) + L1d L#3 (32KB) + L1i L#3 (32KB) + Core L#3
        PU L#6 (P#3)
        PU L#7 (P#19)
      L2 L#4 (512KB) + L1d L#4 (32KB) + L1i L#4 (32KB) + Core L#4
        PU L#8 (P#4)
        PU L#9 (P#20)
      L2 L#5 (512KB) + L1d L#5 (32KB) + L1i L#5 (32KB) + Core L#5
        PU L#10 (P#5)
        PU L#11 (P#21)
      L2 L#6 (512KB) + L1d L#6 (32KB) + L1i L#6 (32KB) + Core L#6
        PU L#12 (P#6)
        PU L#13 (P#22)
      L2 L#7 (512KB) + L1d L#7 (32KB) + L1i L#7 (32KB) + Core L#7
        PU L#14 (P#7)
        PU L#15 (P#23)
    L3 L#1 (32MB)
      L2 L#8 (512KB) + L1d L#8 (32KB) + L1i L#8 (32KB) + Core L#8
        PU L#16 (P#8)
        PU L#17 (P#24)
      L2 L#9 (512KB) + L1d L#9 (32KB) + L1i L#9 (32KB) + Core L#9
        PU L#18 (P#9)
        PU L#19 (P#25)
      L2 L#10 (512KB) + L1d L#10 (32KB) + L1i L#10 (32KB) + Core L#10
        PU L#20 (P#10)
        PU L#21 (P#26)
      L2 L#11 (512KB) + L1d L#11 (32KB) + L1i L#11 (32KB) + Core L#11
        PU L#22 (P#11)
        PU L#23 (P#27)
      L2 L#12 (512KB) + L1d L#12 (32KB) + L1i L#12 (32KB) + Core L#12
        PU L#24 (P#12)
        PU L#25 (P#28)
      L2 L#13 (512KB) + L1d L#13 (32KB) + L1i L#13 (32KB) + Core L#13
        PU L#26 (P#13)
        PU L#27 (P#29)
      L2 L#14 (512KB) + L1d L#14 (32KB) + L1i L#14 (32KB) + Core L#14
        PU L#28 (P#14)
        PU L#29 (P#30)
      L2 L#15 (512KB) + L1d L#15 (32KB) + L1i L#15 (32KB) + Core L#15
        PU L#30 (P#15)
        PU L#31 (P#31)

 

lscpu -e
CPU NODE SOCKET CORE L1d:L1i:L2:L3 ONLINE    MAXMHZ    MINMHZ       MHZ
  0    0      0    0 0:0:0:0          yes 5083.3979 2200.0000 3696.7129
  1    0      0    1 1:1:1:0          yes 5083.3979 2200.0000 3838.7380
  2    0      0    2 2:2:2:0          yes 5083.3979 2200.0000 4712.8442
  3    0      0    3 3:3:3:0          yes 5083.3979 2200.0000 4323.0791
  4    0      0    4 4:4:4:0          yes 5083.3979 2200.0000 4716.0020
  5    0      0    5 5:5:5:0          yes 5083.3979 2200.0000 4095.6111
  6    0      0    6 6:6:6:0          yes 5083.3979 2200.0000 4717.2632
  7    0      0    7 7:7:7:0          yes 5083.3979 2200.0000 4715.3799
  8    0      0    8 8:8:8:1          yes 5083.3979 2200.0000 3594.2419
  9    0      0    9 9:9:9:1          yes 5083.3979 2200.0000 3400.0000
 10    0      0   10 10:10:10:1       yes 5083.3979 2200.0000 3581.8450
 11    0      0   11 11:11:11:1       yes 5083.3979 2200.0000 3400.0000
 12    0      0   12 12:12:12:1       yes 5083.3979 2200.0000 3400.0000
 13    0      0   13 13:13:13:1       yes 5083.3979 2200.0000 3746.9951
 14    0      0   14 14:14:14:1       yes 5083.3979 2200.0000 3400.0000
 15    0      0   15 15:15:15:1       yes 5083.3979 2200.0000 3400.0000
 16    0      0    0 0:0:0:0          yes 5083.3979 2200.0000 3787.1699
 17    0      0    1 1:1:1:0          yes 5083.3979 2200.0000 4684.5049
 18    0      0    2 2:2:2:0          yes 5083.3979 2200.0000 4675.6758
 19    0      0    3 3:3:3:0          yes 5083.3979 2200.0000 4415.8789
 20    0      0    4 4:4:4:0          yes 5083.3979 2200.0000 4704.3140
 21    0      0    5 5:5:5:0          yes 5083.3979 2200.0000 4511.8540
 22    0      0    6 6:6:6:0          yes 5083.3979 2200.0000 4669.6411
 23    0      0    7 7:7:7:0          yes 5083.3979 2200.0000 4663.3330
 24    0      0    8 8:8:8:1          yes 5083.3979 2200.0000 3400.0000
 25    0      0    9 9:9:9:1          yes 5083.3979 2200.0000 3400.0000
 26    0      0   10 10:10:10:1       yes 5083.3979 2200.0000 3400.0000
 27    0      0   11 11:11:11:1       yes 5083.3979 2200.0000 3400.0000
 28    0      0   12 12:12:12:1       yes 5083.3979 2200.0000 3400.0000
 29    0      0   13 13:13:13:1       yes 5083.3979 2200.0000 3400.0000
 30    0      0   14 14:14:14:1       yes 5083.3979 2200.0000 3593.3479
 31    0      0   15 15:15:15:1       yes 5083.3979 2200.0000 3400.0000

Link to comment

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.