Input / output processing method, system, device, equipment, storage medium and product

By installing an on-chip cache pool on the storage control chip, data temporary storage and immediate disk disk processing in write-back mode are realized, which solves the problem of data loss and consistency in the RAID storage control card, and reduces the design complexity and cost. Improved performance.

CN118276785BActive Publication Date: 2024-09-13SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410691960.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-13
Estimated Expiration
2044-05-31

AI Technical Summary

Technical Problem

In the write-back mode of existing RAID storage control cards, data is temporarily stored in DRAM, which is prone to data loss or RAID stripe consistency damage due to unexpected power outages, which increases the complexity and cost of storage control chip design.

Method used

The storage control chip is equipped with an on-chip cache pool. When the working mode is determined to be write-back mode, after receiving the host write IO command, the data is temporarily stored in the on-chip cache pool, and the data is written to the target disk immediately after receiving the completion response signal. Side equipment performs verification update and disk placement processing, avoiding complex data cache management algorithm design.

Benefits of technology

It reduces design complexity and cost, improves data security and consistency, reduces write IO latency, and provides greater data access bandwidth.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118276785B
    Figure CN118276785B
Patent Text Reader

Abstract

The embodiment of the present invention provides an input / output processing method, system, device, equipment, storage medium and product, which relates to the field of communication technology and is applied to a storage control chip in an IO processing system, wherein the storage control chip is equipped with an on-chip buffer pool, including: determining the working mode corresponding to the IO processing system; if the working mode is a write-back mode, storing the first data to be written corresponding to the first write IO instruction in the on-chip buffer pool according to the first write IO instruction issued by the host; and storing the first data to be written from the on-chip buffer pool to the target disk side device while the host receives the first write IO completion response signal. In the embodiment of the present invention, the storage control chip has its own on-chip buffer pool, so that data can be cached through an on-chip SRAM of several MB in size, providing a larger data access bandwidth, while avoiding the integration of a high-bandwidth DDR controller in the storage control chip.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to an input and output processing method, system, device, equipment, storage medium and product. Background Art

[0002] The implementation of the data cache in a typical RAID (Redundant Array of Independent Disks) storage controller card is driven by the host write operation, that is, in the "WriteBack" mode, the data is first written to the data cache instead of directly to the disk. This reduces the number of frequent writes to the disk to a certain extent, and thus can reduce the response delay of the host-side write IO (Input Output). However, although the application of the "WriteBack" mode can achieve better system performance and lower latency performance, the data is only temporarily stored in the off-chip volatile storage DRAM (Dynamic Random Access Memory), and the real disk-hardened storage is not completed. From the perspective of the host, receiving a write IO completion response means that the data has been hardened and cannot be lost. If the system encounters an unexpected power outage at this time, it will bring two potential risks. First, some write IO data has been responded to the host, but it is temporarily stored in DRAM and has not been actually written to the disk. There is a risk of loss of this part of data; second, the system may be modifying the write operation of the RAID stripe on the physical hard disk at this time. The consistency of the stripe is destroyed, causing a potential RAID write hole risk (accidental power outage plus bad disk).

[0003] In this context, in order to achieve high performance and avoid the above risks and ensure data security and consistency, the relevant technology uses off-chip DDR (Double Data Rate, double-rate synchronous dynamic random access memory) particles and integrates a responsive high-speed interface controller inside the storage control chip, as well as corresponding cache management strategies to ensure that data is continuously flushed from the cache to the disk in a timely and efficient manner. However, the above steps involve complex algorithm hardware and software design and additional processing overhead, which will increase the complexity of the storage control chip design, push up the overall cost of the storage control card and reduce the reliability of the system. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide an input / output processing method, system, device, equipment, storage medium and product. The specific technical solutions are as follows:

[0005] In a first aspect of the implementation of the present invention, a storage control chip applied to an IO processing system is first provided, wherein the storage control chip is equipped with an on-chip cache pool, and the method comprises:

[0006] Determine the corresponding working mode of the IO processing system;

[0007] If the working mode is the write-back mode, storing the first to-be-written data corresponding to the first write IO instruction in the on-chip buffer pool according to the first write IO instruction issued by the host;

[0008] When the host receives the first write IO completion response signal, the first to-be-written data is stored from the on-chip cache pool to the target disk side device.

[0009] Optionally, storing, according to a first write IO instruction issued by the host, first to-be-written data corresponding to the first write IO instruction in the on-chip cache pool includes:

[0010] Receive the first write IO instruction sent by the host;

[0011] Creating a first full hardware task processing chain according to the first write IO instruction, wherein the first full hardware task processing chain includes a first write IO task;

[0012] Locking the first stripe corresponding to the first write IO task, and setting the verification update log state corresponding to the first write IO task to a standby state;

[0013] Allocating target on-chip cache data pages corresponding to the first write IO task from the on-chip cache pool, the target on-chip cache data pages including a first target on-chip cache data page, a second target on-chip cache data page, and a third target on-chip cache data page;

[0014] The to-be-written data corresponding to the first write IO task is stored in the first target on-chip cache data page.

[0015] Optionally, when the host receives the first write IO completion response signal, storing the first to-be-written data from the on-chip cache pool to the target disk side device includes:

[0016] Sending a first write IO completion response signal to the host;

[0017] Updating the verification update log state corresponding to the first write IO task from the preparation state to the early response state;

[0018] Storing first historical write data corresponding to the target disk side device in the second target on-chip cache data page, and storing first historical check data corresponding to the target disk side device in the third target on-chip cache data page;

[0019] Generate first verification data corresponding to the first data to be written according to the first data to be written, the first historical written data, and the first historical verification data;

[0020] The verification update log state is updated from the advance response state to the stripe modification state in write-back mode, and the first data to be written and the first verification data are written to the target disk side device.

[0021] Optionally, after the step of updating the verification update log state from the advance response state to the stripe modification state in write-back mode, and writing the first to-be-written data and the first verification data into the target disk side device, the method includes:

[0022] releasing the target on-chip cache data page;

[0023] The first stripe is unlocked, and the verification update log status is updated to an invalid state.

[0024] Optionally, locking the first stripe corresponding to the first write IO task and setting the verification update log state corresponding to the first write IO task to a ready state includes:

[0025] Locking the first stripe corresponding to the first write IO task;

[0026] A verification update log recording slot is allocated to the first write IO task, and the verification update log state is initialized to a standby state.

[0027] Optionally, the creating a first full hardware task processing chain according to the first write IO instruction, wherein the first full hardware task processing chain includes a first write IO task including:

[0028] A first full hardware task processing chain is created according to the first write IO instruction, the full hardware task processing chain includes a first write IO task, and the first write IO task is submitted to a task queue management engine for scheduling.

[0029] Optionally, the verification update log status is generated based on the verification update log, and a record unit format corresponding to the verification update log includes the verification update log status, logical volume ID and IO size corresponding to the first write IO task.

[0030] Optionally, after the step of determining the working mode corresponding to the IO processing system, the method includes:

[0031] If the working mode is the write-back mode, a data read request is initiated to the target disk side device according to the read IO instruction issued by the host;

