Hard disk health early warning method, hard disk and computing equipment

By obtaining the number of consecutive reads of the storage unit in the hard disk, the health status of the hard disk is determined and alarm information is generated, which solves the problem of the inability to accurately predict the health status of the hard disk in the existing technology, realizes accurate early warning and data migration of the hard disk, and extends the use of the hard disk. life.

CN118656275APending Publication Date: 2024-09-17XFUSION DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410732778.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing hard disk health warning technology cannot accurately predict the health status of hard disks and formulate maintenance strategies, leading to accelerated data loss and hard disk failures.

Method used

By obtaining the number of consecutive reads of the storage unit in the hard disk, the health status of the storage unit is determined, and alarm information is generated based on the health status to achieve accurate early warning and data migration of the hard disk.

Benefits of technology

It improves the accuracy and timeliness of hard disk health warnings, avoids data loss, and extends the service life of hard disks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656275A
    Figure CN118656275A
Patent Text Reader

Abstract

The invention provides a health early warning method for a hard disk, the hard disk and computing equipment. The method comprises the steps of obtaining continuous reading times of a storage unit in a hard disk, and determining a health state of the storage unit in the hard disk based on the continuous reading times of the storage unit. And determining alarm information of the hard disk according to the health state of the storage unit. And according to the alarm level in the alarm information of the hard disk, determining a maintenance strategy of the hard disk according to conditions. Compared with a single method for early warning the health state of the hard disk according to an alarm threshold set by a manufacturer, the method has the advantages that when the health state of any storage unit is poor, the data in the storage unit with the poor health state can be autonomously migrated, and the risk of hard disk data loss is avoided. Meanwhile, the user can be alarmed according to different alarm levels and conditions, the user can be helped to master the current health state of the hard disk in real time, corresponding alarm prompt information is provided, and the service life of the hard disk is prolonged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of hard disk design, and in particular to a hard disk health warning method, a hard disk and a computing device. Background Art

[0002] When reading a page in the logic block of the solid-state drive, it will interfere with other pages in the logic block, causing the data in other pages to be modified. If the read interference is serious, it will cause data loss and accelerate the consumption of the hard drive life, accelerating the occurrence of hard drive failure.

[0003] In the related hard disk health warning technology, the manufacturer can set the hard disk read disturbance threshold, and before a certain logical block of the hard disk is about to reach the above read threshold, migrate the data in the corresponding logical block to a new logical block.

[0004] However, before the hard disk reaches the read disturbance threshold, the above hard disk health warning technology cannot accurately predict the health status of the hard disk, and at the same time, it is also impossible to formulate corresponding maintenance strategies for the hard disk in stages. Summary of the invention

[0005] In order to provide an early warning of the health status of a hard disk, the present application provides a hard disk health early warning method, which improves the accuracy of the hard disk health early warning.

[0006] In a first aspect, an embodiment of the present application provides a hard disk health warning method, the method comprising: obtaining the number of consecutive reads of a storage unit in the hard disk, the number of consecutive reads indicating the number of consecutive read operations occurring on the storage unit; determining a health status of the storage unit based on the number of consecutive reads of the storage unit in the hard disk; the health status indicating a possibility of read interference occurring in the storage unit; and determining an alarm message for the hard disk based on the health status of the storage unit.

[0007] In this solution, the health status of each storage unit is determined based on the number of consecutive reads of the logical block in the hard disk. The health status of the hard disk is determined based on the health status of the storage unit. Compared with the single warning of the health status of the hard disk based on the alarm threshold set by the manufacturer, the possibility of read interference in the storage unit is predicted more accurately, which improves the accuracy of the hard disk health warning method. At the same time, the health status of the hard disk is predicted based on the health status of the storage unit, and the alarm information of the hard disk is determined, which improves the accuracy of the hard disk health warning method.

[0008] In some embodiments, the storage unit is a logic block, and obtaining the number of consecutive reads of the storage unit in the hard disk includes: obtaining the number of consecutive reads of the logic block in the hard disk.

[0009] In this solution, users can view the health status of the logical blocks in the hard disk through the number of consecutive reads of the logical blocks, and migrate data in time to avoid data loss.

[0010] In some embodiments, determining the health status of the storage unit based on the number of consecutive reads of the storage unit in the hard disk includes: determining a first alarm parameter of the logical block in the hard disk based on the number of consecutive reads of the logical block in the hard disk; the first alarm parameter is a ratio of the number of consecutive reads to a read interference threshold, and the read interference threshold is a threshold of logical block read interference preset by the hard disk; determining the health status of the logical block based on the first alarm parameter and the first alarm threshold; the first alarm threshold is a percentage threshold of the maximum number of consecutive reads of each storage unit preset by the hard disk.

[0011] In this solution, the health status of the storage unit is determined based on the first alarm parameter and the first alarm threshold. The health status of each storage unit can be judged according to the number of consecutive reads of the storage unit, so that the control chip can grasp the status of the hard disk in real time according to the health status of the above storage unit, generate alarm information of the hard disk, and improve the timeliness of the hard disk health warning.

[0012] In some embodiments, the health status of the logical block is determined based on the first alarm parameter and the first alarm threshold, and then includes: if the first alarm parameter of the first logical block is greater than the first alarm threshold, migrating the data in the first logical block to the second logical block; wherein the first logical block is any logical block among the multiple logical blocks in the hard disk; and the second logical block is a logical block among the multiple logical blocks in the hard disk except the first logical block.

[0013] In some embodiments, the mathematical expressions of the first alarm parameter and the first alarm include:

[0014]

[0015] Thresh1=e1*100%

[0016] Wherein, Value represents the first alarm parameter, D1 is the number of consecutive reads during the current consecutive read operation, R1 is the read disturbance threshold, Thresh1 is the first alarm threshold, and e1 is the first alarm constant.

[0017] In this solution, when the first alarm parameter of any logical block is greater than the first alarm threshold, it means that read interference is likely to occur in the logical block. By timely migrating the data in the logical block to other logical blocks, the risk of data loss in the hard disk due to read interference is avoided.

[0018] In some embodiments, the step of obtaining the number of consecutive reads of the storage unit in the hard disk further includes: determining a second alarm parameter of the logical block in the hard disk according to the number of consecutive reads of the logical block in the hard disk; the second alarm parameter indicates a growth trend of the number of consecutive reads in the logical block; determining a health status of the logical block according to the second alarm parameter and a second alarm threshold; the second alarm threshold is a percentage threshold of a growth rate of the number of consecutive reads of the storage unit during two adjacent consecutive read operations preset by the hard disk; if the second alarm parameter of the third logical block is greater than the second alarm threshold, migrating the data in the third logical block to the fourth logical block; wherein the third logical block is any one of the multiple logical blocks in the hard disk; and the fourth logical block is a logical block other than the third logical block among the multiple logical blocks in the hard disk.

[0019] In this solution, when the second alarm parameter of any logical block is greater than the second alarm threshold, it means that the number of consecutive reads in the logical block is increasing rapidly. By timely migrating the data in the logical block to other logical blocks, the risk of read interference in the logical block is avoided.

[0020] In some embodiments, the storage unit is each page in a logical block, and obtaining the number of consecutive reads in the storage unit in the hard disk includes: obtaining the number of consecutive reads of pages in the logical block in the hard disk.

[0021] In some embodiments, determining the health status of the storage unit based on the number of consecutive reads of the storage unit in the hard disk includes: determining a first alarm parameter of the page of the logical block in the hard disk based on the number of consecutive reads of the page of the logical block in the hard disk; the first alarm parameter is a ratio of the number of consecutive reads to a read interference threshold, and the read interference threshold is a threshold of read interference of the page preset by the hard disk; determining the health status of the hard disk based on the first alarm parameter and the first alarm threshold; the first alarm threshold is a percentage value of the maximum number of read interferences preset by the hard disk to the read interference threshold.

