Method and device for controlling hard disk and solid state hard disk

By using persistent storage devices and multi-concurrent synchronization timing mechanisms in the controller of the solid-state drive, the problem of traditional solid-state drives requiring RAM/DDR is solved, and higher system performance and rapid recovery capabilities are achieved.

CN114579048BActive Publication Date: 2024-11-08ALIBABA (CHINA) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210133887.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-14
Publication Date
2024-11-08
Estimated Expiration
2042-02-14

AI Technical Summary

Technical Problem

Traditional solid-state drives need to be paired with RAM/DDR memory chips, resulting in high system complexity and limited performance, and volatile storage affects computer system performance.

Method used

By using persistent storage devices and multi-concurrent synchronization timing mechanisms in the controller of the solid-state drive, multiple channels of the bus are attached to the persistent storage device, receiving memory access requests from the host, and the controller is in idle time slices Data conversion is performed within, and the memory characteristics and ultra-low latency characteristics are simulated without real-time refresh, improving processing speed.

Benefits of technology

It reduces system complexity, improves the processing speed and system performance of the host, and quickly resumes operation after the host system powers down, reducing the risk of data loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114579048B_ABST
    Figure CN114579048B_ABST
Patent Text Reader

Abstract

The embodiments of the present specification provide a method and apparatus for controlling a hard disk, and a solid-state hard disk, wherein the method for controlling a hard disk is applied to a controller of a solid-state hard disk, and the solid-state hard disk also includes: a persistent storage device and a hard disk interface, wherein the hard disk interface is mounted on the persistent storage device through multiple channels of a bus, and the persistent storage device includes a computing area used as a memory, and the method includes: receiving a memory access request from a host through the hard disk interface; based on a multi-concurrent synchronous timing mechanism, performing memory access processing corresponding to the memory access request on the computing area through the multiple channels.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present specification relate to the field of computer technology, and more particularly to a method and device for controlling a hard disk and a solid state hard disk. Background Art

[0002] Solid State Disk (SSD), also known as solid state drive, is a hard disk made of solid state storage chip array. At present, the traditional standard NVMe solid state drive architecture must have a large enough RAM / DDR storage chip for code segment, data segment storage and table management, and algorithm operation space overhead.

[0003] However, it must be used with RAM / DDR. Not only is the SSD highly complex, but the volatility of RAM / DDR also significantly affects the performance of the computer system. Summary of the invention

[0004] In view of this, an embodiment of this specification provides a method for controlling a hard disk. One or more embodiments of this specification also relate to a device for controlling a hard disk, a solid state drive, a computing device, a computer-readable storage medium, and a computer program to solve the technical defects existing in the prior art.

[0005] According to a first aspect of an embodiment of the present specification, a method for controlling a hard disk is provided, which is applied to a controller of a solid-state hard disk, wherein the solid-state hard disk also includes: a persistent storage device and a hard disk interface, wherein the hard disk interface is mounted on the persistent storage device through multiple channels of a bus, and the persistent storage device includes a computing area used as a memory, and the method includes: receiving a memory access request from a host through the hard disk interface; and performing memory access processing corresponding to the memory access request on the computing area through the multiple channels based on a multi-concurrent synchronous timing mechanism.

[0006] Optionally, the method further includes: when the host system is powered on again after being powered off, continuing to run the host system based on the initialization mirror data and the system incremental data in the computing area.

[0007] Optionally, the persistent storage device further includes an access area for data storage, and the method further includes: receiving a storage access request from a host through the hard disk interface; and performing access processing corresponding to the storage access request on the access area.

[0008] Optionally, it also includes: when the controller is in an idle time slice, if the computing area has insufficient space, selecting a portion of the area from the access area to be converted into the computing area; and / or, when the controller is in an idle time slice, if the storage area has insufficient space, selecting a portion of the area from the computing area to be converted into the access area.

[0009] Optionally, the access processing corresponding to the storage access request on the access area includes: when the storage access request is a write request, caching the data carried by the write request into the computing area based on the multi-concurrent synchronization timing mechanism; when the cache write is completed, recording the mapping relationship between the logical address and the physical address of the written data; when the controller is in an idle time slice, moving the written data from the computing area to the access area, and updating the mapping relationship between the logical address and the physical address.

