# US 2025/0156226 A1 · Dynamically change direct memory access size of a driver using a multi-handle approach

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

- Number: US 2025/0156226 A1
- Document ID: US20250156226A1
- Status: Published application
- Kind: A1
- Application number: 18/509,446
- Filed: 2023-11-15
- Published: 2025-05-15
- Earliest claimed: 2023-11-15
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Phani Kumar V. U. Ayyagari; Yadagiri Rajaboina
- Web page: https://patentgrep.com/patent/US20250156226A1

## CPC

- G06F 9/5016: {the resource being the memory}
- G06F 9/5022: {Mechanisms to release resources}
- G06F 9/5055: {considering software capabilities, i.e. software resources associated or available to the machine}
- G06F 13/28: using burst mode transfer, e.g. direct memory access {DMA}, cycle steal (G06F13/32 takes precedence)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments dynamically change direct memory access size of a driver using a multi-handle approach. A technique includes monitoring a counter for a software channel, the software channel being coupled to a storage system, the software channel being configured to process an input/output (I/O) request for the storage system and receiving a request to modify a direct memory access (DMA) size of the software channel based on the counter reaching a predetermined threshold. A number of DMA handles associated with the software channel is modified, based on receiving the request to modify the DMA size of the software channel.

## Claims

### Claim 1

A computer-implemented method comprising:
monitoring a counter for a software channel, the software channel being coupled to a storage system, the software channel being configured to process an input/output (I/O) request for the storage system;
receiving a request to modify a direct memory access (DMA) size of the software channel based on the counter reaching a predetermined threshold; and
modifying a number of DMA handles associated with the software channel, based on receiving the request to modify the DMA size of the software channel.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein in response to the request to modify the DMA size of the software channel being to increase the DMA size, an additional DMA handle is created for the software channel.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein in response to the request to modify the DMA size of the software channel being to decrease the DMA size, a DMA handle is deleted for the software channel.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, further comprising:
sending the I/O request to a first DMA handle of the DMA handles of the software channel by default; and
proceeding to use a second DMA handle of the DMA handles for the software channel, in response to the first DMA handle failing to have available DMA resources to accommodate the I/O request.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, further comprising:
marking a DMA handle for deletion in the software channel upon initiation of the request to modify the DMA size; and
preventing any incoming I/O request assigned to the software channel from using the DMA handle marked for deletion.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, further comprising deleting a DMA handle of the software channel one by one until a requested DMA size is met in the request to modify the DMA size.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, further comprising:
incrementing the counter for the software channel in a driver when there is an error associated with DMA resources for the software channel, wherein the predetermined threshold is a high value for increasing the number of the DMA handles associated with the software channel; and
decrementing the counter for the software channel in an absence of the error for a predetermined interval, wherein the predetermined threshold is a low value for decreasing the number of the DMA handles associated with the software channel, wherein the high value is greater than the low value.

### Claim 8

A system comprising:
a memory having computer readable instructions; and
a computer for executing the computer readable instructions, the computer readable instructions controlling the computer to perform operations comprising:
monitoring a counter for a software channel, the software channel being coupled to a storage system, the software channel being configured to process an input/output (I/O) request for the storage system;
receiving a request to modify a direct memory access (DMA) size of the software channel based on the counter reaching a predetermined threshold; and
modifying a number of DMA handles associated with the software channel, based on receiving the request to modify the DMA size of the software channel.

### Claim 9 (depends on 8)

The system of claim 8, wherein in response to the request to modify the DMA size of the software channel being to increase the DMA size, an additional DMA handle is created for the software channel.

### Claim 10 (depends on 8)

The system of claim 8, wherein in response to the request to modify the DMA size of the software channel being to decrease the DMA size, a DMA handle is deleted for the software channel.

### Claim 11 (depends on 8)

The system of claim 8, further comprising:
sending the I/O request to a first DMA handle of the DMA handles of the software channel by default; and
proceeding to use a second DMA handle of the DMA handles for the software channel, in response to the first DMA handle failing to have available DMA resources to accommodate the I/O request.

### Claim 12 (depends on 8)

The system of claim 8, further comprising:
marking a DMA handle for deletion in the software channel upon initiation of the request to modify the DMA size; and
preventing any incoming I/O request assigned to the software channel from using the DMA handle marked for deletion.

### Claim 13 (depends on 8)

The system of claim 8, further comprising deleting a DMA handle of the software channel one by one until a requested DMA size is met in the request to modify the DMA size.

### Claim 14 (depends on 8)

The system of claim 8, further comprising:
incrementing the counter for the software channel in a driver when there is an error associated with DMA resources for the software channel, wherein the predetermined threshold is a high value for increasing the number of the DMA handles associated with the software channel; and
decrementing the counter for the software channel in an absence of the error for a predetermined interval, wherein the predetermined threshold is a low value for decreasing the number of the DMA handles associated with the software channel, wherein the high value is greater than the low value.

### Claim 15

A computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a computer to cause the computer to perform operations comprising:
monitoring a counter for a software channel, the software channel being coupled to a storage system, the software channel being configured to process an input/output (I/O) request for the storage system;
receiving a request to modify a direct memory access (DMA) size of the software channel based on the counter reaching a predetermined threshold; and
modifying a number of DMA handles associated with the software channel, based on receiving the request to modify the DMA size of the software channel.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein in response to the request to modify the DMA size of the software channel being to increase the DMA size, an additional DMA handle is created for the software channel.

### Claim 17 (depends on 15)

The computer program product of claim 15, wherein in response to the request to modify the DMA size of the software channel being to decrease the DMA size, a DMA handle is deleted for the software channel.

### Claim 18 (depends on 15)

The computer program product of claim 15, further comprising:
sending the I/O request to a first DMA handle of the DMA handles of the software channel by default; and
proceeding to use a second DMA handle of the DMA handles for the software channel, in response to the first DMA handle failing to have available DMA resources to accommodate the I/O request.

### Claim 19 (depends on 15)

The computer program product of claim 15, further comprising:
marking a DMA handle for deletion in the software channel upon initiation of the request to modify the DMA size; and
preventing any incoming I/O request assigned to the software channel from using the DMA handle marked for deletion.

### Claim 20 (depends on 15)

The computer program product of claim 15, further comprising deleting a DMA handle of the software channel one by one until a requested DMA size is met in the request to modify the DMA size.