[0022] In this solution, users can view the health status of pages in the logical blocks of the hard disk through the number of consecutive reads of the pages in the logical blocks, and perform data migration in time to avoid data loss. This improves the accuracy of the hard disk health warning.

[0023] In some embodiments, the step of determining the alarm information of the hard disk based on the health status of the storage unit further includes: determining the alarm information of the hard disk based on the health status of the storage unit; wherein the alarm information includes an alarm level of the alarm information; and recording the alarm information and / or sending the alarm information to a user based on the alarm level of the alarm information.

[0024] In this solution, the alarm information of the hard disk is determined by the health status of the storage unit, and the user is warned based on the different alarm levels in the alarm information. This can help the user understand the current health status of the hard disk in real time and provide corresponding alarm prompt information, thereby increasing the service life of the hard disk.

[0025] In a second aspect, the present application provides a hard disk, which includes a memory and a control chip. The memory stores a computer program that can be run on the control chip. When the control chip executes the computer program, the health warning method of the hard disk is implemented.

[0026] In a third aspect, the present application provides a computing device, comprising a memory, a processor, and the hard disk; wherein the memory is used to store program instructions; the processor is used to execute the program instructions so that the computing device executes the hard disk health warning method such as the above-mentioned hard disk on the hard disk.

[0027] It should be understood that the beneficial effects achieved by the technical solutions of the second to third aspects of the embodiments of the present application and the corresponding possible implementation methods can be referred to the above-mentioned technical effects of the first aspect and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 It is a schematic diagram of an interactive scenario of hard disk health status detection provided in an embodiment of the present application;

[0029] Figure 2 It is a schematic diagram of the structure of a computing device;

[0030] Figure 3 It is a schematic diagram of the structure of the hard disk;

[0031] Figure 4 It is a module diagram of the software program that controls the chip;

[0032] Figure 5 It is a module diagram of a software program of a processor;

[0033] Figure 6 It is a flowchart of a hard disk health warning method provided by an embodiment of the present application;

[0034] Figure 7 It is a schematic diagram of the number of read disturbances of each page in the storage unit;

[0035] Figure 8 It is another structural diagram of a computing device;

[0036] Fig. 9 It is a structural schematic diagram of a hard disk provided in an embodiment of the present application;

[0037] Fig.10 It is a structural diagram of a computing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0039] In order to facilitate understanding of the technical solution of the present application, the relevant terms involved in this article are explained below.

[0040] SMART (Self-Monitoring Analysis and Reporting Technology) is a self-analysis detection technology for disks. When the hard disk is running, SMART will record the operating parameters of the hard disk. When the system detects abnormal conditions in the operating parameters, it will automatically warn the user and repair the hard disk. If the abnormal conditions of the hard disk are beyond the system's repairable range, the system will also prevent further writing of data to the erroneous sectors of the hard disk to prevent data loss. The above operating parameters usually include the hard disk model, capacity, temperature, density, sectors, seek time, transmission, bit error rate, etc.

[0041] Solid State Disk (SSD), composed of a control unit and a storage unit, is widely used in many fields such as industrial control, video surveillance, network monitoring, network terminals, navigation equipment, etc. Compared with mechanical hard disks, solid state drives have higher read and write speeds. Common solid state drives use SATA-III interface, PCIe x8 or mSATA, M.2, ZIF, IDE, U.2, CF, CFast and other interfaces. The above-mentioned control unit usually includes a control chip and a cache chip, and the above-mentioned storage unit usually includes Nand Flash and Nor Flash.

[0042] Nand Flash is a non-volatile memory that uses floating gate transistors. Nand Flash is internally distributed in the layers of core (LUN), plane (Plane), physical block (PB, PhysicalBlock), page (Page), and floating gate transistors. Among them, all pages in the physical block share a substrate, so when the Nand Flash performs an erase operation, the physical block is used as the minimum granularity. All floating gate transistors in the page share a word line, so when the Nand Flash performs a write operation, the page is used as the minimum granularity.

[0043] A logical block (LB) usually refers to an abstract data storage unit of a storage device pointed to by the address of a logical block. The logical block provides an abstraction layer for the operating system through the FTL table, so that the operating system does not need to care about the physical characteristics of the storage device and can directly access data through the logical address.

[0044] FTL table (Flash Translation Layer Table), the FTL table maps the logical block address (LBA, LogicalBlock Adress) to the physical block address (PBA, PhysicalBlock Adress). Because the NAND flash memory of the SSD is erased and written in units of physical blocks, a mapping table is needed to track the actual physical location of the data. The FTL table includes a page mapping table (PMT, Page Map Table) for mapping each logical page to a physical page, and a block mapping table (BMT, Block Map Table) for mapping the entire logical block to a physical block.

[0045] Read disturb, as mentioned above, when reading a page in the physical block corresponding to the logical block, since all pages in the physical block share a substrate, when performing a read operation on a page, it is equivalent to adding an electric field on all pages, which will interfere with other pages, thereby causing the data in other pages to be modified. If the read disturb is serious, it will cause data loss and accelerate the consumption of the hard disk life, and accelerate the occurrence of hard disk failure.

[0046] In the related hard disk health warning technology, the manufacturer can set the hard disk read disturbance threshold, and before a certain logical block of the hard disk is about to reach the above read threshold, migrate the data in the corresponding logical block to a new logical block. For example, the read disturbance threshold can be the number of read operations that a physical block in NAND flash memory can withstand, and exceeding this number may cause data corruption or loss.

[0047] Before the hard disk reaches the read disturbance threshold, the above hard disk health warning technology cannot accurately and precisely predict the health status of the hard disk, and at the same time, it is also impossible to formulate a corresponding maintenance strategy for the hard disk.

[0048] In order to implement early warning of the health status of a hard disk, the present application provides a hard disk health warning method. The method obtains the number of consecutive reads of each storage unit in the hard disk, and determines the health status of the storage unit according to the number of consecutive reads of the storage unit in the hard disk. The alarm level and alarm information of the hard disk are determined according to the health status of the storage unit, and a maintenance strategy for the hard disk is formulated according to different alarm levels. Compared with a single early warning of the health status of the hard disk based on the alarm threshold set by the manufacturer, this method can warn the user according to different alarm levels, can help the user to grasp the current health status of the hard disk in real time and provide corresponding alarm prompt information, thereby increasing the service life of the hard disk and reducing the risk of data loss in the hard disk.

[0049] In order to facilitate understanding of the technical solution of the present application, an application scenario of an embodiment of the present application is first introduced below.

[0050] For example, Figure 1 The diagram shows an interactive scenario diagram of hard disk health status detection provided by an embodiment of the present application. Figure 1 As shown, the computing device 200 includes an alarm information page 201 , and the user 100 can interact with the computing device 200 through the alarm information page 201 .

[0051] Specifically, the computing device 200 includes a processor 210 and a hard disk 240. The hard disk 240 includes a control chip 242. When the computing device 200 is running, the processor 210 is used to send a query instruction to the hard disk 240. The control chip 242 sends the alarm information of the hard disk 240 to the processor 210 in response to the query instruction.

[0052] The alarm information of hard disk 240 includes the ratio of the number of consecutive reads of each storage unit in hard disk 240 to the read interference threshold (first alarm parameter), the first alarm threshold, the growth trend of the number of consecutive reads in the logical block (second alarm parameter), the second alarm threshold, the historical number of consecutive reads and the health status.

