# US 2021/0334228 A1 · Managing network interface controller-generated interrupts

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

- Number: US 2021/0334228 A1
- Document ID: US20210334228A1
- Status: Published application
- Kind: A1
- Application number: 17/368,172
- Filed: 2021-07-06
- Published: 2021-10-28
- Earliest claimed: 2013-09-24
- Assignees: Red Hat Israel, Ltd.
- Applicants: Red Hat Israel, Ltd.
- Inventors: Michael Tsirkin
- Web page: https://patentgrep.com/patent/US20210334228A1

## CPC

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

## Abstract

Systems and methods for managing interrupts generated by network interface controllers. An example method may comprise: responsive to determining that a memory pressure metric in a computer system does not exceed a threshold value, disabling interrupts that signal completion of a packet transmission by a network interface controller; transmitting a plurality of data packets by the network interface controller; and responsive to detecting that the memory pressure metric exceeds the threshold value, releasing a memory buffer allocated to a data packet of the plurality of data packets.

## Claims

### Claim 1

A method, comprising:
responsive to determining, by a computer system, that a memory pressure metric in the computer system does not exceed a threshold value, disabling interrupts that signal completion of a packet transmission by a network interface controller;
transmitting a plurality of data packets by the network interface controller; and
responsive to detecting that the memory pressure metric exceeds the threshold value, releasing a memory buffer allocated to a data packet of the plurality of data packets.

### Claim 2 (depends on 1)

The method of claim 1, further comprising determining that one or more data packets have been transmitted by the network interface controller, responsive to detecting that the memory pressure metric exceeds the threshold value.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
responsive to detecting that the memory pressure metric exceeds the threshold value, enabling interrupts that signal completion of packet transmission by the network interface controller.

### Claim 4 (depends on 1)

The method of claim 1, wherein the memory pressure metric comprises a total size of memory buffers allocated to the plurality of transmitted data packets.

### Claim 5 (depends on 1)

The method of claim 1, wherein the memory pressure metric comprises a difference between a pre-defined value and an amount of free memory in the computer system.

### Claim 6 (depends on 1)

The method of claim 1, wherein the memory pressure metric comprises a period of time during which an application being executed by the computer system has been blocked by a memory allocation operation.

### Claim 7 (depends on 1)

The method of claim 1, wherein the memory pressure metric comprises a page fault frequency.

### Claim 8

A system comprising:
a memory; and
one or more processors, coupled to the memory, to:
responsive to determining that a memory pressure metric in the computer system does not exceed a threshold value, disable interrupts that signal completion of a packet transmission by a network interface controller;
transmit a plurality of data packets by the network interface controller; and
responsive to detecting that the memory pressure metric exceeds the threshold value, release a memory buffer allocated to a data packet of the plurality of data packets.

### Claim 9 (depends on 8)

The system of claim 8, wherein the processors are further to:
responsive to detecting that the memory pressure metric exceeds the threshold value, enable interrupts that signal completion of packet transmission by the network interface controller.

### Claim 10 (depends on 8)

The system of claim 8, wherein the memory pressure metric comprises a total size of memory buffers allocated to the plurality of transmitted data packets.

### Claim 11 (depends on 8)

The system of claim 8, wherein the memory pressure metric comprises a difference between a pre-defined value and an amount of free memory in the computer system.

### Claim 12 (depends on 8)

The system of claim 8, wherein the memory pressure metric comprises a period of time during which an application being executed by the system has been blocked by a memory allocation operation.

### Claim 13 (depends on 8)

The system of claim 8, wherein the memory pressure metric comprises a page fault frequency.

### Claim 14 (depends on 8)

The system of claim 8, wherein disabling interrupts is performed by writing a pre-defined value into one of: a network interface controller or an interrupt controller.

### Claim 15

A computer-readable non-transitory storage medium comprising executable instructions that, when executed by a computer system, cause the computer system to:
responsive to determining, by a computer system, that a memory pressure metric in the computer system does not exceed a threshold value, disable interrupts that signal completion of a packet transmission by a network interface controller;
transmit a plurality of data packets by the network interface controller; and
responsive to detecting that the memory pressure metric exceeds the threshold value, release a memory buffer allocated to a data packet of the plurality of data packets.

### Claim 16 (depends on 15)

The computer-readable non-transitory storage medium of claim 15, further comprising instructions that, when executed by a computer system, cause the computer system to:
responsive to detecting that the memory pressure metric exceeds the threshold value, enabling interrupts that signal completion of packet transmission by the network interface controller.

### Claim 17 (depends on 15)

The computer-readable non-transitory storage medium of claim 15, wherein the memory pressure metric comprises a total size of memory buffers allocated to the plurality of transmitted data packets.

### Claim 18 (depends on 15)

The computer-readable non-transitory storage medium of claim 15, wherein the memory pressure metric comprises a difference between a pre-defined value and an amount of free memory in the computer system.

### Claim 19 (depends on 15)

The computer-readable non-transitory storage medium of claim 15, wherein the memory pressure metric comprises a period of time during which an application being executed by the computer system has been blocked by a memory allocation operation.

### Claim 20 (depends on 15)

The computer-readable non-transitory storage medium of claim 15, wherein the memory pressure metric comprises a page fault frequency.
