# US 2022/0292024 A1 · Fine-grained multi-tenant cache management

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

- Number: US 2022/0292024 A1
- Document ID: US20220292024A1
- Status: Published application
- Kind: A1
- Application number: 17/826,074
- Filed: 2022-05-26
- Published: 2022-09-15
- Earliest claimed: 2019-08-29
- Assignees: Xilinx, Inc.
- Applicants: Xilinx, Inc.
- Inventors: Millind MITTAL; Jaideep DASTIDAR
- Web page: https://patentgrep.com/patent/US20220292024A1

## CPC

- G06F 12/0891: using clearing, invalidating or resetting means
- G06F 3/0607: {by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device}
- G06F 3/0652: {Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket}
- G06F 3/0685: {Hybrid storage combining heterogeneous device types, e.g. hierarchical storage, hybrid arrays}
- G06F 9/5016: {the resource being the memory}
- G06F 9/5022: {Mechanisms to release resources}
- G06F 12/0815: Cache consistency protocols
- G06F 12/0833: {in combination with broadcast means (e.g. for invalidation or updating)}
- G06F 12/0842: for multiprocessing or multitasking
- G06F 12/0864: using pseudo-associative means, e.g. set-associative or hashing
- G06F 12/0895: of parts of caches, e.g. directory or tag array
- G06F 2212/1024: Latency reduction
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The embodiments herein describe a multi-tenant cache that implements fine-grained allocation of the entries within the cache. Each entry in the cache can be allocated to a particular tenant—i.e., fine-grained allocation—rather than having to assign all the entries in a way to a particular tenant. If the tenant does not currently need those entries (which can be tracked using counters), the entries can be invalidated (i.e., deallocated) and assigned to another tenant. Thus, fine-grained allocation provides a flexible allocation of entries in a hardware cache that permits an administrator to reserve any number of entries for a particular tenant, but also permit other tenants to use this bandwidth when the reserved entries are not currently needed by the tenant.

## Claims

### Claim 1

A computing system comprising:
a cache comprising a plurality of entries, wherein a first number of the plurality of entries is reserved for a first tenant and a second number of the plurality of entries is reserved for a second tenant, wherein the first number and the second number are a guaranteed minimum number of entries in the cache that must be allocated to the first and second tenant, respectively, when requested by those tenants, wherein the cache is configured to:
receive a request to allocate an entry of the cache, wherein the request corresponds to the first tenant,
upon determining a counter corresponding to the first tenant has a value less than the first number, allocating the entry of the cache, and
incrementing the counter.

### Claim 2 (depends on 1)

The computing system of claim 1, wherein the plurality of entries are arranged in a plurality of ways, wherein each allocated entry in the plurality of entries stores a respective tenant ID.

### Claim 3 (depends on 1)

The computing system of claim 1, wherein allocating the entry comprises:
selecting a previously allocated entry that stores a tenant ID corresponding to a different tenant than the first tenant, and
invaliding the previously allocated entry before allocating the entry.

### Claim 4 (depends on 1)

The computing system of claim 1, wherein the cache is configured to:
receive a second request to allocate an entry of the cache for the first tenant; and
upon determining the counter has a value equal to or greater than the first number, determine whether there is an unallocated entry in the cache.

### Claim 5 (depends on 4)

The computing system of claim 4, wherein the cache is configured to:
upon determining there is an unallocated entry:
allocate the unallocated entry to the first tenant; and
increment the counter corresponding to the first tenant.

### Claim 6 (depends on 4)

The computing system of claim 4, wherein the cache is configured to:
upon determining there are no unallocated entries remaining in the cache:
invalidate an old entry previously allocated to the first tenant in the cache; and
allocate the old entry to the first tenant.

### Claim 7 (depends on 1)

The computing system of claim 1, wherein the cache is configured to:
receive a second request to allocate a second entry of the cache for the first tenant;
determine that the counter corresponding to the first tenant is equal to or greater than its maximum value;
determine that an overflow counter corresponding to an overflow portion of the cache is equal to or greater than its maximum value;
invalidate an old entry in the cache previously allocated to the first tenant; and
allocate the old entry to the first tenant.

### Claim 8 (depends on 1)

The computing system of claim 1, wherein the cache is configured to:
receive a second request to allocate a second entry of the cache for the first tenant;
determine that the second entry corresponds to a full index way in the cache;
determine that none of the entries in the full index way are allocated to the first tenant;
determine that one entry in the entries in the full index way corresponds to a second tenant that has a second counter that is less than its maximum value;
invalidate the one entry;
allocate the one entry to the first tenant;
increment the counter corresponding to the first tenant; and
decrement the second counter corresponding to the second tenant.