[0053] Next, the continuous read operation, continuous read times, read disturbance threshold, first alarm parameter, first alarm threshold, second alarm parameter, second alarm threshold, historical continuous read times and health status of each storage unit in hard disk 240 are explained through the following content.

[0054] Continuous read operations refer to the number of consecutive read operations that occur on a storage unit. When a write operation or erase operation occurs, the previous number of consecutive read operations will be cleared and the count will start again. Indicatively, the following consecutive operations occur on a certain storage unit: write operation, read operation, read operation, read operation, read operation, read operation, read operation, erase operation; in this example, the count starts from the first read operation and ends at the last erase operation, and the number of consecutive read operations is 6.

[0055] The number of consecutive reads refers to the number of consecutive read operations that occur on a storage unit. When a write or erase operation occurs, the previous number of consecutive reads is cleared and the count starts again.

[0056] The read disturbance threshold is used to indicate the threshold of the number of read disturbances of each storage unit preset in the hard disk 240. When the number of consecutive reads of a certain logical block reaches the read disturbance threshold, it indicates that there is a risk of data loss in the current storage unit. In some possible implementations, the read disturbance threshold is obtained by the hard disk manufacturer through stress testing.

[0057] The first alarm parameter is used to indicate the ratio of the number of consecutive reads of a certain storage unit to a read disturbance threshold.

[0058] The first alarm threshold refers to the percentage threshold of the maximum number of consecutive reads of the storage unit preset by the hard disk. When the number of consecutive reads of a certain logical block reaches the first alarm threshold, the data in the logical block must be migrated to a new logical block.

[0059] The second alarm parameter is used to indicate the growth trend of the number of consecutive read operations in a certain storage unit during two adjacent consecutive read operations.

[0060] The second alarm threshold is used to represent the percentage threshold of the growth rate of the number of consecutive read operations of a storage unit during two adjacent consecutive read operations preset by the hard disk. When the growth trend of the number of consecutive read operations of a storage unit reaches the second alarm threshold, the data in the storage unit must be migrated to a new storage unit.

[0061] The continuous read operation period refers to a read operation period in which the number of continuous reads is greater than or equal to a preset value. The preset value may be 2, or other values, which are not limited here.

[0062] Indicatively, assuming that the preset value is 2, the following consecutive operations occur on a certain storage unit: write operation 1, read operation, read operation, read operation, read operation, read operation, write operation 2, read operation, read operation, read operation, and erase operation 1. The six read operations between write operation 1 and write operation 2 are regarded as a continuous read operation period; the three read operations between write operation 2 and erase operation 1 are regarded as another continuous read operation period.

[0063] The historical continuous read count is used to indicate the maximum continuous read count generated in a storage unit of the hard disk 240 .

[0064] The health state is determined according to the ratio of the first alarm parameter of the storage unit to the alarm threshold. In some possible implementations, the health state of the storage unit can be set to "good", "normal" and "poor" according to the size of the ratio of the first alarm parameter to the alarm threshold. In some possible implementations, the processor 210 can predict the possibility of read disturbance of any storage unit through the health state of the storage unit.

[0065] The processor 210 determines the alarm level of the hard disk 240 according to the health status of each storage unit in the above alarm information; and according to the alarm level of the hard disk 240, records the alarm information of the hard disk 240 and / or sends the above alarm information to the user 100.

[0066] The user 100 may perform corresponding maintenance measures on the hard disk 240 according to the above prompt information.

[0067] Next, through the following content Figure 1 200 is shown in FIG.

[0068] For example, Figure 2 The structure diagram of the computing device is shown in FIG. Figure 2 As shown, the computing device 200 includes a processor 210, a memory 220, a port 230, and a hard disk 240. The hard disk 240 includes an upstream port 241, a control chip 242, a memory 243, and a storage medium 244. The processor 210 and the memory 220 are connected to each other, and are connected to the control chip 242 through the port 230 and the upstream port 241 of the hard disk 240. The control chip 242 is connected to the memory 243 and the storage medium 244.

[0069] In addition to writing and reading data to the hard disk 240 , the processor 210 is also used to send a query instruction about the health status of the hard disk 240 to the control chip 242 to obtain the alarm information returned by the control chip 242 .

[0070] In some possible implementations, the query instruction sent by the processor 210 also includes a query instruction for other operating parameters of the hard disk 240, such as a query instruction for parameters related to the hard disk model, capacity, temperature, density, sector, seek time, transmission, and bit error rate. Accordingly, the control chip 242 can return parameters related to the hard disk model, capacity, temperature, density, sector, seek time, transmission, and bit error rate to the processor 210.

[0071] The memory 220 is a memory device of the computing device 200 and can be used to store computer program instructions, including a computer operating system (OS) and various programs and data.

[0072] In addition to executing the actual reading and writing of data to the hard disk 240 and executing the data recovery and wear leveling algorithms, the control chip 242 is also used to obtain the number of consecutive reads in the storage medium 244 according to a preset time. The control chip 242 can determine the alarm information of the hard disk 240 according to the above-mentioned number of consecutive reads, as well as the preset read interference threshold and the first alarm threshold of the hard disk 240.

[0073] It is worth noting that when the first alarm parameter of any storage unit of the hard disk 240 is greater than the first alarm threshold, or when the second alarm parameter of any storage unit of the hard disk 240 is greater than the second alarm threshold, the control chip 242 can also perform data relocation operations according to the health status of the storage unit of the hard disk 240.

[0074] The memory 243 is a memory device of the control chip 242 and can be used to store program instructions and data of the control chip 242 .

[0075] The storage medium 244 is the storage medium of the hard disk 240 . The usage status of each storage unit in the storage medium 244 determines the health and service life of the hard disk 240 , and also directly affects the usage performance of the hard disk 240 .

[0076] Next, through the following content Figure 2 The hard disk 240 shown on the right is introduced.

[0077] For example, Figure 3 The diagram shows the structure of the hard disk. Figure 3 As shown on the right, the storage medium 244 is distributed according to the levels of core (LUN), plane (Plane), physical block (PB, Physical Block), page (Page), and floating gate transistor.

[0078] Specifically, taking core 0 as an example, core 0 includes plane 0 and plane 1, physical blocks 0 to 1023 are distributed on plane 0, and any physical block among physical blocks 0 to 1023 includes pages 0 to 254.

[0079] It is understandable that the storage unit in core 1 of the storage medium 244 also includes the same distribution hierarchy.

[0080] As mentioned above, any physical block in the hard disk shares a substrate. When reading page 1 in physical block 0, a Vref voltage needs to be added to the word line control level of page 1, and a Vpass voltage needs to be added to all word line control electrodes of page 0, page 2 to page 254 to ensure that the transistors in page 0, page 2 to page 254 are all turned on; wherein, the Vref voltage is much smaller than the Vpass voltage, therefore, an electric field will be formed between the Vref voltage and the Vpass voltage.

[0081] When performing a read operation on page 1, some free electrons will be sucked into the transistors in page 0, page 2 to page 254, causing the data state in page 0, page 2 to page 254 to change. Each change in the data state is the number of consecutive reads, which is calculated by Figure 3 The control chip 242 on the left performs recording.

[0082] When the read operation of page 1 is completed, the Vpass voltage of all word line control electrodes of the aforementioned pages 0, 2 to 254 will be released, the data status of pages 0, 2 to 254 will no longer change, and the number of consecutive reads of each page in physical block 0 will no longer increase.

[0083] It is worth noting that the number of consecutive reads of each page in a logical block will be cleared when a write operation is performed on the page, and the number of consecutive reads of a logical block will be cleared when a write operation or an erase operation is performed on the logical block.

