# US 2021/0334036 A1 · Multi-mode address mapping management

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

- Number: US 2021/0334036 A1
- Document ID: US20210334036A1
- Status: Published application
- Kind: A1
- Application number: 16/858,539
- Filed: 2020-04-24
- Published: 2021-10-28
- Earliest claimed: 2020-04-24
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Trung N. Nguyen; Kevin J. Ash; Brian Anthony Rinaldi; Lokesh Mohan Gupta; Kyler A. Anderson
- Web page: https://patentgrep.com/patent/US20210334036A1

## CPC

- G06F 3/0656: {Data buffering arrangements}
- G06F 3/061: {Improving I/O performance}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0653: {Monitoring storage devices or systems}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 9/45533: {Hypervisors; Virtual machine monitors}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 2009/45579: {I/O management, e.g. providing access to device drivers or storage}
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In one aspect of multi-mode address mapping management in accordance with the present disclosure, mapping and unmapping operations may be conducted in one of multiple address mapping management modes to both improve overall system performance and maintain data integrity. In one embodiment, a first address mapping management mode such as a rigorous mode, for example, confirms completion of an unmapping of an address mapped data unit buffer before a re-mapping is permitted. Mapping and unmapping operations may be switched to a performance mode in which unmap completion confirmation is bypassed to improve performance. In one embodiment, address mapping management modes may be switched in real time as a function of monitored operating conditions. Other aspects and advantages are provided, depending upon the particular application.

## Claims

### Claim 1

A computer program product, the computer program product comprising a computer readable storage medium having program code embodied therewith, the program code executable by at least one processor to perform operations, the operations comprising:
address mapping in a selected address mapping management mode, a selected data unit buffer of a storage controller and a selected adapter coupled to the storage controller, for a first data transfer between an address mapped data unit buffer and an address mapped adapter;
upon completion of the first data transfer, initiating unmapping of the address mapped data unit buffer and the address mapped adapter of the first data transfer in the selected address mapping management mode;
in response to the selected address mapping management mode being in a first address mapping management mode, confirming that the initiated unmapping of the address mapped data unit buffer and the address mapped adapter of the first data transfer is complete prior to again initiating address mapping a selected data unit buffer of the storage controller and a selected adapter coupled to the storage controller, for a second data transfer between an addressed mapped data unit buffer and an addressed mapped adapter; and
in response to the selected address mapping management mode being in a second address mapping management mode, again initiating address mapping a selected data unit buffer of the storage controller and a selected adapter coupled to the storage controller, for a second data transfer between an address mapped data unit buffer and an address mapped adapter, without confirming that the initiated unmapping of the address mapped data unit buffer and the address mapped adapter of the first data transfer is complete so that confirming that the initiated unmapping of the address mapped data unit buffer and the address mapped adapter of the first data transfer is complete, is bypassed prior to again initiating address mapping a selected data unit buffer of the storage controller and a selected adapter.

### Claim 2 (depends on 1)

The computer program product of claim 1, wherein the operations further comprise:
freeing data unit buffers after completion of data transfers to those data unit buffers to be available for an additional data transfer to each free data unit buffer;
monitoring a level of free data unit buffers available for an additional data transfer;
comparing the level of free data unit buffers to a first threshold level; and
in response to determining that the level of free data unit buffers is below the first threshold level, selecting the first address mapping management mode.

### Claim 3 (depends on 2)

The computer program product of claim 2, wherein the operations further comprise:
monitoring the level of free data unit buffers available for an additional data transfer;
comparing the level of free data unit buffers to a second threshold level; and
in response to determining that the level of free data unit buffers is above the second threshold level, selecting the second address mapping management mode.

### Claim 4 (depends on 3)

The computer program product of claim 3, wherein the operations further comprise:
in response to determining the level of free data unit buffers to be above the second threshold level, determining a current selected address mapping management mode; and
in response to determining that the current selected address mapping management mode is the first address mapping management mode, starting a timer to start timing a first wait period prior to selecting the second address mapping management mode.

### Claim 5 (depends on 4)

The computer program product of claim 4, wherein the operations further comprise:
determining during the first wait period whether the level of free data unit buffers remains above the second threshold level;
in response to determining that the level of free data unit buffers remains above the second threshold level during the first wait period, performing said selecting the second address mapping management mode; and
in response to determining that the level of free data unit buffers has fallen below the second threshold level during the first wait period, continuing in the first address mapping management mode.

