Write data cache method and system, device, and storage medium
Abstract
A method and system for high-speed caching of data writing, a device and a storage medium. The method includes: in response to receiving a data-writing operating instruction emitted by a host, creating a controlling page table and filling sequentially a plurality of control blocks into the controlling page table; submitting an entry pointer of a first instance of the control blocks to a work-queue scheduling engine, to execute tasks corresponding to the plurality of control blocks alternately in the work-queue scheduling engine; sending in advance a completion response to the host and notifying a firmware to perform subsequent processing and falling-into-disk of data; and in response to ending of execution of a task corresponding to a last one instance of the control blocks, releasing a used resource of the controlling page table.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 10 · Forward citations: 0.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
A method for high-speed caching of data writing, wherein the method comprises: in response to receiving a data-writing operating instruction sent by a host, creating a controlling page table and filling a plurality of control data blocks into the controlling page table sequentially; submitting an entry pointer of a first instance of the plurality of control data blocks to a work-queue scheduling engine, to execute tasks corresponding to the plurality of control data blocks alternately in the work-queue scheduling engine; sending a completion response to the host in advance and notifying a firmware to perform subsequent processing and falling-into-disk of data; and in response to the completion of execution of a task corresponding to a last one instance of the plurality of control data blocks, releasing a used resource of the controlling page table.
- Claim 2Depends on #1
The method according to claim 1, wherein the step of, creating the controlling page table and filling the plurality of control data blocks into the controlling page table sequentially comprises: filling a first control data block into the controlling page table, to provide an internal-memory region in a local double-speed synchronous dynamic random access memory; filling a second control data block into the controlling page table, to migrate to-be-written data in a host double-speed synchronous dynamic random access memory into the internal-memory region; and filling a third control data block into the controlling page table, to respond to the host and end a current inputting-outputting.
- Claim 3Depends on #2
The method according to claim 2, wherein the method further comprises: performing powering-down protection to written data within the internal-memory region in the local double-speed synchronous dynamic random access memory.
- Claim 4Depends on #1
The method according to claim 1, wherein the method further comprises: in response to a space of the controlling page table being insufficient, applying for a new controlling-page-table space to create a new controlling page table, and initializing the new controlling page table and the original controlling page table into a chain controlling page table.
- Claim 5Depends on #1
The method according to claim 1, wherein the method further comprises: in response to receiving a read-data operating instruction sent by the host, creating a blank controlling page table and backing up the read-data operating instruction into the blank controlling page table.
- Claim 6Depends on #1
The method according to claim 1, wherein the method further comprises: setting up a continuous storage space in an on-chip storage to be used as a resource pool of controlling page tables, and initializing an address pointer of each of the controlling page tables into an idle-controlling-page-table-entry list.
- Claim 7Depends on #6
The method according to claim 6, wherein the method further comprises: determining whether counting of the controlling page tables that already applied for by the firmware is smaller than a threshold; and in response to the counting of the controlling page tables that already applied for by the firmware being smaller than the threshold, adding one to the counting of the controlling page tables that already applied for by the firmware controlling page table, and subtracting one from counting of the controlling page tables that already applied for by an interface-managing-engine of the host.
- Claim 8Depends on #1
The method according to claim 1, wherein the last one instance of the plurality of control data blocks refers to a last control data block of a step required by a subsequent operation after the firmware takes over.
- Claim 9Independent Claim
A computer device, wherein the computer device comprises a memory and one or more processors, the memory stores a computer-readable instruction, and the computer-readable instruction, when executed by the one or more processors, causes the one or more processors to implement operations comprising: in response to receiving a data-writing operating instruction sent by a host, creating a controlling page table and filling a plurality of control data blocks into the controlling page table sequentially; submitting an entry pointer of a first instance of the plurality of control data blocks to a work-queue scheduling engine, to execute tasks corresponding to the plurality of control data blocks alternately in the work-queue scheduling engine; sending a completion response to the host in advance and notifying a firmware to perform subsequent processing and falling-into-disk of data; and in response to the completion of execution of a task corresponding to a last one instance of the plurality of control data blocks, releasing a used resource of the controlling page table.
- Claim 10Independent Claim
One or more non-transitory computer-readable storage mediums storing a computer-readable instruction, wherein the computer-readable instruction, when executed by one or more processors, causes the one or more processors to implement operations comprising: in response to receiving a data-writing operating instruction sent by a host, creating a controlling page table and filling a plurality of control data blocks into the controlling page table sequentially; submitting an entry pointer of a first instance of the plurality of control data blocks to a work-queue scheduling engine, to execute tasks corresponding to the plurality of control data blocks alternately in the work-queue scheduling engine; sending a completion response to the host in advance and notifying a firmware to perform subsequent processing and falling-into-disk of data; and in response to the completion of execution of a task corresponding to a last one instance of the plurality of control data blocks, releasing a used resource of the controlling page table.
- Claim 11Depends on #6
The method according to claim 6, wherein granularities of the controlling page tables in a single resource pool are consistent.
- Claim 12Depends on #6
The method according to claim 6, wherein the resource pool is managed by using a consistent hardware logic.
- Claim 13Depends on #6
The method according to claim 6, wherein both a head pointer and a tail pointer of the idle-controlling-page-table-entry list are managed by hardware.
- Claim 14Depends on #13
The method according to claim 13, wherein when controlling page table (CP) resource is applied, from the head pointer, a CP entry address is read and already-applied-for counting values of the Acceleration Engine Manager (AEM) and the firmware are updated.
- Claim 15Depends on #14
The method according to claim 14, wherein in the releasing of the CP resource, from the tail pointer, a to-be-released CP entry address is stored and the already-applied-for counting values of the AEM and the firmware are updated.
- Claim 16Depends on #15
The method according to claim 15, wherein CP applying and CP releasing of the AEM are operated directly by using a hardware logic.
- Claim 17Depends on #15
The method according to claim 15, wherein CP applying and CP releasing of the firmware are completed by accessing a CP applying register and a CP releasing register.
- Claim 18Depends on #15
The method according to claim 15, wherein the method further comprises: in the CP applying, by the firmware, directly reading the CP applying register, and, from a flag bit of read content, determining whether it is an effective CP entry address; and in the CP releasing, directly writing, by the firmware, the entry address of the to-be-released CP into the CP releasing register, and writing, by the hardware logic, the to-be-released CP into the “idle-CP-entry list ”.
- Claim 19Depends on #7
The method according to claim 7, wherein when the counting of the controlling page tables that already applied for by the firmware is equal to the threshold, the applying of the current time fails.
- Claim 20Depends on #1
The method according to claim 1, wherein a size of the controlling page table is 512 bytes, 1024 bytes or 2048 bytes.
Technical Overview & Description
CROSS REFERENCE TO RELEVANT APPLICATIONS The present application claims the priority of the Chinese patent application filed on Dec. 9, 2021 before the Chinese Patent Office with the application number of 202111497794.3 and the title of “ method and system for high-speed caching of data writing, device and storage medium ” , which is incorporated herein in its entirety by reference. TECHNICAL FIELD The present application relates to a method and system for high-speed caching of data writing, device and storage medium. BACKGROUND In recent years, with the rise of technology of Computational Storage, the computational-storage architecture, by unloading data calculation from the Central Processing Unit (CPU) of a host to a data-processing accelerating unit close to the storage unit, reduces the operations of the migration of the corresponding data, thereby releasing the system performance as much as possible. The computational storage introduces three product forms, namely Computational Storage Processor (CSP), Computational Storage Drive (CSD) and Computational Storage Array (CSA), and expects to, by redefining the architecture, reduce occupancy rate of the CPU, reduce the consumption of network and Double Data Rate (DDR, or Double-Speed Synchronous Dynamic Random Access memory) bandwidth, reduce power consumption of the system, support the processing of potential massively parallel computation, and so on. In the computational storage system, a typical application is using the built-in DDR of the computational storage system as the data cache, to cache the data of the read/write operations of the host, the purpose of which is to reduce the Input Output (IO) operation delay of the system. Taking the undertake of an IO writing operation of the host as an example, normally, it is required to respond to the host merely after the data is reliably fallen into the disk. However, after the function of high-speed caching (Write Cache) is turned on, the computational storage sy
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (10)
| Patent | Title | Year | Citations |
|---|---|---|---|
| CN 113,918,101 A | Method, system, equipment and storage medium for writing data cache | — | 0 |
Non-Patent Literature (10)
- Bo Hu
- “
- Design and implementation analysis of heterogeneous architecture for database query acceleration.
- ”
- Changjiang Information and Communication, vol. 34, No. 9 (2021).
- Theurich, Klaus, et al.
- “
- Advanced firmware verification using a code simulator for the IBM System z9.
- ”
- IBM journal of research and development 51.1.2 (2007): 207-216.