[0032] According to the data read request, the host side address corresponding to the read IO instruction is replaced with the storage control chip side address, so that the target disk side device sends the to-be-read data corresponding to the data read request directly to the host.

[0033] Optionally, if the working mode is the write-back mode, initiating a data read request to the target disk side device according to the read IO instruction issued by the host includes:

[0034] If the working mode is the write-back mode, receiving a read IO instruction sent by the host;

[0035] Creating a second full hardware task processing chain according to the read IO instruction, the second full hardware task processing chain including a read IO task, and submitting the read IO task to a task queue management engine for scheduling;

[0036] The second stripe corresponding to the read IO task is locked, and a data read request is initiated to the target disk side device according to the read IO task.

[0037] Optionally, after the step of replacing the host-side address corresponding to the read IO instruction with the storage control chip-side address according to the data read request so that the target disk-side device directly sends the to-be-read data corresponding to the data read request to the host, the method includes:

[0038] Unlock the second stripe corresponding to the read IO task, and send a read IO completion response signal to the host.

[0039] Optionally, after the step of determining the working mode corresponding to the IO processing system, the method includes:

[0040] If the working mode is the write-through mode, storing the second to-be-written data corresponding to the second write IO instruction in the on-chip buffer pool according to the second write IO instruction issued by the host;

[0041] When it is detected that the second to-be-written data stored in the on-chip cache pool is stored in the target disk-side device, a second write IO completion response signal is sent to the host.

[0042] Optionally, storing, according to the second write IO instruction issued by the host, the second to-be-written data corresponding to the second write IO instruction in the on-chip cache pool includes:

[0043] Receive the second write IO instruction sent by the host;

[0044] Creating a second full hardware task processing chain according to the second write IO instruction, wherein the second full hardware task processing chain includes a second write IO task;

[0045] Locking the second stripe corresponding to the second write IO task, and setting the verification update log state corresponding to the second write IO task to a standby state;

[0046] Allocating target on-chip cache data pages corresponding to the second write IO task from the on-chip cache pool, the target on-chip cache data pages including a fourth target on-chip cache data page, a fifth target on-chip cache data page, and a sixth target on-chip cache data page;

[0047] The to-be-written data corresponding to the second write IO task is stored in the fourth target on-chip cache data page.

[0048] Optionally, when detecting that the second to-be-written data stored in the on-chip cache pool is stored in the target disk-side device, sending a second write IO completion response signal to the host includes:

[0049] Storing the second historical write data corresponding to the target disk side device in the fifth target on-chip cache data page, and storing the second historical check data corresponding to the target disk side device in the sixth target on-chip cache data page;

[0050] Generate second verification data corresponding to the second data to be written according to the second data to be written, the second historical written data, and the second historical verification data;

[0051] Updating the verification update log state from the preparation state to the stripe modification state in the write-through mode, and writing the second to-be-written data and the second verification data into the target disk side device;

[0052] A second write IO completion response signal is sent to the host.

[0053] Optionally, after the step of writing the second to-be-written data and the second verification data into the target disk-side device and before the step of sending a second write IO completion response signal to the host, the method includes:

[0054] releasing the target on-chip cache data page;

[0055] The second stripe is unlocked, and the verification update log status is updated to an invalid state.

[0056] Optionally, after the step of determining the working mode corresponding to the IO processing system, the method includes:

[0057] If the working mode is the suspend mode, the IO task corresponding to the current IO instruction issued by the host is completed, and the response to the IO instruction issued by the host is stopped.

[0058] Optionally, after the step of determining the working mode corresponding to the IO processing system, the method includes:

[0059] If the working mode is the freeze mode, stop responding to the fourth write IO instruction sent by the host.

[0060] In a second aspect of the present invention, an IO processing system is provided, the IO processing system comprising: a host, a storage control card and a target disk side device, the storage control card comprising a storage control chip, the storage control chip being equipped with an on-chip cache pool;

[0061] The storage control chip is used to determine the working mode corresponding to the IO processing system; if the working mode is the write-back mode, the first data to be written corresponding to the first write IO instruction is stored in the on-chip cache pool according to the first write IO instruction issued by the host; when the host receives the first write IO completion response signal, the first data to be written is stored from the on-chip cache pool to the target disk side device.

[0062] Optionally, the IO processing system further comprises: an onboard integrated backup power module integrated on the storage control card;

[0063] The onboard integrated backup power module is used to supply power to the IO processing system when it is detected that the IO processing system is in a power-off state.

[0064] Optionally, the IO processing system further includes: the storage control chip is connected to an external non-volatile storage via a low-speed IO interface.

[0065] In a third aspect of the implementation of the present invention, an IO processing device is further provided, which is applied to a storage control chip in an IO processing system, wherein the storage control chip is equipped with an on-chip cache pool, and the device comprises:

[0066] A determination module, used to determine the corresponding working mode of the IO processing system;

[0067] a storage module, configured to store first to-be-written data corresponding to the first write IO instruction in the on-chip cache pool according to a first write IO instruction issued by the host if the working mode is a write-back mode;

[0068] The parallel processing module is used to store the first to-be-written data from the on-chip buffer pool to the target disk side device at the same time as the host receives the first write IO completion response signal.

[0069] In a third aspect of the implementation of the present invention, there is also provided a communication device, comprising: a transceiver, a memory, a processor, and a program stored in the memory and executable on the processor;

[0070] The processor is used to read the program in the memory to implement the input and output processing method as described in any one of the first aspects.

[0071] In a fourth aspect of the implementation of the present invention, there is further provided a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is executed on a computer, the computer implements the input-output processing method as described in any one of the first aspects.

[0072] In a fourth aspect of the implementation of the present invention, a computer program product is also provided, including a computer program / instruction, which, when executed by a processor, implements the input-output processing method as described in any one of the first aspects.

[0073] The input / output processing method provided in the embodiment of the present invention is applied to a storage control chip in an IO processing system, and the storage control chip is equipped with an on-chip buffer pool. The method includes: determining the working mode corresponding to the IO processing system; if the working mode is a write-back mode, storing the first data to be written corresponding to the first write IO instruction in the on-chip buffer pool according to the first write IO instruction issued by the host; and storing the first data to be written from the on-chip buffer pool to the target disk side device when the host receives the first write IO completion response signal. In the embodiment of the present invention, the storage control chip applied to the IO processing system has an on-chip buffer pool, so that data can be cached through an on-chip SRAM of several MB in size. The on-chip SRAM solution can not only provide a larger data access bandwidth (hundreds of GB / s), but also avoids integrating a high-bandwidth (tens of GB / s) DDR controller in the storage control chip, thereby reducing the design complexity and chip development cost (IP procurement, chip area and integration verification). Through the system's write IO processing flow in write-back mode, the write IO data is only temporarily stored in the local storage and then immediately verified, updated and written to the disk, further releasing performance and reducing design complexity. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.

[0075] Figure 1 Step flow of the input and output processing method provided by the embodiment of the present invention Figure 1 ;

