# US 2017/0255498 A1 · Dynamically optimized device driver protocol assist threads

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

- Number: US 2017/0255498 A1
- Document ID: US20170255498A1
- Status: Published application
- Kind: A1
- Application number: 15/062,881
- Filed: 2016-03-07
- Published: 2017-09-07
- Earliest claimed: 2016-03-07
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Bernard A. KING-SMITH; Kavitha Vittal Murthy BARATAKKE
- Web page: https://patentgrep.com/patent/US20170255498A1

## CPC

- G06F 9/5083: {Techniques for rebalancing the load in a distributed system}
- G06F 9/5027: {the resource being a machine, e.g. CPUs, Servers, Terminals}
- G06F 2209/5018: Thread allocation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems, methods, and computer program products to perform an operation comprising providing a plurality of assist threads configured to process data units received by a network adapter, wherein each of the plurality of assist threads comprises a queue configured to store data units allocated to the respective assist thread, allocating data units received by the network adapter to assist threads in a subset of the plurality of assist threads according to a first function, wherein the subset includes a first assist thread and does not include a second assist thread, of the plurality of assist threads, monitoring the queues of the assist threads in the subset, and upon determining that a count of data units in the queue of the first assist thread exceeds a first threshold, modifying the first function to include the second assist thread in the subset of the plurality of assist threads.

## Claims

### Claim 1

A method, comprising:
providing a plurality of assist threads configured to process data units received by a network adapter, wherein each of the plurality of assist threads comprises a queue configured to store data units allocated to the respective assist thread;
allocating data units received by the network adapter to assist threads in a subset of the plurality of assist threads according to a first function, wherein the subset includes a first assist thread and does not include a second assist thread, of the plurality of assist threads;
monitoring the queues of the assist threads in the subset; and
upon determining that a count of data units in the queue of the first assist thread exceeds a first threshold, modifying the first function to include the second assist thread in the subset of the plurality of assist threads.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
subsequent to modifying the first function:
allocating data units received by the network adapter to the assist threads in the subset according to the first function;
monitoring the queues of the assist threads in the subset;
determining that a count of data units in the queue of a selected assist thread in the subset falls below a second threshold; and
modifying the first function to remove at least one of the assist threads from the subset.

### Claim 3 (depends on 2)

The method of claim 2, wherein the plurality of assist threads are provided by a device driver for the network adapter, wherein a monitor thread of the device driver is configured to monitor the queues.

### Claim 4 (depends on 3)

The method of claim 3, wherein the first function comprises a hash function, wherein the hash function maps to one of the assist threads in the subset, wherein the hash function operates on a source internet protocol (IP) address and a port of a data unit to allocate the data unit to one of the assist threads in the subset.

### Claim 5 (depends on 4)

The method of claim 4, wherein each of the plurality of assist threads are dispatched and active, wherein data units are allocated only to assist threads that are members of the subset, wherein a size of the subset of the plurality of assist threads is based on an amount of traffic and a rate of traffic received by the network adapter.

### Claim 6 (depends on 5)

The method of claim 5, wherein the plurality of assist threads are associated with a first port of the network adapter, wherein the network adapter comprises a plurality of ports including the first port, wherein a computing system comprises a plurality of network adapters including the first network adapter, wherein a respective hash function and a respective plurality of assist threads are provided for each port of each network adapter.

### Claim 7 (depends on 6)

The method of claim 6, wherein the respective hash function associated with the respective port of the respective network adapter is used to allocate data units received by the respective port to a respective subset of the plurality of assist threads associated with the respective port of the respective network adapter.

### Claim 8

A system, comprising:
a processor; and
a memory containing a program which when executed by the processor performs an operation comprising:
providing a plurality of assist threads configured to process data units received by a network adapter, wherein each of the plurality of assist threads comprises a queue configured to store data units allocated to the respective assist thread;
allocating data units received by the network adapter to assist threads in a subset of the plurality of assist threads according to a first function, wherein the subset includes a first assist thread and does not include a second assist thread, of the plurality of assist threads;
monitoring the queues of the assist threads in the subset; and
upon determining that a count of data units in the queue of the first assist thread exceeds a first threshold, modifying the first function to include the second assist thread in the subset of the plurality of assist threads.

