Dynamic assignment of interrupts based on input/output metrics
AssigneeInternational Business Machines Corporation
InventorsJesse Arroyo, Prathima Kommineni, Timothy J. Schimke, Shyama Venugopal
Life of this patent
Estimating the term…
Abstract
A system and method dynamically assign interrupts to a virtual machine from an input/output (I/O) adapter based on I/O metrics of the I/O adapter. An interrupt manager monitors I/O adapter traffic flow metrics such as latency of data transfers, usage levels, and transfers per unit of time. The interrupt manager determines when a traffic flow metric for a virtual machine meets a predetermined performance threshold and updates virtual interrupt assignments in a logical interrupt table to improve performance of the system.
Claims13
An apparatus comprising:
- at least one processor;
- a memory coupled to the at least one processor;
- a hypervisor residing in the memory and executed by the at least one processor, where the hypervisor uses a logical interrupt table that contains logical interrupt source numbers directly mapped with physical interrupt source numbers;
- and
- an interrupt manager in the hypervisor that dynamically assigns or reassigns interrupts to a virtual machine from an input/output adapter based on input/output traffic metrics of the input/output adapter by making updates to the logical interrupt table, wherein the interrupt manager monitors the input/output adapter traffic metrics of a traffic path from the input/output adapter to the virtual machine and determines when a monitored input/output traffic metric meets a predetermined performance threshold, wherein the interrupt manager dynamically updates virtual interrupt assignments for the virtual machine based on the monitored input/output traffic metric meeting the predetermined performance threshold.
A computer-implemented method executed by at least one processor of assigning interrupts, the method comprising:
- monitoring traffic metrics of a traffic path from an input/output adapter to a virtual machine;
- determining when a monitored traffic metric meets a predetermined performance threshold;
- and
- based on the monitored traffic metric meeting the predetermined performance threshold, dynamically updating virtual interrupt assignments to the virtual machine from the input/output adapter by making updates to a logical interrupt table in a hypervisor where the logical interrupt table contains logical interrupt source numbers directly mapped with physical interrupt source numbers,
- wherein the interrupt manager stops traffic while updating the virtual interrupt assignments by generating an error state on a data bus.
A computer-implemented method executed by at least one processor of assigning interrupts, the method comprising:
- instantiating a plurality of logical partitions;
- deploying an I/O adapter to one of the plurality of logical partitions;
- creating a mapping of virtual interrupt assignments that maps logical interrupt source numbers to physical interrupt source numbers;
- monitoring traffic metrics of a traffic path from an input/output adapter to a virtual machine, wherein the traffic metrics comprise latency of data transfers, usage levels of an adapter input/output (I/O) path, and transfers per unit of time;
- determining when a monitored traffic metric meets a predetermined performance threshold;
- based on the monitored traffic metric meeting the predetermined performance threshold, dynamically updating virtual interrupt assignments to the virtual machine from the input/output adapter by making updates to a logical interrupt table in a hypervisor wherein the logical interrupt table contains logical interrupt source numbers directly mapped with physical interrupt source numbers;
- and
- stopping traffic while updating the virtual interrupt assignments by generating an error state on a data bus.
Dependencies are inferred from the claim text.