### Claim 6 (depends on 5)

The computer program product of claim 5, wherein the operations further comprise:
in response to determining that the level of free data unit buffers has fallen below the second threshold level during the first wait period, restarting the timer to start timing a second wait period;
determining during the second wait period whether the level of free data unit buffers rises above the second threshold level;
in response to determining that the level of free data unit buffers remains above the second threshold level during the second wait period, performing said selecting the second address mapping management mode; and
in response to determining that the level of free data unit buffers has fallen below the second threshold level during the second wait period, continuing in the first address mapping management mode.

### Claim 7 (depends on 1)

The computer program product of claim 1 wherein an address mapped adapter associated with a particular data transfer is coupled to one of a storage and a host so that the particular data transfer transfers data between the one of the storage and host coupled to the associated address mapped adapter, and an address mapped data unit buffer associated with the particular data transfer.

### Claim 8

A system, comprising:
a host;
storage; and
a storage controller configured to control the storage, the storage controller having one or more processors, one or more computer-readable memories including a cache and nonvolatile storage (NVS) having a plurality of data unit buffers, one or more computer-readable, tangible storage devices, a plurality of adapters coupling the storage controller to a host and to storage; a hypervisor configured for address mapping between a selected adapter and a selected memory, and program instructions, stored on at least one of the one or more computer-readable, tangible storage devices for execution by at least one of the one or more processors via at least one of the one or more memories, to perform operations, the operations comprising:
address mapping in a selected address mapping management mode, a selected data unit buffer of the storage controller and a selected adapter coupled to the storage controller, for a first data transfer between an address mapped data unit buffer and an address mapped adapter;
upon completion of the first data transfer, initiating unmapping of the address mapped data unit buffer and the address mapped adapter of the first data transfer in the selected address mapping management mode;
in response to the selected address mapping management mode being in a first address mapping management mode, confirming that the initiated unmapping of the address mapped data unit buffer and the address mapped adapter of the first data transfer is complete prior to again initiating address mapping a selected data unit buffer of the storage controller and a selected adapter coupled to the storage controller, for a second data transfer between an addressed mapped data unit buffer and an addressed mapped adapter; and
in response to the selected address mapping management mode being in a second address mapping management mode, again initiating address mapping a selected data unit buffer of the storage controller and a selected adapter coupled to the storage controller, for a second data transfer between an address mapped data unit buffer and an addressed mapped adapter, without confirming that the initiated unmapping of the address mapped data unit buffer and the address mapped adapter of the first data transfer is complete so that confirming that the initiated unmapping of the address mapped data unit buffer and the address mapped adapter of the first data transfer is complete, is bypassed prior to again initiating address mapping a selected data unit buffer of the storage controller and a selected adapter.

### Claim 9 (depends on 8)

The system of claim 8, wherein the operations further comprise:
freeing data unit buffers after completion of data transfers to those data unit buffers to be available for an additional data transfer to each free data unit buffer;
monitoring a level of free data unit buffers available for an additional data transfer;
comparing the level of free data unit buffers to a first threshold level; and
in response to determining that the level of free data unit buffers is below the first threshold level, selecting the first address mapping management mode.

### Claim 10 (depends on 9)

The system of claim 9, wherein the operations further comprise:
monitoring the level of free data unit buffers available for an additional data transfer;
comparing the level of free data unit buffers to a second threshold level; and
in response to determining that the level of free data unit buffers is above the second threshold level, selecting the second address mapping management mode.

### Claim 11 (depends on 10)

The system of claim 10, wherein the operations further comprise:
in response to determining the level of free data unit buffers to be above the second threshold level, determining a current selected address mapping management mode; and
in response to determining that the current selected address mapping management mode is the first address mapping management mode, starting a timer to start timing a first wait period prior to selecting the second address mapping management mode.

### Claim 12 (depends on 11)

The system of claim 11, wherein the operations further comprise:
determining during the first wait period whether the level of free data unit buffers remains above the second threshold level;
in response to determining that the level of free data unit buffers remains above the second threshold level during the first wait period, performing said selecting the second address mapping management mode; and
in response to determining that the level of free data unit buffers has fallen below the second threshold level during the first wait period, continuing in the first address mapping management mode.