[0010] Optionally, the access processing corresponding to the storage access request on the access area includes: when the storage access request is a read request, finding out the physical address of the data to be read by the read request through a mapping relationship table; based on the found physical address, reading data from the access area and returning it to the host through the hard disk interface.

[0011] According to the second aspect of the embodiments of this specification, there is provided a device for controlling a hard disk, which is configured in a controller of a solid-state hard disk, wherein the solid-state hard disk further comprises: a persistent storage device and a hard disk interface, wherein the hard disk interface is mounted on the persistent storage device through multiple channels of a bus, and the persistent storage device includes a computing area used as a memory; the device for controlling a hard disk comprises: a memory access receiving module, which is configured to receive a memory access request from a host through the hard disk interface. A memory access processing module, which is configured to perform memory access processing corresponding to the memory access request on the computing area through the multiple channels based on a multi-concurrent synchronous timing mechanism.

[0012] According to the third aspect of the embodiments of this specification, a solid state hard disk is provided, comprising: a controller, a persistent storage device and a hard disk interface, wherein the hard disk interface is mounted on the persistent storage device through multiple channels of a bus, the controller is connected to the persistent storage device and the hard disk interface through the bus, and the persistent storage device includes a computing area used as a memory. The controller is configured to receive a memory access request from a host through the hard disk interface, and based on a multi-concurrent synchronous timing mechanism, perform memory access processing corresponding to the memory access request on the computing area through the multiple channels.

[0013] Optionally, the persistent storage device further includes an access area for data storage. The controller is further configured to receive a storage access request from a host through the hard disk interface, and perform access processing corresponding to the storage access request on the access area.

[0014] Optionally, the controller includes at least two processors, wherein at least one processor is used to process access to the computing area, and at least another processor is used to process access to the access area.

[0015] According to the fourth aspect of the embodiments of this specification, a computing device is provided, including: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions, which, when executed by the processor, implement the steps of the method for controlling a hard disk described in any embodiment of this specification.

[0016] According to a fifth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, the steps of the method for controlling a hard disk described in any embodiment of this specification are implemented.

[0017] According to a sixth aspect of the embodiments of this specification, a computer program is provided, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the method for controlling a hard disk described in any embodiment of this specification.

[0018] An embodiment of the present specification implements a method for controlling a hard disk, and the method is applied to a controller of a solid-state hard disk, wherein the solid-state hard disk also includes: a persistent storage device and a hard disk interface, wherein the hard disk interface is mounted on the persistent storage device through multiple channels of a bus, and the persistent storage device includes a computing area used as a memory. Since the solid-state hard disk structure does not have the restriction of being matched with RAM / DDR, the structure is simple, and the method receives a memory access request from the host through the hard disk interface, and based on a multi-concurrent synchronous timing mechanism, performs memory access processing corresponding to the memory access request on the computing area through the multiple channels, thereby simulating the memory characteristics that do not require real-time refresh for calculation and caching based on the storage persistence of the persistent storage device, and improving the processing speed of the host based on the ultra-low latency characteristics of the persistent storage device, thereby improving the system performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is a flow chart of a method for controlling a hard disk provided by an embodiment of this specification;

[0020] Figure 2 It is a schematic diagram of a system restart process based on Pcm provided by an embodiment of this specification;

[0021] Figure 3 is a schematic diagram of the structure of a solid state drive provided by an embodiment of this specification;

[0022] Figure 4 It is a schematic diagram of a reading and writing process provided by an embodiment of this specification;

[0023] Figure 5 It is a structural schematic diagram of a device for controlling a hard disk provided by an embodiment of this specification;

[0024] Figure 6 is a structural schematic diagram of a device for controlling a hard disk provided in another embodiment of the present specification;

[0025] Figure 7 is a structural schematic diagram of a solid state hard disk provided by an embodiment of this specification;

[0026] Figure 8 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0027] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

[0028] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0029] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0030] First, the terms involved in one or more embodiments of this specification are explained.

[0031] Pcm (Phase Change Memory): A phase change storage medium based on storage particles of phase change chalcogenide materials.

[0032] ssd (solid state disk): solid state drive.

[0033] The multi-concurrent synchronous timing mechanism is a mechanism that performs multiple concurrent calculations based on synchronous timing, and then summarizes and merges the execution results of each calculation to obtain an overall result.

