# US 2022/0035527 A1 · Method, electronic device and computer program product for processing operation commands

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

- Number: US 2022/0035527 A1
- Document ID: US20220035527A1
- Status: Published application
- Kind: A1
- Application number: 17/028,173
- Filed: 2020-09-22
- Published: 2022-02-03
- Earliest claimed: 2020-07-31
- Assignees: EMC IP Holding Company LLC
- Applicants: EMC IP Holding Company LLC
- Inventors: Zhibin Zhang; Yalan Kuang
- Web page: https://patentgrep.com/patent/US20220035527A1

## CPC

- G06F 3/064: {Management of blocks}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/061: {Improving I/O performance}
- G06F 3/0673: {Single storage device}
- G06F 16/2291: {User-Defined Types; Storage management thereof}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques involve determining a target identifier of an operation command if a type of the operation command is determined to be a target type, the target type indicating that the operation command is a command for acquiring data. The techniques further involve executing the operation command to acquire a target data block if it is determined that the target identifier does not exist in a historical mapping relationship between stored data blocks and identifiers of historical operation commands for the stored data blocks. The techniques further involve storing the target data block and a target mapping relationship between the target data block and the target identifier in a storage space for storing the stored data blocks and the historical mapping relationship. Accordingly, different types of commands can be quickly distinguished, thereby reducing the time for processing commands of a target type, reducing the bandwidth consumed, and improving processing efficiency.

## Claims

### Claim 1

A method for processing an operation command, comprising:
determining a type of a received operation command;
determining a target identifier of the operation command if it is determined that the type of the operation command indicates that the operation command is a command for acquiring data;
executing the operation command to acquire a target data block if it is determined that the target identifier does not exist in a historical mapping relationship between stored data blocks and identifiers of historical operation commands for the stored data blocks; and
storing the target data block and a target mapping relationship between the target data block and the target identifier in a storage space for storing the stored data blocks and the historical mapping relationship.

### Claim 2 (depends on 1)

The method according to claim 1, wherein storing the target data block and the target mapping relationship comprises:
determining whether the stored data blocks in the storage space comprise the target data block; and
storing the target mapping relationship if it is determined that the stored data blocks comprise the target data block.

### Claim 3 (depends on 2)

The method according to claim 2, further comprising:
determining whether the storage space is full if it is determined that the stored data blocks do not comprise the target data block;
storing the target data block and the target mapping relationship in the storage space if it is determined that the storage space is not full; and
adjusting the storage space to store the target data block and the target mapping relationship if it is determined that the storage space is full.

### Claim 4 (depends on 3)

The method according to claim 3, wherein adjusting the storage space comprises:
determining the number of uses of the target data block and remaining duration during which the target data block can be saved in the storage space;
determining a priority of the target data block based on the number of uses and the remaining duration; and
deleting, if it is determined that the priority of the target data block is higher than a priority of at least one of the stored data blocks, the at least one stored data block and its corresponding mapping relationship from the storage space to store the target data block and the target mapping relationship.

### Claim 5 (depends on 1)

The method according to claim 1, further comprising:
acquiring a target data block corresponding to the target identifier based on the historical mapping relationship if it is determined that the target identifier exists in the historical mapping relationship.

### Claim 6 (depends on 1)

The method according to claim 1, wherein determining the type comprises:
inputting the operation command into a classification model to determine the type of the operation command.

### Claim 7 (depends on 1)

The method according to claim 1, wherein determining the target identifier comprises:
performing a hash operation on content in the operation command to determine the target identifier.

### Claim 8

An electronic device, comprising:
at least one processor; and
a memory coupled to the at least one processor and having instructions stored thereon, wherein when executed by the at least one processor, the instructions cause the device to perform actions comprising:
determining a type of a received operation command;
determining a target identifier of the operation command if it is determined that the type of the operation command indicates that the operation command is a command for acquiring data;
executing the operation command to acquire a target data block if it is determined that the target identifier does not exist in a historical mapping relationship between stored data blocks and identifiers of historical operation commands for the stored data blocks; and
storing the target data block and a target mapping relationship between the target data block and the target identifier in a storage space for storing the stored data blocks and the historical mapping relationship.

### Claim 9 (depends on 8)

The electronic device according to claim 8, wherein storing the target data block and the target mapping relationship comprises:
determining whether the stored data blocks in the storage space comprise the target data block; and
storing the target mapping relationship if it is determined that the stored data blocks comprise the target data block.

### Claim 10 (depends on 9)

The electronic device according to claim 9, wherein the actions further comprise:
determining whether the storage space is full if it is determined that the stored data blocks do not comprise the target data block;
storing the target data block and the target mapping relationship in the storage space if it is determined that the storage space is not full; and
adjusting the storage space to store the target data block and the target mapping relationship if it is determined that the storage space is full.

### Claim 11 (depends on 10)

The electronic device according to claim 10, wherein adjusting the storage space comprises:
determining the number of uses of the target data block and remaining duration during which the target data block can be saved in the storage space;
determining a priority of the target data block based on the number of uses and the remaining duration; and
deleting, if it is determined that the priority of the target data block is higher than a priority of at least one of the stored data blocks, the at least one stored data block and its corresponding mapping relationship from the storage space to store the target data block and the target mapping relationship.

### Claim 12 (depends on 8)

The electronic device according to claim 8, wherein the actions further comprise:
acquiring a target data block corresponding to the target identifier based on the historical mapping relationship if it is determined that the target identifier exists in the historical mapping relationship.

### Claim 13 (depends on 8)

The electronic device according to claim 8, wherein determining the type comprises:
inputting the operation command into a classification model to determine the type of the operation command.

### Claim 14 (depends on 8)

The electronic device according to claim 8, wherein determining the target identifier comprises:
performing a hash operation on content in the operation command to determine the target identifier.

### Claim 15

A computer program product having a non-transitory computer readable medium which stores a set of instructions to process an operation command; the set of instructions, when carried out by computerized circuitry, causing the computerized circuitry to perform a method of:
determining a type of a received operation command;
determining a target identifier of the operation command if it is determined that the type of the operation command indicates that the operation command is a command for acquiring data;
executing the operation command to acquire a target data block if it is determined that the target identifier does not exist in a historical mapping relationship between stored data blocks and identifiers of historical operation commands for the stored data blocks; and
storing the target data block and a target mapping relationship between the target data block and the target identifier in a storage space for storing the stored data blocks and the historical mapping relationship.