[0084] As mentioned above, the FTL table can map the logical block address to the physical block address. In the following content, the physical block corresponding to the logical block is referred to as the logical block. For the same reason, in the following content, the physical page corresponding to the logical page is referred to as the page.

[0085] It is worth noting that Figure 3 The hard disk structure shown is only for the purpose of facilitating the understanding of the technical solution of the present application. In actual implementation, the hard disk 240 may have another specific structure, and is not intended to limit the present application.

[0086] By way of example and not limitation, Figure 3 The storage medium 244 shown can be NandFlash or NorFlash. In other words, the present application does not limit the specific type of the storage medium 244.

[0087] As mentioned above, the memory 243 is used to store the software program of the control chip 242. The software program can determine the alarm information of the hard disk 240 when loaded by the control chip 242.

[0088] For example, Figure 4 The module diagram of the software program for controlling the chip is shown in FIG. Figure 4As shown, the software program of the control chip 242 includes a read disturbance recording module a and a read disturbance calculation module b.

[0089] The read disturbance recording module a is used to obtain the number of consecutive reads of each storage unit in the current read operation period from the storage medium 244 of the hard disk 240 .

[0090] Exemplarily, when any logical block in the storage medium 244 is used as a storage unit, the read disturbance recording module a is used to obtain the number of consecutive reads of the logical block from any logical block in the hard disk.

[0091] When any page in the logical block of the storage medium 244 is used as a storage unit, the read disturbance recording module a is used to obtain the number of consecutive reads of the page from the page in the logical block of the hard disk.

[0092] The read disturbance recording module a is further used to send the number of consecutive reads of each storage unit and the corresponding logical address of the logical block or page to the read disturbance calculation module b.

[0093] The read interference calculation module b records the read interference threshold and the first alarm threshold of the hard disk 240, and is used to receive the number of consecutive reads of each storage unit input by the read interference recording module a, and determine the health status of each storage unit based on the ratio of the above-mentioned consecutive read times to the read interference threshold (the first alarm parameter) and the first alarm threshold, and generate alarm information of the hard disk 240 according to the health status of the above-mentioned storage units for query by the processor 210.

[0094] The read interference calculation module b also records the second alarm threshold, which can determine the second alarm parameter of each storage unit based on the number of continuous reads in each storage unit of the storage medium 244 during the current continuous read operation and the number of continuous reads in each storage unit of the storage medium 244 during the previous continuous read operation.

[0095] The read disturbance calculation module b determines the health status of each storage unit according to the second alarm parameter and the second alarm threshold of each storage unit, and generates alarm information of the hard disk 240 according to the health status of each storage unit for query by the processor 210.

[0096] The read disturbance calculation module b may also count the number of consecutive reads of each storage unit of the storage medium 244 to obtain the historical number of consecutive reads of each storage unit.

[0097] As mentioned above, the memory 220 is used to store the software program of the processor 210. When the software program is loaded by the processor 210, the alarm information of the hard disk 240 can be obtained from the control chip 242 according to the preset time, and the alarm level of the hard disk 240 can be determined according to the health status of each storage unit in the alarm information. And according to the alarm level of the hard disk 240, the alarm information of the hard disk 240 is recorded and / or the above alarm information is sent to the user 100.

[0098] For example, Figure 5 The module diagram of the software program of the processor is shown as follows. Figure 5 As shown, the software program of the processor 210 includes an alarm information processing module 111 and an alarm information output module 112 .

[0099] The alarm information processing module 111 is used to send a query instruction to the control chip 242 according to a preset time, receive the alarm information of the hard disk 240 returned by the control chip 242, and determine the alarm level of the hard disk 240 according to the health status of each storage unit in the alarm information.

[0100] There are two specific cases: when the health status of the storage unit is "normal", the alarm level of the hard disk 240 is "minor". When the health status of the storage unit is "poor", the alarm level of the hard disk 240 is "urgent".

[0101] At the same time, the alarm information processing module 111 is also used to generate prompt information of the maintenance strategy according to the alarm level of the hard disk 240, and the user 100 can execute the corresponding maintenance strategy for the hard disk 240 according to the above prompt information.

[0102] Specifically, when the alarm level is "minor", the alarm information includes a prompt message of "stop hard disk 240 from performing read and write operations"; when the alarm level is "urgent", the alarm information includes a second prompt message of "power off hard disk 240".

[0103] The alarm information processing module 111 is further configured to send the alarm information to the alarm information output module 112 .

[0104] The alarm information output module 112 is used to receive the alarm information input by the alarm information processing module 111 , and input the alarm information into the corresponding field in the alarm information page 201 for the user 100 to query.

[0105] Specifically, the alarm information page 201 includes a first alarm parameter field, a first alarm threshold field, a second alarm parameter field, a second alarm threshold field, a historical continuous reading times field, a health status field, and an alarm prompt information field.

[0106] The content in the alarm prompt information field is determined according to the alarm level, as follows.

[0107] When the alarm level is "minor", the alarm information output module 112 of the processor 210 will input a prompt message of "stop the hard disk 240 from performing read and write operations" into the alarm prompt message field;

[0108] When the alarm level is “urgent”, the alarm information output module 112 of the processor 210 will input a prompt message of “power off the hard disk 240 ” into the alarm prompt information field, and actively send the current alarm information to the user 100 .

[0109] It is understandable that the user 100 can also view the current health status of each storage unit of the hard disk 240 in real time through the alarm information page 201 provided by the processor 210.

[0110] By way of example and not limitation, the processor 210 may store the field information in the alarm information page in the memory 220, or may store the field information in the above alarm information page in an associated database. The present application does not limit the storage method of the alarm information.

[0111] By way of example and not limitation, the alarm information page 201 provided by the processor 210 may be an information prompt page based on SMART, or a log information prompt page provided by the manufacturer, or a system prompt box of the computing device 200; when the alarm level is "urgent", the alarm message sent by the processor 210 to the user 100 may be sent by email, or by SMS, internal station letter, WeChat message, or DingTalk message. In other words, the embodiments of the present application do not specifically limit the specific types of the alarm information page 201 and the alarm message.

[0112] By way of example and not limitation, the computing device 200 disclosed in the embodiments of the present application may specifically be a server, such as a central server or an edge server. In some implementations, the computing device 200 may also be a terminal device such as a desktop computer, a laptop computer, or a smart phone. In other words, the embodiments of the present application do not specifically limit the specific type of the terminal 100.

[0113] Next, based on the above description, a hard disk health warning method provided by the embodiment of the present application is introduced. It can be understood that the method is proposed based on the above description, and part or all of the content of the method can refer to the above description.

[0114] See also Figure 6 , Figure 6The figure shows a flow chart of a hard disk health warning method provided by an embodiment of the present application. It is worth noting that the hard disk health warning method can be performed by Figure 2 The control chip 242 of the hard disk 240 shown in the figure can also be implemented by the processor 210. Taking the control chip 242 as an example, the method implements the health status warning of the hard disk 240 through steps S10 to S30.

[0115] S10: Obtain the number of consecutive reads of the storage unit in the hard disk.

[0116] As mentioned above, the control chip 242 can obtain the number of consecutive reads of any storage unit in the hard disk 240 .

[0117] The continuous read count refers to the number of continuous read operations that occur on a storage unit. When the storage unit of the hard disk 240 is a page in a logical block, the control chip 242 can obtain the continuous read count of any page in the logical block in the hard disk 240.

[0118] For example, Figure 7 FIG. 1 is a schematic diagram showing the number of consecutive reads of each storage unit in the storage unit, such as Figure 7 As shown on the upper right side, plane 0 of core 0 includes logical blocks 0 to 1023, and any logical block includes pages 0 to 254.