[0034] In this specification, a method for controlling a hard disk is provided. This specification also relates to a device for controlling a hard disk, a solid state drive, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.

[0035] See also Figure 1 , Figure 1 A flowchart of a method for controlling a hard disk provided according to an embodiment of the present specification is shown. The method is applied to a controller of a solid-state hard disk, and the solid-state hard disk also includes: a persistent storage device and a hard disk interface, wherein the hard disk interface is mounted on the persistent storage device through multiple channels of a bus, and the persistent storage device includes a computing area used as a memory. The method for controlling a hard disk specifically includes the following steps.

[0036] Step 102: Receive a memory access request from a host through the hard disk interface.

[0037] Step 104: Based on a multi-concurrency synchronization timing mechanism, perform memory access processing corresponding to the memory access request on the computing area through the multiple channels.

[0038] Among them, the persistent storage device, for example, may include phase change storage media, ReRAM, MRAM, NRAM, FRAM and other new persistent storage media with a medium rate close to DRAM (medium rate, bit transmission time is less than or equal to 100ns).

[0039] Specifically, the bus used to connect the hard disk interface can use multiple channels. Multiple channels can be mounted on multiple dies of the persistent storage device in a one-to-one correspondence with the die of the persistent storage device. The number of multiple channels can be determined according to the concurrency requirements of memory performance in actual application scenarios. Thus, through multiple channels, multiple concurrent accesses to Pcm are performed based on a multi-concurrency synchronization timing mechanism, so that the access speed meets the memory performance requirements. The controller can use byte addressing to implement access control to the persistent storage device, implement access operations such as read / write / erase, and achieve the purpose of using the computing area of ​​the persistent storage device as memory.

[0040] Since the method is applied to a controller of a solid-state hard disk, the solid-state hard disk also includes a persistent storage device and a hard disk interface, wherein the hard disk interface is mounted on the persistent storage device through multiple channels of a bus, and the persistent storage device includes a computing area used as a memory. Therefore, the method can receive a memory access request from the host through the hard disk interface, and based on a multi-concurrent synchronization timing mechanism, perform memory access processing corresponding to the memory access request on the computing area through the multiple channels, thereby simulating the memory characteristics that do not require real-time refresh for calculation and caching based on the storage persistence of the persistent storage device, thereby reducing the failure rate, and improving the processing speed of the host based on the ultra-low latency characteristics of the persistent storage device.

[0041] In addition, since the persistent storage device itself does not lose data when power is off, utilizing this feature, the method for controlling the hard disk provided in the embodiment of this specification, in order to improve the system boot speed, also includes: when the host system is powered on again after power failure, the host system continues to run based on the initialization mirror data and system incremental data in the calculation area. Specifically, for example, when the host uses the calculation area as memory to run the host system, the system pointer will point to the data area where the system incremental data is located. When the host system is powered off, based on the feature that the persistent storage device does not lose data when power is off, the system pointer will not be lost. When the power is on again, the system incremental data can be directly located according to the system pointer, and the initial deployed mirror data and system incremental data can be directly continued to run. There is no need to read data from other external storage and then calculate, and the system can be directly restored to the system running position before the power failure. The recovery time is in the ms level, which greatly improves the system startup and reset speed.

[0042] It can be understood that the system incremental data refers to the incremental data generated further relative to the initialization image data during the system operation, corresponding to the current operation status of the system.

[0043] For example, Figure 2 The schematic diagram of the system restart process based on Pcm is shown in FIG. Figure 2As shown in the figure, the initialization image data of the system for the first deployment is represented as "a". As the system runs, the system data is continuously written. Assume that at a certain moment after a period of time, the system incremental data in the current running state of the host system is "Δ1", and the system data currently available for system operation includes "a+Δ1". At a certain moment after a period of time, the system incremental data in the current running state of the host system is "Δ2", and the system data currently available for system operation includes "a+Δ2". At this time, the system is powered off. Based on the non-volatility of Pcm, there is no need to save the power off / off, and no additional recovery processing is required for power on. The system pointer points to "a+Δ2" and continues to run.

[0044] In one or more embodiments of this specification, the persistent storage device may also include an access area for data storage. Accordingly, the method for controlling the hard disk may also include: receiving a storage access request from the host through the hard disk interface; and performing access processing corresponding to the storage access request on the access area. In this embodiment, since the memory and data storage use the same storage medium, the system complexity is reduced, the uniformity of the storage end is achieved, and the performance of the persistent storage device can be fully utilized.

