# US 2023/0409597 A1 · Partitioning mechanism for parallel processing in delta generation

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

- Number: US 2023/0409597 A1
- Document ID: US20230409597A1
- Status: Published application
- Kind: A1
- Application number: 18/181,414
- Filed: 2023-03-09
- Published: 2023-12-21
- Earliest claimed: 2022-06-16
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Satish Kumar Kashi Visvanathan; Vikram Singh Bisht; Viggnesh Venugopal; Ravi Lingappa Shamanna
- Web page: https://patentgrep.com/patent/US20230409597A1

## CPC

- G06F 11/1451: {by selection of backup contents}
- G06F 9/505: {considering the load}
- G06F 11/1417: {Boot up procedures}
- G06F 11/1464: {for networked environments}
- G06F 11/2023: {Failover techniques}
- G06F 11/2028: {eliminating a faulty processor or activating a spare}
- G06F 11/2038: {with a single idle spare processing component}
- G06F 11/2094: {Redundant storage or storage space (G06F11/2056 takes precedence)}
- G06F 11/2097: {maintaining the standby controller/processing unit updated (initialisation or re-synchronisation thereof G06F11/1658 and subgroups)}
- G06F 16/11: File system administration, e.g. details of archiving or snapshots (error detection or correction of the data by redundancy in operations G06F11/14)
- G06F 16/119: {Details of migration of file systems (migration mechanisms in storage systems G06F3/0647)}
- G06F 16/128: {Details of file system snapshots on the file-level, e.g. snapshot creation, administration, deletion (error detection or correction of the data by redundancy in operations or in hardware G06F11/14, G06F11/16)}
- G06F 16/1756: {based on delta files}
- G06F 16/178: Techniques for file synchronisation in file systems
- G06F 16/1844: {Management specifically adapted to replicated file systems}
- G06F 16/185: Hierarchical storage management [HSM] systems, e.g. file migration or policies thereof (details of archiving G06F16/11)
- G06F 16/2365: {Ensuring data consistency and integrity}
- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F 21/602: {Providing cryptographic facilities or services}
- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- H04L 9/0819: {Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) (network architectures or network communication protocols for key distribution in a packet data network H04L63/062)}
- H04L 9/0836: {using tree structure or hierarchical structure}
- H04L 9/0891: {Revocation or update of secret information, e.g. encryption key update or rekeying}
- H04L 9/0894: {Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage}
- H04L 9/14: using a plurality of keys or algorithms
- H04L 9/3228: {One-time or temporary data, i.e. information which is sent for every authentication or authorization, e.g. one-time-password, one-time-token or one-time-key}
- G06F 11/2048: {where the redundant components share neither address space nor persistent storage}
- G06F 16/1774: {Locking methods, e.g. locking methods for file systems allowing shared and concurrent access to files}
- G06F 16/2246: {Trees, e.g. B+trees}
- G06F 2201/84: Using snapshots, i.e. a logical point-in-time copy of the data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Techniques are described for partitioning B-tree keys of file systems into key ranges for parallel processing in delta generation during file storage replications between file systems in different cloud infrastructure regions. In certain embodiments, a delta generation processing for cross-region replication may utilize a key-range splitting mechanism involving a recursive algorithm that partitions B-tree keys of a source file system into roughly equal-size key ranges. All the partitioned key ranges may be processed in parallel and concurrently by different processing threads, one thread per key range, to improve the performance of the delta generation and achieve scalability.

## Claims

### Claim 1

A method, comprising:
receiving, by a computing system, a request to perform a replication between a source file system in a source region and a target file system in a target region, the source region and the target region being in different regions; and
generating, by the computing system, deltas between two snapshots in a binary-tree (B-tree) representing the source file system, the B-tree having multiple levels of hierarchy, the generating deltas comprising:
identifying, by the computing system, keys in nodes of the B-tree, at a current tree level, belonging to the source file system;
determining, by the computing system, whether the number of the identified keys is greater than or equal to a predetermined number; and
partitioning, by the computing system, the identified keys into a number of key ranges in accordance with the number of the identified keys being determined to be greater than or equal to the predetermined number, each key range having one or more keys.

### Claim 2 (depends on 1)

The method of claim 1, further comprising recursively traversing down the B-tree hierarchy by following a pointer associated with each identified key at the current tree level in accordance with the number of the identified keys being determined to be smaller than the predetermined number, the pointer being configured to point to a node at a child tree level, the child tree level being in a lower hierarchical level than the current tree level; and
wherein the child tree level becomes the current tree level after the traversal.

### Claim 3 (depends on 2)

The method of claim 2, wherein the recursively traversing starts from the top tree level of the B-tree, and the B-tree has a single node at the top tree level.

### Claim 4 (depends on 1)

The method of claim 1, further comprising keeping the identified keys in a single key range if the current tree level is the bottom tree level and the number of the identified keys being determined to be smaller than the predetermined number.