[0119] The control chip 242 can obtain from page 0 of the logical block 0 that the number of continuous reads of the page during the current continuous read operation of the logical block 0 is 490,000 times, and the number of continuous reads during the previous continuous read operation is 420,000 times;

[0120] The control chip 242 can obtain from page 1 of the logical block 0 that the number of continuous reads of the page during the current continuous read operation of the logical block 0 is 670,000 times, and the number of continuous reads during the previous continuous read operation is 660,000 times;

[0121] The control chip 242 can obtain from the page 254 of the logical block 0 that the number of continuous reads of the page during the current continuous read operation of the logical block 0 is 370,000 times, and the number of continuous reads during the previous continuous read operation is 420,000 times.

[0122] The control chip 242 can obtain from page 0 of the logic block 1 that the number of continuous reads of the page during the current continuous read operation of the logic block 1 is 740,000 times, and the number of continuous reads during the previous continuous read operation is 690,000 times;

[0123] The control chip 242 can obtain from page 1 of the logic block 1 that the number of continuous reads of the page during the current continuous read operation of the logic block 1 is 880,000 times, and the number of continuous reads during the previous continuous read operation is 840,000 times;

[0124] The control chip 242 can obtain from the page 254 of the logical block 1 that the number of continuous reads of the page during the current continuous read operation of the logical block 1 is 340,000 times, and the number of continuous reads during the previous continuous read operation is 300,000 times.

[0125] When the storage unit of the hard disk 240 is any logical block in the storage medium 244 , the control chip 242 may obtain the number of consecutive reads of any logical block among the plurality of logical blocks in the hard disk 240 .

[0126] Please continue reading Figure 7 At the lower right side, plane 1 of core 1 also includes logical blocks 0 to 1023, and any logical block includes pages 0 to 254.

[0127] In some possible implementations, in order to improve the accuracy of the health warning of the hard disk, the number of consecutive reads of any logical block can be set to the sum of the number of consecutive reads of each page in the logical block.

[0128] For example, the control chip 242 may obtain from the logic block 0 that during the current continuous read operation, all the continuous read times in pages 0 to 254 in the logic block is 680,000 times, and that during the previous continuous read operation, all the continuous read times in pages 0 to 254 is 630,000 times.

[0129] In other possible implementations, in order to improve the timeliness of the hard disk health warning and reduce the computing pressure of the control chip 242, the number of consecutive reads of any logical block can be set to the maximum value of the number of consecutive reads in pages 0 to 254 within the logical block.

[0130] For example, the control chip 242 may obtain from the page 254 of the logic block 1 that the number of continuous reads of the logic block during the current continuous read operation is 360,000 times, and the number of continuous reads during the previous continuous read operation is 350,000 times.

[0131] The control chip 242 can obtain from the page 254 of the logic block 1 that the number of continuous reads of the logic block during the current continuous read operation is 870,000 times, and the number of continuous reads during the previous continuous read operation is 760,000 times.

[0132] In some possible implementations, the control chip 242 may count the number of continuous reads of any storage unit during multiple continuous read operations to obtain a historical number of continuous reads, wherein the historical number of continuous reads is used to represent the maximum value of the number of continuous reads generated during all continuous read operations in each storage unit of the hard disk 240.

[0133] By obtaining the number of continuous reads of each storage unit during the current continuous read operation of the hard disk and the previous continuous read operation through the control chip 242, the health status of the hard disk 240 can be grasped in real time.

[0134] S20: Determine the health status of the storage unit in the hard disk according to the number of consecutive reads of the storage unit.

[0135] The control chip 242 may determine the health status of the hard disk 240 based on the number of consecutive reads of each storage unit obtained in step S10 .

[0136] First, the control chip 242 determines a first alarm parameter of each storage unit based on the number of consecutive reads of each storage unit and a read disturbance threshold.

[0137] Then, the control chip 242 determines the health status of each storage unit of the hard disk 240 according to the first alarm parameter and the first alarm threshold.

[0138] As mentioned above, the read disturbance threshold is used to indicate the threshold of the number of read disturbances of each storage unit preset in the hard disk 240. When the number of consecutive reads of a certain logical block reaches the read disturbance threshold, it indicates that there is a risk of data loss in the current storage unit. The read disturbance threshold can be preset by the manufacturer or set by the processor 210, and this application does not limit this.

[0139] The first alarm parameter is used to indicate the ratio of the number of consecutive reads of a storage unit to the read disturbance threshold.

[0140] The first alarm threshold refers to the percentage threshold of the maximum number of consecutive reads of the storage unit preset by the hard disk. When the number of consecutive reads of a certain logical block reaches the first alarm threshold, the data in the logical block must be migrated to a new logical block.

[0141] Next, the first alarm parameter and the first alarm threshold of the hard disk 240 are described by the following mathematical expressions.

[0142]

[0143] Thresh1=e1*100% (2)

[0144] In the above expression (1), Value represents the first alarm parameter, D1 is the number of consecutive reads during the current consecutive read operation, and R1 is the read disturbance threshold; in the above expression (2), Thresh1 is the first alarm threshold, and e1 is the first alarm constant.

[0145] Exemplarily, the read interference threshold R1 can be set to 1 million times by the processor 210. At this time, the control chip 214 can use the read interference calculation module b to determine the health status of each storage unit in the hard disk 240 according to Thresh1 in formula (2).

[0146] The warning threshold in formula (2) can be set by the processor 210. Exemplarily, when the processor 210 sets e1 to 0.7, the first warning threshold 70% can be obtained.

[0147] Meanwhile, in order to warn the health status of the storage units in the hard disk in stages, the processor 210 can also set e1 to other values to formulate the health status of each storage unit in different stages of the hard disk 240.

[0148] For example, when e1 is set to 0.4, when Value < 40%, the health status of the corresponding storage unit is "good".

[0149] When e1 is set to 0.7, when 40% < Value < 70%, the health status of the corresponding storage unit is "normal".

[0150] When 70% < Value, the health status of the corresponding storage unit is "poor".

[0151] As mentioned above, the read interference threshold R1 can be obtained by the manufacturer through stress testing of the hard disk. R1 can be the maximum number of reads of each storage unit in the hard disk 240. As mentioned above, when the Nand flash memory performs an erase operation, it is performed in units of physical blocks; when the Nand flash memory performs a write operation, it is performed in units of pages. Therefore, according to the two cases where the storage unit is a logical block or a page in the logical block, R1 can be set to different values or the same value, and this application does not make a limitation here.

[0152] The control chip 242 can also determine the second warning threshold of the storage unit according to the continuous read times of the storage unit obtained in step S10.

[0153] First, the control chip 242 determines the second warning parameter of the storage unit based on the continuous read times of the storage unit in the hard disk 240 during the current continuous read operation and the previous continuous read operation.

[0154] Then, the control chip 242 determines the health status of the storage unit in the hard disk 240 according to the second warning parameter and the second warning threshold.

[0155] As mentioned above, the second warning parameter is used to represent the growth trend of the continuous read times in a certain storage unit during two adjacent continuous read operations.

[0156] The second alarm threshold is used to represent the percentage threshold of the growth rate of the number of consecutive read operations of a storage unit during two adjacent consecutive read operations preset by the hard disk. When the growth trend of the number of consecutive read operations of a storage unit reaches the second alarm threshold, the data in the storage unit must be migrated to a new storage unit.

[0157] It is worth noting that the aforementioned storage unit in the hard disk 240 may include all the storage units in the hard disk 240 , or may include one or several storage units in the hard disk 240 .