[0045] The following is an exemplary description of the read / write processing process of the storage access request:

[0046] For example, performing access processing corresponding to the storage access request on the access area may include:

[0047] In the case where the storage access request is a write request, the data carried by the write request is cached and written to the computing area based on the multi-concurrent synchronization timing mechanism; when the cache write is completed, the mapping relationship between the logical address and the physical address of the written data is recorded; when the controller is in an idle time slice, the written data is moved from the computing area to the access area, and the mapping relationship between the logical address and the physical address is updated. It can be seen from this embodiment that based on the storage persistence of the persistent storage device, the persistent storage device itself does not need to be powered by a battery, and can refresh the memory data to the access area without battery protection when the controller is idle.

[0048] The logical address is the read / write address sent by the host, and the physical address is the address actually stored in the persistent storage device. The strategy used to move data can be set according to the actual scenario. For example, you can refresh it when you are idle, give priority to read when there is a read / write conflict, and wait for write operations, etc.

[0049] For another example, the access processing corresponding to the storage access request on the access area includes: when the storage access request is a read request, finding out the physical address of the data to be read by the read request through a mapping relationship table; based on the found physical address, reading data from the access area and returning it to the host through the hard disk interface.

[0050] In addition, in order to improve the space utilization of the persistent storage device, the method may further include: when the controller is in an idle time slice, if the computing area has insufficient space, selecting a portion of the area from the access area to be converted into the computing area; and / or, when the controller is in an idle time slice, if the storage area has insufficient space, selecting a portion of the area from the computing area to be converted into the access area. Through this embodiment, based on the characteristic of the persistent storage device that data is not lost when power is off, the storage space is fully utilized through the conversion between the computing area and the access area, thereby improving the storage space utilization.

[0051] Figure 3 FIG. 1 shows a schematic diagram of the structure of a solid state drive implemented according to one or more embodiments of the present specification. Figure 3 As shown, the solid state hard disk includes: a hard disk interface based on a high-speed serial computer expansion bus standard, a controller based on any processor type, and a persistent storage device including a computing area and an access area.

[0052] based on Figure 3 The solid-state hard disk shown uses PCM type media particles to achieve a high-performance solid-state disk. Among them, the multiple channels of the bus of the hard disk interface and the multi-concurrent synchronization timing mechanism of the controller realize the ability to coexist in the simulated memory form and the large-capacity storage form. By making full use of the inherent characteristics of PCM, on an SSD solid-state disk, data buffering can be achieved without adding additional DRAM; at the same time, the capacity space in the disk can also be directly opened to the host CPU for direct call through the bus, which means the simplification of the storage process. Based on the method for controlling the hard disk provided in the embodiment of this specification, the host-side data can run in the calculation area in the disk, that is, the high-speed part. When the data in the calculation area needs to be flushed, it is not necessary to copy it from the host side's memory to the disk side. It only needs to directly return the flush success, and move the high-speed part of the data in the disk to the low-speed part in the background when the controller is idle.

[0053] It should be noted that in the embodiments of this specification, the bus can be any high-speed serial computer expansion bus, as long as the bandwidth is sufficient and supports the host side to directly address the computing area in the disk. For example, the bus can be any type of bus. In some lower-speed buses, concurrency requirements can be met by occupying more channels. For example, a low-speed bus can achieve theoretical memory performance by using twice or even more channels than a high-speed bus.

[0054] like Figure 3 As shown, in the application scenario based on Pcm storage particles, the interface of the computing area and the access area can be Pcm-phy. Pcm-phy refers to the logical interface of Pcm-type media, which is part of the controller chip logic and can be used to convert the control signal issued by the controller into a timing logic digital signal that can be recognized by the Pcm particles. The logical interface can be specifically set according to the timing logic rules for accessing Pcm provided by Pcm. Among them, the data transmission of Pcm-phy in the computing area and Pcm-phy in the access area adopts different timing logics, which can be specifically set according to the respective performance requirements of memory and storage in the application scenario. When part of the data area in the computing area is converted to the data area of ​​the access area, or part of the data area of ​​the access area is converted to the data area of ​​the computing area, the timing logic of Pcm-phy can be switched accordingly through a specific switching timing segment, which will not be repeated here.