### Claim 5 (depends on 1)

The method of claim 1, further comprising processing the identified keys in a first key range of the partitioned key ranges concurrently and in parallel with processing the identified keys in a second key range of the partitioned key ranges.

### Claim 6 (depends on 5)

The method of claim 5, wherein processing the identified keys comprises collecting delta keys in each key range, the delta keys being identified to be keys that are different between the two snapshots in the B-tree.

### Claim 7 (depends on 1)

The method of claim 1, wherein the predetermined number is generated based at least in part on considering one or more of file system factors.

### Claim 8 (depends on 7)

The method of claim 7, wherein the file system factors are bandwidth, throughput, number of keys to partition, thread counts available to process keys, and size of the source file system.

### Claim 9

A non-transitory computer-readable medium storing computer-executable instructions that, when executed by one or more processors, cause the one or more processors to perform operations comprising:
receiving, by a computing system, a request to perform a replication between a source file system in a source region and a target file system in a target region, the source region and the target region being in different regions; and
generating, by the computing system, deltas between two snapshots in a binary-tree (B-tree) representing the source file system, the B-tree having multiple levels of hierarchy, the generating deltas comprising:
identifying, by the computing system, keys in nodes, at a current tree level, belonging to the source file system;
determining, by the computing system, whether the number of the identified keys is greater than or equal to a predetermined number; and
partitioning, by the computing system, the identified keys into a number of key ranges in accordance with the number of the identified keys being determined to be greater than or equal to the predetermined number, each key range having one or more keys.

### Claim 10 (depends on 9)

The non-transitory computer-readable medium of claim 9, the operations further comprising recursively traversing down the B-tree hierarchy by following a pointer associated with each identified key at the current tree level in accordance with the number of the identified keys being determined to be smaller than the predetermined number, the pointer being configured to point to a node at a child tree level, the child tree level being in a lower hierarchical level than the current tree level; and
wherein the child tree level becomes the current tree level after the traversal.

### Claim 11 (depends on 10)

The non-transitory computer-readable medium of claim 10, wherein the recursively traversing starts from the top tree level of the B-tree, and the B-tree has a single node at the top tree level.

### Claim 12 (depends on 9)

The non-transitory computer-readable medium of claim 9, the operations further comprising keeping the identified keys in a single key range if the current tree level is the bottom tree level and the number of the identified keys being determined to be smaller than the predetermined number.

### Claim 13 (depends on 9)

The non-transitory computer-readable medium of claim 9, the operations further comprising processing the identified keys in a first key range of the partitioned key ranges concurrently and in parallel with processing the identified keys in a second key range of the partitioned key ranges, wherein the processing comprises collecting delta keys in each key range, the delta keys being identified to be keys that are different between the two snapshots in the B-tree.

### Claim 14 (depends on 9)

The non-transitory computer-readable medium of claim 9, the operations further comprising sorting the identified keys into an ascending order before partitioning the identified keys into a number of key ranges.

### Claim 15

A system, comprising:
one or more processors; and
one or more computer readable media storing computer-executable instructions that, when executed by the one or more processors, cause the system to:
receive a request to perform a replication between a source file system in a source region and a target file system in a target region, the source region and the target region being in different regions; and
generate deltas between two snapshots in a binary-tree (B-tree) representing the source file system, the B-tree having multiple levels of hierarchy, the generating deltas comprising:
identify keys in nodes, at a current tree level, belonging to the source file system;
determining whether the number of the identified keys is greater than or equal to a predetermined number; and
partition the identified keys into a number of key ranges in accordance with the number of the identified keys being determined to be greater than or equal to the predetermined number, each key range having one or more keys.

### Claim 16 (depends on 15)

The system of claim 15, wherein the system is further caused to recursively traverse down the B-tree hierarchy by following a pointer associated with each identified key at the current tree level in accordance with the number of the identified keys being determined to be smaller than the predetermined number, the pointer being configured to point to a node at a child tree level, the child tree level being in a lower hierarchical level than the current tree level; and
wherein the child tree level becomes the current tree level after the traversal.

### Claim 17 (depends on 16)

The system of claim 16, wherein the recursively traversing starts from the top tree level of the B-tree, and the B-tree has a single node at the top tree level.

### Claim 18 (depends on 15)

The system of claim 15, wherein the system is further caused to keep the identified keys in a single key range if the current tree level is the bottom tree level and the number of the identified keys being determined to be smaller than the predetermined number.

### Claim 19 (depends on 15)

The system of claim 15, wherein the system is further caused to process the identified keys in a first key range of the partitioned key ranges and process the identified keys in a second key range of the partitioned key ranges concurrently and in parallel.

### Claim 20 (depends on 15)

The system of claim 15, wherein the system is further caused to sort the identified keys into an ascending order before partitioning the identified keys into a number of key ranges.
