# US 2021/0287716 A1 · Global Secondary Path Locking Technique Enabling High Read Concurrency For Read-Mostly Workloads

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

- Number: US 2021/0287716 A1
- Document ID: US20210287716A1
- Status: Published application
- Kind: A1
- Application number: 17/337,891
- Filed: 2021-06-03
- Published: 2021-09-16
- Earliest claimed: 2018-09-20
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Alex Kogan; David Dice
- Web page: https://patentgrep.com/patent/US20210287716A1

## CPC

- G11B 20/10268: {bit detection or demodulation methods}
- G06F 9/526: {Mutual exclusion algorithms}
- G06F 16/2343: {Locking methods, e.g. distributed locking or locking implementation details}
- G06F 16/2365: {Ensuring data consistency and integrity}
- G11B 20/105: {selecting parameter values from a plurality of predetermined settings}
- G11C 16/22: Safety or protection circuits preventing unauthorised or accidental access to memory cells
- G11C 16/26: Sensing or reading circuits; Data output circuits
- G11B: INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER (recording measured values in a way that does not require playback through a transducer G01D9/00; recording or playback apparatus using mechanically marked tape, e.g. punched paper tape, or using unit records, e.g. punched or magnetically marked cards G06K; transferring data from one type of record carrier to another G06K1/18; circuits for coupling output of reproducer to radio receiver H04B1/20; gramophone pick-ups or like acoustic electromechanical transducers or circuits therefor H04R)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

A reader of a set of data accessors that includes readers and writer detects that a particular lock of a first collection of non-global locks associated with a data object of a computing environment is held by another accessor. After checking a blocking indicator, the reader uses a second lock (which is not part of the first collection) to obtain read access to the data object and implements its reads without acquiring the particular lock. Prior to implementing a write on the data object, a writer acquires at least some locks of the first collection, and sets the blocking indicator to prevent readers from using the second lock to obtain read access to the data object.

## Claims

### Claim at position 1

-20. (canceled)

### Claim 21

A computer-implemented method, comprising:
detecting, by a first reader of a plurality of data accessors, that a particular lock of a first collection of one or more locks associated with a first data object is held by another data accessor; and
based at least in part on said detecting,
utilizing, by the first reader, after checking a blocking indicator, a second lock associated with the first data object to obtain read access to the first data object, wherein the second lock is not a member of the first collection; and
implementing, by the first reader, one or more read operations on the first data object, without acquiring the particular lock.

### Claim 22 (depends on 21)

The computer-implemented method as recited in claim 21, wherein the other accessor holding the particular lock is a second reader of the plurality of data accessors.

### Claim 23 (depends on 21)

The computer-implemented method as recited in claim 21, wherein the plurality of data accessors comprises a second reader, the computer-implemented method further comprising:
in response to detecting, by the second reader that another lock of the first collection of one or more locks is held by another data accessor,
utilizing, by the second reader, after checking the blocking indicator and prior to the completion of the one or more read operations of the first reader, the second lock associated with the first data object to obtain read access to the first data object; and
implementing, by the second reader, one or more read operations on the first data object, without acquiring the other lock of the first collection.

### Claim 24 (depends on 21)

The computer-implemented method as recited in claim 21, wherein utilizing the second lock comprises modifying a counter associated with the second lock.

### Claim 25 (depends on 21)

The computer-implemented method as recited in claim 21, wherein the plurality of data accessors includes a first writer, the computer-implemented method further comprising:
prior to implementing a write operation on the first data object by the first writer,
acquiring, by the first writer, one or more locks of the first collection of locks, and
setting, by the first writer, the blocking indicator to prevent another reader from using the second lock to obtain read access to the first data object.

### Claim 26 (depends on 21)

The computer-implemented method as recited in claim 21, wherein the plurality of data accessors run in a computing environment comprising a particular count of processing elements, and wherein the number of locks included in the first collection of locks is based at least in part on the particular count.

### Claim 27 (depends on 26)

The computer-implemented method as recited in claim 26, wherein an individual processing element of the computing environment comprises one of: (a) a CPU (central processing unit), (b) a core, or (c) a NUMA (non-uniform memory access) node.

### Claim 28