[0055] In addition, if Figure 3 The controller shown may include two or more processors. The processor communicates with each interface through the control logic module of the hard disk to implement relevant control functions. Through two or more processors, it is convenient to manage the calculation area Pcm and the access area Pcm separately to avoid CPU time slice conflicts between them and thus performance impairment.

[0056] according to Figure 3 For the solid state drive shown in FIG. 1 , the processing process of write request and read request is as follows: Figure 4 As shown in the schematic diagram of the read and write process, it includes:

[0057] Host write request processing process: The host uses the hard disk interface such as Figure 4 The PCI-PHY shown in the figure sends a write request to the controller, and the controller writes the data cache to the DDR-like part of the PCM, that is, the die in the computing area. After the write is completed, the controller records the mapping relationship. During the background processing, the die data in the computing area is continuously moved to the NAND-like part, that is, the die in the access area, and the mapping relationship in the controller is synchronously updated.

[0058] Host read request processing process: The host sends a read request to the controller through the hard disk interface. The controller addresses through the mapping table and directly uploads the data according to the mapping relationship without copying it to the memory or computing area, and returns the read completion.

[0059] Corresponding to the above method embodiment, this specification also provides an embodiment of a device for controlling a hard disk. The device is configured in a controller of a solid-state hard disk, and the solid-state hard disk also includes: a persistent storage device and a hard disk interface, wherein the hard disk interface is connected to the persistent storage device through multiple channels of a bus, and the persistent storage device includes a computing area used as a memory. Figure 5 FIG. 1 is a schematic diagram showing a structure of a device for controlling a hard disk provided by an embodiment of the present specification. Figure 5 As shown, the device comprises:

[0060] The memory access receiving module 502 may be configured to receive a memory access request from the host through the hard disk interface.

[0061] The memory access processing module 504 may be configured to perform memory access processing corresponding to the memory access request on the computing area through the multiple channels based on a multi-concurrent synchronization timing mechanism.

[0062] Since the device is configured in the controller of the solid-state hard disk, the solid-state hard disk also includes a persistent storage device and a hard disk interface, wherein the hard disk interface is mounted on the persistent storage device through multiple channels of a bus, and the persistent storage device includes a computing area used as a memory. Therefore, the device can receive a memory access request from the host through the hard disk interface, and based on a multi-concurrent synchronization timing mechanism, perform memory access processing corresponding to the memory access request on the computing area through the multiple channels, thereby simulating the memory characteristics that do not require real-time refresh for calculation and caching based on the storage persistence of the persistent storage device, thereby reducing the failure rate, and improving the processing speed of the host based on the ultra-low latency characteristics of the persistent storage device.

[0063] Figure 6 FIG. 2 shows a schematic diagram of a structure of a device for controlling a hard disk provided by another embodiment of the present specification. Figure 6 As shown, the device may also include:

[0064] The restart module 506 may be configured to continue running the host system based on the initialization image data and the system incremental data in the computing area when the host system is powered on again after being powered off.

[0065] Based on this embodiment, when the host system loses power and is powered on again, the system only needs to continue running based on the initialization mirror data in the calculation area and the system incremental data before the last power failure. The system can be directly restored to the system running position before the power failure without additional reading and calculation. The recovery time is in the ms level, which greatly improves the system startup and reset speed.

[0066] In addition, the persistent storage device may also include an access area for data storage. Figure 6 As shown, the device may also include:

[0067] The storage access receiving module 508 may be configured to receive a storage access request from the host through the hard disk interface.

[0068] The storage access processing module 510 may be configured to perform access processing corresponding to the storage access request on the access area.

[0069] In order to improve storage space utilization, such as Figure 6 As shown, the device may further include: a conversion module 512, which may be configured to select a partial area from the access area and convert it to the computing area when the controller is in an idle time slice and if the computing area has insufficient space; and / or, may be configured to select a partial area from the computing area and convert it to the access area when the controller is in an idle time slice and if the storage area has insufficient space.

[0070] Through this embodiment, based on the characteristic of persistent storage devices that data is not lost when power is off, the storage space is fully utilized through the conversion between the computing area and the access area, thereby improving the utilization rate of the storage space.

