# US 2025/0085854 A1 · Memory access popularity statistics method and related apparatus and device

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

- Number: US 2025/0085854 A1
- Document ID: US20250085854A1
- Status: Published application
- Kind: A1
- Application number: 18/955,843
- Filed: 2024-11-21
- Published: 2025-03-13
- Earliest claimed: 2022-05-24
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Xingyu LUO
- Web page: https://patentgrep.com/patent/US20250085854A1

## CPC

- G06F 3/061: {Improving I/O performance}
- G06F 12/122: of the least frequently used [LFU] type, e.g. with individual count value
- G06F 3/0653: {Monitoring storage devices or systems}
- G06F 3/0673: {Single storage device}
- G06F 11/3037: {where the computing system component is a memory, e.g. virtual memory, cache (accessing, addressing or allocating within memory systems or architectures G06F12/00; checking stores for correct operation G11C29/00)}
- G06F 11/3409: {for performance assessment}
- G06F 11/3471: {Address tracing}
- G06F 12/0292: {using tables or multilevel address translation means (G06F12/023 takes precedence; address translation in virtual memory systems G06F12/10)}
- G06F 12/08: in hierarchically structured memory systems, e.g. virtual memory systems
- G06F 12/0851: {Cache with interleaved addressing}
- G06F 3/0649: {Lifecycle management}
- G06F 3/0671: {In-line storage system}
- G06F 11/3452: {Performance evaluation by statistical analysis}
- G06F 12/0607: {Interleaved addressing}
- G06F 12/0868: Data transfer between cache memory and other subsystems, e.g. storage devices or host systems
- G06F 12/0888: using selective caching, e.g. bypass
- G06F 2212/1016: Performance improvement
- G06F 2212/1024: Latency reduction
- G06F 2212/205: Hybrid memory, e.g. using both volatile and non-volatile memory
- G06F 2212/214: Solid state disk
- G06F 2212/261: Storage comprising a plurality of storage devices
- G06F 2212/282: Partitioned cache
- G06F 2212/284: being distributed
- G06F 2212/466: Metadata, control data
- G06F 2212/502: using adaptive policy
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Example memory access popularity statistics methods and apparatus are described. One example method includes determining a first address based on an access request. The access request indicates an operation performed on a memory of a computer device by an application program run by at least one processor in the computer device. Statistics about access frequency of accessing a data block stored at the first address is collected. An access popularity of the data block is determined based on the access frequency.

## Claims

### Claim 1

A method, wherein the method is performed by a controller, and the method comprises:
determining a first address based on an access request, wherein the access request indicates an operation performed on a memory of a computer device by an application program run by at least one processor in the computer device in which the controller is located, and the first address is a physical address in the memory;
collecting statistics about access frequency of accessing a data block stored at the first address, wherein a size of the data block is a multiple of unit storage space in the memory that is accessible to the at least one processor; and
determining an access popularity of the data block based on the access frequency.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the collecting statistics about access frequency of accessing a data block stored at the first address comprises:
collecting statistics about the access frequency of accessing the data block stored at the unit storage space to which the first address belongs.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the method further comprises:
identifying a second address based on an address of the data block stored at the first address and an address mapping relationship, wherein the second address indicates a location, in the controller, at which the access frequency of accessing the data block is stored, and the address mapping relationship indicates a mapping relationship between the address of the data block and an address of storage space in which the access frequency is stored.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the method further comprises: identifying the second address based on a third address indicated by the at least one processor and the address mapping relationship, to obtain the access frequency of accessing the data block, wherein the third address is determined based on the second address.

### Claim 5 (depends on 1)

The method according to of claim 1, wherein the size of the data block is a size of one page in the memory that is accessible to the at least one processor.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the size of the data block is a size of an interleaved data block in the memory that is accessible to the at least one processor in an interleaving manner, and the interleaving manner comprises that the at least one processor in the computer device distributes, to a plurality of memories for an operation, data of the operation performed by the application program on the memory of the computer device.

### Claim 7 (depends on 1)

The method according to claim 1, wherein a size of the unit storage space is a size of a cache line when the at least one processor accesses the memory.

### Claim 8