A system, comprising:
one or more computing devices;
wherein the one or more computing devices include instructions that upon execution on or across one or more processors cause a first reader of a plurality of data accessors to:
detect that a particular lock of a first collection of one or more locks associated with a first data object is held by another data accessor; and
based at least in part on detecting that the particular lock is held by the other data accessor,
utilize, after checking a blocking indicator, a second lock associated with the first data object to obtain read access to the first data object, wherein the second lock is not a member of the first collection; and
implement one or more read operations on the first data object, without acquiring the particular lock.

### Claim 29 (depends on 28)

The system as recited in claim 28, wherein the other accessor holding the particular lock is a second reader of the plurality of data accessors.

### Claim 30 (depends on 28)

The system as recited in claim 28, wherein the plurality of data accessors comprises a second reader, and wherein the one or more computing devices include further instructions that upon execution on or across one or more processors further cause the second reader to:
in response to detecting that another lock of the first collection of one or more locks is held by another data accessor,
utilize, after checking the blocking indicator and prior to the completion of the one or more read operations of the first reader, the second lock associated with the first data object to obtain read access to the first data object; and
implement one or more read operations on the first data object, without acquiring the other lock of the first collection.

### Claim 31 (depends on 28)

The system as recited in claim 28, wherein to cause the first reader to utilize the second lock, the one or more computing devices include further instructions that upon execution on or across one or more processors further cause the first reader to:
modify a counter associated with the second lock.

### Claim 32 (depends on 28)

The system as recited in claim 28, wherein the plurality of data accessors includes a first writer, and wherein the one or more computing devices include further instructions that upon execution on or across one or more processors further cause the first writer to:
prior to implementing a write operation on the first data object,
acquire one or more locks of the first collection of locks, and
set the blocking indicator to prevent another reader from using the second lock to obtain read access to the first data object.

### Claim 33 (depends on 28)

The system as recited in claim 28, wherein the plurality of data accessors run in a computing environment comprising a particular count of processing elements, and wherein the number of locks included in the first collection of locks is based at least in part on the particular count.

### Claim 34 (depends on 33)

The system as recited in claim 33, wherein an individual processing element of the computing environment comprises one of: (a) a CPU (central processing unit), (b) a core, or (c) a NUMA (non-uniform memory access) node.

### Claim 35

One or more non-transitory computer-accessible storage media storing program instructions that when executed on or across one or more processors:
cause a first reader of a plurality of data accessors to:
detect that a particular lock of a first collection of one or more locks associated with a first data object is held by another data accessor; and
based at least in part on detecting that the particular lock is held by the other data accessor,
utilize, after checking a blocking indicator, a second lock associated with the first data object to obtain read access to the first data object, wherein the second lock is not a member of the first collection; and
implement one or more read operations on the first data object, without acquiring the particular lock.

### Claim 36 (depends on 35)

The one or more non-transitory computer-accessible storage media as recited in claim 35, wherein the other accessor holding the particular lock is a second reader of the plurality of data accessors.

### Claim 37 (depends on 35)

The one or more non-transitory computer-accessible storage media as recited in claim 35, wherein the plurality of data accessors comprises a second reader, and wherein the one or more non-transitory computer-accessible storage media store further program instructions that when executed on or across one or more processors further cause the second reader to:
in response to detecting that another lock of the first collection of one or more locks is held by another data accessor,
utilize, after checking the blocking indicator and prior to the completion of the one or more read operations of the first reader, the second lock associated with the first data object to obtain read access to the first data object; and
implement one or more read operations on the first data object, without acquiring the other lock of the first collection.

### Claim 38 (depends on 35)

The one or more non-transitory computer-accessible storage media as recited in claim 35, wherein to cause the first reader to utilize the second lock, the one or more non-transitory computer-accessible storage media store further program instructions that when executed on or across one or more processors further cause the first reader to:
modify a counter associated with the second lock.

### Claim 39 (depends on 35)

The one or more non-transitory computer-accessible storage media as recited in claim 35, wherein the plurality of data accessors includes a first writer, and wherein the one or more non-transitory computer-accessible storage media store further program instructions that when executed on or across one or more processors further cause the first writer to:
prior to implementing a write operation on the first data object,
acquire one or more locks of the first collection of locks, and
set the blocking indicator to prevent another reader from using the second lock to obtain read access to the first data object.

### Claim 40 (depends on 35)

The one or more non-transitory computer-accessible storage media as recited in claim 35, wherein the plurality of data accessors run in a computing environment comprising a particular count of processing elements, and wherein the number of locks included in the first collection of locks is based at least in part on the particular count.