[0071] Specifically, for example, the storage access processing module 510 may include: a write cache submodule 5102, which may be configured to cache and write the data carried by the write request into the computing area based on the multi-concurrent synchronization timing mechanism when the storage access request is a write request. An address mapping submodule 5104 may be configured to record the mapping relationship between the logical address and the physical address of the written data when the cache write is completed. A data flush module 5106 may be configured to move the written data from the computing area to the access area and update the mapping relationship between the logical address and the physical address when the controller is in an idle time slice.

[0072] For another example, the storage access processing module 510 may include: an address search submodule 5108, which may be configured to find out the physical address of the data to be read by the read request through a mapping relationship table when the storage access request is a read request. A data reading submodule 5109 may be configured to read the data from the access area according to the found physical address and return it to the host through the hard disk interface.

[0073] The above is a schematic scheme of a device for controlling a hard disk in this embodiment. It should be noted that the technical scheme of the device for controlling a hard disk and the technical scheme of the method for controlling a hard disk are of the same concept, and the details not described in detail in the technical scheme of the device for controlling a hard disk can be referred to the description of the technical scheme of the method for controlling a hard disk.

[0074] Corresponding to the above method embodiments, this specification also provides a solid state hard disk embodiment. Figure 7 FIG. 1 is a schematic diagram showing the structure of a solid state hard disk provided by an embodiment of the present specification. Figure 7 As shown, the solid state hard disk includes: a controller 702, a persistent storage device 704 and a hard disk interface 706, wherein the hard disk interface 706 is mounted on the persistent storage device 704 through multiple channels of a bus, and the controller 702 is connected to the persistent storage device and the hard disk interface through the bus, and the persistent storage device includes a computing area 7042 used as a memory.

[0075] Among them, the controller 702 can be configured to receive a memory access request from the host through the hard disk interface 706, and based on a multi-concurrent synchronization timing mechanism, perform memory access processing corresponding to the memory access request on the computing area 7042 through the multiple channels.

[0076] In addition, if Figure 7 As shown, the persistent storage device 704 may also include an access area 7044 for data storage. The controller 702 may also be configured to receive a storage access request from the host through the hard disk interface 706 and perform access processing on the access area 7044 corresponding to the storage access request.

[0077] The controller 702 may include at least two processors, wherein at least one processor is used to process access to the computing area, and at least another processor is used to process access to the access area.

[0078] For example, in one or more embodiments of this specification, Figure 3 The schematic diagram of the solid-state hard disk structure shown in FIG. 1 shows, the persistent storage device can be implemented based on the Pcm medium, the controller 702 can be implemented based on any type of processor, and the bus can adopt any high-speed serial computer expansion bus standard communication protocol. For specific implementation details, please refer to Figure 3 The description of the embodiment shown will not be repeated here.

[0079] The above is a schematic solution of a solid state drive of this embodiment. It should be noted that the technical solution of the solid state drive and the technical solution of the method for controlling the hard disk described above are of the same concept, and the details not described in detail in the technical solution of the solid state drive can be referred to the description of the technical solution of the method for controlling the hard disk described above.

[0080] Figure 8The structure block diagram of a computing device 800 provided according to an embodiment of the present specification is shown. The components of the computing device 800 include but are not limited to a memory 810 and a processor 820. The processor 820 is connected to the memory 810 via a bus 830, and the database 850 is used to store data.

[0081] The computing device 800 also includes an access device 840 that enables the computing device 800 to communicate via one or more networks 860. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 840 may include one or more of any type of network interface (e.g., a network interface card (NIC)) that is wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a World Wide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.

[0082] In one embodiment of the present specification, the above components of the computing device 800 and Figure 8 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 8 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0083] The computing device 800 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 800 may also be a mobile or stationary server.

[0084] The processor 820 is used to execute the following computer executable instructions, which, when executed by the processor, implement the steps of the above-mentioned method for controlling the hard disk.

[0085] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the method for controlling the hard disk are of the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the method for controlling the hard disk.

[0086] An embodiment of the present specification further provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the above-mentioned method for controlling a hard disk.

[0087] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the method for controlling the hard disk are of the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the method for controlling the hard disk.

[0088] An embodiment of the present specification further provides a computer program, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above-mentioned method for controlling a hard disk.