[0158] Next, the second alarm parameter and the second alarm threshold of the hard disk 240 are described by the following mathematical expressions.

[0159] △Value=(D 1- D0) / D0*100% (3)

[0160] Thresh2=e2*100% (4)

[0161] In the above expression (3), △Value is the second alarm parameter, D1 is the number of continuous reads during the current continuous read count, and D0 is the number of continuous reads during the previous continuous read count; in the above expression (4), Thresh2 is the second alarm threshold, and e2 is the second alarm constant.

[0162] It is understandable that the alarm threshold in formula (2) can be set by the processor 210. For example, when the processor 210 sets e2 to 0.15, the second alarm threshold of 15% can be obtained.

[0163] At the same time, in order to warn the health status of the storage units in the hard disk in stages, the processor 210 can also be used to set e to other values ​​to formulate the health status of each storage unit in the hard disk 240 at different stages.

[0164] For example, if e2 is set to 0.10, when △Value<10%, the health status of the corresponding storage unit is "good";

[0165] Set e2 to 0.15. When 10%<△Value<15%, the health status of the corresponding storage unit is "normal";

[0166] When 15%<△Value, the health status of the corresponding storage unit is "poor".

[0167] It is worth noting that the values ​​defined by the above alarm thresholds are only for facilitating the understanding of the technical solution of the present application and are not intended to limit the present application. In actual implementation, the alarm thresholds may also be set to other values ​​to obtain different health states of the storage unit.

[0168] As mentioned above, the health status of a storage unit is used to predict the possibility of read interference in the storage unit. The control chip 242 can determine the health status of the storage unit according to the number of consecutive reads of the storage unit during different consecutive read times, including two situations: one, the health status determined according to the first alarm parameter and the first alarm threshold of each storage unit; two, the health status determined according to the second alarm parameter and the second alarm threshold of each storage unit. The control chip 242 can select one health status for judgment, or it can make a judgment based on a combination of two health statuses. In order to improve the accuracy of the health warning of the hard disk 240, this application combines the two health statuses for explanation.

[0169] Please continue reading Figure 7 ,like Figure 7 As shown on the left side, the anti-interference threshold preset in the control chip 242 is 1 million times, and the first alarm threshold set by the processor 210 is 70% and the second alarm threshold is 15%.

[0170] Specifically, in plane 0 of core 0, page 0 of logical block 0 has a continuous read count of 490,000 times, and a continuous read count of 420,000 times during the previous continuous read operation.

[0171] According to formula (1), the first alarm parameter of page 0 of logical block 0 is 49%. At this time, the health status of page 0 of logical block 0 determined according to the first alarm parameter and the first alarm threshold is "normal".

[0172] According to formula (3), the second alarm parameter is 16.6%. At this time, the health status of page 0 of logical block 0 determined according to the second alarm parameter and the second alarm threshold is "poor".

[0173] In plane 0 of core 0, page 1 of logical block 0 has a continuous read count of 670,000 times, and a continuous read count of 660,000 times during the previous continuous read operation.

[0174] According to formula (1), the first alarm parameter of page 0 of logical block 0 is 67%. At this time, the health status of page 0 of logical block 0 determined according to the first alarm parameter and the first alarm threshold is "normal".

[0175] According to formula (3), the second alarm parameter is 1.5%. At this time, the health status of page 0 of logic block 0 determined according to the second alarm parameter and the second alarm threshold is "good".

[0176] In plane 0 of core 0, the number of consecutive reads of page 254 of logical block 0 is 370,000 times, and the number of consecutive reads during the previous consecutive read period is 420,000 times.

[0177] According to formula (1), the first alarm parameter of page 254 of logical block 0 is 37%. At this time, the health status of page 0 of logical block 0 determined according to the first alarm parameter and the first alarm threshold is "good".

[0178] According to formula (3), the second alarm parameter is -11.9%. At this time, the health status of page 0 of logical block 0 determined according to the second alarm parameter and the second alarm threshold is "good".

[0179] In plane 0 of core 0, the number of consecutive reads of page 0 of logical block 1 is 740,000 times, and the number of consecutive reads during the previous consecutive read operation is 690,000 times.

[0180] According to formula (1), the first alarm parameter of page 0 of logical block 1 is 74%. At this time, the health status of page 0 of logical block 0 determined according to the first alarm parameter and the first alarm threshold is "poor".

[0181] According to formula (3), the second alarm parameter is 7.2%. At this time, the health status of the logic block 0 determined according to the second alarm parameter and the second alarm threshold is "good".

[0182] In plane 0 of core 0, the number of consecutive reads of page 1 of logical block 1 is 880,000 times, and the number of consecutive reads during the previous consecutive read operation is 840,000 times.

[0183] According to formula (1), the first alarm parameter of page 0 of logical block 1 is 88%. At this time, the health status of page 0 of logical block 0 determined according to the first alarm parameter and the first alarm threshold is "poor".

[0184] According to formula (3), the second alarm parameter is 2.3%. At this time, the health status of the logic block 0 determined according to the second alarm parameter and the second alarm threshold is "good".

[0185] In plane 0 of core 0, the number of consecutive reads of page 254 of logical block 1 is 340,000 times, and the number of consecutive reads during the previous consecutive read operation is 300,000 times.

[0186] According to formula (1), the first alarm parameter of page 254 of logical block 1 is 34%. At this time, the health status of page 0 of logical block 0 determined according to the first alarm parameter and the first alarm threshold is "good".

[0187] According to formula (3), the second alarm parameter is 13.3%. At this time, the health status of page 0 of logical block 0 determined according to the second alarm parameter and the second alarm threshold is "normal".

[0188] In plane 0 of core 0, when the health status of any page in logical block 0 and / or logical block 1 is "poor", the control chip 242 can read the data in the page with the "poor" health status and then write the data in the page to Figure 7 Any page of pages 0-254 of the logical block 1024 shown. In some possible implementations, the control chip 242 can also read back the written data and rewrite it into the page whose health status is "poor".

[0189] It is worth noting that when the health status of a page of any logical block in the hard disk 240 is "poor", taking logical block 0 as an example, the data in logical block 0 can also be migrated to logical block 1024 through the control chip 242. Then the data in logical block 1024 is read back and rewritten to logical block 0.

[0190] In plane 1 of core 1, the number of consecutive reads of logical block 0 is 680,000 times, and the number of consecutive reads during the previous consecutive read operation is 630,000 times.

[0191] According to formula (1), the first alarm parameter of logic block 1 is 68%. At this time, the health status of logic block 0 determined according to the first alarm parameter and the first alarm threshold is "normal".

[0192] According to formula (3), the second alarm parameter is 7.9%. At this time, the health status of the logic block 0 determined according to the second alarm parameter and the second alarm threshold is "normal".

[0193] In plane 1 of core 1, the number of consecutive reads of logical block 1 is 360,000 times, and the number of consecutive reads during the previous consecutive read operation is 350,000 times.

[0194] According to formula (1), the first alarm parameter of logic block 1 is 36%. At this time, the health status of logic block 1 determined according to the first alarm parameter and the first alarm threshold is "good".

[0195] According to formula (3), the second alarm parameter is 2.8%. At this time, the health status of the logic block 0 determined according to the second alarm parameter and the second alarm threshold is "good".

[0196] In plane 1 of core 1, the number of consecutive reads of logical block 1024 is 870,000 times, and the number of consecutive reads during the previous consecutive read operation is 760,000 times.

[0197] According to formula (1), the first alarm parameter of logic block 1024 is 87%. At this time, the health status of logic block 0 determined according to the first alarm parameter and the first alarm threshold is "poor". The control chip 242 is required to migrate the data in logic block 1024 to other logic blocks.

