# US 2020/0394155 A1 · Data operations using a cache table in a file system

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

- Number: US 2020/0394155 A1
- Document ID: US20200394155A1
- Status: Published application
- Kind: A1
- Application number: 16/442,357
- Filed: 2019-06-14
- Published: 2020-12-17
- Earliest claimed: 2019-06-14
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Karel DANIHELKA; Omar CAREY; Rajsekhar DAS
- Web page: https://patentgrep.com/patent/US20200394155A1

## CPC

- G06F 11/1435: {using file system or storage system metadata}
- G06F 16/172: Caching, prefetching or hoarding of files
- G06F 11/1415: {at system level}
- G06F 12/0875: with dedicated cache, e.g. instruction or stack
- G06F 16/13: File access structures, e.g. distributed indices (arrangements of input from, or output to, record carriers G06F3/06)
- G06F 2212/466: Metadata, control data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods, systems, and computer storage media for providing reduced-latency data operations in a file system. In operation, a request to perform a data operation associated with a B+ table storage of a file system is received. The file system supports the B+ table storage that is accessible using a B+ tree lookup logic for accessing B+ table data and supports a cache storage that is accessible using a cache table lookup logic for accessing cache data in the cache storage. A number of references to the location in the B+ table storage is determined. The location in the B+ table storage is associated with the request to perform the data operation. Based on determining the number of references to the location, a cache storage location to perform the data operation is accessed. The cache storage location is mapped (using the cache table) to the location in the B+ table storage.

## Claims

### Claim 1

A file system engine for providing data operations in file systems, the system comprising:
one or more hardware processors; and
one or more computer storage media storing computer-useable instructions that, when used by the one or more processors, cause the one or more processors to execute:
receiving a request to perform a data operation associated with a B+ table storage of a file system, wherein the file system supports the B+ table storage that is accessible using a B+ tree lookup logic for access the B+ table data in the B+ table storage, wherein the file system supports a cache storage that is accessible using a cache table lookup logic for access cache data in the cache storage;
determining a number references to a location in the B+ table storage based on a reference count tracker, wherein the location in the B+ table storage is associated with the request to perform the data operation; and
based on the number of references to the location, accessing a cache storage location to perform the data operation, wherein based on the cache table, the cache storage location is mapped the location in the B+ table storage, wherein the cache table supports indirect access to the B+ table storage comprising B+ table data stored in known locations in the B+ table storage, the B+ table data is temporarily stored in corresponding cache storage locations.

### Claim 2 (depends on 1)

The system of claim 1, wherein the cache table lookup logic is an O(1) lookup that is faster than the B+ tree lookup logic that is an O(log n) lookup.

### Claim 3 (depends on 1)

The system of claim 1, wherein B+ table storage is disk secondary storage and the cache storage is in-memory primary storage, wherein B+ table storage simultaneously supports indirect delayed persisting of cache data and direct timely persisting of B+ table data.

### Claim 4 (depends on 1)

The system of claim 1, wherein the cache table is a hash table that maps the known locations in the B+ table storage to the cache storage location based on a hash function, wherein the hash function supports key-based access to the cache storage locations and corresponding known locations in the B+ table storage.

### Claim 5 (depends on 1)

The system of claim 1, wherein reference count tracker operates as an indicator that a data block is shared by a first file and a second file, wherein the second file is a clone of the first file, wherein modifications the data block via the second file comprise performing a copy-on-write and updating the reference count tracker to remove the reference from the second file.

### Claim 6 (depends on 1)

The system of claim 1, wherein the B+ table data is accessible based on a plurality of global tables and a global table interface that centrally manage accessing and storing the B+ table data in the B+ table storage, wherein the global table interface support simultaneous access to the B+ table data for data operations associated with the cache storage and data operations not associated with the cache storage.

### Claim 7 (depends on 1)

The system of claim 1, wherein the data operation is a write operation that modifies cache data in the cache storage location while the location in the B+ table store corresponding the cache data is inaccessible based on a locking logic of the file system; or wherein the data operation is a read operation that provides read access to the cache data.

### Claim 8