[0076] Figure 2The steps of the input and output processing method provided by the embodiment of the present invention are as follows: Figure 1 The step flow chart of step 102;

[0077] Figure 3 The steps of the input and output processing method provided by the embodiment of the present invention are as follows: Figure 1 The step flow chart of step 103;

[0078] Figure 4 The steps of the input and output processing method provided by the embodiment of the present invention are as follows: Figure 2 ;

[0079] Figure 5 The steps of the input and output processing method provided by the embodiment of the present invention are as follows: Figure 3 ;

[0080] Figure 6 The steps of the input and output processing method provided by the embodiment of the present invention are as follows: Figure 4 ;

[0081] Figure 7 is a device block diagram of an IO processing device provided by an embodiment of the present invention;

[0082] Figure 8 is a schematic diagram of a communication device provided by an embodiment of the present invention;

[0083] Fig. 9 It is a schematic diagram of an IO processing system architecture provided by an embodiment of the present invention;

[0084] Fig.10 is a flowchart of a write input and output processing method in a write-back mode provided by an embodiment of the present invention;

[0085] Fig.11 This is a schematic diagram of a verification update log provided by an embodiment of the present invention;

[0086] Fig.12 This is a state transition diagram provided by an embodiment of the present invention;

[0087] Fig.13 This is a schematic diagram of an address mapping relationship provided by an embodiment of the present invention;

[0088] Fig.14 is a flow chart of a read input and output processing method in a write-back mode provided by an embodiment of the present invention;

[0089] Fig.15 It is a schematic diagram of the migration relationship of working modes under three failure scenarios provided by an embodiment of the present invention;

[0090] Fig.16It is a flowchart of a write input and output processing method in a write-through mode provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0091] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.

[0092] It should be noted that in the embodiments of the present application, reference is made to Fig. 9 , Fig. 9 Schematic diagram of an IO processing system in the present application, the IO processing system comprises: a host, a storage control card and a target disk side device, the storage control card comprises a storage control chip, and the storage control chip is equipped with an on-chip cache pool;

[0093] It should be noted that in the embodiment of the present application, the IO processing system includes a host, a storage control card, and a target disk side device SSD, wherein the storage control card includes a storage control chip, and the storage control chip is equipped with an on-chip cache pool, which caches data through an on-chip SRAM of several MB in size, replacing the external GB-level DDR solution in the traditional solution. In addition to providing a larger data access bandwidth (hundreds of GB / s), the on-chip SRAM solution avoids integrating a high-bandwidth (tens of GB / s) DDR controller in the storage control chip, thereby reducing the design complexity and chip development costs (IP procurement, chip area, and integration verification).

[0094] The storage control chip is used to determine the working mode corresponding to the IO processing system; if the working mode is the write-back mode, the first data to be written corresponding to the first write IO instruction is stored in the on-chip cache pool according to the first write IO instruction issued by the host; when the host receives the first write IO completion response signal, the first data to be written is stored from the on-chip cache pool to the target disk side device.

[0095] Furthermore, the IO processing system further includes: an onboard integrated backup power module integrated on the storage control card; the onboard integrated backup power module is used to supply power to the IO processing system when it is detected that the IO processing system is in a power-off state.

[0096] Furthermore, the IO processing system also includes: the storage control chip is connected to an external non-volatile storage via a low-speed IO interface.

[0097] It should be noted that the present application can expand the onboard integrated backup power module and / or non-volatile storage on the IO system respectively. In the event of an unexpected power failure, due to its smaller data cache (tens of MB), which is only a few hundredths of the amount of data to be backed up on a traditional RAID card, there are two potential optimization options: Keep the bandwidth of the non-volatile storage used to back up data unchanged (for example, provide 1GB / s bandwidth through the ONFI interface). Traditional storage cards take at least W seconds to complete W GB of data. The present invention uses the same data bandwidth, so tens of MB of data can be backed up in just tens of milliseconds. If the power consumption of the chip during the device power-on process is the same, the capacitance of the backup power module based on supercapacitors can be reduced from tens of farads to thousands of microfarads. The miniaturization of the backup power capacitor makes it possible to integrate it on the storage card; or,

[0098] Keeping the traditional backup capacitor unchanged can still support the system to achieve a backup time of several seconds, so the bandwidth demand for non-volatile data cache can be reduced, and more mature and low-cost technical solutions can be selected, such as QSPI interface NAND and MRAM, while avoiding complex wear-leveling algorithms.

[0099] Furthermore, the storage control chip may include a host interface module, a control page creation module, a stripe lock management module, a dynamic memory allocation module, a host data DMA module, a response completion module, an IO acceleration module, a RAID calculation acceleration module and a dynamic memory recovery module.

[0100] Reference Figure 1 , showing the steps of the input and output processing method provided by the embodiment of the present invention Figure 1 , the method may include:

[0101] Step 101, determining the working mode corresponding to the IO processing system;

[0102] It should be noted that in the embodiment of the present application, the IO processing system may correspond to multiple working modes, the default being the write-back mode, and other working modes including the write-through mode, the suspend mode and the freeze mode.

[0103] Therefore, for different working modes, the IO processing methods corresponding to the IO processing system are inconsistent.

[0104] Step 102: if the working mode is the write-back mode, storing the first to-be-written data corresponding to the first write IO instruction in the on-chip buffer pool according to the first write IO instruction issued by the host;

[0105] It should be noted that when the working mode is write-back mode, in view of the characteristics of high-speed SSD storage, after the response to the host is completed, the data continues to be written to the disk, avoiding the complex data cache management algorithm design and operation overhead, and greatly reducing the demand for data cache space. Its size only needs to meet the needs of all current concurrent IO.

[0106] For the specific write IO processing flow, take the 4KB random write IO processing process in RAID5 mode as an example. According to the characteristics of this IO, the storage control chip processes it in a "read-modify-write" manner. For the processing flow chart, refer to Fig.10 shown.

[0107] Further, refer to Figure 2 , step 102 comprises:

[0108] Step 1021, receiving a first write IO instruction sent by the host;

[0109] Step 1022: Create a first full hardware task processing chain according to the first write IO instruction, wherein the first full hardware task processing chain includes a first write IO task;

[0110] Further, step 1022 includes: creating a first full hardware task processing chain according to the first write IO instruction, the full hardware task processing chain including a first write IO task, and submitting the first write IO task to the task queue management engine for scheduling.

[0111] Step 1023, locking the first stripe corresponding to the first write IO task, and setting the verification update log state corresponding to the first write IO task to a ready state;

[0112] Further, step 1023 may include: locking the first stripe corresponding to the first write IO task; allocating a verification update log record slot to the first write IO task, and initializing the verification update log state to a ready state.

[0113] Furthermore, the verification update log status is generated based on the verification update log, and a record unit format corresponding to the verification update log includes the verification update log status, logical volume ID and IO size corresponding to the first write IO task.

[0114] Step 1024, allocating target on-chip cache data pages corresponding to the first write IO task from the on-chip cache pool, the target on-chip cache data pages including a first target on-chip cache data page, a second target on-chip cache data page, and a third target on-chip cache data page;

