Solid state drive over-temperature warning function detection method and related device
Patent Information
- Application Number
- CN202210920058.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-01
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2042-08-01
AI Technical Summary
[0003]当前在操作系统(windows/Linux)的环境下检测超温情况下的smart报警工具效率低下,普遍需要通过长时间大量读写甚至需要温箱在特定的环境温度下才能实现,不但测试时间较长切需要更多的人力准备测试环境,需要在计算机上装系统,跑读写软件,观察温度,而且结果的判断只能依赖人为观察,无法形成比较祥细的合理的日志文件以供后续问题追溯
[0041] The beneficial effects of this invention are as follows: The solid-state drive over-temperature alarm function detection method of this solution can efficiently and comprehensively verify whether the alarm function of the solid-state drive is working properly after over-temperature, and whether it can still work properly after restarting, shutting down, or abnormal power failure after over-temperature. It can also simultaneously test whether the asynchronous over-temperature event function will affect the normal recognition and read/write of the hard drive. It uses a more scientific and comprehensive method to detect the functional module, thereby avoiding the failure of this function during end-user use and the failure to promptly remind users to improve the usage environment and back up data; thus avoiding the solid-state drive exceeding the design temperature limit, which would lead to complete damage to the SSD, data loss, and irreversible damage.
Smart Images