### Claim 9 (depends on 8)

The system of claim 8, the operation further comprising:
subsequent to modifying the first function:
allocating data units received by the network adapter to the assist threads in the subset according to the first function;
monitoring the queues of the assist threads in the subset;
determining that a count of data units in the queue of a selected assist thread in the subset falls below a second threshold; and
modifying the first function to remove at least one of the assist threads from the subset.

### Claim 10 (depends on 9)

The system of claim 9, wherein the plurality of assist threads are provided by a device driver for the network adapter, wherein a monitor thread of the device driver is configured to monitor the queues.

### Claim 11 (depends on 10)

The system of claim 10, wherein the first function comprises a hash function, wherein the hash function maps to one of the assist threads in the subset, wherein the hash function operates on a source internet protocol (IP) address and a port of a data unit to allocate the data unit to one of the assist threads in the subset.

### Claim 12 (depends on 11)

The system of claim 11, wherein each of the plurality of assist threads are dispatched and active, wherein data units are allocated only to assist threads that are members of the subset, wherein a size of the subset of the plurality of assist threads is based on an amount of traffic and a rate of traffic received by the network adapter.

### Claim 13 (depends on 12)

The system of claim 12, wherein the plurality of assist threads are associated with a first port of the network adapter, wherein the network adapter comprises a plurality of ports including the first port, wherein a computing system comprises a plurality of network adapters including the first network adapter, wherein a respective hash function and a respective plurality of assist threads are provided for each port of each network adapter.

### Claim 14 (depends on 13)

The system of claim 13, wherein the respective hash function associated with the respective port of the respective network adapter is used to allocate data units received by the respective port to a respective subset of the plurality of assist threads associated with the respective port of the respective network adapter.

### Claim 15

A computer program product, comprising:
a computer-readable storage medium having computer-readable program code embodied therewith, the computer-readable program code executable by one or more computer processors to perform an operation comprising:
providing a plurality of assist threads configured to process data units received by a network adapter, wherein each of the plurality of assist threads comprises a queue configured to store data units allocated to the respective assist thread;
allocating data units received by the network adapter to assist threads in a subset of the plurality of assist threads according to a first function, wherein the subset includes a first assist thread and does not include a second assist thread, of the plurality of assist threads;
monitoring the queues of the assist threads in the subset; and
upon determining that a count of data units in the queue of the first assist thread exceeds a first threshold, modifying the first function to include the second assist thread in the subset of the plurality of assist threads.

### Claim 16 (depends on 15)

The computer program product of claim 15, the operation further comprising:
subsequent to modifying the first function:
allocating data units received by the network adapter to the assist threads in the subset according to the first function;
monitoring the queues of the assist threads in the subset;
determining that a count of data units in the queue of a selected assist thread in the subset falls below a second threshold; and
modifying the first function to remove at least one of the assist threads from the subset.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the plurality of assist threads are provided by a device driver for the network adapter, wherein a monitor thread of the device driver is configured to monitor the queues.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein the first function comprises a hash function, wherein the hash function maps to one of the assist threads in the subset, wherein the hash function operates on a source internet protocol (IP) address and a port of a data unit to allocate the data unit to one of the assist threads in the subset.

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein each of the plurality of assist threads are dispatched and active, wherein data units are allocated only to assist threads that are members of the subset, wherein a size of the subset of the plurality of assist threads is based on an amount of traffic and a rate of traffic received by the network adapter.

### Claim 20 (depends on 16)

The computer program product of claim 16, wherein the plurality of assist threads are associated with a first port of the network adapter, wherein the network adapter comprises a plurality of ports including the first port, wherein a computing system comprises a plurality of network adapters including the first network adapter, wherein a respective hash function and a respective plurality of assist threads are provided for each port of each network adapter, wherein the respective hash function associated with the respective port of the respective network adapter is used to allocate data units received by the respective port to a respective subset of the plurality of assist threads associated with the respective port of the respective network adapter.
