# US 2015/0149426 A1 · Transaction commit operations with thread decoupling and grouping of i/o requests

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

- Number: US 2015/0149426 A1
- Document ID: US20150149426A1
- Status: Published application
- Kind: A1
- Application number: 14/255,807
- Filed: 2014-04-17
- Published: 2015-05-28
- Earliest claimed: 2013-11-22
- Assignees: Sap SE
- Inventors: Kyu Hwan Kim; Juchang Lee
- Web page: https://patentgrep.com/patent/US20150149426A1

## CPC

- G06F 9/467: {Transactional memory (G06F9/528 takes precedence)}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0613: {in relation to throughput}
- G06F 3/0655: {Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices}
- G06F 3/0656: {Data buffering arrangements}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 3/0674: {Disk device}
- G06F 16/22: Indexing; Data structures therefor; Storage structures
- G06F 16/2365: {Ensuring data consistency and integrity}
- G06F 16/2379: {Updates performed during online database operations; commit processing}
- G06F 3/06: Digital input from, or digital output to, record carriers {, e.g. RAID, emulated record carriers or networked record carriers}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Innovations in the area of server-side processing when committing transactions to disk in a distributed database system can improve computational efficiency at database nodes and/or reduce network bandwidth utilization. For example, when transactions are committed in a database system, at a master node of the database system, a server uses different threads for certain processor-intensive operations and certain I/O-intensive operations. Or, as another example, when transactions are committed in a database system, at a master node of the database system, a server groups jobs for I/O requests.

## Claims

### Claim 1

One of more tangible computer-readable media storing computer-executable instructions for causing a server programmed thereby to perform a method at a master node of a database system, the method comprising:
receiving a request to commit transactions to disk; and
performing operations to commit the transactions to disk, including:
with a first thread at the master node, defining a job to write a log to disk at a slave node of the database system; and
with a second thread at the master node, sending a request to perform the job to the slave node.

### Claim 2 (depends on 1)

The one or more computer-readable media of claim 1 wherein the operations further include:
with the first thread, pushing the job to a queue; and
releasing the first thread.

### Claim 3 (depends on 2)

The one or more computer-readable media of claim 2 wherein the second thread wakes when any jobs are pushed to the queue, and wherein the request includes as a group any jobs from the queue.

### Claim 4 (depends on 1)

The one of more computer-readable media of claim 1 wherein the log is a prepare commit log.

### Claim 5 (depends on 4)

The one or more computer-readable media of claim 4 wherein the server has n executor threads associated with n logical cores, respectively, of the server, the first thread being one of the n executor threads.

### Claim 6 (depends on 4)

The one or more computer-readable media of claim 4 wherein the request sent to the slave node is a synchronous network input/output request.

### Claim 7 (depends on 6)

The one or more computer-readable media of claim 6 wherein the second thread waits for a response to the synchronous network input/output request sent to the slave node.

### Claim 8 (depends on 7)

The one or more computer-readable media of claim 7 wherein the operations further include:
after receiving the response, at the master node, writing a commit log to disk as part of a synchronous disk input/output request.

### Claim 9 (depends on 1)

The one of more computer-readable media of claim 1 wherein the log is a commit log for the transactions.

### Claim 10 (depends on 9)

The one or more computer-readable media of claim 9 wherein the request sent to the slave node is an asynchronous network input/output request.

### Claim 11 (depends on 10)

The one or more computer-readable media of claim 10 wherein the second thread continues without waiting for a response to the asynchronous network input/output request sent to the slave node.

### Claim 12 (depends on 10)

The one or more computer-readable media of claim 10 wherein the operations further include:
at the master node, sending an acknowledgement of the request to commit transactions.

### Claim 13

A method comprising, at a slave node of a database system:
receiving a request for a group of multiple jobs, wherein each of the multiple jobs relates to writing a prepare commit log (“PCL”) for transactions to disk; and
writing the PCLs for the multiple jobs to disk as part of a synchronous disk input/output (“I/O”) request.

### Claim 14 (depends on 13)

The method of claim 13 wherein a thread at the slave node writes the PCLs to an in-memory buffer then triggers the synchronous disk I/O request.

### Claim 15 (depends on 14)

The method of claim 14 wherein the thread waits for completion of the synchronous disk I/O request.

### Claim 16

A server comprising a processing unit and memory, wherein the server is adapted to operate a master node of a database system, and wherein the server is adapted to perform a method comprising:
receiving a request to commit transactions to disk; and
performing operations to commit the transactions to disk, including:
defining a job to write a log to disk at a slave node of the database system;
pushing the job to a queue; and
sending a request to perform the job to the slave node.

### Claim 17 (depends on 16)

The server of claim 16 wherein the request includes, as a group, any jobs from the queue.

### Claim 18 (depends on 16)

The server of claim 16 wherein the log is a prepare commit log, and wherein the request is a synchronous network input/output request.

### Claim 19 (depends on 16)

The server of claim 16 wherein the log is a commit log, and wherein the request is an asynchronous network input/output request.

### Claim 20 (depends on 16)

The server of claim 16 wherein a first thread at the master node performs the defining and the pushing, and wherein a second thread at the master node performs the sending.
