# US 2018/0322075 A1 · Method for processing client requests in a cluster system, a method and an apparatus for processing i/o according to the client requests

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

- Number: US 2018/0322075 A1
- Document ID: US20180322075A1
- Status: Published application
- Kind: A1
- Application number: 15/922,442
- Filed: 2018-03-15
- Published: 2018-11-08
- Earliest claimed: 2017-05-08
- Assignees: Apposha Co., Ltd.
- Applicants: Apposha Co., Ltd.
- Inventors: Sang Wook KIM; Byeong Hun HYEON
- Web page: https://patentgrep.com/patent/US20180322075A1

## CPC

- G06F 13/1642: {with request queuing}
- G06F 13/102: {where the program performs an interfacing function, e.g. device driver (G06F13/105 takes precedence; contention policies within device drivers G06F9/4881; scheduling within device drivers G06F9/52)}
- G06F 13/1626: {by reordering requests}
- G06F 13/1673: {using buffers}
- G06F 13/1689: {Synchronisation and timing concerns (synchronisation on a memory bus G06F13/4234)}
- G06F 13/20: for access to input/output bus
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for processing I/O via an I/O processing apparatus includes receiving first and second I/O requests, the first I/O request classified as a critical I/O, and the second I/O request classified as a non-critical I/O, assigning a higher priority than the second I/O request to the first I/O request and processing the first and second I/O requests on the basis of the assigned priority, wherein processing the first I/O request and the second I/O request comprises detecting that a processing state of the first I/O request is changed to a standby state by processing of the second I/O request, reclassifying the second I/O request as the critical I/O, and changing the priority of the second I/O request to the priority of the first I/O request in response to detecting and processing the second I/O request on the basis of the changed priority of the second I/O request.

## Claims

### Claim 1

A method for processing I/O, via an I/O processing apparatus, the method comprising:
receiving a first I/O request and a second I/O request, the first I/O request being classified as a critical I/O, and the second I/O request being classified as a non-critical I/O;
assigning a higher priority than the second I/O request to the first I/O request; and
processing the first I/O request and the second I/O request on the basis of the assigned priority,
wherein the processing the first I/O request and the second I/O request comprises
detecting that a processing state of the first I/O request is changed to a standby state by processing of the second I/O request,
reclassifying the second I/O request as the critical I/O, and changing the priority of the second I/O request to the priority of the first I/O request in response to the detecting, and
processing the second I/O request on the basis of the changed priority of the second I/O request.

### Claim 2 (depends on 1)

The method for processing I/O of claim 1, further comprising:
generating metadata corresponding to the second I/O request, in response to determining that the second I/O request enters a block layer, the metadata including a current processing position of the second I/O request; and
updating the current processing position included in the metadata in response to a change in the processing position of the second I/O request,
wherein the processing the second I/O request on the basis of the changed priority comprises processing the second I/O request on the basis of the updated current processing position.

### Claim 3 (depends on 2)

The method for processing I/O of claim 2, wherein the block layer comprises a first I/O wait queue for scheduling an I/O request classified as the critical I/O and a second I/O wait queue for scheduling an I/O request classified as the non-critical I/O,
wherein the processing the second I/O request on the basis of the updated current processing position comprises trying to insert the second I/O request into the first I/O wait queue, in response to determining that the second I/O request is located in an admission control stage for waiting inserting of the second I/O wait queue.

### Claim 4 (depends on 2)

The method for processing I/O of claim 2, wherein the block layer comprises a first I/O wait queue for processing an I/O request classified as the critical I/O, and a second I/O wait queue for processing an I/O request classified as the non-critical I/O,
wherein the processing the second I/O request on the basis of the updated current processing position comprises removing the second I/O request from the second I/O wait queue in response to determining that the second I/O request is inserted into the second I/O wait queue, and trying to insert the second I/O request into the first I/O wait queue.

### Claim 5 (depends on 2)

The method for processing I/O of claim 2, wherein the metadata is removed in response to any one determination indicating that the second I/O request is reclassified as the critical I/O or the second I/O request is dispatched from the block layer to a storage device.

### Claim 6 (depends on 1)

The method for processing I/O of claim 1, wherein the processing the first I/O request and the second I/O request comprises:
performing a first comparison a dirty page ratio of a buffer cache with a first threshold value in a caching layer which executes caching on the basis of the buffer cache;
determining whether to allocate the buffer page of the first I/O request based on a result of the first comparison;
performing a second comparison the dirty page ratio of the buffer cache with a second threshold value smaller than the first threshold value; and
determining whether to allocate the buffer page of the second I/O request based on a result of the second comparison.

### Claim 7 (depends on 1)