Figure CN115202987B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of solid-state drive (SSD) storage, and in particular to a method and related equipment for detecting an over-temperature alarm function of a solid-state drive. Background Technology
[0002] With the rapid development of SSDs and the further acceleration of silicon-to-magnetic demagnetization, the use of NVMe SSDs has become more widespread. The NVMe specification is also constantly being updated, with new versions making relevant requirements and regulations for asynchronous events under various abnormal conditions. Furthermore, with the advancement of technology and the advent of the big data era, data storage security has become increasingly important. Therefore, the robustness, practicality, and reliability of the SMART (self-monitoring, analysis, reporting technology) function of solid-state drives (SSDs) have become even more crucial.
[0003] Currently, SMART alarm tools for detecting over-temperature conditions in operating system (Windows / Linux) environments are inefficient. They generally require prolonged periods of heavy read / write operations, or even a temperature chamber under specific environmental temperatures. This not only results in lengthy testing times and increased manpower for preparing the test environment—installing the operating system on the computer, running the read / write software, and observing the temperature—but also necessitates relying solely on manual observation to determine the outcome. It fails to generate detailed and reasonable log files for subsequent troubleshooting. Furthermore, it cannot verify whether the asynchronous events triggered by the SSD following the protocol requirements are functioning correctly or interfering with other functions. This requires relying on more expensive equipment, such as protocol analyzers, to observe whether events are triggered, but it cannot verify the robustness of this function according to a specific procedure. Summary of the Invention
[0004] The technical problem to be solved by the present invention is to provide a method and related equipment for detecting the over-temperature alarm function of a solid-state drive.
[0005] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is: a method for detecting over-temperature alarm function of solid-state drive, comprising the following steps:
[0006] S10. After the solid-state drive is powered on, set a temperature threshold below the current temperature value that is triggered when the power is off and is not saved. After the temperature threshold is triggered, restart the solid-state drive to check whether the over-temperature alarm function is normal.
[0007] S20. After the solid-state drive restarts, reset a temperature threshold below the current temperature value that is saved after power failure and can be triggered. After the temperature threshold is triggered, restart the solid-state drive again to check whether the over-temperature alarm function is normal.
[0008] S30. After the solid-state drive restarts, set a temperature threshold below the current temperature value that is triggered when the power is off and will not be saved. After the temperature threshold is triggered, send an asynchronous event request to the solid-state drive and test whether the read and write functions of the solid-state drive are normal.
[0009] Furthermore, step S10 specifically includes,
[0010] S11. After the solid-state drive is powered on, obtain the SMART status of the solid-state drive and confirm whether the SMART status of the solid-state drive is healthy.
[0011] S12. If the SMART status of the solid-state drive is healthy, obtain the current temperature value of the solid-state drive.
[0012] S13. Based on the current temperature value of the solid-state drive, set a temperature threshold that can be triggered below the current temperature value, and set the temperature threshold to not be saved when power is off;
[0013] S14. When the temperature of the solid-state drive is lower than the set temperature threshold, determine whether the temperature threshold has been successfully executed. If it has been successfully executed, confirm that the SMART status of the solid-state drive has changed to a critical warning status.
[0014] S15. If the SMART status of the solid-state drive is in a critical warning state, then restart the solid-state drive;
[0015] S16. After the SSD restarts, retrieve the SSD's SMART status again. If it is in a healthy state, it means that the power failure without saving function is in effect.
[0016] Furthermore, step S20 specifically includes,
[0017] S21. Reset a triggerable temperature threshold below the current temperature value, and save the temperature threshold after power failure.
[0018] S22. When the temperature value of the solid-state drive is lower than the reset temperature threshold, determine whether the temperature threshold has been successfully executed. If it has been successfully executed, confirm that the SMART status of the solid-state drive has changed to a critical warning status.
[0019] S23. If the SMART status of the solid-state drive is in a critical warning state, then restart the solid-state drive;
[0020] S24. After the SSD restarts, retrieve the SSD's SMART status again. If it is in a critical warning state, it means that the power-off save function is effective.
[0021] Furthermore, step S30 specifically includes,
[0022] S31. After the solid-state drive is powered on, obtain the SMART status of the solid-state drive and confirm whether the SMART status of the solid-state drive is healthy.
[0023] S32. If the SMART status of the solid-state drive is healthy, obtain the current temperature value of the solid-state drive.
[0024] S33. Based on the current temperature value of the solid-state drive, set a temperature threshold that can be triggered below the current temperature value, and set the temperature threshold to not be saved when power is off;
[0025] S34. When the temperature value of the solid-state drive is lower than the set temperature threshold, determine whether the temperature threshold has been successfully executed. If it has been successfully executed, confirm that the bit of the solid-state drive's SMART state that changes to the critical warning state is set.
[0026] S35. After the bit in the solid-state drive's SMART state changes to a critical warning state is set, send an asynchronous event request to the solid-state drive.
[0027] S36. Receive the asynchronous event sent back by the solid-state drive and determine whether the type of the asynchronous event is an over-temperature asynchronous event;
[0028] S37. If it is an asynchronous event that exceeds the temperature limit, then clear the asynchronous event count;
[0029] S38. Send a disk recognition command to the solid-state drive;
[0030] S39. If the disk is successfully recognized, perform a random read / write test on the solid-state drive to determine if the random read / write test is normal.
[0031] Furthermore, repeat steps S35-S39 at least 256 times to ensure normal random read / write operation of the hard drive.
[0032] Furthermore, in step S39, a random read / write test is performed on the solid-state drive to determine whether the random read / write test is normal. This specifically includes...
[0033] For random read / write tests of solid-state drives (SSDs), compare the data before and after the random read / write operation. If the data before and after the read / write operation are the same, the read / write operation is abnormal; if the data before and after the read / write operation are different, the data reading is normal.
[0034] Furthermore, the random read / write test time for the solid-state drive was two minutes.
[0035] The present invention also provides a solid-state drive over-temperature alarm function detection device, comprising,
[0036] The power failure non-save test module is used to set a temperature threshold below the current temperature value that can be triggered when the solid-state drive is powered on, and to restart the solid-state drive after the temperature threshold is triggered to check whether the over-temperature alarm function is normal.
[0037] The power-off save test module is used to reset a temperature threshold below the current temperature value that can be triggered for power-off save after the solid-state drive restarts, and to restart the solid-state drive again after the temperature threshold is triggered to check whether the over-temperature alarm function is normal.
[0038] The asynchronous event testing module is used to set a temperature threshold below the current temperature value for the SSD after it restarts, which is triggered when power is lost and not saved. After the temperature threshold is triggered, it sends an asynchronous event request to the SSD and tests whether the read and write functions of the SSD are normal.
[0039] The present invention also provides a computer device, the computer device including a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the solid-state drive over-temperature alarm function detection method as described above.
[0040] The present invention also provides a storage medium storing a computer program, which, when executed by a processor, can implement the solid-state drive over-temperature alarm function detection method as described above.
[0041] The beneficial effects of this invention are as follows: The solid-state drive over-temperature alarm function detection method of this solution can efficiently and comprehensively verify whether the alarm function of the solid-state drive is working properly after over-temperature, and whether it can still work properly after restarting, shutting down, or abnormal power failure after over-temperature. It can also simultaneously test whether the asynchronous over-temperature event function will affect the normal recognition and read / write of the hard drive. It uses a more scientific and comprehensive method to detect the functional module, thereby avoiding the failure of this function during end-user use and the failure to promptly remind users to improve the usage environment and back up data; thus avoiding the solid-state drive exceeding the design temperature limit, which would lead to complete damage to the SSD, data loss, and irreversible damage. Attached Figure Description
[0042] The specific structure of the present invention will now be described in detail with reference to the accompanying drawings.
[0043] Figure 1 This is a flowchart of the solid-state drive over-temperature alarm function detection method according to an embodiment of the present invention;
[0044] Figure 2 This is a block diagram of the solid-state drive over-temperature alarm function detection device according to an embodiment of the present invention;
[0045] Figure 3This is a flowchart of the power failure non-save function test according to an embodiment of the present invention;
[0046] Figure 4 This is a flowchart of the power-off data retention function test according to an embodiment of the present invention;
[0047] Figure 5 This is a flowchart of the asynchronous event function test according to an embodiment of the present invention;
[0048] Figure 6 This is a schematic block diagram of a computer device according to an embodiment of the present invention. Detailed Implementation
[0049] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0050] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.
[0051] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0052] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0053] like Figure 1 The embodiment of the present invention shown is: a method for detecting the over-temperature alarm function of a solid-state drive, including the following steps:
[0054] S10. After the solid-state drive is powered on, set a temperature threshold below the current temperature value that is triggered when the power is off and is not saved. After the temperature threshold is triggered, restart the solid-state drive to check whether the over-temperature alarm function is normal.
[0055] S20. After the solid-state drive restarts, reset a temperature threshold below the current temperature value that is saved after power failure and can be triggered. After the temperature threshold is triggered, restart the solid-state drive again to check whether the over-temperature alarm function is normal.
[0056] S30. After the solid-state drive restarts, set a temperature threshold below the current temperature value that is triggered when the power is off and will not be saved. After the temperature threshold is triggered, send an asynchronous event request to the solid-state drive and test whether the read and write functions of the solid-state drive are normal.
[0057] like Figure 3 As shown, step S10 specifically includes,
[0058] S11. After the solid-state drive is powered on, obtain the SMART status of the solid-state drive and confirm whether the SMART status of the solid-state drive is healthy.
[0059] S12. If the SMART status of the solid-state drive is healthy, obtain the current temperature value of the solid-state drive.
[0060] S13. Based on the current temperature value of the solid-state drive, set a temperature threshold that can be triggered below the current temperature value, and set the temperature threshold to not be saved when power is off;
[0061] S14. When the temperature of the solid-state drive is lower than the set temperature threshold, determine whether the temperature threshold has been successfully executed. If it has been successfully executed, confirm that the SMART status of the solid-state drive has changed to a critical warning status.
[0062] S15. If the SMART status of the solid-state drive is in a critical warning state, then restart the solid-state drive;
[0063] S16. After the SSD restarts, retrieve the SSD's SMART status again. If it is in a healthy state, it means that the power failure without saving function is in effect.
[0064] like Figure 4 As shown, step S20 specifically includes,
[0065] S21. Reset a triggerable temperature threshold below the current temperature value, and save the temperature threshold after power failure.
[0066] S22. When the temperature value of the solid-state drive is lower than the reset temperature threshold, determine whether the temperature threshold has been successfully executed. If it has been successfully executed, confirm that the SMART status of the solid-state drive has changed to a critical warning status.
[0067] S23. If the SMART status of the solid-state drive is in a critical warning state, then restart the solid-state drive;
[0068] S24. After the SSD restarts, retrieve the SSD's SMART status again. If it is in a critical warning state, it means that the power-off save function is effective.
[0069] like Figure 5 As shown, step S30 specifically includes,
[0070] S31. After the solid-state drive is powered on, obtain the SMART status of the solid-state drive and confirm whether the SMART status of the solid-state drive is healthy.
[0071] S32. If the SMART status of the solid-state drive is healthy, obtain the current temperature value of the solid-state drive.
[0072] S33. Based on the current temperature value of the solid-state drive, set a temperature threshold that can be triggered below the current temperature value, and set the temperature threshold to not be saved when power is off;
[0073] S34. When the temperature value of the solid-state drive is lower than the set temperature threshold, determine whether the temperature threshold has been successfully executed. If it has been successfully executed, confirm that the bit of the solid-state drive's SMART state that changes to the critical warning state is set.
[0074] S35. After the bit in the solid-state drive's SMART state changes to a critical warning state is set, send an asynchronous event request to the solid-state drive.
[0075] S36. Receive the asynchronous event sent back by the solid-state drive and determine whether the type of the asynchronous event is an over-temperature asynchronous event;
[0076] S37. If it is an asynchronous event that exceeds the temperature limit, then clear the asynchronous event count;
[0077] S38. Send a disk recognition command to the solid-state drive;
[0078] S39. If the disk is successfully recognized, perform a random read / write test on the solid-state drive to determine if the random read / write test is normal.
[0079] Among them, steps S35-S39 are repeated no less than 256 times to ensure that the hard drive can perform random read and write operations normally.
[0080] In step S39, a random read / write test is performed on the solid-state drive (SSD) to determine whether the random read / write test is normal. This specifically includes...
[0081] To perform random read / write tests on a solid-state drive (SSD), check the address where the data is written. Compare the data before and after the random read / write operation. If the data before and after the read / write are the same, the read / write operation is abnormal; if the data before and after the read / write are different, the data reading is normal.
[0082] The random read / write test of the solid-state drive lasted for two minutes.
[0083] The hardware requirements for the above embodiments are as follows: Solid-state drive under test: a solid-state drive supporting power-loss protection; Computer: a laptop or desktop computer supporting dual hard drive bays; Adapter board: a Ulink M.2 dedicated PSPA adapter board. Software requirements are as follows: Operating system: Windows 10; Testing software: Ulink DriveMaster 2018 NVMe; Test script: a self-written DriveMaster test script.
[0084] This embodiment utilizes Ulink's DriveMaster software to write test scripts to perform checks and tests on this function. By setting a temperature threshold, it simulates the solid-state drive's operating temperature exceeding the set safe temperature and continuously increasing under specific conditions. Then, it checks whether the solid-state drive's SMART status triggers the relevant critical warning messages normally. By sending different settings to simulate a solid-state drive restart, it checks whether the flag is retained or cleared as expected. Then, by simulating the host sending asynchronous event requests to the solid-state drive, it confirms whether the solid-state drive can correctly respond to the asynchronous event of over-temperature. It tests whether the cleared flag and the unclear flag can be handled normally. Finally, it identifies the solid-state drive and performs random read and write tests to verify whether the solid-state drive's functionality is affected.
[0085] The beneficial effects of this invention are as follows: The solid-state drive over-temperature alarm function detection method of this solution can efficiently and comprehensively verify whether the alarm function of the solid-state drive is working properly after over-temperature, and whether it can still work properly after restarting, shutting down, or abnormal power failure after over-temperature. It can also simultaneously test whether the asynchronous over-temperature event function will affect the normal recognition and read / write of the hard drive. This method detects the functional module in a more scientific and comprehensive way, thereby avoiding the failure of the function during end-user use and the failure to promptly remind users to improve the usage environment and back up data. This also avoids the solid-state drive exceeding the design temperature limit, which could lead to complete damage to the SSD, data loss, and irrecoverable damage.
[0086] like Figure 2 As shown, another embodiment of the present invention is: a solid-state drive over-temperature alarm function detection device, comprising,
[0087] The power failure non-save test module 10 is used to set a triggerable temperature threshold below the current temperature value for the solid-state drive after it is powered on, and to restart the solid-state drive after the temperature threshold is triggered to check whether the over-temperature alarm function is normal.
[0088] The power-off save test module 20 is used to reset a temperature threshold below the current temperature value that can be triggered for power-off save after the solid-state drive restarts, and to restart the solid-state drive again after the temperature threshold is triggered to check whether the over-temperature alarm function is normal.
[0089] The asynchronous event testing module 30 is used to set a temperature threshold below the current temperature value for the solid-state drive after it restarts, which is triggered when the power is off and not saved. After the temperature threshold is triggered, it sends an asynchronous event request to the solid-state drive and tests whether the read and write functions of the solid-state drive are normal.
[0090] The power failure non-save test module 10 is used to perform the following steps.
[0091] S11. After the solid-state drive is powered on, obtain the SMART status of the solid-state drive and confirm whether the SMART status of the solid-state drive is healthy.
[0092] S12. If the SMART status of the solid-state drive is healthy, obtain the current temperature value of the solid-state drive.
[0093] S13. Based on the current temperature value of the solid-state drive, set a temperature threshold that can be triggered below the current temperature value, and set the temperature threshold to not be saved when power is off;
[0094] S14. When the temperature of the solid-state drive is lower than the set temperature threshold, determine whether the temperature threshold has been successfully executed. If it has been successfully executed, confirm that the SMART status of the solid-state drive has changed to a critical warning status.
[0095] S15. If the SMART status of the solid-state drive is in a critical warning state, then restart the solid-state drive;
[0096] S16. After the SSD restarts, retrieve the SSD's SMART status again. If it is in a healthy state, it means that the power failure without saving function is in effect.
[0097] The power-off data preservation test module 20 is used to perform the following steps.
[0098] S21. Reset a triggerable temperature threshold below the current temperature value, and save the temperature threshold after power failure.
[0099] S22. When the temperature value of the solid-state drive is lower than the reset temperature threshold, determine whether the temperature threshold has been successfully executed. If it has been successfully executed, confirm that the SMART status of the solid-state drive has changed to a critical warning status.
[0100] S23. If the SMART status of the solid-state drive is in a critical warning state, then restart the solid-state drive;
[0101] S24. After the SSD restarts, retrieve the SSD's SMART status again. If it is in a critical warning state, it means that the power-off save function is effective.
[0102] The asynchronous event testing module 30 is used to perform the following steps:
[0103] S31. After the solid-state drive is powered on, obtain the SMART status of the solid-state drive and confirm whether the SMART status of the solid-state drive is healthy.
[0104] S32. If the SMART status of the solid-state drive is healthy, obtain the current temperature value of the solid-state drive.
[0105] S33. Based on the current temperature value of the solid-state drive, set a temperature threshold that can be triggered below the current temperature value, and set the temperature threshold to not be saved when power is off;
[0106] S34. When the temperature value of the solid-state drive is lower than the set temperature threshold, determine whether the temperature threshold has been successfully executed. If it has been successfully executed, confirm that the bit of the solid-state drive's SMART state that changes to the critical warning state is set.
[0107] S35. After the bit in the solid-state drive's SMART state changes to a critical warning state is set, send an asynchronous event request to the solid-state drive.
[0108] S36. Receive the asynchronous event sent back by the solid-state drive and determine whether the type of the asynchronous event is an over-temperature asynchronous event;
[0109] S37. If it is an asynchronous event that exceeds the temperature limit, then clear the asynchronous event count;
[0110] S38. Send a disk recognition command to the solid-state drive;
[0111] S39. If the disk is successfully recognized, perform a random read / write test on the solid-state drive to determine if the random read / write test is normal.
[0112] Among them, steps S35-S39 are repeated no less than 256 times to ensure that the hard drive can perform random read and write operations normally.
[0113] In step S39, a random read / write test is performed on the solid-state drive (SSD) to determine whether the random read / write test is normal. This specifically includes...
[0114] To perform random read / write tests on a solid-state drive (SSD), check the address where the data is written. Compare the data before and after the random read / write operation. If the data before and after the read / write are the same, the read / write operation is abnormal; if the data before and after the read / write are different, the data reading is normal.
[0115] The random read / write test of the solid-state drive lasted for two minutes.
[0116] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned solid-state drive over-temperature alarm function detection device can be referred to the corresponding description in the foregoing method embodiments. For the sake of convenience and brevity, it will not be repeated here.
[0117] The aforementioned solid-state drive over-temperature alarm detection device can be implemented as a computer program, which can, for example... Figure 6 It runs on the computer device shown.
[0118] Please see Figure 6 , Figure 6 This is a schematic block diagram of a computer device provided in an embodiment of this application. The computer device 500 can be a terminal or a server. The terminal can be an electronic device with communication functions, such as a smartphone, tablet, laptop, desktop computer, personal digital assistant, or wearable device. The server can be a standalone server or a server cluster composed of multiple servers.
[0119] See Figure 6 The computer device 500 includes a processor 502, a memory, and a network interface 505 connected via a system bus 501. The memory may include a non-volatile storage medium 503 and internal memory 504.
[0120] The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions that, when executed, cause the processor 502 to perform a solid-state drive over-temperature alarm function detection method.
[0121] The processor 502 provides computing and control capabilities to support the operation of the entire computer device 500.
[0122] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a solid-state drive over-temperature alarm function detection method.
[0123] This network interface 505 is used for network communication with other devices. Those skilled in the art will understand that... Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device 500 to which the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0124] The processor 502 is used to run the computer program 5032 stored in the memory to implement the solid-state drive over-temperature alarm function detection method as described above.
[0125] It should be understood that in the embodiments of this application, the processor 502 may be a central processing unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0126] It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program includes program instructions and can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.
[0127] Therefore, the present invention also provides a storage medium. This storage medium can be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When executed by a processor, the program instructions cause the processor to perform the solid-state drive over-temperature alarm function detection method as described above.
[0128] The storage medium can be any computer-readable storage medium capable of storing program code, such as a USB flash drive, portable hard drive, read-only memory (ROM), magnetic disk, or optical disk.
[0129] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0130] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is merely a logical functional division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.
[0131] The steps in the method of this invention can be adjusted, merged, or reduced in order according to actual needs. The units in the device of this invention can be merged, divided, or reduced according to actual needs. Furthermore, the functional units in the various embodiments of this invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0132] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
[0133] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for detecting over-temperature alarm function of a solid-state drive, characterized in that: Including steps, S10. After the solid-state drive is powered on, set a temperature threshold below the current temperature value that is triggered when the power is off and is not saved. After the temperature threshold is triggered, restart the solid-state drive to check whether the over-temperature alarm function is normal. S20. After the solid-state drive restarts, reset a temperature threshold below the current temperature value that is saved after power failure and can be triggered. After the temperature threshold is triggered, restart the solid-state drive again to check whether the over-temperature alarm function is normal. S30. After the solid-state drive restarts, set a temperature threshold below the current temperature value that is triggered when the power is off and will not be saved. After the temperature threshold is triggered, send an asynchronous event request to the solid-state drive and test whether the read and write functions of the solid-state drive are normal.
2. The solid-state drive over-temperature alarm function detection method as described in claim 1, characterized in that: Step S10 specifically includes, S11. After the solid-state drive is powered on, obtain the SMART status of the solid-state drive and confirm whether the SMART status of the solid-state drive is healthy. S12. If the SMART status of the solid-state drive is healthy, obtain the current temperature value of the solid-state drive. S13. Based on the current temperature value of the solid-state drive, set a temperature threshold that can be triggered below the current temperature value, and set the temperature threshold to not be saved when power is off; S14. When the temperature of the solid-state drive is lower than the set temperature threshold, determine whether the temperature threshold has been successfully executed. If it has been successfully executed, confirm that the SMART status of the solid-state drive has changed to a critical warning status. S15. If the SMART status of the solid-state drive is in a critical warning state, then restart the solid-state drive; S16. After the SSD restarts, retrieve the SSD's SMART status again. If it is in a healthy state, it means that the power failure without saving function is in effect.
3. The solid-state drive over-temperature alarm function detection method as described in claim 2, characterized in that: Step S20 specifically includes, S21. Reset a triggerable temperature threshold below the current temperature value, and save the temperature threshold after power failure. S22. When the temperature value of the solid-state drive is lower than the reset temperature threshold, determine whether the temperature threshold has been successfully executed. If it has been successfully executed, confirm that the SMART status of the solid-state drive has changed to a critical warning status. S23. If the SMART status of the solid-state drive is in a critical warning state, then restart the solid-state drive; S24. After the SSD restarts, retrieve the SSD's SMART status again. If it is in a critical warning state, it means that the power-off save function is effective.
4. The solid-state drive over-temperature alarm function detection method as described in claim 3, characterized in that: Step S30 specifically includes, S31. After the solid-state drive is powered on, obtain the SMART status of the solid-state drive and confirm whether the SMART status of the solid-state drive is healthy. S32. If the SMART status of the solid-state drive is healthy, obtain the current temperature value of the solid-state drive. S33. Based on the current temperature value of the solid-state drive, set a temperature threshold that can be triggered below the current temperature value, and set the temperature threshold to not be saved when power is off; S34. When the temperature value of the solid-state drive is lower than the set temperature threshold, determine whether the temperature threshold has been successfully executed. If it has been successfully executed, confirm that the bit of the solid-state drive's SMART state that changes to the critical warning state is set. S35. After the bit in the solid-state drive's SMART state changes to a critical warning state is set, send an asynchronous event request to the solid-state drive. S36. Receive the asynchronous event sent back by the solid-state drive and determine whether the type of the asynchronous event is an over-temperature asynchronous event; S37. If it is an asynchronous event that exceeds the temperature limit, then clear the asynchronous event count; S38. Send a disk recognition command to the solid-state drive; S39. If the disk is successfully recognized, perform a random read / write test on the solid-state drive to determine if the random read / write test is normal.
5. The solid-state drive over-temperature alarm function detection method as described in claim 4, characterized in that: Repeat steps S35-S39 at least 256 times to ensure normal random read / write operation of the hard drive.
6. The solid-state drive over-temperature alarm function detection method as described in claim 4, characterized in that: In step S39, a random read / write test is performed on the solid-state drive (SSD) to determine whether the random read / write test is normal. This specifically includes... For random read / write tests of solid-state drives (SSDs), compare the data before and after the random read / write operation. If the data before and after the read / write operation are the same, the read / write operation is abnormal; if the data before and after the read / write operation are different, the data reading is normal.
7. The solid-state drive over-temperature alarm function detection method as described in claim 6, characterized in that: The random read / write test time for the solid-state drive was two minutes.
8. A solid-state drive over-temperature alarm detection device, characterized in that: include, The power failure non-save test module is used to set a temperature threshold below the current temperature value that can be triggered when the solid-state drive is powered on, and to restart the solid-state drive after the temperature threshold is triggered to check whether the over-temperature alarm function is normal. The power-off save test module is used to reset a temperature threshold below the current temperature value that can be triggered for power-off save after the solid-state drive restarts, and to restart the solid-state drive again after the temperature threshold is triggered to check whether the over-temperature alarm function is normal. The asynchronous event testing module is used to set a temperature threshold below the current temperature value for the SSD after it restarts, which is triggered when power is lost and not saved. After the temperature threshold is triggered, it sends an asynchronous event request to the SSD and tests whether the read and write functions of the SSD are normal.
9. A computer device, characterized in that: The computer device includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, it implements the solid-state drive over-temperature alarm function detection method as described in any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores a computer program, which, when executed by a processor, can implement the solid-state drive over-temperature alarm function detection method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
SSD temperature control performance balancing method and device, computer equipment and storage medium
CN112596680A
Over-temperature protection test method, system and device for chip and medium
CN112858886A