A controller, wherein the controller comprises a storage circuit and a processing circuit, wherein the storage circuit store computer instructions for execution by the processing circuit to:
determine a first address based on an access request, wherein the access request indicates an operation performed on a memory of a computer device by an application program run by at least one processor in the computer device in which the controller is located, and the first address is a physical address in the memory;
collect statistics about access frequency of accessing a data block stored at the first address, wherein a size of the data block is a multiple of unit storage space in the memory that is accessible to the at least one processor; and
determine an access popularity of the data block based on the access frequency.

### Claim 9 (depends on 8)

The controller according to claim 8, wherein the collecting statistics about access frequency of accessing a data block stored at the first address comprises:
collecting statistics about the access frequency of accessing the data block stored at the unit storage space to which the first address belongs.

### Claim 10 (depends on 9)

The controller according to claim 9, wherein the storage circuit stores computer instructions for execution by the processing circuit to:
identify a second address based on an address of the data block stored at the first address and an address mapping relationship, wherein the second address indicates a location, in the controller, at which the access frequency of accessing the data block is stored, and the address mapping relationship indicates a mapping relationship between the address of the data block and an address of storage space in which the access frequency is stored.

### Claim 11 (depends on 10)

The controller according to claim 10, wherein the storage circuit stores computer instructions for execution by the processing circuit to:
identify the second address based on a third address indicated by the at least one processor and the address mapping relationship, to obtain the access frequency of accessing the data block, wherein the third address is determined based on the second address.

### Claim 12 (depends on 8)

The controller according to claim 8, wherein the size of the data block is a size of one page in the memory that is accessible to the at least one processor.

### Claim 13 (depends on 8)

The controller according to claim 8, wherein the size of the data block is a size of an interleaved data block in the memory that is accessible to the at least one processor in an interleaving manner, and the interleaving manner comprises that the at least one processor in the computer device distributes, to a plurality of memories for an operation, data of the operation performed by the application program on the memory of the computer device.

### Claim 14 (depends on 8)

The controller according to claim 8, wherein a size of the unit storage space is a size of a cache line when the at least one processor accesses the memory.

### Claim 15

A computer device, wherein the computer device comprises at least one processor and a memory, and the memory comprises a storage device and a controller, and the controller comprises a storage circuit and a processing circuit, and the storage circuit stores computer instructions for execution by the processing circuit to:
determine a first address based on an access request, wherein the access request indicates an operation performed on a memory of a computer device by an application program run by the at least one processor in the computer device in which the controller is located, and the first address is a physical address in the memory;
collect statistics about access frequency of accessing a data block stored at the first address, wherein a size of the data block is a multiple of unit storage space in the memory that is accessible to the at least one processor; and
determine an access popularity of the data block based on the access frequency.

### Claim 16 (depends on 15)

The computer device according to claim 15, wherein the collecting statistics about access frequency of accessing a data block stored at the first address comprises:
collecting statistics about the access frequency of accessing the data block stored at the unit storage space to which the first address belongs is located.

### Claim 17 (depends on 15)

The computer device according to claim 15, wherein the storage circuit stores computer instructions for execution by the processing circuit to:
identify a second address based on an address of the data block stored at the first address and an address mapping relationship, wherein the second address indicates a location, in the controller, at which the access frequency of accessing the data block is stored, and the address mapping relationship indicates a mapping relationship between the address of the data block and an address of storage space in which the access frequency is stored.

### Claim 18 (depends on 17)

The computer device according to claim 17, wherein the storage circuit stores computer instructions for execution by the processing circuit to:
identify the second address based on a third address indicated by the at least one processor and the address mapping relationship, to obtain the access frequency of accessing the data block, wherein the third address is determined based on the second address.

### Claim 19 (depends on 15)

The computer device according to claim 15, wherein the size of the data block is a size of one page in the memory that is accessible to the at least one processor.

### Claim 20 (depends on 15)

The computer device according to claim 15, wherein the size of the data block is a size of an interleaved data block in the memory that is accessible to the at least one processor in an interleaving manner, and the interleaving manner comprises that the at least one processor in the computer device distributes, to a plurality of memories for an operation, data of the operation performed by the application program on the memory of the computer device.