### Claim 9 (depends on 1)

The computing system of claim 1, wherein the cache is configured to:
receive a second request to allocate a second entry of the cache for the first tenant;
determine that the second entry corresponds to a full index way in the cache;
determine that none of the entries in the full index way are allocated to the first tenant;
determine that one entry in the entries in the full index way corresponds to a second tenant that has a second counter that is at least equal to its maximum value;
determine that an overflow counter corresponding to an overflow portion of the cache is non-zero;
invalidate the one entry;
allocate the one entry to the first tenant;
increment the counter corresponding to the first tenant; and
decrement the overflow counter corresponding to the overflow portion.

### Claim 10 (depends on 1)

The computing system of claim 1, wherein the cache is configured to:
receive a second request to allocate a second entry of the cache for the first tenant;
determine that the counter corresponding to the first tenant is equal to or greater than its maximum value;
determine that an overflow counter corresponding to an overflow portion of the cache is less than its maximum value;
determine that the second entry corresponds to a full index way in the cache;
identify at least one entry in the full index way previously allocated to the first tenant;
invalidate the at least one entry; and
allocate the at least one entry to the first tenant.

### Claim 11

A method comprising:
receiving a request to allocate an entry of a multi-tenant cache comprising a plurality of entries, wherein a first number of the plurality of entries is reserved for a first tenant and a second number of the plurality of entries is reserved for a second tenant, wherein the first number and the second number are a guaranteed minimum number of entries in the multi-tenant cache that must be allocated to the first and second tenant, respectively, when requested by those tenants, and wherein the request corresponds to the first tenant;
upon determining a counter corresponding to the first tenant has a value less than the first number, allocating the entry of the multi-tenant cache; and
incrementing the counter.

### Claim 12 (depends on 11)

The method of claim 11, wherein the plurality of entries are arranged in a plurality of ways, wherein each allocated entry in the plurality of entries stores a respective tenant ID.

### Claim 13 (depends on 12)

The method of claim 12, wherein allocating the entry comprises:
selecting a previously allocated entry that stores a tenant ID corresponding to a different tenant than the first tenant, and
invaliding the previously allocated entry before allocating the entry.

### Claim 14 (depends on 11)

The method of claim 11, further comprising:
receiving a second request to allocate a second entry of the multi-tenant cache for the first tenant; and
upon determining the counter has a value equal to or greater than the first number, determining whether there is an unallocated entry in the multi-tenant cache.

### Claim 15 (depends on 14)

The method of claim 14, further comprising:
upon determining there is an unallocated entry:
allocating the unallocated entry to the first tenant; and
incrementing the counter corresponding to the first tenant.

### Claim 16 (depends on 14)

The method of claim 14, further comprising:
upon determining there are no unallocated entries remaining in the multi-tenant cache:
invalidating an old entry previously allocated to the first tenant in the multi-tenant cache; and
allocating the old entry to the first tenant.

### Claim 17

A computing system comprising:
a cache comprising a plurality of entries, wherein a first number of the plurality of entries is reserved for a first tenant and a second number of the plurality of entries is reserved for a second tenant, wherein the first number and the second number are a guaranteed minimum number of entries in the cache that must be allocated to the first and second tenant, respectively, when requested by those tenants, wherein the cache is configured to:
receive a request to invalidate an entry of the cache, wherein the request corresponds to the first tenant,
invalidate a first entry of the plurality of entries in the cache that was previously allocated to the first tenant, and
decrement a counter corresponding to the first tenant.

### Claim 18 (depends on 17)

The computing system of claim 17, wherein the plurality of entries are arranged in a plurality of ways, wherein each allocated entry in the plurality of entries stores a respective tenant ID.

### Claim 19 (depends on 17)

The computing system of claim 17, wherein the cache is further configured to:
receive a second request to invalidate a second entry of the cache, wherein the request corresponds to the first tenant;
determine that the counter corresponding to the first tenant is less than the first number;
determine that an overflow counter corresponding to an overflow portion of the cache is non-zero;
invalidate a first entry in the cache previously allocated to the first tenant; and
decrement the overflow counter.

### Claim 20 (depends on 17)

The computing system of claim 17, wherein the cache is further configured to:
receive a second request to invalidate a second entry of the cache, wherein the request corresponds to the first tenant;
determine that the counter corresponding to the first tenant is less than the first number;
determine that an overflow counter corresponding to an overflow portion of the cache is zero;
invalidate a first entry in the cache previously allocated to the first tenant; and
decrement the counter corresponding to the first tenant.