[0115] Step 1025: Store the to-be-written data corresponding to the first write IO task into the first target on-chip cache data page.

[0116] Specifically, in the above steps 1021-1025, the host sending a 4KB write IO instruction is taken as an example.

[0117] First, the host interface module receives the first write IO instruction issued by the host, that is, Fig.10 The IO task command in the control page creation module is forwarded to the first write IO instruction;

[0118] Secondly, the control page creation module creates a full hardware task processing chain according to the first write IO instruction, the full hardware task processing chain includes a first write IO task corresponding to the first write IO instruction, and submits the first write IO task to the task queue management engine for scheduling;

[0119] Secondly, the stripe lock management module locks the first stripe corresponding to the first write IO task, allocates a verification update log record slot, and initializes the verification update log state to the ready state, that is, Fig.10 In, lock the stripe covered by IO, allocate PUL log record slots and initialize PUL log status to STB.

[0120] Secondly, the dynamic memory allocation module allocates the corresponding target on-chip cache data page from the on-chip cache pool based on the first write IO task, and the target on-chip cache data page includes the first target on-chip cache data page, the second target on-chip cache data page, and the third target on-chip cache data page. Therefore, referring to Fig.10 It can be concluded that, taking the 4KB random write IO processing process in RAID5 mode as an example, three 4kb target on-chip cache data pages X, Y, and Z are allocated, namely the first target on-chip cache data page, the second target on-chip cache data page, and the third target on-chip cache data page, totaling 12kb to the IO task.