[0089] The above is a schematic scheme of a computer program of this embodiment. It should be noted that the technical scheme of the computer program and the technical scheme of the method for controlling the hard disk are of the same concept, and the details not described in detail in the technical scheme of the computer program can be referred to the description of the technical scheme of the method for controlling the hard disk.

[0090] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0091] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal, software distribution medium, phase change storage medium, ReRAM, MRAM, NRAM, FRAM, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0092] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0093] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0094] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.

Claims

1. A method for controlling a hard disk, applied to a controller of a solid state disk, wherein the solid state disk further comprises: A persistent storage device and a hard disk interface, wherein the hard disk interface is mounted on the persistent storage device through multiple channels of a bus, the persistent storage device includes a computing area used as a memory, and also includes an access area used as a data storage, and the method includes: According to the performance requirements of memory and storage, the computing area and the access area are converted to each other; Receiving a memory access request from a host through the hard disk interface; Based on a multi-concurrent synchronization timing mechanism, memory access processing corresponding to the memory access request is performed on the computing area through the multiple channels.

2. The method for controlling a hard disk according to claim 1, further comprising: When the host system is powered on again after being powered off, the host system continues to run based on the initialization mirror data and the system incremental data in the computing area.

3. The method for controlling a hard disk according to claim 1, further comprising: receiving a storage access request from a host through the hard disk interface; Access processing corresponding to the storage access request is performed on the access area.

4. The method for controlling a hard disk according to claim 3, further comprising: When the controller is in an idle time slice, if the computing area has insufficient space, select a portion of the access area and convert it into the computing area; and / or, When the controller is in an idle time slice, if the access area has insufficient space, a partial area is selected from the calculation area and converted into the access area.

5. The method for controlling a hard disk according to claim 3, wherein the step of performing access processing corresponding to the storage access request on the access area comprises: In the case where the storage access request is a write request, writing the data carried by the write request into the computing area based on the multi-concurrency synchronization timing mechanism cache; When the cache write is completed, the mapping relationship between the logical address and the physical address of the written data is recorded; When the controller is in an idle time slice, the written data is moved from the calculation area to the access area, and the mapping relationship between the logical address and the physical address is updated.

6. The method for controlling a hard disk according to claim 3, wherein the step of performing access processing corresponding to the storage access request on the access area comprises: In the case where the storage access request is a read request, finding out the physical address of the data to be read by the read request through a mapping relationship table; According to the found physical address, data is read from the access area and returned to the host through the hard disk interface.

7. A device for controlling a hard disk, configured in a controller of a solid state disk, the solid state disk further comprising: A persistent storage device and a hard disk interface, wherein the hard disk interface is connected to the persistent storage device through multiple channels of a bus, and the persistent storage device includes a computing area used as a memory and an access area used as a data storage; the device for controlling the hard disk includes: A conversion module, configured to convert the computing area and the access area to each other according to the performance requirements of the memory and the storage; A memory access receiving module, configured to receive a memory access request from a host through the hard disk interface; The memory access processing module is configured to perform memory access processing corresponding to the memory access request on the computing area through the multiple channels based on a multi-concurrent synchronization timing mechanism.

8. A solid state hard disk comprising: A controller, a persistent storage device and a hard disk interface, wherein the hard disk interface is mounted on the persistent storage device through multiple channels of a bus, the controller is connected to the persistent storage device and the hard disk interface through the bus, and the persistent storage device includes a computing area used as a memory and an access area used as a data storage; Among them, the controller is configured to convert the computing area and the access area mutually according to the performance requirements of memory and storage; receive the host's memory access request through the hard disk interface, and based on a multi-concurrent synchronization timing mechanism, perform memory access processing corresponding to the memory access request on the computing area through the multiple channels.

9. The solid state drive according to claim 8, wherein the controller is further configured to receive a storage access request from a host through the hard disk interface, and perform access processing corresponding to the storage access request on the access area.

10. The solid state drive according to claim 9, wherein the controller comprises at least two processors, wherein: At least one processor is used to process access to the computing area, and at least another processor is used to process access to the access area.

11. A computing device comprising: Memory and processor; The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the method for controlling a hard disk as described in any one of claims 1 to 6 are implemented.

12. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, implement the steps of the method for controlling a hard disk as claimed in any one of claims 1 to 6.