# US 2021/0286719 A1 · Managing storage space for metadata consistency checking

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

- Number: US 2021/0286719 A1
- Document ID: US20210286719A1
- Status: Published application
- Kind: A1
- Application number: 16/819,722
- Filed: 2020-03-16
- Published: 2021-09-16
- Earliest claimed: 2020-03-16
- Assignees: EMC IP Holding Company LLC
- Applicants: EMC IP Holding Company LLC
- Inventors: Vamsi K. Vankamamidi; Philippe Armangau; Daniel E. Cummins
- Web page: https://patentgrep.com/patent/US20210286719A1

## CPC

- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 12/0253: {Garbage collection, i.e. reclamation of unreferenced memory}
- G06F 12/0292: {using tables or multilevel address translation means (G06F12/023 takes precedence; address translation in virtual memory systems G06F12/10)}
- G06F 12/0811: with multilevel cache hierarchies
- G06F 12/0873: Mapping of cache memory to specific storage devices or parts thereof
- G06F 16/1827: {Management specifically adapted to NAS (management of storage area networks [SAN] G06F3/067)}
- G06F 2212/7207: management of metadata or control data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method of managing storage space for a metadata consistency checking procedure (MCCP) is provided. The method includes (a) tracking an amount of metadata and an amount of user data organized by the metadata; (b) provisioning a quantity of storage dedicated to the MCCP based, at least in part, on a ratio of the amount of metadata to the amount of user data; and (c) upon initiation of the MCCP, building tracking structures within the provisioned storage dedicated to the MCCP. An apparatus, system, and computer program product for performing a similar method are also provided.

## Claims

### Claim 1

A method of managing storage space for a metadata consistency checking procedure (MCCP), the method comprising:
tracking an amount of metadata and an amount of user data organized by the metadata;
provisioning a quantity of storage dedicated to the MCCP based, at least in part, on a ratio of the amount of metadata to the amount of user data; and
upon initiation of the MCCP, building tracking structures within the provisioned storage dedicated to the MCCP.

### Claim 2 (depends on 1)

The method of claim 1 wherein provisioning the quantity of storage dedicated to the MCCP includes:
calculating the ratio of the amount of metadata to the amount of user data;
applying a mapping to the calculated ratio to yield a target percentage; and
determining the quantity of storage dedicated to the MCCP by applying the target percentage to a measure of storage used in connection with the user data.

### Claim 3 (depends on 2)

The method of claim 2 wherein applying the mapping includes indexing into a table with the calculated ratio.

### Claim 4 (depends on 2)

The method of claim 2 wherein applying the target percentage to the measure of storage used in connection with the user data includes multiplying a total amount of storage that has been allocated by the target percentage.

### Claim 5 (depends on 2)

The method of claim 2 wherein provisioning the quantity of storage dedicated to the MCCP further includes adding storage dedicated to the MCCP in response to the calculated ratio increasing.

### Claim 6 (depends on 2)

The method of claim 2 wherein provisioning the quantity of storage dedicated to the MCCP further includes removing storage dedicated to the MCCP in response to the calculated ratio decreasing.

### Claim 7 (depends on 6)

The method of claim 6 wherein provisioning the quantity of storage dedicated to the MCCP further includes refraining from removing storage dedicated to the MCCP in response to the calculated ratio decreasing below a minimum threshold value.

### Claim 8 (depends on 1)

The method of claim 1,
wherein the user data is stored within a user tier of storage (TOS) provided by a data storage system, the data storage system providing a plurality of different TOSs for a respective plurality of types of data;
wherein the plurality of different TOSs includes at least one metadata TOS and a consistency checking TOS; and
wherein provisioning the quantity of storage dedicated to the MCCP includes provisioning the quantity of storage to the consistency checking TOS.

### Claim 9 (depends on 8)

The method of claim 8 wherein tracking the amount of metadata includes reading a cursor value of the at least one metadata TOS, the cursor value indicating a lowest address of the metadata TOS to which metadata has not yet been written.

### Claim 10 (depends on 9)

The method of claim 9 wherein tracking the amount of metadata further includes subtracting empty space within the metadata TOS below the cursor value by reading pointers from a list of freed blocks of metadata.

### Claim 11 (depends on 9)

The method of claim 9,
wherein the plurality of different TOSs further includes another metadata TOS for storing a special type of metadata different than stored in the metadata TOS; and
wherein tracking the amount of metadata further includes:
reading another cursor value of the other metadata TOS, the other cursor value indicating a lowest address of the other metadata TOS to which the special type of metadata has not yet been written and
summing the cursor value and the other cursor value.

### Claim 12 (depends on 8)

The method of claim 8 wherein provisioning the quantity of storage to the consistency checking TOS includes:
initially failing to be able to provision an entirety of the quantity of storage to the consistency checking TOS due to a lack of a free chunk of storage; and
in response to failing, initiating garbage collection within the user TOS to free a chunk of storage.

### Claim 13 (depends on 13)

The method of claim 13 wherein provisioning the quantity of storage to the consistency checking TOS further includes directly provisioning the chunk of storage freed by collection to the consistency checking TOS.

### Claim 14

A computer program product comprising a non-transitory computer-readable storage medium storing a set of instructions, which, when performed by processing circuitry of a data storage apparatus (DSA), causes the DSA to manage storage space for a metadata consistency checking procedure (MCCP) by:
tracking an amount of metadata and an amount of user data organized by the metadata;
provisioning a quantity of storage dedicated to the MCCP based, at least in part, on a ratio of the amount of metadata to the amount of user data; and
upon initiation of the MCCP, building tracking structures within the provisioned storage dedicated to the MCCP.

### Claim 15

A data storage apparatus (DSA) comprising:
a plurality of non-transitory persistent storage drives; and
processing circuitry coupled to memory configured to manage storage space for a metadata consistency checking procedure (MCCP) by:
tracking an amount of metadata and an amount of user data organized by the metadata;
provisioning a quantity of storage dedicated to the MCCP based, at least in part, on a ratio of the amount of metadata to the amount of user data; and
upon initiation of the MCCP, building tracking structures within the provisioned storage dedicated to the MCCP.
