# US 2012/0254492 A1 · Traffic class based adaptive interrupt moderation

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2012/0254492 A1
- Document ID: US20120254492A1
- Status: Published application
- Kind: A1
- Application number: 13/076,789
- Filed: 2011-03-31
- Published: 2012-10-04
- Earliest claimed: 2011-03-31
- Assignees: Intel Corporation
- Inventors: Yadong Li; Linden Cornett
- Web page: https://patentgrep.com/patent/US20120254492A1

## CPC

- G06F 13/24: using interrupt (G06F13/32 takes precedence)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An apparatus which comprises two or more moderation timers associated with an interrupt vector is presented. In one embodiment, the apparatus comprises two or more interrupt vectors and moderation timers are set with different interrupt rates. An interrupt vector logic unit sends an interrupt vector if there is an interrupt event from the queue associated with a moderation timer and the moderation timer expires.

## Claims

### Claim 1

A method comprising:
setting timer values for a first plurality of moderation timers associated with a first interrupt vector, wherein each moderation timer is capable of serving one or more queues;
triggering the first interrupt vector if there is an interrupt event from a first queue associated with a first moderation timer and the first moderation timer expires, wherein the first plurality of moderation timers include the first moderation timer and a second moderation timer; and
resetting the first plurality of moderation timers in response to the triggering of the first interrupt vector.

### Claim 2 (depends on 1)

The method of claim 1, wherein the first plurality of moderation timers share the same first interrupt vector but each moderation timer is set with a different interrupt rate.

### Claim 3 (depends on 1)

The method of claim 1, wherein the first plurality of moderation timers are part of a network interface controller which is capable to send, in response to the triggering of the first interrupt vector, the first interrupt vector via an input/output interface.

### Claim 4 (depends on 1)

The method of claim 1, further comprising setting second set of timer values for a second plurality of moderation timers associated with a second interrupt vector, wherein the number of interrupt vectors is less than the total number of moderation timers associated with different interrupt rates.

### Claim 5 (depends on 1)

The method of claim 1, wherein the first queue is associated with the first moderation timer with a first interrupt rate higher than that of the second moderation timer if the first queue is a latency sensitive queue.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
setting a first timer value for the first moderation timer based on a predetermined value; and
dynamically updating the first timer value based at least on data traffic of the one or more queues associated with the first moderation timer.

### Claim 7 (depends on 6)

The method of claim 6, wherein the data traffic includes the number of packets and the number of bytes received or transmitted in conjunction with the one or more queues associated with the first moderation timer.

### Claim 8 (depends on 1)

The method of claim 1, further comprising enabling a group of interrupt vectors including the first interrupt vector, wherein the number of interrupt vectors is based at least on the number of traffic queues.

### Claim 9 (depends on 1)

The method of claim 1, further comprising determining a number of traffic classes to be enabled including a first traffic class comprising the one or more queues.

### Claim 10 (depends on 1)

The method of claim 1, further comprising determining the number of queues in a traffic class based at least on bandwidth setting and the number of cores.

### Claim 11

An apparatus comprising:
a first plurality of moderation timers associated with a first interrupt vector, wherein the first plurality of moderation timers include a first moderation timer and a second moderation timer, wherein each moderation timer is capable of serving one or more queues; and
a first interrupt vector logic unit to send a first interrupt vector if there is an interrupt event from a first queue associated with the first moderation timer and the first moderation timer expires.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein the first interrupt vector logic unit is capable of resetting the first plurality of moderation timers after triggering of the first interrupt vector.

### Claim 13 (depends on 11)

The apparatus of claim 11, wherein the first plurality of moderation timers and the first interrupt vector logic unit are part of a network interface controller.

### Claim 14 (depends on 11)

The apparatus of claim 11, further comprising mapping registers to store at least association information between the first queue and the first moderation timer.

### Claim 15 (depends on 11)

The apparatus of claim 11, further comprising a second plurality of moderation timers associated with a second interrupt vector, wherein the first and the second plurality of moderation timers are set to different interrupt rates.

### Claim 16 (depends on 11)

The apparatus of claim 11, wherein a first interrupt rate of the first moderation timer is higher than a second interrupt rate of the second moderation timer if the first moderation timer is to serve the first queue that is more latency sensitive.

### Claim 17 (depends on 11)

The apparatus of claim 11, wherein the first interrupt vector logic unit is operable to set a first timer value for the first moderation timer and to adjust the first timer value based at least on data traffic associated with the first moderation timer.

### Claim 18

An article of manufacture comprising a computer readable storage medium including data storing instructions thereon that, when accessed by a machine, cause the machine to perform a method comprising:
setting timer values for a first plurality of moderation timers associated with a first interrupt vector, wherein each moderation timer is capable of serving one or more queues;
triggering the first interrupt vector if there is an interrupt event from a first queue associated with a first moderation timer and the first moderation timer expires, wherein the first plurality of moderation timers include the first moderation timer and a second moderation timer; and
resetting the first plurality of moderation timers in response to the triggering of the first interrupt vector.

### Claim 19 (depends on 18)

The article of claim 18, wherein the first plurality of moderation timers share the same first interrupt vector but each moderation timer is set with a different interrupt rate.

### Claim 20 (depends on 18)

The article of claim 18, wherein the method further comprises setting second set of timer values for a second plurality of moderation timers associated with a second interrupt vector, wherein the number of interrupt vectors is less than the total number of moderation timers associated with different interrupt rates.