[0121] The host data DMA module transfers the data to be written corresponding to the first write IO task (i.e. Fig.10 The to-be-written data D') in the local first target on-chip cache data page X is read.

[0122] Step 103: When the host receives the first write IO completion response signal, the first to-be-written data is stored from the on-chip buffer pool to the target disk side device.

[0123] Further, refer to Figure 3 , step 103 comprises:

[0124] Step 1031, sending a first write IO completion response signal to the host;

[0125] Step 1032, updating the verification update log state corresponding to the first write IO task from the preparation state to the early response state;

[0126] Step 1033, storing the first historical write data corresponding to the target disk side device in the second target on-chip cache data page, and storing the first historical check data corresponding to the target disk side device in the third target on-chip cache data page;

[0127] Step 1034, generating first verification data corresponding to the first data to be written according to the first data to be written, the first historical written data, and the first historical verification data;

[0128] Step 1035: Update the verification update log status from the advance response status to the stripe modification status in write-back mode, and write the first data to be written and the first verification data into the target disk side device.

[0129] Furthermore, after step 1035, the method further includes:

[0130] The target on-chip cache data page is released; the first stripe is unlocked, and the verification update log state is updated to an invalid state; and the first write IO completion response signal is sent to the host.

[0131] It should be noted that in the above steps 1031-1035, first, the response completion module updates the PUL status to ER, and then sends a completion response to the host, that is, sends a first write IO completion response signal to the host. After the response to the host is completed, the data is continued to be processed on the disk. Specifically, the IO acceleration module initiates the historical 4KB data (D) to the local second target on-chip cache data page Y, and the historical 4KB verification data (P) to the local third target on-chip cache data page Z, that is, the first historical write data corresponding to the target disk side device is stored in the second target on-chip cache data page, and the first historical verification data corresponding to the target disk side device is stored in the third target on-chip cache data page.

[0132] Furthermore, the data X(D'), Y(D), and Z(P) are read in to calculate new verification data (P'), and are overwritten and stored in the third target on-chip cache data page Z, that is, the first verification data corresponding to the first data to be written is generated according to the first data to be written, the first historical written data, and the first historical verification data.

[0133] Further, the PUL state is first updated to SIT_WB, and then the disk is initiated to store new data to be written (D') and new verification data (P'), that is, the verification update log state corresponding to the first write IO task is updated from the preparation state to the early response state.

[0134] After being stored in the target disk side device, it means that the first to-be-written data (D') and the first verification data (P') corresponding to the first write IO task have been written to the disk. Therefore, the storage space, i.e., the target on-chip cache data pages X, Y, and Z, can be released through the dynamic memory recovery module. In addition, the stripe can be unlocked, the PUL log record slot can be recovered, and the PUL status can be refreshed to INV, thereby completing the recovery of the control resources of the first write IO task, i.e., releasing the target on-chip cache data page; unlocking the first stripe, and updating the verification update log status to an invalid status; and sending the first write IO completion response signal to the host.

[0135] In the above operation, after the response tailing engine completes the host response, the traditional "write back" processing ends. However, this solution will continue to complete the subsequent disk operation while maintaining the same low latency operation for the host.

[0136] Specially, with Fig.10 It can be seen that for some processing steps, the parity update log (PUL) needs to be updated. Specifically, the stripe lock management module needs to update the parity update log, that is, the PUL log status, the response closing module needs to update the PUL log status, and the two IO acceleration modules need to update the PUL log status. Other IO acceleration modules do not need to be updated. The format of a PUL record unit is shown as follows, which contains multiple parameters of this business processing IO. Among them, the most important variable is the "PUL status" indicator. Specifically, the PUL unit refers to Fig.11 .

[0137] The system reserves several PUL record entry resources, which are dynamically allocated and recycled during each write IO processing, and the key IO update steps are recorded truthfully during the IO processing. The following figure shows a state transition diagram of a write IO processing process, starting from the INV state, divided into two scenarios: "Write Back (WB)" and "Write Through (WT)". For details, refer to the state transition diagram Fig.12 .

[0138] The PUL status is an important basis for all business operations. Its specific status definition and power failure recovery strategy are shown in Table 1 below.

[0139] Table 1 PUL status and power-off recovery strategy

[0140]

[0141] From Table 1, it can be seen that during the write IO process, the power failure recovery processing strategy can be determined according to the PUL status recorded during the operation if a power failure occurs.

[0142] Specifically, when the IO processing system is detected to be in an unexpected power failure, the integrated backup power module on the control board supplies power to the IO processing system. At this time, the PUL entries corresponding to all PUL states (refer to Fig.11 ) will be written to the non-volatile storage (NAND / MRAM) outside the storage control chip along with the data in the data cache for solid storage, and the business and data recovery will be performed after power is restored.

[0143] Therefore, when it is detected that the IO processing system is in an unexpected power failure situation, the integrated backup power module on the control board supplies power to the IO processing system, and the PUL state corresponding to the current IO processing system is obtained.

[0144] When the PUL state is INV or STB, the host is in an incomplete response state, that is, the host does not receive an IO response completion signal, so there is no need to process the IO service and data.

[0145] When the PUL status is ER, the host is in the state of completing the response, and the stripe consistency of the corresponding stripe is not destroyed. Therefore, the original IO of the host is analyzed, the new data D' is found from the data list, and the disk operation is completed.

[0146] When the PUL status is SIT_WB, the host is in the response completion state, and the stripe consistency of the corresponding stripe may also be destroyed. Therefore, the host original IO is analyzed, the new data D' is found from the data list, and the uncovered data in the same stripe is read from the storage device to form a full stripe, and a new checksum P is calculated. Finally, all data and checksums are written to the disk.

[0147] When the PUL status is SIT_WT, the host is in an incomplete response state, and the stripe consistency of the corresponding stripe may be destroyed. Therefore, the data in the same stripe is read from the storage device, the checksum P is recalculated and written to the disk.

[0148] The input / output processing method provided in the embodiment of the present invention is applied to a storage control chip in an IO processing system, and the storage control chip is equipped with an on-chip buffer pool. The method includes: determining the working mode corresponding to the IO processing system; if the working mode is a write-back mode, storing the first data to be written corresponding to the first write IO instruction in the on-chip buffer pool according to the first write IO instruction issued by the host; and storing the first data to be written from the on-chip buffer pool to the target disk side device when the host receives the first write IO completion response signal. In the embodiment of the present invention, the storage control chip applied to the IO processing system has an on-chip buffer pool, so that data can be cached through an on-chip SRAM of several MB in size. The on-chip SRAM solution can not only provide a larger data access bandwidth (hundreds of GB / s), but also avoids integrating a high-bandwidth (tens of GB / s) DDR controller in the storage control chip, thereby reducing the design complexity and chip development cost (IP procurement, chip area and integration verification). Through the system's write IO processing flow in write-back mode, the write IO data is only temporarily stored in the local storage and then immediately verified, updated and written to the disk, further releasing performance and reducing design complexity.

[0149] Reference Figure 4 , showing the steps of the input and output processing method provided by the embodiment of the present invention Figure 2 , the method may include:

[0150] Step 401, determining the working mode corresponding to the IO processing system;

[0151] Step 402: if the working mode is the write-back mode, a data read request is initiated to the target disk side device according to the read IO instruction issued by the host;

[0152] Further, step 402 includes:

[0153] If the working mode is the write-back mode, receiving a read IO instruction sent by the host;

[0154] Creating a second full hardware task processing chain according to the read IO instruction, the second full hardware task processing chain including a read IO task, and submitting the read IO task to a task queue management engine for scheduling;

[0155] The second stripe corresponding to the read IO task is locked, and a data read request is initiated to the target disk side device according to the read IO task.

[0156] Step 403: replace the host-side address corresponding to the read IO instruction with the storage control chip-side address according to the data read request, so that the target disk-side device directly sends the to-be-read data corresponding to the data read request to the host.

[0157] Furthermore, after step 403, the method may include: unlocking the second stripe corresponding to the read IO task, and sending a read IO completion response signal to the host.

[0158] It should be noted that in the embodiment of the present application, because the data cache management is skipped, the data will not reside in the storage control card. Accordingly, the processing of the IO processing system when processing the read IO sent by the host is also simplified, and the read IO processing does not need to query whether the currently required IO data is in the data cache hit. At the same time, the data page read from the storage device will not be cached in the storage card first, and then uploaded to the host storage space. In the process of forwarding IO instructions to the disk, the host's HPRP4 (Host-PRP—4KB) needs to be translated into a one-to-one CPRP4 (Client-PRP—4KB) address. After the disk side DMAs the data to the memory card according to the address CPRP4, the storage control chip routes the data directly to the storage space pointed to by the host side HPRP4 according to the pre-set address mapping relationship, thereby avoiding caching of data inside the memory card. Refer to Fig.13 , Fig.13 This is an example of a translation of HPRR4 to CPRP4. In the embodiment of the present application, the translation is implemented by an IO acceleration module.

[0159] Further, refer to Fig.14 , Fig.14 This is a read IO instruction processing process. It can be seen that first, the host interface module retrieves the 10 task instruction issued by the host, and forwards it to the control page creation module for processing. The control page creation module processes the IO request corresponding to the IO instruction, creates a full hardware task processing chain, and submits the task to the task queue management engine for scheduling.

[0160] Then, the stripe lock management module locks the second stripe. At this time, after locking, no write update is allowed for the corresponding second stripe, and the read instruction does not initialize the PUL slot.

[0161] The IO acceleration module initiates a data read request to the disk. The host address (HPRP4) will be mapped one-to-one to the storage control chip address (CPRP4). The disk-side data is only routed directly to the host storage space by the storage control chip. At this time, the read IO data to be read is no longer cached inside the storage control chip.

[0162] When the host has read the required data, the stripe lock management module unlocks the second stripe, the response tailing module sends a read IO completion response signal to the host, and the host interface module replies to the host completion queue.

[0163] In summary, for read IO, this application only adds a very limited IO processing delay (approximately within ten microseconds) on the basis of the disk-side read IO delay.

[0164] In particular, when concurrent read and write IO data objects overlap, if the host does not receive a completion response for the write IO, and the host issues a read IO instruction involving the relevant data area, according to the protocol, the storage control card will not guarantee data integrity, and the read data may be different from the previously issued write IO data;

[0165] However, if the completion response of the write IO has been received (but the storage card is still performing subsequent disk write operations on the IO), and the host issues a read IO instruction involving the relevant data area, the storage control card needs to ensure data integrity. The read and write mutual exclusion is implemented in the storage card through the stripe lock management module. If the previous write IO is not completed, the corresponding stripe lock will not be unlocked, and the subsequent read IO will try to lock the same stripe and will be rejected until the previous write IO is completed.

[0166] In an embodiment of the present invention, a storage control chip used in an IO processing system has an on-chip cache pool, so that data can be cached through an on-chip SRAM of several MB. In addition to providing a larger data access bandwidth (hundreds of GB / s), the on-chip SRAM solution avoids integrating a high-bandwidth (tens of GB / s) DDR controller in the storage control chip, thereby reducing design complexity and chip development costs (IP procurement, chip area, and integration verification).

[0167] In addition, the complex data cache management module in the traditional storage control card is avoided. The write IO data is only temporarily stored in the local storage and then immediately verified, updated and written to the disk. The read IO data is not cached in the local storage, which further releases performance and reduces design complexity.

[0168] Reference Figure 5 , showing the steps of the input and output processing method provided by the embodiment of the present invention Figure 3 , the method may include:

[0169] Step 501, determining the working mode corresponding to the IO processing system;

[0170] Step 502: if the working mode is the write-through mode, storing the second to-be-written data corresponding to the second write IO instruction in the on-chip buffer pool according to the second write IO instruction issued by the host;

[0171] Further, step 502 includes:

[0172] Receive the second write IO instruction sent by the host;

[0173] Creating a second full hardware task processing chain according to the second write IO instruction, wherein the second full hardware task processing chain includes a second write IO task;

[0174] Locking the second stripe corresponding to the second write IO task, and setting the verification update log state corresponding to the second write IO task to a standby state;

[0175] Allocating target on-chip cache data pages corresponding to the second write IO task from the on-chip cache pool, the target on-chip cache data pages including a fourth target on-chip cache data page, a fifth target on-chip cache data page, and a sixth target on-chip cache data page;

[0176] The to-be-written data corresponding to the second write IO task is stored in the fourth target on-chip cache data page.

[0177] Step 503 : When it is detected that the second to-be-written data stored in the on-chip cache pool is stored in the target disk-side device, a second write IO completion response signal is sent to the host.

[0178] Further, step 503 includes:

[0179] Storing the second historical write data corresponding to the target disk side device in the fifth target on-chip cache data page, and storing the second historical check data corresponding to the target disk side device in the sixth target on-chip cache data page;

[0180] Generate second verification data corresponding to the second data to be written according to the second data to be written, the second historical written data, and the second historical verification data;

[0181] Updating the verification update log state from the preparation state to the stripe modification state in the write-through mode, and writing the second to-be-written data and the second verification data into the target disk side device;

[0182] releasing the target on-chip cache data page;

[0183] Unlocking the second stripe and updating the verification update log status to an invalid state;

[0184] A second write IO completion response signal is sent to the host.

[0185] It should be noted that in the embodiment of the present application, the system works in WB mode by default, but inevitably, the system's backup power supply is at risk of being accidentally removed and failing. In this scenario, the system needs to respond accordingly to ensure data security and integrity.

[0186] Therefore, this application defines three possible failure scenarios and their migration relationships as follows: Fig.15 As shown, through Fig.15 It can be seen that WT (Write Through) is the write-through mode, which does not respond to the host until the written IO data is stored on the disk. Therefore, when an unexpected power failure occurs, only the PUL log information will be backed up. Due to the problem of incomplete PUL information records, there is also a certain probability of write hole risk. After an unexpected power failure and power-on again, the entire RAID group needs to be checked for stripe consistency, and the check data of inconsistent stripes needs to be recalculated and refreshed.

[0187] In write-through mode, the IO processing flow chart is as follows Fig.16 As shown, PUL still needs to be recorded and updated in this mode, but it is somewhat different from the updated part in the write-back mode.

[0188] Therefore, in the above steps 502-503, the host sending a 4KB write IO instruction in the write-through mode is taken as an example.

[0189] First, the host interface module receives the second write IO instruction sent by the host, that is, Fig.10 The IO task command in the control page creation module is forwarded to the second write IO instruction;

[0190] Secondly, the control page creation module creates a full hardware task processing chain according to the second write IO instruction, the full hardware task processing chain includes a second write IO task corresponding to the second write IO instruction, and submits the second write IO task to the task queue management engine for scheduling;

[0191] Secondly, the stripe lock management module locks the second stripe corresponding to the second write IO task, allocates a verification update log record slot, and initializes the verification update log state to the ready state, that is, Fig.16 In, lock the stripe, allocate PUL logging slots and initialize PUL logging status to STB.

[0192] Secondly, the dynamic memory allocation module allocates corresponding target on-chip cache data pages from the on-chip cache pool based on the second write IO task. For the technical personnel in this field to understand the present application, the present application divides the target on-chip cache data pages into fourth target on-chip cache data pages, fifth target on-chip cache data pages and sixth target on-chip cache data pages in the write-through mode.

[0193] Therefore, refer to Fig.16 It can be concluded that, taking the 4KB random write IO processing process in RAID5 mode as an example, three 4kb target on-chip cache data pages X, Y, and Z are allocated, namely the fourth target on-chip cache data page, the fifth target on-chip cache data page, and the sixth target on-chip cache data page, totaling 12kb to the IO task.

[0194] The host data DMA module transfers the second to-be-written data (i.e., Fig.16 The to-be-written data D′) in the local fourth target on-chip cache data page X is read.

[0195] Through the IO acceleration module, historical 4KB data (D) is initiated to the disk to the local fifth target on-chip cache data page Y, and historical 4KB verification data (P) is initiated to the local sixth target on-chip cache data page Z, that is, the second historical write data corresponding to the target disk side device is stored in the fifth target on-chip cache data page, and the second historical verification data corresponding to the target disk side device is stored in the sixth target on-chip cache data page.

[0196] Furthermore, the data X(D'), Y(D), and Z(P) are read in to calculate new verification data (P'), and the new verification data (P') is overwritten and stored in the sixth target on-chip cache data page Z, that is, the second verification data corresponding to the second data to be written is generated according to the second data to be written, the second historical written data, and the second historical verification data.

[0197] Further, the PUL status is first updated to SIT_WT, and then the new data to be written (D') and new verification data (P') are stored in the disk, that is, the verification update log status is updated from the preparation status to the stripe modification status in the write-through mode, and the second data to be written and the second verification data are written to the target disk side device.

[0198] After being stored in the target disk side device, it means that the first to-be-written data (D') and the first verification data (P') corresponding to the first write IO task have been written to the disk. Therefore, the storage space can be released through the dynamic memory recovery module, that is, the cache data pages X, Y, and Z on the target chip.

[0199] Furthermore, the stripe lock management module works again at this time, that is, it can unlock the stripe, reclaim the PUL log recording slot, refresh the PUL state to INV, that is, unlock the second stripe, and update the verification update log state to an invalid state.

[0200] The response finishing module performs IO control resource recovery and sends a completion response to the host, that is, sends a second write IO completion response signal to the host.

[0201] The host interface module replies to the host completion queue, at which point the host learns that the IO processing has been completed.

[0202] In the embodiment of the present invention, the storage control chip used in the IO processing system has an on-chip cache pool, so that data can be cached through an on-chip SRAM of several MB. In addition to providing a larger data access bandwidth (hundreds of GB / s), the on-chip SRAM solution avoids integrating a high-bandwidth (tens of GB / s) DDR controller in the storage control chip, reducing the design complexity and chip development costs (IP procurement, chip area and integration verification). Through the system's write IO processing flow in write-back mode, the write IO data is only temporarily stored in the local storage and then immediately verified, updated and written to the disk, further releasing performance and reducing design complexity.

[0203] In addition, the system works in WB mode by default, but inevitably, the system's backup power supply is at risk of being accidentally removed and failing. In this scenario, the system needs to respond accordingly to ensure data security and integrity. In write-through mode, the host will not be responded to until the write IO data is stored on the disk. In the event of an unexpected power failure, only the PUL log information will be backed up. Due to the problem of incomplete PUL information records, there is also a certain probability of write hole risk. After an unexpected power failure and power-on again, the entire RAID group needs to be checked for stripe consistency, and the check data of the inconsistent stripes needs to be recalculated and refreshed.

[0204] Reference Figure 6 , showing the steps of the input and output processing method provided by the embodiment of the present invention Figure 4 , the method may include:

[0205] Step 601, determining the working mode corresponding to the IO processing system;

[0206] Step 602, if the working mode is the suspend mode, completing the IO task corresponding to the current IO instruction issued by the host, and stopping responding to the IO instruction issued by the host;

[0207] Step 603: If the working mode is the freeze mode, stop responding to the fourth write IO instruction sent by the host.

[0208] It should be noted that, in the embodiment of the present application, if the working mode is the hang mode (HM), after completing the currently processed IO, the host will no longer respond to new IO requests.

[0209] Optionally, after receiving the error report from the memory card, the host may trigger a "continue" command to allow the memory card to operate in WT mode.

[0210] If the working mode is the freeze mode (FM), the write IO is no longer processed, and only the read IO of the host is responded to.

[0211] Optionally, after receiving the error report from the memory card, the host may trigger a "continue" command to allow the memory card to operate in WT mode.

[0212] In the embodiment of the present invention, the storage control chip used in the IO processing system has an on-chip cache pool, so that data can be cached through an on-chip SRAM of several MB. In addition to providing a larger data access bandwidth (hundreds of GB / s), the on-chip SRAM solution avoids integrating a high-bandwidth (tens of GB / s) DDR controller in the storage control chip, reducing the design complexity and chip development costs (IP procurement, chip area and integration verification). Through the system's write IO processing flow in write-back mode, the write IO data is only temporarily stored in the local storage and then immediately verified, updated and written to the disk, further releasing performance and reducing design complexity.

[0213] Reference Figure 7 , shows a schematic diagram of the structure of an IO processing device provided by an embodiment of the present invention, which is applied to a storage control chip in an IO processing system, and the storage control chip is equipped with an on-chip cache pool. The device includes:

[0214] A determination module 701 is used to determine a corresponding working mode of the IO processing system;

[0215] The storage module 702 is configured to store the first to-be-written data corresponding to the first write IO instruction into the on-chip cache pool according to the first write IO instruction issued by the host if the working mode is the write-back mode;

[0216] The parallel processing module 703 is used to store the first to-be-written data from the on-chip cache pool to the target disk side device at the same time as the host receives the first write IO completion response signal.

[0217] In the embodiment of the present invention, the storage control chip used in the IO processing system has an on-chip cache pool, so that data can be cached through an on-chip SRAM of several MB. In addition to providing a larger data access bandwidth (hundreds of GB / s), the on-chip SRAM solution avoids integrating a high-bandwidth (tens of GB / s) DDR controller in the storage control chip, reducing the design complexity and chip development costs (IP procurement, chip area and integration verification). Through the system's write IO processing flow in write-back mode, the write IO data is only temporarily stored in the local storage and then immediately verified, updated and written to the disk, further releasing performance and reducing design complexity.

[0218] The embodiment of the present invention also provides a communication device, such as Figure 8 As shown, it includes a processor 801, a communication interface 802, a memory 803 and a communication bus 804, wherein the processor 801, the communication interface 802, and the memory 803 communicate with each other through the communication bus 804.

[0219] Memory 803, used for storing computer programs;

[0220] The processor 801, when used to execute the program stored in the memory 803, can implement the following steps:

[0221] Determine the corresponding working mode of the IO processing system;

[0222] If the working mode is the write-back mode, storing the first to-be-written data corresponding to the first write IO instruction in the on-chip buffer pool according to the first write IO instruction issued by the host;

[0223] When the host receives the first write IO completion response signal, the first to-be-written data is stored from the on-chip cache pool to the target disk side device.

[0224] Among them, the memory and the processor are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors and memories together. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits together, which are all well known in the art, so this article will not further describe them. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor can be transmitted on a wired medium or on a wireless medium through an antenna. Further, the antenna also receives data and transmits the data to the processor. The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. The memory can be used to store data used by the processor when performing operations.

[0225] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0226] The communication interface is used for communication between the above terminal and other devices.

[0227] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0228] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0229] In another embodiment provided by the present invention, a computer-readable storage medium is provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the input-output processing method described in any one of the above embodiments.