### Claim 13 (depends on 12)

The system of claim 12, wherein the operations further comprise:
in response to determining that the level of free data unit buffers has fallen below the second threshold level during the first wait period, restarting the timer to start timing a second wait period;
determining during the second wait period whether the level of free data unit buffers rises above the second threshold level;
in response to determining that the level of free data unit buffers remains above the second threshold level during the second wait period, performing said selecting the second address mapping management mode; and
in response to determining that the level of free data unit buffers has fallen below the second threshold level during the second wait period, continuing in the first address mapping management mode.

### Claim 14

A computer-implemented method, comprising:
address mapping in a selected address mapping management mode, a selected data unit buffer of a storage controller and a selected adapter coupled to the storage controller, for a first data transfer between an address mapped data unit buffer and an addressed mapped adapter;
upon completion of the first data transfer, initiating unmapping of the address mapped data unit buffer and the address mapped adapter of the first data transfer in the selected address mapping management mode;
in response to the selected address mapping management mode being in a first address mapping management mode, confirming that the initiated unmapping of the address mapped data unit buffer and the address mapped adapter of the first data transfer is complete prior to again initiating address mapping a selected data unit buffer of the storage controller and a selected adapter coupled to the storage controller, for a second data transfer between an addressed mapped data unit buffer and an addressed mapped adapter; and
in response to the selected address mapping management mode being in a second address mapping management mode, again initiating address mapping a selected data unit buffer of the storage controller and a selected adapter coupled to the storage controller, for a second data transfer between an address mapped data unit buffer and an addressed mapped adapter, without confirming that the initiated unmapping of the address mapped data unit buffer and the address mapped adapter of the first data transfer is complete so that confirming that the initiated unmapping of the address mapped data unit buffer and the address mapped adapter of the first data transfer is complete, is bypassed prior to again initiating address mapping a selected data unit buffer of the storage controller and a selected adapter.

### Claim 15 (depends on 14)

The method of claim 14, further comprising:
freeing data unit buffers after completion of data transfers to those data unit buffers to be available for an additional data transfer to each free data unit buffer;
monitoring a level of free data unit buffers available for an additional data transfer;
comparing the level of free data unit buffers to a first threshold level; and
in response to determining that the level of free data unit buffers is below the first threshold level, selecting the first address mapping management mode.

### Claim 16 (depends on 15)

The method of claim 15, further comprising:
monitoring the level of free data unit buffers available for an additional data transfer;
comparing the level of free data unit buffers to a second threshold level; and
in response to determining that the level of free data unit buffers is above the second threshold level, selecting the second address mapping management mode.

### Claim 17 (depends on 16)

The method of claim 16, further comprising:
in response to determining the level of free data unit buffers to be above the second threshold level, determining a current selected address mapping management mode; and
in response to determining that the current selected address mapping management mode is the first address mapping management mode, starting a timer to start timing a first wait period prior to selecting the second address mapping management mode.

### Claim 18 (depends on 17)

The method of claim 17, further comprising:
determining during the first wait period whether the level of free data unit buffers remains above the second threshold level;
in response to determining that the level of free data unit buffers remains above the second threshold level during the first wait period, performing said selecting the second address mapping management mode; and
in response to determining that the level of free data unit buffers has fallen below the second threshold level during the first wait period, continuing in the first address mapping management mode.

### Claim 19 (depends on 18)

The method of claim 18, further comprising:
in response to determining that the level of free data unit buffers has fallen below the second threshold level during the first wait period, restarting the timer to start timing a second wait period;
determining during the second wait period whether the level of free data unit buffers rises above the second threshold level;
in response to determining that the level of free data unit buffers remains above the second threshold level during the second wait period, performing said selecting the second address mapping management mode; and
in response to determining that the level of free data unit buffers has fallen below the second threshold level during the second wait period, continuing in the first address mapping management mode.

### Claim 20 (depends on 14)

The method of claim 14 wherein an address mapped adapter associated with a particular data transfer is coupled to one of a storage and a host so that the particular data transfer transfers data between the one of the storage and host coupled to the associated address mapped adapter, and an address mapped data unit buffer associated with the particular data transfer.
