# US 2023/0273728 A1 · Storage control apparatus and method

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

- Number: US 2023/0273728 A1
- Document ID: US20230273728A1
- Status: Published application
- Kind: A1
- Application number: 17/894,196
- Filed: 2022-08-24
- Published: 2023-08-31
- Earliest claimed: 2022-02-28
- Assignees: Hitachi, Ltd.
- Applicants: Hitachi, Ltd.
- Inventors: Kazuhiko MOGI; Shinji FUJIWARA
- Web page: https://patentgrep.com/patent/US20230273728A1

## CPC

- G06F 3/061: {Improving I/O performance}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 3/0656: {Data buffering arrangements}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0676: {Magnetic disk device}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 3/0682: {Tape device}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A database is stored in a plurality of pages that are a plurality of logical storage areas constituting a logical storage space. Data writing to a database in the logical storage space is performed in a page unit. A storage control apparatus coupled to an external storage and including a cache device writes data to the cache device in a page unit. The storage control apparatus determines whether an execution condition on external writing that is writing to the external storage is satisfied. When a result of the determination is true, the storage control apparatus writes data stored in the cache device to the external storage in a bulk unit that is larger than a page unit and is a writing unit in which consistency is maintained.

## Claims

### Claim 1

A storage control apparatus coupled to an external storage, including a processor and a cache device, and configured to update a database, wherein
the database is stored in a plurality of pages that are a plurality of logical storage areas constituting a logical storage space,
data writing to a database in the logical storage space is performed in a page unit, and
the processor
writes data to the cache device in a page unit,
determines whether an execution condition on external writing that is writing to the external storage is satisfied, and
writes, when a result of the determination is true, data stored in the cache device to the external storage in a bulk unit that is larger than a page unit and is a writing unit in which consistency is maintained.

### Claim 2 (depends on 1)

The storage control apparatus according to claim 1, wherein
the processor writes page management information for each segment including a plurality of data pages,
for each segment,
the segment is a page in which database data is stored,
the page management information is management information indicating which data page of the segment is vacant, and
the processor includes, in addition to data in a data page, the page management information for a segment including the data page in a bulk unit of data written to the external storage.

### Claim 3 (depends on 2)

The storage control apparatus according to claim 2, wherein
the processor writes segment management information for each segment group including a plurality of segments,
the segment management information for each segment group is management information indicating which segment of the segment group includes a vacant data page, and
the processor includes, in addition to data in a data page and the page management information for a segment including the data page, the segment management information for a segment group including the segment if the segment management information is associated with the segment, in a bulk unit of data written to the external storage.

### Claim 4 (depends on 2)

The storage control apparatus according to claim 2, wherein
the execution condition is release of any data page, and
when any data page is released, the processor updates the page management information for a segment including the released data page and writes a bulk unit of data including the updated page management information to the external storage.

### Claim 5 (depends on 1)

The storage control apparatus according to claim 1, wherein
the processor performs write processing that is processing of data writing to the database in response to a write request,
in the write processing, the processor determines whether a bulk unit of data to which a data page at a data write destination belongs is the same as a bulk unit of data to which another data page at a previous data write destination belongs, and
the execution condition is such that a result of the determination is false.

### Claim 6 (depends on 5)

The storage control apparatus according to claim 5, wherein
the execution condition is end of the write processing, and
when the write processing ends, the processor
specifies a yet-to-be-written data page corresponding to the write processing, the yet-to-be-written data page being data page corresponding to data written to the cache device but yet to be written to the external storage, and
writes, to the external storage, a bulk unit of data including data corresponding to the specified yet-to-be-written data page and existing in the cache device.

### Claim 7 (depends on 1)

The storage control apparatus according to claim 1, wherein
the processor executes
a first software program for causing the processor to function as a database management system (DBMS) for performing data writing to the database, and
a second software program for causing the processor to function as a software defined storage (SDS) for performing data writing to the cache device and the external storage, and
the SDS
provides the DBMS with a logical device that is a logical storage space,
receives, from the DBMS, a request for writing in a page unit to the logical device,
writes data to the cache device in response to the write request,
determines whether the execution condition is satisfied, and
writes, when a result of the determination is true, data stored in the cache device to the external storage in a bulk unit.

### Claim 8 (depends on 7)

The storage control apparatus according to claim 7, wherein
the execution condition is existence of a logical address as follows:
Logical address within a certain distance in a direction toward smaller addresses from a current write destination logical address;
Logical address corresponding to data existing in the cache device but not existing in the external storage,
the bulk unit of data is data including a plurality of DBMS writing units of data, and
a DBMS writing unit is a unit of data writing from the DBMS to the logical device.

### Claim 9 (depends on 7)

The storage control apparatus according to claim 7, wherein the execution condition is a condition indicated by information provided from the DBMS to the SDS or is a condition indicated by information defined in the SDS in advance.

### Claim 10 (depends on 1)

The storage control apparatus according to claim 1, wherein
the storage control apparatus is an on-premise apparatus,
the cache device is a block device, and
the external storage is an object storage or a file storage.

### Claim 11

A storage control method performed by a storage control apparatus coupled to an external storage, including a cache device, and configured to update a database, the method comprising:
writing data to the cache device in a page unit;
the database being stored in a plurality of pages that are a plurality of logical storage areas constituting a logical storage space,
data writing to a database in the logical storage space being performed in a page unit,
determining whether an execution condition on external writing that is writing to the external storage is satisfied, and
when a result of the determination is true, writing data stored in the cache device to the external storage in a bulk unit that is larger than a page unit and is a writing unit in which consistency is maintained.