[0230] In another embodiment provided by the present invention, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any of the input-output processing methods described in the above embodiments.

[0231] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0232] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0233] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0234] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. An input-output processing method, characterized in that: A storage control chip used in an IO processing system, wherein the storage control chip is equipped with an on-chip cache pool, and the method comprises: Determine the corresponding working mode of the IO processing system; If the working mode is the write-back mode, storing the first to-be-written data corresponding to the first write IO instruction in the on-chip buffer pool according to the first write IO instruction issued by the host; When the host receives the first write IO completion response signal, the first to-be-written data is stored from the on-chip buffer pool to the target disk side device; The storing, according to the first write IO instruction issued by the host, the first to-be-written data corresponding to the first write IO instruction to the on-chip cache pool comprises: receiving the first write IO instruction issued by the host; creating a first full-hardware task processing chain according to the first write IO instruction, the first full-hardware task processing chain comprising a first write IO task; locking the first stripe corresponding to the first write IO task, and setting the verification update log state corresponding to the first write IO task to a standby state; allocating a target on-chip cache data page corresponding to the first write IO task from the on-chip cache pool, the target on-chip cache data page comprising a first target on-chip cache data page, a second target on-chip cache data page and a third target on-chip cache data page; storing the to-be-written data corresponding to the first write IO task to the first target on-chip cache data page; The storing of the first to-be-written data from the on-chip cache pool to the target disk side device while the host receives the first write IO completion response signal comprises: sending the first write IO completion response signal to the host; updating the verification update log state corresponding to the first write IO task from the preparation state to the advance response state; storing the first historical write data corresponding to the target disk side device to the second target on-chip cache data page, and storing the first historical verification data corresponding to the target disk side device to the third target on-chip cache data page; Generate first verification data corresponding to the first data to be written based on the first data to be written, the first historical written data and the first historical verification data; update the verification update log status from the early response status to the stripe modification status under the write-back mode, and write the first data to be written and the first verification data to the target disk side device.