[0198] According to formula (3), the second alarm parameter is 14.4%. At this time, the health status of the logic block 0 determined according to the second alarm parameter and the second alarm threshold is "normal".

[0199] In plane 0 of core 0, when the health status of logic block 1024 is “poor”, control chip 242 can read data in logic block 1024 and then write the read data into other logic blocks. In some possible implementations, control chip 242 can also read the written data back and rewrite it into logic block 1024.

[0200] S30: Determine the warning information of the hard disk according to the health status of the storage unit.

[0201] The control chip 242 may determine the warning information of the hard disk 240 based on the health status of each storage unit obtained in step S20 .

[0202] Specifically, in core 0 plane 0, the alarm information 1 determined according to the health status of page 0, page 1 and page 254 of logical block 0 obtained during the current continuous read operation of logical block 0 specifically includes the following contents.

[0203] Alarm information 1: The first alarm parameter of page 0 of logical block 0 is 46%, the second alarm parameter is 16.6%, and the health status is "poor"; the first alarm parameter of page 1 of logical block 0 is 67%, the second alarm parameter is 1.5%, and the health status is "general"; the first alarm parameter of page 254 of logical block 0 is 37%, the second alarm parameter is -11.9%, and the health status is "good".

[0204] As mentioned above, the first alarm threshold and the second alarm threshold are set by the processor 210. Therefore, all the alarm information of the hard disk 240 includes the same information of the first alarm threshold and the second alarm threshold. In some possible implementations, the above alarm information also includes the logical addresses of page 0 of logical block 0, page 1 of logical block 0, and page 254 of logical block 0 in plane 0 of core 0. The first alarm threshold, the second alarm threshold, and the logical address of each storage unit are not described in detail below.

[0205] The warning information 2 determined according to the health status of page 0, page 1 and page 254 of the logical block 1 obtained during the current continuous read operation of the logical block 1 specifically includes the following contents.

[0206] Alarm information 2: The first alarm parameter of page 0 of logical block 1 is 74%, the second alarm parameter is 7.2%, and the health status is "poor"; the first alarm parameter of page 1 of logical block 1 is 88%, the second alarm parameter is 2.3%, and the health status is "poor"; the first alarm parameter of page 254 of logical block 0 is 37%, the second alarm parameter is 13.3%, and the health status is "general".

[0207] Next, in the core 1 plane 1, the alarm information 3 determined according to the health status of the logical block obtained during the current continuous read operation of the logical block 0 specifically includes the following contents.

[0208] Alarm information 3: The first alarm parameter of logical block 0 is 68%, the second alarm parameter is 7.9%, and the health status is "normal".

[0209] The alarm information 4 determined according to the health status of the logical block obtained during the current continuous read times of the logical block 1 specifically includes the following contents.

[0210] Alarm information 4: The first alarm parameter of logical block 1 is 36%, the second alarm parameter is 2.8%, and the health status is "good".

[0211] The warning information 5 determined according to the health status of the logical block obtained during the current continuous read times of the logical block 1024 specifically includes the following contents.

[0212] Alarm information 5: The first alarm parameter of logical block 1 is 87%, the second alarm parameter is 2.8%, and the health status is "poor".

[0213] After the control chip 242 determines the alarm information of the hard disk 240 , the processor 210 may obtain the alarm information of the hard disk 240 by sending a query instruction to the control chip 242 .

[0214] Specifically, first, the processor 210 may send a query instruction to the control chip 242 , and obtain the alarm information 1 , alarm information 2 , alarm information 3 , alarm information 4 , and alarm information 5 returned by the control chip 242 .

[0215] Then, the processor 210 determines the alarm levels of alarm information 1, alarm information 2, alarm information 3, alarm information 4, and alarm information 5 according to the health status of each logical block in the above alarm information.

[0216] Finally, the processor 210 records the alarm information and / or sends the alarm information to the user according to the alarm levels of alarm information 1, alarm information 2, alarm information 3, alarm information 4, and alarm information 5.

[0217] Specifically, the processor 210 determines the alarm level as "urgent" based on the "poor" health status of each logical block in the alarm information 1, so the processor 210 enters the alarm information 1 into the corresponding field in the alarm information page 201. At the same time, the processor 210 also enters the prompt information of "powering off the hard disk 240" in the alarm prompt information field, and then sends the alarm information 2 to the user 100.

[0218] The processor 210 determines the alarm level as "urgent" based on the "poor" health status of each logical block in the alarm information 2. Therefore, the processor 210 inputs the alarm information 1 into the corresponding field in the alarm information page 201. At the same time, the processor 210 also inputs the prompt information of "powering off the hard disk 240" into the alarm prompt information field, and then sends the alarm information 2 to the user 100.

[0219] The processor 210 determines the alarm level as "minor" based on the health status "general" of each logical block in the alarm information 3. Therefore, the processor 210 inputs the alarm information 1 into the corresponding field in the alarm information page 201, and inputs the prompt information of ""Stop the hard disk 240 from performing read and write operations"" in the alarm prompt information field of the alarm information page 201.

[0220] According to the health status of each logical block in the alarm information 4 being “good”, the processor 210 inputs the alarm information 1 into the corresponding field in the alarm information page 201 .

[0221] The processor 210 determines the alarm level as “urgent” based on the “poor” health status of each logical block in the alarm information 5. Therefore, the processor 210 inputs the alarm information 1 into the corresponding field in the alarm information page 201. At the same time, the processor 210 also inputs the prompt information of “powering off the hard disk 240” into the alarm prompt information field, and then sends the alarm information 5 to the user 100.

[0222] Alarm information 1, alarm information 2, alarm information 3, alarm information 4, and alarm information 5 record the specific addresses of the logical blocks where read interference occurs. Therefore, the user 100 can also view the health status of the hard disk 240 in the current period in real time through the alarm information page 201 provided by the processor 210.

[0223] Through the above alarm information, the user 100 can obtain the hard disk health status within a preset time period to avoid the hard disk 240 from having a read disturb storm (a read disturb storm is when multiple read disturbs occur within a certain period of time).

[0224] Alarm information 1, alarm information 2, alarm information 3, alarm information 4, and alarm information 5 also include the historical continuous read times of each storage unit in the hard disk 240. Therefore, the user 100 can also view the historical continuous read times of the hard disk 240 through the alarm information page 201 provided by the processor 210 to verify the health status of the hard disk throughout its life cycle, and to perform data migration in a timely manner to avoid data loss.

[0225] In some possible implementations, in order to increase the service life of the hard disk and reduce the risk of data loss in the hard disk, when the alarm level is "urgent", if the user does not take corresponding maintenance measures within a certain period of time, the processor 210 may also execute the operation of powering off the hard disk 240.

[0226] It is worth noting that when the computing device 200 writes data to the hard disk 240 through multiple threads, the processor 210 can simultaneously obtain multiple alarm information of the hard disk 240 and update the alarm information page 201 according to the alarm levels of the multiple alarm information. This application does not limit this.

[0227] As mentioned above, the hard disk health warning method mentioned above can also be implemented by the processor 210.

[0228] For example, Figure 8 Another schematic diagram of the structure of a computing device is shown. Figure 8 As shown, Figure 2 In comparison, the structure of the computing device 300 has the following differences.

[0229] The computing device 300 includes a hard disk backplane 350, which includes an upstream port 351, a control chip 352, a memory 353, and a downstream port 354. The upstream port 351 is used to connect to the port 330, and the downstream port 354 is used to connect to hard disk 1, hard disk 2, hard disk 3, and hard disk 4.

