Windows: Line-Based vs. Message Signaled-Based Interrupts. MSI tool.

Discussion in 'Operating Systems' started by mbk1969, May 7, 2013.

  1. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,536
    Likes Received:
    13,556
    GPU:
    GF RTX 4070
    There are no interrupt lanes in PCI-Express bus. There are messages - message signalled interrupts.
    MessageNumberLimit registry value limits the number of interrupts - messages - assigned to device. And number of interrupt equals to number of IRQs (assigned to device).

    There is no need to mod inf-files to change MessageNumberLimit value because you can do that in registry after the installation of drivers.
     
  2. iCeOHL8R

    iCeOHL8R Guest

    Messages:
    7
    Likes Received:
    0
    GPU:
    3080Ti
    no i was thinking to edit maxlimit not messagenumberlimit but its not number of interrupts per second seems we need a more exact definition of what a message is not very clear yes i know it writes some kind of message which gives the cpu info on what the device wants to do but i still dont fully understand how this system works need some expert who can sum it up real quick. how are the irqs assigned cause i know on my new pc the pci e root ports have msi and show up in ur util but when i add the interrupt management keys to my old 4930k it will then show up in ur msi util but there is no irq assigned so do u know the method the actual irqs get allocated?

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\PCI\VEN_8086&DEV_2700&SUBSYS_39018086&REV_00\55CD2E414F2DE92E00\Device Parameters\Interrupt Management\Affinity Policy]
    "0x00000010"=""
    "DevicePolicy"=dword:00000005
    "GroupPolicy"=dword:00000001
    "DevicePriority"=dword:00000003

    also this is something we can add and determines how the irqs are spread across the cores but i did this to several devices and i think im getting 10 less fps in division 2 but the game is very responsive and low latency

    Microsoft Interrupt Affinity Tool Download | TechPowerUp Found this looks interesting.......
    yeah looks like u know about all this stuff
     
    Last edited: Jul 16, 2021
  3. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,536
    Likes Received:
    13,556
    GPU:
    GF RTX 4070
    https://forums.guru3d.com/threads/a-bit-detailed-info-about-interrupts-in-windows.424677/
    If device can utilize multiple interrupts (MSIs) it has information of the maximum limit somewhere in HW or FW. Device driver reads that maximum limit from HW/FW, then it reads the maximum message limit value from registry, then it gets the lowest of two values and requests it from OS Plug And Play manager. OS P-n-P manager looks if it can assign requested number of MSIs and either assigns requested number or assigns some lower number of MSIs.
     
  4. martinigm

    martinigm Guest

    Messages:
    1
    Likes Received:
    0
    GPU:
    1080Ti
    Hi,
    Do you have any idea why one of my Samsung drives you so many interrupts? So many that it makes IRQ column too wide too see whole windows... in next update you can make the column scalable ;)

    I know one difference between the two others and this one is that the two with PCI 3.x has maxlimit8 vs this one with PCI 4.x support and maxlimit 130
    nvme-example.PNG
     
    Last edited: Jul 25, 2021

  5. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,536
    Likes Received:
    13,556
    GPU:
    GF RTX 4070
    Ask Samsung. They made that max limit of 130 MSIs (comparing to other 3 with max limit of 8 MSIs).
     
  6. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,536
    Likes Received:
    13,556
    GPU:
    GF RTX 4070
    @martinigm gave me idea about wide column with multiple IRQs, so here it is:

    http://www.mediafire.com/file/ewpy1p0rr132thk/MSI_util_v3.zip/file
    MD5 hash for zip-file: D383415F9BD75F1AFD900FB39F567022

    Change log:
    - in "irq" column row of consecutive values (like "-1,-2,-3,-4,-5,-6,-7,-8") is replaced with starting and ending values with dots in between (like "-1......-8");
    - in details pane line is added "Actual number of IRQs: N" where N is the count of IRQs assigned to device.

    PS
    Testers (with rigs with devices with multiple IRQs) are needed!
     
    Last edited: Aug 4, 2021
  7. Warkratos

    Warkratos Member Guru

    Messages:
    130
    Likes Received:
    149
    GPU:
    RTX 3060 Ti
    Working fine.
    [​IMG]
     
    mbk1969 likes this.
  8. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,536
    Likes Received:
    13,556
    GPU:
    GF RTX 4070
    @Warkratos

    Thanks.
    Btw, it is safe to switch High Definition Audio Controllers to MSI mode (usually).
     
  9. GSDragoon

    GSDragoon Master Guru

    Messages:
    399
    Likes Received:
    282
    GPU:
    AMD Radeon RX 6800
    Seems to be working fine on both of my machines with devices with multiple IRQs.

    If I may, I would like to request the app force always running as an admin. You can do this by adding an application manifest file and setting 'requestedExecutionLevel' to 'requireAdministrator'. Thanks.
     

    Attached Files:

  10. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,536
    Likes Received:
    13,556
    GPU:
    GF RTX 4070
    My initial thought to not do that was to repel novice users (obtaining the tool from some friends) to protect them from possible harm. Back in those days default SATA controllers drivers did not support MSI mode and could render rigs unbootable.

    Now I do not do that just because it is not a work program you launch every day, and because of a tradition.
     

  11. SEXGOD666

    SEXGOD666 Member

    Messages:
    13
    Likes Received:
    11
    GPU:
    RTX 3080 VISION
    Hello! Is it possible to add Affinity Policy-DevicePolicy change to the program "MSI_util_v3" ?
     
  12. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,536
    Likes Received:
    13,556
    GPU:
    GF RTX 4070
    It is possible. But I am against it because:
    - there is tool for that already;
    - it is extremely hard to fine tune interrupt affinities;
    - there is related power plan setting in Win10.
     
  13. FronteRBumpeR

    FronteRBumpeR Member

    Messages:
    11
    Likes Received:
    0
    GPU:
    Nvidia 30 Series
    Gotta say I'm a bit of a fan @mbk1969, appreciate all the time and effort you have put in to help us lesser technology savvy users be optimized. Been reading this forum for a while now, and I still cant get the most optimal Interrupt / Driver DPC execution time.

    By default, all my SATA have High Interrupt Priority and have SpreadMessagesAcrossAllProccessors (which I thought was only for MSI-X compatible)

    my latency was so bad over the past month+ I ended up buying a new mobo and SSD. Went from MSI B450 series to MSI X570, and now added another SSD, this one being a NVMe which I now have windows installed on (but not before about 15 windows reinstalls, and a couple wipe reinstalls)

    still, I often get the 'Red Paragraph of Death' from LatencyMonitor

    Generally, I disable SMT and I am aware to disable HA GPU Sched. if gpu is in msi mode


    I'm to the point of desperation, as my last two options are: lose my mind or give up on my PC build and play candy crush until I'm 60.



    What is the correct course of action I must take? Looking to be pointed in the right direction by an expert/ specialist
     

    Attached Files:

  14. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,536
    Likes Received:
    13,556
    GPU:
    GF RTX 4070
  15. elaganza

    elaganza Master Guru

    Messages:
    273
    Likes Received:
    27
    GPU:
    Sapphire r9 380
    don"t know. For me this is too risky. Enabled Msi mode for Standart Ide Controller and at next boot got no IDE disc. In registry "Interrupt Management" field was missing. Had to re-install driver for controller.Good idea for me is i avoided to set Sata Controllers at Msi mode because if something went wrong i would get unbootable system. But this time my X-fi audio works at Msi mode. Before it was soundless after reboot.
     

  16. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,536
    Likes Received:
    13,556
    GPU:
    GF RTX 4070
    Was MSI tool listing MSI mode in supported modes column for IDE controller? I doubt it...
     
  17. elaganza

    elaganza Master Guru

    Messages:
    273
    Likes Received:
    27
    GPU:
    Sapphire r9 380

    https://ibb.co/Lrx6QKb
     
    Last edited: Aug 16, 2021
  18. FronteRBumpeR

    FronteRBumpeR Member

    Messages:
    11
    Likes Received:
    0
    GPU:
    Nvidia 30 Series

    Thank you, I will get back to you shortly with the text reports. In the meantime, I'm slightly confused on the 'actual' IRQ # of a driver / device put into MSI mode.
    Is the negative number in the v3 utility just to signify that it is in MSI mode?

    or is the entire number / numerical value under system.info the true value?
     

    Attached Files:

  19. Astyanax

    Astyanax Ancient Guru

    Messages:
    17,011
    Likes Received:
    7,351
    GPU:
    GTX 1080ti
    IDE is an legacy interrupt based controller, there is no support for MSI's in the system IDE drivers.

    XFI has no support what so ever for message signalled interrupts, so this is unlikely.
     
  20. elaganza

    elaganza Master Guru

    Messages:
    273
    Likes Received:
    27
    GPU:
    Sapphire r9 380

    https://ibb.co/Lrx6QKb

    You can see here that X-Fi set to Msi mode and it worked ~1 hour but it made some noise and stopped play music. After a while it play again. I think last driver on this card either latest windows 10 drivers model made it possible. Anyway i back x-fi to linebased(( And maybe this is my bug)) but it seemed to me that a micro-delay appeared when open window, apps, explorer.
     
    Last edited: Aug 16, 2021

Share This Page