# US 2024/0004561 A1 · Data Storage Device and Method for Adaptive Host Memory Buffer Allocation Based on Virtual Function Prioritization

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

- Number: US 2024/0004561 A1
- Document ID: US20240004561A1
- Status: Published application
- Kind: A1
- Application number: 17/854,312
- Filed: 2022-06-30
- Published: 2024-01-04
- Earliest claimed: 2022-06-30
- Assignees: Western Digital Technologies, Inc.
- Applicants: Western Digital Technologies, Inc.
- Inventors: Shay Benisty; Judah Gamliel Hahn; Ariel Navon; Alexander Bazarsky
- Web page: https://patentgrep.com/patent/US20240004561A1

## CPC

- G06F 3/0631: {by allocating resources to storage systems}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0617: {in relation to availability}
- G06F 3/0644: {Management of space entities, e.g. partitions, extents, pools}
- G06F 3/0656: {Data buffering arrangements}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0664: {at device level, e.g. emulation of a storage device or system}
- G06F 3/0673: {Single storage device}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A data storage device and method for adaptive host memory buffer allocation based on virtual function prioritization are provided. In one embodiment, a data storage device is provided comprising a memory, an interface, and a controller. The controller is configured to receive priority information of each of a plurality of virtual functions in the host and allocate space in the host memory buffer for each of the plurality of virtual functions based on the priority information. The controller is further configured to dynamically reallocate the space. Other embodiments are possible, and each of the embodiments can be used alone or together in combination.

## Claims

### Claim 1

A data storage device comprising:
a memory;
an interface configured to communicate with a host comprising a host memory buffer; and
a controller configured to communicate with the memory and the interface, wherein the controller is further configured to:
receive priority information of each of a plurality of virtual functions in the host; and
allocate space in the host memory buffer for each of the plurality of virtual functions based on the priority information, wherein more space is allocated to a relatively-higher-priority virtual function than a relatively-lower-priority virtual function.

### Claim 2 (depends on 1)

The data storage device of claim 1, wherein the controller is further configured to dynamically reallocate the space allocated in the host memory buffer.

### Claim 3 (depends on 2)

The data storage device of claim 2, wherein the space is dynamically reallocated based on new priority information.

### Claim 4 (depends on 2)

The data storage device of claim 2, wherein the space is dynamically reallocated based on performance of at least one of the plurality of virtual functions.

### Claim 5 (depends on 2)

The data storage device of claim 2, wherein the controller is further configured to reallocate the space during a background operation.

### Claim 6 (depends on 2)

The data storage device of claim 2, wherein the controller is further configured to reallocate the space in a single operation cluster during a time dedicated by the host.

### Claim 7 (depends on 1)

The data storage device of claim 1, wherein the plurality of virtual functions are associated with a single-root input/output virtualization (SR-IOV) system.

### Claim 8 (depends on 1)

The data storage device of claim 1, wherein the controller is further configured to use the space allocated for one of the plurality of virtual functions to cache a flash translation layer entry that is specific to a namespace associated with that virtual function.

### Claim 9 (depends on 1)

The data storage device of claim 1, wherein the controller is further configured to use the space allocated for one of the plurality of virtual functions to cache recently-read data and/or recently-written data for that virtual function.

### Claim 10 (depends on 1)

The data storage device of claim 1, wherein the controller is further configured to use the space allocated for one of the plurality of virtual functions to store control data for that virtual function.

### Claim 11 (depends on 1)

The data storage device of claim 1, wherein the controller is further configured to use the space allocated for one of the plurality of virtual functions to store read-look-ahead data for that virtual function.

### Claim 12 (depends on 1)

The data storage device of claim 1, wherein the controller is further configured to use the space allocated for one of the plurality of virtual functions to store history pattern matcher data for that virtual function.

### Claim 13 (depends on 1)

The data storage device of claim 1, wherein the memory comprises a three-dimensional memory.

### Claim 14

A method comprising:
performing the following in a data storage device in communication with a host comprising a host memory buffer and running a plurality of virtual functions:
allocating space in the host memory buffer for each of the plurality of virtual functions based on a respective priority of each of the plurality of virtual functions; and
dynamically reallocating the space allocated in the host memory buffer.

### Claim 15 (depends on 14)

The method of claim 14, wherein the space is dynamically reallocated based on new priority information regarding at least one of the plurality of virtual functions.

### Claim 16 (depends on 14)

The method of claim 14, wherein the space is dynamically reallocated based on performance of at least one of the plurality of virtual functions.

### Claim 17 (depends on 14)

The method of claim 14, further comprising reallocating the space during a background operation.

### Claim 18 (depends on 14)

The method of claim 14, further comprising reallocating the space in a single operation cluster during a time dedicated by the host.

### Claim 19 (depends on 14)

The method of claim 14, wherein the plurality of virtual functions are associated with a single-root input/output virtualization (SR-IOV) system.

### Claim 20

A data storage device comprising:
a memory; and
means for allocating space in a host memory buffer for each of a plurality of virtual functions based on a priority associated with each of the plurality of virtual functions.