2. The method according to claim 1, characterized in that After the step of updating the verification update log state from the advance response state to the stripe modification state in the write-back mode, and writing the first to-be-written data and the first verification data into the target disk side device, the method includes: releasing the target on-chip cache data page; The first stripe is unlocked, and the verification update log status is updated to an invalid state.

3. The method according to claim 1, characterized in that The step of locking the first stripe corresponding to the first write IO task and setting the verification update log state corresponding to the first write IO task to a preparation state includes: Locking the first stripe corresponding to the first write IO task; A verification update log recording slot is allocated to the first write IO task, and the verification update log state is initialized to a standby state.

4. The method according to claim 1, characterized in that The creating of a first full hardware task processing chain according to the first write IO instruction, wherein the first full hardware task processing chain includes a first write IO task including: A first full hardware task processing chain is created according to the first write IO instruction, the full hardware task processing chain includes a first write IO task, and the first write IO task is submitted to a task queue management engine for scheduling.

5. The method according to claim 1, characterized in that The verification update log status is generated based on the verification update log, and a record unit format corresponding to the verification update log includes the verification update log status, logical volume ID and IO size corresponding to the first write IO task.

6. The method according to claim 1, characterized in that After the step of determining the working mode corresponding to the IO processing system, the method includes: If the working mode is the write-back mode, a data read request is initiated to the target disk side device according to the read IO instruction issued by the host; According to the data read request, the host side address corresponding to the read IO instruction is replaced with the storage control chip side address, so that the target disk side device sends the to-be-read data corresponding to the data read request directly to the host.

7. The method according to claim 6, characterized in that If the working mode is the write-back mode, initiating a data read request to the target disk side device according to the read IO instruction issued by the host includes: If the working mode is the write-back mode, receiving a read IO instruction sent by the host; Creating a second full hardware task processing chain according to the read IO instruction, the second full hardware task processing chain including a read IO task, and submitting the read IO task to a task queue management engine for scheduling; The second stripe corresponding to the read IO task is locked, and a data read request is initiated to the target disk side device according to the read IO task.