The method for processing I/O of claim 1, wherein the processing the first I/O request and the second I/O request comprises:
inserting the first I/O request into a first I/O wait queue of a block layer; and
inserting the second I/O request into a second I/O wait queue of the block layer,
wherein an I/O request inserted into the first I/O wait queue is processed in preference to an I/O request inserted into the second I/O wait queue.

### Claim 8 (depends on 7)

The method for processing I/O of claim 7, wherein the I/O request inserted into the second I/O wait queue is processed for each predetermined period, even when another I/O request is inserted into the first I/O wait queue.

### Claim 9 (depends on 7)

The method for processing I/O of claim 7, wherein a number of I/O requests to be dispatched from the second I/O wait queue to a storage device for a predetermined period of time is limited to be a predetermined number or less.

### Claim 10 (depends on 1)

The method for processing I/O of claim 1, wherein a task which transmits the first I/O request is a foreground task, and a task which transmits the second I/O request is a background task, and the foreground task is a task to be executed in response to a request of a client, and the background task is a task other than the foreground task.

### Claim 11

A method for processing client request executed in a cluster system including a plurality of nodes, the method comprising:
tagging a request identifier to the client request in accordance with a processing order of the client request in response to receiving the client request;
forwarding a first sub-request derived from the client request to a first node of the plurality of nodes, and forwarding a second sub-request derived from the client request to a second node of the plurality of nodes, the request identifier being tagged to each of the first sub-request and the second sub-request;
processing a first I/O request generated in accordance with the first sub-request, depending on the processing order of the request identifier tagged to the first sub-request, at the first node; and
processing a second I/O request generated in accordance with the second sub-request, depending on the processing order of the request identifier tagged to the second sub-request, at the second node.

### Claim 12 (depends on 11)

The method for processing client requests of claim 11, wherein the request identifier is generated on the basis of a transmission time stamp of a client terminal side which transmits the client request.

### Claim 13 (depends on 11)

The method for processing client requests of claim 11, wherein the processing the first I/O request comprises:
determining whether a rear rank I/O request generated in accordance with a third sub-request exists in an I/O wait queue of the first node, the third sub-request being a sub-request in which a request identifier with later processing order than the first sub-request is tagged, and
inserting the first I/O request before a position where the rear rank I/O request at the I/O wait queue of the first node, in response to the determining that the rear rank I/O request exists.

### Claim 14 (depends on 11)

The method for processing client requests of claim 11, wherein the first I/O request comprises an I/O request generated in accordance with a read ahead, and an I/O request irrelevant to the read ahead, and
wherein the processing the first I/O request comprises:
processing the I/O request generated in accordance with the read ahead in a rear rank than the processing order of the request identifier tagged to the first sub-request; and
processing the I/O request irrelevant to the read ahead in accordance with the processing order of the request identifier tagged to the first sub-request.

### Claim 15 (depends on 11)

The method for processing client requests of claim 11, wherein the processing the first I/O request comprises:
determining whether an I/O amount of the first I/O request is greater than or equal to a threshold value; and
processing the first I/O request depending on the processing order of the request identifier tagged to the first sub-request, in response to the determining that the I/O amount is less than the threshold value.

### Claim 16 (depends on 15)

The method for processing client requests of claim 15, wherein the threshold value is determined on the basis of distribution of I/O amount for each sub-request forwarded to the first node.

### Claim 17 (depends on 11)

The method for processing client requests of claim 11, wherein the processing the first I/O request comprises inserting the first I/O request into an I/O wait queue of the first node, and dispatching the inserted first I/O request to a storage device,
wherein a number of I/O requests to be dispatched from the I/O wait queue to the storage device for a predetermined period is limited to a predetermined number or less.

### Claim 18 (depends on 17)

The method for processing client requests of claim 17, wherein the number is determined depending on any one factor among a type of storage device, a proportion of write I/O request occupied in dispatched I/O requests, and a size of I/O data of I/O request to be dispatched.

### Claim 19

An apparatus for processing I/O, comprising:
a hardware processor;
a memory configured to load a computer program executed by the hardware processor; and
a storage configured to store the computer program,
wherein the computer program which, when executed by the hardware processor, causes the hardware processor to perform operations comprising
receiving a first I/O request and a second I/O request, the first I/O request being classified as a critical I/O, and the second I/O request being classified as a non-critical I/O;
assigning a priority higher than the second I/O request to the first I/O request; and
processing the first I/O request and the second I/O request on the basis of the assigned priority,
wherein the processing the first I/O request and the second I/O request comprises detecting that a processing state of the first I/O request is changed to a standby state by processing of the second I/O request, reclassifying the second I/O request as the critical I/O, and changing the priority of the second I/O request to the priority of the first I/O request in response to the detecting, and processing the second I/O request on the basis of the changed priority of the second I/O request.