One or more computer storage media having computer-executable instructions embodied thereon that, when executed, by one or more processors, cause the one or more processors for providing data operations in file systems, the method comprising:
receiving a request to perform a data operation associated with a B+ table storage of a file system, wherein the file system supports the B+ table storage that is accessible using a B+ tree lookup logic for access the B+ table data in the B+ table storage, wherein the file system supports a cache storage that is accessible using a cache table lookup logic for access cache data in the cache storage;
determining a number references to a location in the B+ table storage based on a reference count tracker, wherein the location in the B+ table storage is associated with the request to perform the data operation; and
based on the number of references to the location, accessing a cache storage location to perform the data operation, wherein based on the cache table, the cache storage location is mapped the location in the B+ table storage, wherein the cache table supports indirect access to the B+ table storage comprising B+ table data stored in known locations in the B+ table storage, the B+ table data is temporarily stored in corresponding cache storage locations.

### Claim 9 (depends on 8)

The media of claim 8, wherein the cache table lookup logic is an O(1) lookup that is faster than the B+ tree lookup logic that is an O(log n) lookup.

### Claim 10 (depends on 8)

The media of claim 8, wherein B+ table storage is disk secondary storage and the cache storage is in-memory primary storage, wherein B+ table storage simultaneously supports indirect delayed persisting of cache data and direct timely persisting of B+ table data.

### Claim 11 (depends on 8)

The media of claim 8, wherein the cache table is a hash table that maps the known locations in the B+ table storage to the cache storage location based on a hash function, wherein the hash function allows key-based access to the cache storage locations and corresponding known locations in the B+ table storage.

### Claim 12 (depends on 8)

The media of claim 8, wherein reference count tracker operates as an indicator that a data block is shared by a first file and a second file, wherein the second file is a clone of the first file, wherein modifications the data block via the second file comprise performing a copy-on-write and updating the reference count tracker to remove the reference from the second file.

### Claim 13 (depends on 8)

The media of claim 8, wherein the B+ table data is accessible based on a plurality of global tables and a global table interface that centrally manage accessing and storing the B+ table data in the B+ table storage, wherein the global table interface support simultaneous access to the B+ table data for data operations associated with the cache storage and data operations not associated with the cache storage.

### Claim 14 (depends on 8)

The media of claim 8, wherein the data operation is a write operation that modifies cache data in the cache storage location while the location in the B+ table store corresponding the cache data is inaccessible based on a locking logic of the file system; or wherein the data operation is a read operation that provides read access to the cache data.

### Claim 15

A computer-implemented for providing data operations in file systems, the method comprising:
receiving a request to perform a data operation associated with a B+ table storage of a file system, wherein the file system supports the B+ table storage that is accessible using a B+ tree lookup logic for access the B+ table data in the B+ table storage, wherein the file system supports a cache storage that is accessible using a cache table lookup logic for access cache data in the cache storage;
determining a number references to a location in the B+ table storage based on a reference count tracker, wherein the location in the B+ table storage is associated with the request to perform the data operation; and
based on the number of references to the location, accessing a cache storage location to perform the data operation, wherein based on the cache table, the cache storage location is mapped the location in the B+ table storage, wherein the cache table supports indirect access to the B+ table storage comprising B+ table data stored in known locations in the B+ table storage, the B+ table data is temporarily stored in corresponding cache storage locations.

### Claim 16 (depends on 15)

The media of claim 15, wherein B+ table storage is disk secondary storage and the cache storage is in-memory primary storage, wherein B+ table storage simultaneously supports indirect delayed persisting of cache data and direct timely persisting of B+ table data.

### Claim 17 (depends on 15)

The media of claim 15, wherein the cache table is a hash table that maps the known locations in the B+ table storage to the cache storage location based on a hash function, wherein the hash function allows key-based access to the cache storage locations and corresponding known locations in the B+ table storage.

### Claim 18 (depends on 15)

The media of claim 15, wherein reference count tracker operates as an indicator that a data block is shared by a first file and a second file, wherein the second file is a clone of the first file, wherein modifications the data block via the second file comprise performing a copy-on-write and updating the reference count tracker to remove the reference from the second file.

### Claim 19 (depends on 15)

The media of claim 15, wherein the B+ table data is accessible based on a plurality of global tables and a global table interface that centrally manage accessing and storing the B+ table data in the B+ table storage, wherein the global table interface support simultaneous access to the B+ table data for data operations associated with the cache storage and data operations not associated with the cache storage.

### Claim 20 (depends on 15)

The media of claim 15, wherein the data operation is a write operation that modifies cache data in the cache storage location while the location in the B+ table store corresponding the cache data is inaccessible based on a locking logic of the file system; or wherein the data operation is a read operation that provides read access to the cache data.