8. The method according to claim 7, characterized in that After the step of replacing the host-side address corresponding to the read IO instruction with the storage control chip-side address according to the data read request so that the target disk-side device directly sends the to-be-read data corresponding to the data read request to the host, the method includes: Unlock the second stripe corresponding to the read IO task, and send a read IO completion response signal to the host.

9. The method according to claim 1, characterized in that: After the step of determining the working mode corresponding to the IO processing system, the method includes: If the working mode is the write-through mode, storing the second to-be-written data corresponding to the second write IO instruction in the on-chip buffer pool according to the second write IO instruction issued by the host; In the case where it is detected that the second data to be written stored in the on-chip buffer pool is stored in the target disk side device, sending a second write IO completion response signal to the host; storing the second data to be written corresponding to the second write IO instruction in the on-chip buffer pool according to the second write IO instruction issued by the host includes: Receive the second write IO instruction sent by the host; Creating a second full hardware task processing chain according to the second write IO instruction, wherein the second full hardware task processing chain includes a second write IO task; Locking the second stripe corresponding to the second write IO task, and setting the verification update log state corresponding to the second write IO task to a standby state; Allocating target on-chip cache data pages corresponding to the second write IO task from the on-chip cache pool, the target on-chip cache data pages including a fourth target on-chip cache data page, a fifth target on-chip cache data page, and a sixth target on-chip cache data page; storing the to-be-written data corresponding to the second write IO task to the fourth target on-chip cache data page; When it is detected that the second to-be-written data stored in the on-chip buffer pool is stored in the target disk-side device, sending a second write IO completion response signal to the host comprises: Storing the second historical write data corresponding to the target disk side device in the fifth target on-chip cache data page, and storing the second historical check data corresponding to the target disk side device in the sixth target on-chip cache data page; Generate second verification data corresponding to the second data to be written according to the second data to be written, the second historical written data, and the second historical verification data; Updating the verification update log state from the preparation state to the stripe modification state in the write-through mode, and writing the second data to be written and the second verification data into the target disk side device; A second write IO completion response signal is sent to the host.

10. The method according to claim 9, characterized in that After the step of writing the second to-be-written data and the second verification data into the target disk-side device and before the step of sending a second write IO completion response signal to the host, the method includes: Release the target on-chip cache data page; The second stripe is unlocked, and the verification update log status is updated to an invalid state.

11. An IO processing system, characterized in that: The IO processing system comprises: a host, a storage control card and a target disk side device, wherein the storage control card comprises a storage control chip, and the storage control chip is equipped with an on-chip cache pool; The storage control chip is used to determine the working mode corresponding to the IO processing system; if the working mode is the write-back mode, the first to-be-written data corresponding to the first write IO instruction is stored in the on-chip buffer pool according to the first write IO instruction issued by the host; when the host receives the first write IO completion response signal, the first to-be-written data is stored from the on-chip buffer pool to the target disk side device; The storing, according to the first write IO instruction issued by the host, the first to-be-written data corresponding to the first write IO instruction to the on-chip cache pool comprises: receiving the first write IO instruction issued by the host; creating a first full-hardware task processing chain according to the first write IO instruction, the first full-hardware task processing chain comprising a first write IO task; locking the first stripe corresponding to the first write IO task, and setting the verification update log state corresponding to the first write IO task to a standby state; allocating a target on-chip cache data page corresponding to the first write IO task from the on-chip cache pool, the target on-chip cache data page comprising a first target on-chip cache data page, a second target on-chip cache data page and a third target on-chip cache data page; storing the to-be-written data corresponding to the first write IO task to the first target on-chip cache data page; The storing of the first to-be-written data from the on-chip cache pool to the target disk side device while the host receives the first write IO completion response signal comprises: sending the first write IO completion response signal to the host; updating the verification update log state corresponding to the first write IO task from the preparation state to the advance response state; storing the first historical write data corresponding to the target disk side device to the second target on-chip cache data page, and storing the first historical verification data corresponding to the target disk side device to the third target on-chip cache data page; Generate first verification data corresponding to the first data to be written based on the first data to be written, the first historical written data and the first historical verification data; update the verification update log status from the early response status to the stripe modification status under the write-back mode, and write the first data to be written and the first verification data to the target disk side device.

12. The system according to claim 11, characterized in that The IO processing system further includes: an onboard integrated backup power module integrated on the storage control card; The onboard integrated backup power module is used to supply power to the IO processing system when it is detected that the IO processing system is in a power-off state.

13. The system according to claim 12, characterized in that The IO processing system further includes: the storage control chip is connected to an external non-volatile storage via a low-speed IO interface.

14. An IO processing device, characterized in that: A storage control chip used in an IO processing system, wherein the storage control chip is equipped with an on-chip cache pool, and the device comprises: A determination module, used to determine the corresponding working mode of the IO processing system; a storage module, configured to store first to-be-written data corresponding to the first write IO instruction in the on-chip cache pool according to a first write IO instruction issued by the host if the working mode is a write-back mode; A parallel processing module, configured to store the first to-be-written data from the on-chip buffer pool to a target disk side device at the same time as the host receives a first write IO completion response signal; The storing, according to the first write IO instruction issued by the host, the first to-be-written data corresponding to the first write IO instruction to the on-chip cache pool comprises: receiving the first write IO instruction issued by the host; creating a first full-hardware task processing chain according to the first write IO instruction, the first full-hardware task processing chain comprising a first write IO task; locking the first stripe corresponding to the first write IO task, and setting the verification update log state corresponding to the first write IO task to a standby state; allocating a target on-chip cache data page corresponding to the first write IO task from the on-chip cache pool, the target on-chip cache data page comprising a first target on-chip cache data page, a second target on-chip cache data page and a third target on-chip cache data page; storing the to-be-written data corresponding to the first write IO task to the first target on-chip cache data page; The storing of the first to-be-written data from the on-chip cache pool to the target disk side device while the host receives the first write IO completion response signal comprises: sending the first write IO completion response signal to the host; updating the verification update log state corresponding to the first write IO task from the preparation state to the advance response state; storing the first historical write data corresponding to the target disk side device to the second target on-chip cache data page, and storing the first historical verification data corresponding to the target disk side device to the third target on-chip cache data page; Generate first verification data corresponding to the first data to be written based on the first data to be written, the first historical written data and the first historical verification data; update the verification update log status from the early response status to the stripe modification status under the write-back mode, and write the first data to be written and the first verification data to the target disk side device.

15. A communication device, characterized in that: include: A transceiver, a memory, a processor, and a program stored on the memory and executable on the processor; The processor is used to read the program in the memory to implement the input-output processing method as described in any one of claims 1-10.

16. A readable storage medium for storing a program, characterized in that: When the program is executed by a processor, the input-output processing method as described in any one of claims 1 to 10 is implemented.

17. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the input-output processing method as described in any one of claims 1-10 is implemented.