[0230] In order to improve the early warning efficiency of the hard disk health status, first, the processor 310 obtains the number of consecutive reads of each storage unit in hard disk 1, hard disk 2, hard disk 3, and hard disk 4 through the control chip 352.

[0231] Then, the processor 310 determines the health status of each storage unit in Hard Disk 1 , Hard Disk 2 , Hard Disk 3 , and Hard Disk 4 based on the number of consecutive reads of each storage unit in Hard Disk 1 , Hard Disk 2 , Hard Disk 3 , and Hard Disk 4 .

[0232] Finally, the processor 310 determines the alarm information of Hard Disk 1, Hard Disk 2, Hard Disk 3 and Hard Disk 4 according to the health status of each storage unit in Hard Disk 1, Hard Disk 2, Hard Disk 3 and Hard Disk 4, and records the alarm information of Hard Disk 1, Hard Disk 2, Hard Disk 3 and Hard Disk 4 and / or sends the above alarm information to the user according to the alarm level in the alarm information.

[0233] It is understandable that the size of the sequence number of each step in the above embodiment does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. In addition, in some possible implementations, each step in the above embodiment can be selectively executed according to actual conditions, and can be partially executed or fully executed, which is not limited here.

[0234] The present application provides a hard disk health warning method, which obtains the number of consecutive reads of the storage unit in the hard disk, and determines the health status of the storage unit in the hard disk based on the number of consecutive reads of the storage unit. Determine the alarm information of the hard disk according to the health status of the storage unit. Determine the maintenance strategy of the hard disk according to the alarm level in the alarm information of the hard disk. Compared with the single warning of the health status of the hard disk according to the alarm threshold set by the manufacturer, when the health status of any storage unit is not good, this method can autonomously migrate the data in the storage unit with poor health status to avoid the risk of hard disk data loss. At the same time, it can warn the user according to different alarm levels, which can help the user to grasp the current health status of the hard disk in real time and provide corresponding alarm prompt information, thereby improving the service life of the hard disk.

[0235] The above is the introduction to the health warning method of a hard disk provided in the embodiment of the present application. Next, a hard disk provided in the embodiment of the present application is introduced in combination with the above content.

[0236] For example, Fig. 9 FIG. 1 is a schematic diagram showing the structure of a hard disk provided in an embodiment of the present application. Fig. 9 As shown, the hard disk 240 includes a control chip 241, a memory 242, and a storage medium 243. The memory 242 stores a computer program that can be run on the control chip 241. When the control chip 241 executes the computer program, it can obtain the read interference data of each logic block from the storage medium 243, and determine the alarm information of the hard disk 240 according to the read interference data.

[0237] The above is an introduction to a hard disk provided in an embodiment of the present application. Next, a computing device provided in an embodiment of the present application is introduced in combination with the above content.

[0238] For example, Fig.10FIG. 1 is a schematic diagram of a structure of a computing device provided in an embodiment of the present application. Fig.10 As shown, computing device 200 includes a processor 210 , a memory 220 , and a hard disk 240 .

[0239] The memory 220 is used to store program instructions;

[0240] The processor 210 is used to execute the above program instructions so that the computing device 200 performs the above hard disk health warning method on the hard disk 240.

[0241] The described device embodiments are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

[0242] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using 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 application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage unit or transmitted through the computer-readable storage unit.

[0243] The method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs, or any other form of storage unit known in the art. An exemplary storage unit is coupled to a processor so that the processor can read information from the storage unit and write information to the storage unit. Of course, the storage unit can also be a component of the processor. The processor and the storage unit can be located in an ASIC.

[0244] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A hard disk health warning method, characterized in that: The method comprises: Acquire the number of consecutive reads of a storage unit in the hard disk, where the number of consecutive reads indicates the number of consecutive read operations that occur on the storage unit; Determining the health status of the storage unit in the hard disk according to the number of consecutive reads of the storage unit; the health status indicates the possibility of read disturbance occurring in the storage unit; According to the health status of the storage unit, the alarm information of the hard disk is determined.

2. The method according to claim 1, characterized in that The storage unit is a logic block, and obtaining the number of consecutive reads of the storage unit in the hard disk includes: Obtain the number of consecutive reads of the logical blocks in the hard disk.

3. The method according to claim 2, characterized in that The determining the health status of the storage unit according to the number of consecutive reads of the storage unit in the hard disk includes: Determine a first alarm parameter of the logic block in the hard disk according to the number of consecutive reads of the logic block in the hard disk; the first alarm parameter is a ratio of the number of consecutive reads to a read disturbance threshold, and the read disturbance threshold is a threshold of read disturbance of the logic block preset by the hard disk; The health status of the logic block is determined according to the first alarm parameter and the first alarm threshold; the first alarm threshold is a percentage threshold of the maximum number of consecutive reads of each storage unit preset by the hard disk.

4. The method according to claim 3, characterized in that The step of determining the health status of the logic block according to the first alarm parameter and the first alarm threshold comprises: If the first alarm parameter of the first logical block is greater than the first alarm threshold, migrating the data in the first logical block to the second logical block; The first logical block is any one of the multiple logical blocks in the hard disk; the second logical block is a logical block other than the first logical block among the multiple logical blocks in the hard disk.

5. The method according to claim 2, characterized in that: The step of obtaining the number of consecutive reads of the storage unit in the hard disk further includes: Determining a second alarm parameter of the logic block in the hard disk according to the number of consecutive reads of the logic block in the hard disk; the second alarm parameter indicates a growth trend of the number of consecutive reads in the logic block; Determine the health status of the logic block according to the second alarm parameter and the second alarm threshold; the second alarm threshold is a percentage threshold of the growth rate of the number of consecutive read operations of the storage unit during two adjacent consecutive read operations preset by the hard disk; If the second alarm parameter of the third logical block is greater than the second alarm threshold, migrating the data in the third logical block to the fourth logical block; The third logic block is any one of the multiple logic blocks in the hard disk; and the fourth logic block is a logic block other than the third logic block among the multiple logic blocks in the hard disk.

6. The method according to claim 1, characterized in that The storage unit is each page in the logic block, and obtaining the number of consecutive reads in the storage unit in the hard disk includes: Obtain the number of consecutive reads of pages in a logical block in the hard disk.

7. The method according to claim 6, characterized in that The determining the health status of the storage unit according to the number of consecutive reads of the storage unit in the hard disk includes: Determining a first alarm parameter of a page of a logic block in the hard disk according to the number of consecutive reads of the page of the logic block in the hard disk; the first alarm parameter is a ratio of the number of consecutive reads to a read disturbance threshold, and the read disturbance threshold is a threshold of read disturbance of the page preset by the hard disk; The health status of the hard disk is determined according to the first alarm parameter and the first alarm threshold; the first alarm threshold is a percentage value of a maximum read disturbance number preset for the hard disk and a read disturbance threshold.

8. The method according to claim 1, characterized in that: The step of determining the warning information of the hard disk according to the health status of the storage unit further includes: Determine the alarm information of the hard disk according to the health status of the storage unit; wherein the alarm information includes the alarm level of the alarm information; According to the alarm level of the alarm information, the alarm information is recorded and / or sent to a user.

9. A hard disk, characterized in that: The hard disk includes a memory and a control chip. The memory stores a computer program that can be run on the control chip. When the control chip executes the computer program, the method described in any one of claims 1 to 8 is implemented.

10. A computing device, characterized in that The computing device comprises a memory, a processor and the hard disk as claimed in claim 8; Wherein, the memory is used to store program instructions; The processor is used to execute the program instructions so that the computing device performs the hard disk health warning method as described in any one of claims 1-8 on the hard disk.