Detection Method, Device, Electronic Device and Storage Medium for Device Storage Performance

By dynamically adjusting the number of hard disks in the server and performing backplane power outage operations, based on the comparison of the total hard disk performance value with the RAID array performance value and the backplane performance value, the detection and adjustment of storage link performance bottlenecks are solved, and automated detection and performance improvement are achieved.

CN115934435BActive Publication Date: 2025-06-13INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211295817.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-21
Publication Date
2025-06-13
Estimated Expiration
2042-10-21

AI Technical Summary

Technical Problem

The prior art is difficult to effectively detect and resolve performance bottlenecks in storage links, especially in multiple hard disk configurations, resulting in hard disk performance below its standard specifications.

Method used

By obtaining the real-time performance parameters and standard performance parameters of the hard disk in the server, calculate the total performance value of the hard disk, and dynamically adjust the number of hard disks based on this value and the performance value of the RAID array and the backplane performance value, perform the backplane power outage operation until the performance value meets the standards.

Benefits of technology

It realizes automated detection and adjustment of storage link performance bottlenecks, simplifies the detection process, reduces the manpower verification needs, avoids the loss of hard disk and hard disk backplane, and improves the efficiency of data analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115934435B_ABST
    Figure CN115934435B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a method, device, electronic device, and storage medium for detecting the storage performance of a device. The method includes: obtaining real-time performance parameters of a hard disk and standard performance parameters corresponding to the hard disk. If there is at least one real-time performance parameter that does not meet the standard performance parameter, then obtain the number of hard disks, the hard disk performance value, the RAID array performance value, and the backplane performance value corresponding to the backplane. Obtain the total hard disk performance value corresponding to all hard disks according to the number of hard disks and each hard disk performance value. If the total hard disk performance value is greater than the RAID array performance value and / or the total hard disk performance value is greater than the backplane performance value, then perform a power-off operation on the backplane. In response to the backplane being powered on again, turn off the operation of at least one hard disk, and continue to perform storage performance detection on the remaining hard disks until the total hard disk performance value of the remaining hard disks is less than or equal to the RAID array performance value and the total hard disk performance value is less than or equal to the backplane performance value, and obtain the detection result corresponding to each storage performance detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of storage device detection, and in particular, to a method for detecting the storage performance of a device, a device for detecting the storage performance of a device, an electronic device, and a computer-readable storage medium. Background Art

[0002] With the rapid development of hard disk media and interface protocols, the bandwidth supported by the hard disk itself has increased significantly, making some storage links unable to meet the total bandwidth of multiple disks. Especially for some expandable backplanes, such as expander backplanes, in order to increase the number of supported hard disks, these backplanes are equipped with expander chips inside, which greatly limits the performance of the storage link. Especially when fully configured with solid-state drives, the performance of the entire storage link will greatly reduce the performance of the solid-state drive, making the performance of a single hard disk far lower than its SPEC (Standard Performance Evaluation Corporation, standard specification). In addition, performance bottlenecks also occur in some direct-connected storage links. For example, for high-performance NVME (Non-Volatile Memory Host Controller Interface Specification) hard disks, when multiple NVME hard disks are onboard, they will consume a large amount of CPU and memory resources, resulting in performance bottlenecks. To address the performance bottleneck problem of the storage link, in the related art, the method adopted is to manually unplug and insert hard disks by testers to reduce the number of hard disks and repeat the performance test to determine the maximum number of hard disks that the storage link can support. However, in this process, since the reduction of the number of hard disks is achieved by manual unplugging and inserting, not only a large amount of manpower is required for verification, but also repeated unplugging and inserting of hard disks cause great damage to the hard disks and the hard disk backplane slots. In addition, due to manual verification multiple times, when the number of hard disks is large, the data volume is large, and it is difficult to obtain a good data display, which is not conducive to data analysis. Summary of the Invention

[0003] Embodiments of the present invention provide a method, a device, an electronic device, and a computer-readable storage medium for detecting the storage performance of a device to solve or partially solve the problem in the related art that the storage bottleneck of the storage link cannot be effectively detected.

[0004] Embodiments of the present invention disclose a method for detecting the storage performance of a device, which is characterized in that it is applied to a server, the server includes a backplane and a plurality of hard disks connected to the backplane, and the method includes:

[0005] Obtain the real-time performance parameters of the hard disk and the standard performance parameters corresponding to the hard disk;

[0006] If at least one of the real-time performance parameters does not meet the standard performance parameter, obtain the number of hard disks corresponding to the hard disk, the hard disk performance values respectively corresponding to each of the hard disks, the RAID array performance value corresponding to the hard disk, and the backplane performance value corresponding to the backplane in the server;

[0007] Perform performance calculation based on the number of hard disks and each of the hard disk performance values to obtain the total hard disk performance value corresponding to all the hard disks;

[0008] If the total hard disk performance value is greater than the RAID array performance value, and / or, the total hard disk performance value is greater than the backplane performance value, then perform a power-off operation on the backplane;

[0009] In response to the backplane being powered on again, turn off the operation of at least one hard disk, and continue to perform storage performance detection on the remaining hard disks until the total hard disk performance value of the remaining hard disks is less than or equal to the RAID array performance value, and, the total hard disk performance value is less than or equal to the backplane performance value, and obtain the detection result corresponding to each storage performance detection, where the detection result includes read and write performance values.

[0010] Optionally, the performing a power-off operation on the backplane includes:

[0011] Obtain the hard disk type of the hard disk;

[0012] If the hard disk type indicates that the hard disk is a SAS hard disk, and / or, a SATA hard disk, then determine that the storage performance bottleneck of the server is the backplane bottleneck, and perform a power-off operation on the backplane;

[0013] If the hard disk type indicates that the hard disk is an NVME hard disk, then determine that the storage performance bottleneck of the server is the CPU bottleneck, and perform a power-off operation on the backplane.

[0014] Optionally, the server further includes a plurality of CPUs communicatively connected to the hard disk, and the turning off the operation of at least one hard disk in response to the backplane being powered on again includes:

[0015] If the storage performance bottleneck of the server is the CPU bottleneck, then in response to the backplane being powered on again, respectively obtain the target number of NVME hard disks connected to each of the CPUs;

[0016] If the target numbers of NVME hard disks connected to each of the CPUs are all different, then turn off the operation of at least one NVME hard disk from the CPU connected to the most NVME hard disks;

[0017] If the target number of NVMe hard disks connected to at least two CPUs is greater than the target number of NVMe hard disks connected to other CPUs, randomly select one of the at least two CPUs as the first CPU, and shut down the operation of at least one NVMe hard disk among the NVMe hard disks connected to the first CPU.

[0018] Optionally, it further includes:

[0019] If the target number of NVMe hard disks connected to each of the CPUs is the same, and the total performance value of the hard disks is greater than the RAID array performance value, and / or the total performance value of the hard disks is greater than the backplane performance value, randomly select one of the CPUs as the second CPU, and shut down the operation of at least one NVMe hard disk among the NVMe hard disks connected to the second CPU.

[0020] Optionally, it further includes:

[0021] Generate a storage performance detection curve corresponding to the server according to the read and write performance values corresponding to each storage performance detection, and the storage performance detection curve is used to characterize the change of the total storage performance corresponding to the server when running different numbers of hard disks.

[0022] Optionally, the server runs an automated test platform, and the obtaining of the real-time performance parameters of the hard disk and the standard performance parameters corresponding to the hard disk includes:

[0023] Obtain the real-time performance parameters of the hard disk and the standard performance parameters corresponding to the hard disk through the automated test platform, and the real-time performance parameters at least include one of storage capacity, rotation speed, average access time, transmission rate, and cache;

[0024] Compare at least one of the storage capacity, the rotation speed, the average access time, the transmission rate, and the cache with the corresponding standard performance parameters respectively.

[0025] Optionally, the server runs an automated analysis system, and the automated analysis system at least includes a hard disk performance detection unit. If at least one of the real-time performance parameters does not meet the standard performance parameters, obtain the number of hard disks corresponding to the hard disk, the hard disk performance values corresponding to each of the hard disks, the RAID array performance value corresponding to the hard disk, and the backplane performance value corresponding to the backplane in the server, including:

[0026] If the automated test platform detects that at least one of the real-time performance parameters does not meet the standard performance parameters, set the server to a performance abnormal state, and generate a performance detection signal for the hard disk.

[0027] Receive the performance detection signal through the hard disk performance detection unit, and obtain the number of hard disks corresponding to the hard disk, the hard disk performance values respectively corresponding to each hard disk, the RAID array performance value corresponding to the hard disk, and the backplane performance value corresponding to the backplane in the server according to the performance detection signal;

[0028] Among them, performing performance calculation according to the number of hard disks and each hard disk performance value to obtain the total hard disk performance value corresponding to all the hard disks includes:

[0029] Perform performance calculation by using the number of hard disks and each hard disk performance value through the hard disk performance detection unit to obtain the total hard disk performance value corresponding to all the hard disks.

[0030] Optionally, the automated analysis system further includes a backplane control unit. If the total hard disk performance value is greater than the RAID array performance value, and / or the total hard disk performance value is greater than the backplane performance value, then perform a power-off operation on the backplane, including:

[0031] If the hard disk performance detection unit detects that the total hard disk performance value is greater than the RAID array performance value, and / or the total hard disk performance value is greater than the backplane performance value, then generate a backplane power-off signal for the backplane;

[0032] Receive the backplane power-off signal through the backplane control unit, and execute to control the backplane to perform the power-off operation corresponding to the backplane power-off signal.

[0033] Optionally, the automated analysis system further includes a data analysis and display unit. In response to the backplane being powered on again, turn off the operation of at least one hard disk, and continue to perform storage performance detection on the remaining hard disks until the total hard disk performance value of the remaining hard disks is less than or equal to the RAID array performance value, and the total hard disk performance value is less than or equal to the backplane performance value, and obtain the detection results corresponding to each storage performance detection, including:

[0034] In response to the backplane being powered on again through the hard disk performance detection unit, turn off the operation of at least one hard disk, and continue to perform storage performance detection on the remaining hard disks until the total hard disk performance value of the remaining hard disks is less than or equal to the RAID array performance value, and the total hard disk performance value is less than or equal to the backplane performance value, and obtain the detection results corresponding to each storage performance detection;

[0035] Send the detection results to the data analysis and display unit through the hard disk performance detection unit.

[0036] An embodiment of the present invention also discloses a detection device for the storage performance of a device, characterized in that it is applied to a server, the server includes a backplane and a plurality of hard disks connected to the backplane, and the device includes:

[0037] A real-time performance parameter acquisition module, configured to acquire the real-time performance parameters of the hard disks and the standard performance parameters corresponding to the hard disks;

[0038] A real-time performance value comparison module, configured to, if there is at least one real-time performance parameter that does not meet the standard performance parameter, acquire the number of hard disks corresponding to the hard disks, the hard disk performance values respectively corresponding to each hard disk, the RAID array performance value corresponding to the hard disks, and the backplane performance value corresponding to the backplane in the server;

[0039] A total hard disk performance calculation module, configured to perform performance calculation according to the number of hard disks and the hard disk performance values of each hard disk to obtain the total hard disk performance value corresponding to all the hard disks;

[0040] A backplane power-off module, configured to, if the total hard disk performance value is greater than the RAID array performance value, and / or, the total hard disk performance value is greater than the backplane performance value, perform a power-off operation on the backplane;

[0041] A detection result determination module, configured to, in response to the backplane being powered on again, turn off the operation of at least one hard disk, and continue to perform storage performance detection on the remaining hard disks until the total hard disk performance value of the remaining hard disks is less than or equal to the RAID array performance value, and the total hard disk performance value is less than or equal to the backplane performance value, and obtain the detection result corresponding to each storage performance detection, where the detection result includes a read / write performance value.

[0042] Optionally, the backplane power-off module is specifically configured to:

[0043] Acquire the hard disk type of the hard disks;

[0044] If the hard disk type indicates that the hard disks are SAS hard disks, and / or, SATA hard disks, then determine that the storage performance bottleneck of the server is a backplane bottleneck, and perform a power-off operation on the backplane;

[0045] If the hard disk type indicates that the hard disks are NVME hard disks, then determine that the storage performance bottleneck of the server is a CPU bottleneck, and perform a power-off operation on the backplane.

[0046] Optionally, the server further includes a plurality of CPUs communicatively connected to the hard disks, and the detection result determination module is specifically configured to:

[0047] If the storage performance bottleneck of the server is a CPU bottleneck, then in response to the backplane being powered on again, obtain the target number of NVME hard disks connected to each of the CPUs respectively;

[0048] If the target numbers of NVME hard disks connected to each of the CPUs are all different, then shut down the operation of at least one NVME hard disk from the CPU connected to the most NVME hard disks;

[0049] If there are at least two CPUs for which the target numbers of NVME hard disks connected are greater than those of the other CPUs, then randomly select one of the at least two CPUs as the first CPU, and shut down the operation of at least one NVME hard disk from the NVME hard disks connected to the first CPU.

[0050] Optionally, the device further includes:

[0051] An NVME hard disk shutdown module, configured to, if the target numbers of NVME hard disks connected to each of the CPUs are the same, and the total hard disk performance value is greater than the RAID array performance value, and / or the total hard disk performance value is greater than the backplane performance value, then randomly select one of the CPUs as the second CPU, and shut down the operation of at least one NVME hard disk from the NVME hard disks connected to the second CPU.

[0052] Optionally, the device further includes:

[0053] A storage performance detection curve generation module, configured to generate a storage performance detection curve corresponding to the server according to the read and write performance values corresponding to each storage performance detection, where the storage performance detection curve is used to characterize the change in the total storage performance of the server when running different numbers of hard disks.

[0054] Optionally, the server runs an automated test platform, and the real-time performance parameter acquisition module is specifically configured to:

[0055] Obtain the real-time performance parameters of the hard disk and the standard performance parameters corresponding to the hard disk through the automated test platform, where the real-time performance parameters at least include one of storage capacity, rotation speed, average access time, transmission rate, and cache;

[0056] Compare at least one of the storage capacity, the rotation speed, the average access time, the transmission rate, and the cache with the corresponding standard performance parameters respectively.

[0057] Optionally, the server runs an automated analysis system, and the automated analysis system at least includes a hard disk performance detection unit. The real-time performance value comparison module is specifically configured to:

[0058] If the automated test platform detects that at least one of the real-time performance parameters does not meet the standard performance parameters, the server is set to a performance abnormal state, and a performance detection signal for the hard disk is generated;

[0059] The hard disk performance detection unit receives the performance detection signal, and obtains the number of hard disks corresponding to the hard disk, the hard disk performance values respectively corresponding to each hard disk, the RAID array performance value corresponding to the hard disk, and the backplane performance value corresponding to the backplane in the server according to the performance detection signal;

[0060] Among them, the hard disk total performance value calculation module is specifically used for:

[0061] The hard disk performance detection unit performs performance calculation by using the number of hard disks and each hard disk performance value to obtain the total performance value of all the hard disks corresponding to the hard disk.

[0062] Optionally, the automated analysis system further includes a backplane control unit, and the backplane power-off module is specifically used for:

[0063] If the hard disk performance detection unit detects that the total performance value of the hard disk is greater than the RAID array performance value, and / or, the total performance value of the hard disk is greater than the backplane performance value, a backplane power-off signal for the backplane is generated;

[0064] The backplane control unit receives the backplane power-off signal and executes a power-off operation for controlling the backplane corresponding to the backplane power-off signal.

[0065] Optionally, the automated analysis system further includes a data analysis and display unit, and the detection result determination module is specifically used for:

[0066] The hard disk performance detection unit responds to the re-power-on of the backplane, shuts down the operation of at least one hard disk, and continues to perform storage performance detection on the remaining hard disks until the total performance value of the remaining hard disks is less than or equal to the RAID array performance value, and the total performance value of the hard disk is less than or equal to the backplane performance value, and obtains the detection result corresponding to each storage performance detection;

[0067] The hard disk performance detection unit sends the detection result to the data analysis and display unit.

[0068] An embodiment of the present invention also discloses an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus;

[0069] The memory is used for storing a computer program;

[0070] When the processor is used to execute the program stored in the memory, the method described in the embodiment of the present invention is implemented.

[0071] The embodiment of the present invention also discloses a computer-readable storage medium, on which instructions are stored. When executed by one or more processors, the instructions cause the processors to execute the method described in the embodiment of the present invention.

[0072] The embodiment of the present invention has the following advantages:

[0073] In the embodiment of the present invention, when applied to a server, the server includes a backplane and a plurality of hard disks connected to the backplane. The real-time performance parameters of the hard disks and the standard performance parameters corresponding to the hard disks are obtained. If there is at least one real-time performance parameter that does not meet the standard performance parameter, the number of hard disks corresponding to the hard disks, the hard disk performance values corresponding to each hard disk, the RAID array performance value corresponding to the hard disks, and the backplane performance value corresponding to the backplane in the server are obtained. Performance calculation is performed according to the number of hard disks and the performance values of each hard disk to obtain the total hard disk performance value corresponding to all hard disks. If the total hard disk performance value is greater than the RAID array performance value, and / or the total hard disk performance value is greater than the backplane performance value, a power-off operation for the backplane is performed. In response to the backplane being powered on again, the operation of at least one hard disk is turned off, and the storage performance of the remaining hard disks is continuously detected until the total hard disk performance value of the remaining hard disks is less than or equal to the RAID array performance value, and the total hard disk performance value is less than or equal to the backplane performance value. The detection results corresponding to each storage performance detection are obtained. The detection results include read and write performance values. Therefore, during the process of detecting the hard disks of the server, when it is detected that the hard disk performance does not meet the standard, the storage bottleneck detection of the hard disks can be triggered. By comparing the total performance value of the hard disks with the corresponding RAID array performance value and backplane performance value, and then dynamically adjusting the number of hard disks running in the server according to the comparison results, not only the storage bottleneck detection of the storage link in the server is effectively simplified, but also the storage bottleneck detection of the server can be effectively analyzed by automatically reducing the number of hard disks, so as to configure an appropriate number of hard disks in combination with the hardware performance of the server in a relatively appropriate manner and give full play to the storage performance of the server. Description of the Drawings

[0074] Figure 1 It is a flowchart of the steps of a method for detecting the storage performance of a device provided in the embodiment of the present invention;

[0075] Figure 2 It is a flowchart of the steps for determining the storage performance bottleneck by the hard disk type provided in the embodiment of the present invention;

[0076] Figure 3It is a structural block diagram of a detection device for the storage performance of a device provided in an embodiment of the present invention;

[0077] Figure 4 It is a block diagram of an electronic device provided in an embodiment of the present invention. Specific embodiments

[0078] To make the above objects, features, and advantages of the present invention more obvious and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0079] As an example, for the performance bottleneck problem of the storage link, in the related art, the method adopted is to reduce the number of hard disks by manual plugging and unplugging by testers and repeat the performance test to determine the maximum number of hard disks that the storage link can support. However, in this process, since the reduction of the number of hard disks is achieved by manual plugging and unplugging, not only a large amount of manpower is required for verification, but also the hard disks and the hard disk backplane slots are greatly damaged due to multiple pluggings and unplugging of the hard disks. In addition, since manual verification is performed multiple times, when the number of hard disks is large, the amount of data is large, and it is difficult to obtain a good data display, which is not conducive to data analysis.

[0080] In this regard, one of the core inventive points of the present invention lies in the process of detecting the performance of the hard disks of a server. On the one hand, by obtaining the real-time performance parameters of the hard disks and the standard performance parameters corresponding to the hard disks, the performance of the hard disks is detected in real time. On the other hand, if there is at least one real-time performance parameter that does not meet the standard performance parameter, the number of hard disks corresponding to the hard disks, the hard disk performance values corresponding to each hard disk, the RAID array performance value corresponding to the hard disks, and the backplane performance value corresponding to the backplane in the server are obtained. Performance calculation is performed based on the number of hard disks and the performance values of each hard disk to obtain the total hard disk performance value corresponding to all hard disks. If the total hard disk performance value is greater than the RAID array performance value, and / or the total hard disk performance value is greater than the backplane performance value, a power-off operation for the backplane is executed. In response to the backplane being powered on again, the operation of at least one hard disk is turned off, and the storage performance of the remaining hard disks is continuously detected until the total hard disk performance value of the remaining hard disks is less than or equal to the RAID array performance value, and the total hard disk performance value is less than or equal to the backplane performance value, the detection result corresponding to each storage performance detection is obtained. The detection result includes the read and write performance values. Thus, in the process of detecting the hard disks of the server, when it is detected that the hard disk performance does not meet the standard, a storage bottleneck detection for the hard disks can be triggered. By comparing the total performance value of the hard disks with the corresponding RAID array performance value and backplane performance value, and then dynamically adjusting the number of hard disks running in the server according to the comparison result, not only the storage bottleneck detection of the storage link in the server is effectively simplified, but also the storage bottleneck of the server can be effectively analyzed by automatically reducing the number of hard disks, so as to configure an appropriate number of hard disks in combination with the hardware performance of the server in a relatively appropriate manner and give full play to the storage performance of the server.

[0081] Referring to Figure 1 , a step flowchart of a method for detecting the storage performance of a device provided in an embodiment of the present invention is shown. The method is applied to a server, and the server includes a backplane and a plurality of hard disks connected to the backplane. Specifically, the method may include the following steps:

[0082] Step 101, obtain the real-time performance parameters of the hard disks and the standard performance parameters corresponding to the hard disks;

[0083] Optionally, the backplane of the server can support the interconnection between the motherboard and the storage, and provide a framework for power supply and data signal transmission for the supported motherboard. Its main functions include signal transmission, transmission speed, support for sequential power-on, support for hard disk alarms, and whether it has expansion functions, such as an expander backplane. The expander backplane adds expansion chips, such as LSI (Large-scale integrated circuit) chips, to the ordinary backplane. Common expander backplanes include SAS (Serial Attached SCSI) interfaces, 8087 interfaces, and 8643 interfaces. The expander backplane can monitor the performance parameters of the hard disk in real time through an automated platform, and then determine whether the hard disk meets the standards.

[0084] In the embodiment of the present invention, the real-time performance parameters can be parameters used to characterize the inherent attributes or performance of the hard disk, and at least include one of storage capacity, rotation speed, average access time, transmission rate, and cache. The standard performance parameters can be pre-set performance parameters for comparison with the real-time performance parameters as standard data.

[0085] In a specific implementation, the server runs an automated test platform for real-time monitoring of the performance parameters of the hard disk. The real-time performance parameters of the hard disk and the corresponding standard performance parameters of the hard disk can be obtained through the automated test platform, and at least one of the storage capacity, rotation speed, average access time, transmission rate, and cache is compared with the corresponding standard performance parameters respectively.

[0086] Step 102, if there is at least one of the real-time performance parameters that does not meet the standard performance parameters, obtain the number of hard disks corresponding to the hard disk, the hard disk performance values respectively corresponding to each hard disk, the RAID array performance value corresponding to the hard disk, and the backplane performance value corresponding to the backplane in the server;

[0087] In the embodiment of the present invention, after the automated test platform compares at least one of the storage capacity, rotation speed, average access time, transmission rate, and cache with the corresponding standard performance parameters, if it is determined that there is at least one real-time performance parameter that is different from the standard performance parameter, for example, the transmission rate of the hard disk is 6GB and the standard transmission rate is 12GB, it is determined that there is at least one real-time performance parameter of the hard disk that does not meet the standard performance parameters, and the automated analysis system of the server is triggered. Then, the automated analysis system automatically reads the number of hard disks corresponding to the hard disk, the hard disk performance values respectively corresponding to each hard disk, the RAID array performance value corresponding to the hard disk, and the backplane performance value corresponding to the backplane in the server.

[0088] Optionally, the number of hard disks is the number of hard disks connected to each CPU (Central Processing Unit). The more the number of hard disks, the greater the load on the CPU. Thus, the load balance of the CPU is analyzed by obtaining the number of hard disks corresponding to the hard disks. The hard disk performance value can be the SPEC value of a single hard disk. There is a corresponding SPEC value in the specification of each hard disk and it is imported into the automated test platform in advance. RAID (Redundant Arrays of Independent Disks), RAID has an independent RAID control processing and I / O processing chip as well as an array buffer. Its occupancy rate and overall performance for the CPU are relatively good, and it supports the hot-swap technology to replace a faulty disk during system operation. The RAID array performance value can be the upper limit value of the performance of the RAID queried according to the RAID model. The backplane performance value can be the upper limit value of the performance of the backplane checked according to the backplane design specification.

[0089] Step 103, perform performance calculation according to the number of hard disks and each of the hard disk performance values to obtain the total hard disk performance value corresponding to all the hard disks;

[0090] In the embodiment of the present invention, the server runs an automated analysis system. The automated analysis system at least includes a hard disk performance detection unit. If the automated test platform detects that at least one real-time performance parameter does not meet the standard performance parameter, the server is set to a performance abnormal state, and a performance detection signal for the hard disk is generated. The performance detection signal is received by the hard disk performance detection unit, and according to the performance detection signal, the number of hard disks corresponding to the hard disk, the hard disk performance values respectively corresponding to each hard disk, the RAID array performance value corresponding to the hard disk, and the backplane performance value corresponding to the backplane in the server are obtained. Among them, performing performance calculation according to the number of hard disks and each of the hard disk performance values to obtain the total hard disk performance value corresponding to all the hard disks includes: using the number of hard disks and each of the hard disk performance values by the hard disk performance detection unit to perform performance calculation to obtain the total hard disk performance value corresponding to all the hard disks.

[0091] Optionally, the performance abnormal state can indicate that the performance test of the server hard disk fails. The performance detection signal can be the detection result obtained by the automated test platform that the hard disk fails, and the signal generated according to the detection result is sent to the automated analysis system through the network to trigger the automated analysis system to perform performance analysis on the hard disk, and pause other automated test items, and set the machine state to the performance debug state.

[0092] In a specific implementation, the automated analysis system at least includes a hard disk performance detection unit. The hard disk performance detection unit can perform performance calculations based on the number of hard disks and the performance values of each hard disk to obtain the total hard disk performance value corresponding to the hard disks. The total hard disk performance value is the upper limit value of the total theoretical performance of the hard disks.

[0093] Step 104, if the total hard disk performance value is greater than the RAID array performance value, and / or the total hard disk performance value is greater than the backplane performance value, then perform a power-off operation on the backplane.

[0094] In an embodiment of the present invention, the automated analysis system further includes a backplane control unit. If the hard disk performance detection unit detects that the total hard disk performance value is greater than the RAID array performance value, and / or the total hard disk performance value is greater than the backplane performance value, then a backplane power-off signal for the backplane is generated. The backplane power-off signal is received through the backplane control unit, and the control is executed to make the backplane perform the power-off operation corresponding to the backplane power-off signal.

[0095] Optionally, the backplane power-off signal can be a signal or command for controlling the power-off of the backplane. For example, the backplane power-off signal can be a CPLD (Complex Programming Logic Device). Through the CPLD command, a signal for slot power-off can be transmitted to the backplane CPLD using the BMC (Baseboard Management Controller) IPMI (Intelligent Platform Management Interface) command, thereby realizing the control for the backplane to perform the power-off operation corresponding to the backplane power-off signal.

[0096] As an example, assume that through the hard disk performance detection unit, performance calculations are performed using the number of hard disks and the performance values of each hard disk, and the total hard disk performance value corresponding to all hard disks is obtained as a1. The automated analysis system reads the upper limit value of the RAID performance as a2 according to the RAID model, and reads the upper limit value of the backplane performance as a3 according to the backplane design specification. Then, when a1 is greater than a2 and / or a1 is greater than a3, it indicates that the performance of the server hard disks is low, it is determined that there is a performance bottleneck in the server hard disks, and then a backplane power-off signal for the backplane is generated and sent to the backplane control unit through the network. After receiving the backplane power-off signal, the backplane control unit controls the backplane to perform the power-off operation corresponding to the backplane power-off signal.

[0097] In a specific implementation, after determining that there is a performance bottleneck in the server hard disk and before the backplane control unit performs a power-off operation for the backplane power-off signal, the backplane control unit needs to obtain the hard disk type of the hard disk. If the hard disk type indicates that the hard disk is a SAS hard disk and / or a SATA hard disk, it is determined that the storage performance bottleneck of the server is a backplane bottleneck, and at the same time, a power-off operation for the backplane is performed. If the hard disk type indicates that the hard disk is an NVME hard disk, it is determined that the storage performance bottleneck of the server is a CPU bottleneck, and at the same time, a power-off operation for the backplane is performed.

[0098] Specifically, both SAS hard disks and SATA (Serial Advanced Technology Attachment) hard disks use serial technology. The main difference between the two is that SAS improves the internal space by shortening the connection line. It is an interface re-developed after parallel SCSI (Small Computer System Interface), with functions of improving storage system efficiency, availability, scalability, and providing compatibility with SATA hard disks. The SATA hard disk is a bus interface that connects the host bus adapter to the hard disk, while the NVME hard disk is a solid-state hard disk that can perform read and write operations simultaneously in full duplex, with advantages such as low latency, low power consumption, and high performance. If the hard disk type is identified as a SAS hard disk / SATA hard disk, it means that the low performance of the SAS / SATA hard disk causes a backplane bottleneck. The backplane bottleneck includes a RAID bottleneck. The automated analysis strategies for the backplane bottleneck or the RAID bottleneck are the same. If the hard disk type is identified as an NVME hard disk and it belongs to a PCIE (Peripheral Component Interconnect Express) device, it means that too many on-board NVMEs cause a bottleneck in CPU resources, resulting in a CPU bottleneck. For example, the processor speed of the CPU is not sufficient to process and transmit data sent by other hardware, and a direct-through backplane can be used to solve the problem of the CPU bottleneck.

[0099] As an example, refer to Figure 2The figure shows a flowchart of steps for determining storage performance bottlenecks based on hard disk types. The server includes an automated testing platform and an automated analysis system. The automated analysis system at least includes a hard disk performance detection unit and a backplane control unit. The automated testing platform can obtain real-time performance parameters of the hard disk, including at least storage capacity, rotation speed, average access time, transmission rate, and cache. If the automated testing platform detects that at least one real-time performance parameter does not meet the standard performance parameter, the server is set to a performance abnormal state, and a performance detection signal for the hard disk is generated and sent to the hard disk performance detection unit of the automated analysis system, so that the hard disk performance detection unit performs a performance test on the hard disk. If it is determined that the hard disk belongs to a SAS hard disk / SATA hard disk, it is determined that the storage performance bottleneck of the server hard disk is the expander backplane bottleneck, and the bottleneck automatic precise analysis strategy corresponding to the expander is executed. If it is determined that the hard disk belongs to an NVME hard disk, it is determined that the storage performance bottleneck of the server hard disk is the CPU bottleneck or the on-board NVME bottleneck, and the bottleneck automatic precise analysis strategy corresponding to the on-board NVME is executed. The power-on and power-off of the hard disk backplane slot are controlled by CPLD commands, and the performance test data is extracted by the data collection module each time. After analyzing and displaying the performance test data, the final performance bottleneck reference curve is obtained.

[0100] Step 105, in response to the backplane being powered on again, turn off the operation of at least one hard disk, and continue to perform storage performance detection on the remaining hard disks until the total hard disk performance value of the remaining hard disks is less than or equal to the RAID array performance value, and, when the total hard disk performance value is less than or equal to the backplane performance value, obtain the detection result corresponding to each storage performance detection, and the detection result includes the read / write performance value.

[0101] In an embodiment of the present invention, in response to the backplane being powered on again, turn off the operation of at least one hard disk, and continue to perform storage performance detection on the remaining hard disks until the total hard disk performance value of the remaining hard disks is less than or equal to the RAID array performance value, and, when the total hard disk performance value is less than or equal to the backplane performance value, obtain the detection result corresponding to each storage performance detection, and the detection result includes the read / write performance value. According to the read / write performance value corresponding to each storage performance detection, a storage performance detection curve corresponding to the server is generated, and the storage performance detection curve is used to characterize the change in the total storage performance of the server when running different numbers of hard disks.

[0102] Optionally, the storage performance detection can be achieved by sending CPLD commands to power off the hard disk backplane slot ports and then power on the machine again to re-perform the performance test on the remaining hard disks. Each time a detection is performed, one hard disk is reduced. The read and write performance values can include the 4K random read IOPS (Input / Output Operations Per Second, the number of read and write operations per second) performance of the hard disk, the 4K random write IOPS performance of the hard disk, the 128K sequential read bandwidth performance, and the 128K sequential write bandwidth performance.

[0103] As an example, if the storage performance bottleneck of the server is the backplane bottleneck, then in response to the backplane being powered on again, the storage performance of the remaining SAS hard disks / SATA hard disks is detected respectively. Each time a detection is performed, one hard disk is reduced until the total performance value of the remaining SAS hard disks / SATA hard disks is less than or equal to the RAID array performance value and the total performance value of the hard disks is less than or equal to the backplane performance value, indicating that the performance test of the remaining SAS hard disks / SATA hard disks meets the standard. The connection status of all the remaining SAS hard disks / SATA hard disks can be restored through the CPLD, and the test results of each time are automatically recorded. Thus, by combining the backplane cpld power-off feature, the number of hard disks is gradually reduced, greatly improving the performance debug efficiency.

[0104] As another example, the server also includes several CPUs communicatively connected to the hard disks. If the storage performance bottleneck of the server is the CPU bottleneck, then in response to the backplane being powered on again, the target number of NVME hard disks connected to each CPU is obtained respectively. If the target numbers of NVME hard disks connected to each CPU are all different, and the CPU with more connected NVME hard disks has a greater load, then at least one NVME hard disk operation can be shut down from the CPU with the most connected NVME hard disks. If there are at least two CPUs whose target numbers of NVME hard disks connected are greater than those of the NVME hard disks connected to other CPUs, then one of the at least two CPUs is randomly selected as the first CPU, and at least one NVME hard disk operation is shut down from the NVME hard disks connected to the first CPU; if the target numbers of NVME hard disks connected to each CPU are all the same, and the total performance value of the hard disks is greater than the RAID array performance value, and / or, the total performance value of the hard disks is greater than the backplane performance value, then one of the CPUs is randomly selected as the second CPU, and at least one NVME hard disk operation is shut down from the NVME hard disks connected to the second CPU.

[0105] In a specific implementation, the automated analysis system further includes a data analysis and display unit. The hard disk performance detection unit responds to the re-power-on of the backplane, shuts down the operation of at least one hard disk, and continues to perform storage performance detection on the remaining hard disks until the total hard disk performance value of the remaining hard disks is less than or equal to the RAID array performance value, and when the total hard disk performance value is less than or equal to the backplane performance value, the detection results corresponding to each storage performance detection are obtained, and the detection results are sent to the data analysis and display unit through the hard disk performance detection unit.

[0106] Specifically, the data analysis and display unit can be used to analyze the results of storage performance detection on the hard disks of each server and visually display the analysis results to relevant technical personnel. The visualization methods include but are not limited to statistical images such as curve charts, line charts, bar charts, etc., to achieve a comprehensive analysis of the performance of the storage link with a fixed configuration, so that relevant technical personnel can intuitively obtain the performance detection results for the hard disks.

[0107] It should be noted that the embodiments of the present invention include but are not limited to the above examples. It can be understood that under the guidance of the idea of the embodiments of the present invention, those skilled in the art can set according to the actual situation, and the present invention does not limit this.

[0108] In an embodiment of the present invention, it is applied to a server. The server includes a backplane and a plurality of hard disks connected to the backplane. The real-time performance parameters of the hard disks and the standard performance parameters corresponding to the hard disks are obtained. If there is at least one real-time performance parameter that does not meet the standard performance parameter, the number of hard disks corresponding to the hard disk, the hard disk performance values corresponding to each hard disk, the RAID array performance value corresponding to the hard disk, and the backplane performance value corresponding to the backplane in the server are obtained. Performance calculation is performed based on the number of hard disks and the performance values of each hard disk to obtain the total hard disk performance value corresponding to all hard disks. If the total hard disk performance value is greater than the RAID array performance value, and / or the total hard disk performance value is greater than the backplane performance value, a power-off operation for the backplane is performed. In response to the backplane being powered on again, the operation of at least one hard disk is turned off, and the storage performance of the remaining hard disks is continuously detected until the total hard disk performance value of the remaining hard disks is less than or equal to the RAID array performance value, and the total hard disk performance value is less than or equal to the backplane performance value. The detection result corresponding to each storage performance detection is obtained. The detection result includes a read / write performance value. Therefore, when the hard disk performance is detected to be unqualified, a storage bottleneck detection for the hard disk is triggered. By comparing the total performance value of the hard disk with the corresponding RAID array performance value and backplane performance value, and then dynamically adjusting the number of hard disks running in the server according to the comparison result, not only effectively simplifies the storage bottleneck detection of the storage link in the server, but also can effectively analyze the storage bottleneck of the server by automatically reducing the number of hard disks, so as to configure an appropriate number of hard disks in combination with the hardware performance of the server in a relatively appropriate manner and give full play to the storage performance of the server.

[0109] It should be noted that, for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the embodiments of the present invention are not limited by the described action sequences, because according to the embodiments of the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.

[0110] Refer to Figure 3 , which shows a structural block diagram of a detection device for the storage performance of a device provided in an embodiment of the present invention. It is applied to a server. The server includes a backplane and a plurality of hard disks connected to the backplane. Specifically, it may include the following modules:

[0111] A real-time performance parameter acquisition module 301, configured to acquire the real-time performance parameters of the hard disks and the standard performance parameters corresponding to the hard disks;

[0112] The real-time performance value comparison module 302 is configured to, if there is at least one of the real-time performance parameters that does not meet the standard performance parameter, obtain the number of hard disks corresponding to the hard disk, the hard disk performance values respectively corresponding to each of the hard disks, the RAID array performance value corresponding to the hard disk, and the backplane performance value corresponding to the backplane in the server;

[0113] The total hard disk performance calculation module 303 is configured to perform performance calculation based on the number of hard disks and the hard disk performance values of each of the hard disks to obtain the total hard disk performance value corresponding to all the hard disks;

[0114] The backplane power-off module 304 is configured to, if the total hard disk performance value is greater than the RAID array performance value, and / or the total hard disk performance value is greater than the backplane performance value, perform a power-off operation on the backplane;

[0115] The detection result determination module 305 is configured to, in response to the backplane being powered on again, turn off the operation of at least one hard disk and continue to perform storage performance detection on the remaining hard disks until the total hard disk performance value of the remaining hard disks is less than or equal to the RAID array performance value, and the total hard disk performance value is less than or equal to the backplane performance value, and obtain the detection result corresponding to each storage performance detection, where the detection result includes read and write performance values.

[0116] In an alternative embodiment of the embodiment of the present invention, the backplane power-off module 304 is specifically configured to:

[0117] Obtain the hard disk type of the hard disk;

[0118] If the hard disk type indicates that the hard disk is a SAS hard disk, and / or a SATA hard disk, it is determined that the storage performance bottleneck of the server is the backplane bottleneck, and a power-off operation on the backplane is performed;

[0119] If the hard disk type indicates that the hard disk is an NVME hard disk, it is determined that the storage performance bottleneck of the server is the CPU bottleneck, and a power-off operation on the backplane is performed.

[0120] In an alternative embodiment of the embodiment of the present invention, the server further includes a plurality of CPUs communicatively connected to the hard disk, and the detection result determination module 305 is specifically configured to:

[0121] If the storage performance bottleneck of the server is the CPU bottleneck, in response to the backplane being powered on again, respectively obtain the target number of NVME hard disks connected to each of the CPUs;

[0122] If the target numbers of NVME hard disks connected to each of the CPUs are all different, turn off the operation of at least one NVME hard disk from the CPU connected to the most NVME hard disks;

[0123] If the target number of NVMe hard disks connected to at least two CPUs is greater than the target number of NVMe hard disks connected to other CPUs, randomly select one of the at least two CPUs as the first CPU, and turn off the operation of at least one NVMe hard disk among the NVMe hard disks connected to the first CPU.

[0124] In an alternative embodiment of the embodiment of the present invention, the device further includes:

[0125] The NVMe hard disk shutdown module is configured to, if the target number of NVMe hard disks connected to each of the CPUs is the same, and the total performance value of the hard disks is greater than the RAID array performance value, and / or the total performance value of the hard disks is greater than the backplane performance value, randomly select one of the CPUs as the second CPU, and turn off the operation of at least one NVMe hard disk among the NVMe hard disks connected to the second CPU.

[0126] In an alternative embodiment of the embodiment of the present invention, the device further includes:

[0127] The storage performance detection curve generation module is configured to generate a storage performance detection curve corresponding to the server according to the read and write performance values corresponding to each storage performance detection, and the storage performance detection curve is used to characterize the change in the total storage performance of the server when running different numbers of hard disks.

[0128] In an alternative embodiment of the embodiment of the present invention, the server runs an automated test platform, and the real-time performance parameter acquisition module is specifically configured to:

[0129] Obtain the real-time performance parameters of the hard disk and the standard performance parameters corresponding to the hard disk through the automated test platform, and the real-time performance parameters at least include one of storage capacity, rotation speed, average access time, transmission rate, and cache;

[0130] Compare at least one of the storage capacity, the rotation speed, the average access time, the transmission rate, and the cache with the corresponding standard performance parameters respectively.

[0131] In an alternative embodiment of the embodiment of the present invention, the server runs an automated analysis system, and the automated analysis system at least includes a hard disk performance detection unit. The real-time performance value comparison module 302 is specifically configured to:

[0132] If the automated test platform detects that at least one of the real-time performance parameters does not meet the standard performance parameters, set the server to a performance abnormal state, and generate a performance detection signal for the hard disk;

[0133] Receive the performance detection signal through the hard disk performance detection unit, and obtain the number of hard disks corresponding to the hard disk, the hard disk performance values respectively corresponding to each hard disk, the RAID array performance value corresponding to the hard disk, and the backplane performance value corresponding to the backplane in the server according to the performance detection signal;

[0134] Among them, the hard disk total performance value calculation module 303 is specifically used for:

[0135] Perform performance calculation on the number of hard disks and the performance values of each hard disk through the hard disk performance detection unit to obtain the total performance value of all the hard disks corresponding to the hard disk.

[0136] In an alternative embodiment of the embodiment of the present invention, the automated analysis system further includes a backplane control unit, and the backplane power-off module 304 is specifically used for:

[0137] If the hard disk performance detection unit detects that the total performance value of the hard disk is greater than the RAID array performance value, and / or the total performance value of the hard disk is greater than the backplane performance value, then generate a backplane power-off signal for the backplane;

[0138] Receive the backplane power-off signal through the backplane control unit, and execute the power-off operation of controlling the backplane corresponding to the backplane power-off signal.

[0139] In an alternative embodiment of the embodiment of the present invention, the automated analysis system further includes a data analysis and display unit, and the detection result determination module 305 is specifically used for:

[0140] Through the hard disk performance detection unit, in response to the backplane being powered on again, turn off the operation of at least one hard disk, and continue to perform storage performance detection on the remaining hard disks until the total performance value of the remaining hard disks is less than or equal to the RAID array performance value, and the total performance value of the hard disk is less than or equal to the backplane performance value, and obtain the detection result corresponding to each storage performance detection;

[0141] Send the detection result to the data analysis and display unit through the hard disk performance detection unit.

[0142] For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, refer to the partial description of the method embodiment.

[0143] In addition, an embodiment of the present invention further provides an electronic device, including: a processor, a memory, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, it implements each process of the embodiment of the method for detecting the storage performance of the above device, and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0144] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements each process of the embodiment of the method for detecting the storage performance of the above device, and can achieve the same technical effect. To avoid repetition, it will not be elaborated here. Among them, the computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc, etc.

[0145] Figure 4 FIG. is a schematic diagram of the hardware structure of an electronic device for implementing each embodiment of the present invention.

[0146] The electronic device 400 includes, but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, a processor 410, and a power supply 411, etc. Those skilled in the art can understand that the structure of the electronic device involved in the embodiment of the present invention does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted terminal, a wearable device, and a pedometer, etc.

[0147] It should be understood that in the embodiment of the present invention, the radio frequency unit 401 can be used for receiving and sending signals during the process of receiving and sending information or making a call. Specifically, after receiving the downlink data from the base station, it is given to the processor 410 for processing; in addition, the uplink data is sent to the base station. Usually, the radio frequency unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, etc. In addition, the radio frequency unit 401 can also communicate with the network and other devices through a wireless communication system.

[0148] The electronic device provides wireless broadband Internet access for users through the network module 402, such as helping users send and receive emails, browse web pages, and access streaming media, etc.

[0149] The audio output unit 403 can convert the audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output it as sound. Moreover, the audio output unit 403 can also provide an audio output related to a specific function executed by the electronic device 400 (e.g., call signal reception sound, message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, etc.

[0150] The input unit 404 is used to receive audio or video signals. The input unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042. The graphics processor 4041 processes the image data of a static picture or a video obtained by an image capturing device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 406. The image frame processed by the graphics processor 4041 can be stored in the memory 409 (or other storage media) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 can receive sound and can process such sound into audio data. The processed audio data can be output in a format that can be transmitted to a mobile communication base station via the radio frequency unit 401 in the case of a phone call mode.

[0151] The electronic device 400 further includes at least one sensor 405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. Among them, the ambient light sensor can adjust the brightness of the display panel 4061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 4061 and / or the backlight when the electronic device 400 is moved to the ear. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as a pedometer, tapping), etc.; the sensor 405 can also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be elaborated here.

[0152] The display unit 406 is used to display the information input by the user or the information provided to the user. The display unit 406 may include a display panel 4061, and the display panel 4061 can be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), etc.

[0153] The user input unit 407 can be used to receive input digital or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. The touch panel 4071, also known as a touch screen, can collect touch operations of the user thereon or nearby (such as operations of the user using a finger, a stylus, or any suitable object or accessory on or near the touch panel 4071). The touch panel 4071 can include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the touch orientation of the user and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 410, and receives and executes the command sent by the processor 410. In addition, various types such as resistive, capacitive, infrared, and surface acoustic wave can be used to implement the touch panel 4071. In addition to the touch panel 4071, the user input unit 407 can also include other input devices 4072. Specifically, the other input devices 4072 can include but are not limited to a physical keyboard, function keys (such as volume control keys, power on / off keys, etc.), a trackball, a mouse, a joystick, which will not be elaborated here.

[0154] Furthermore, the touch panel 4071 can cover the display panel 4061. After the touch panel 4071 detects a touch operation thereon or nearby, it transmits the operation to the processor 410 to determine the type of the touch event. Subsequently, the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. It can be understood that in one embodiment, the touch panel 4071 and the display panel 4061 are implemented as two independent components to realize the input and output functions of the electronic device. However, in some embodiments, the touch panel 4071 and the display panel 4061 can be integrated to realize the input and output functions of the electronic device, and the specific implementation here is not limited.

[0155] The interface unit 408 is an interface for connecting an external device to the electronic device 400. For example, the external device can include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headset port, and so on. The interface unit 408 can be used to receive inputs from an external device (such as data information, power, etc.) and transmit the received inputs to one or more components within the electronic device 400 or can be used to transmit data between the electronic device 400 and the external device.

[0156] The memory 409 can be used to store software programs and various data. The memory 409 mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created according to the use of the mobile phone (such as audio data, phone book, etc.). In addition, the memory 409 can include high-speed random access memory and can also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0157] The processor 410 is the control center of the electronic device, connecting various parts of the entire electronic device through various interfaces and circuits. By running or executing software programs and / or modules stored in the memory 409, and by calling data stored in the memory 409, it executes various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. The processor 410 can include one or more processing units; preferably, the processor 410 can integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the processor 410.

[0158] The electronic device 400 can also include a power supply 411 (such as a battery) for powering each component. Preferably, the power supply 411 can be logically connected to the processor 410 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system.

[0159] In addition, the electronic device 400 includes some functional modules not shown here and will not be elaborated further.

[0160] It should be noted that in this article, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such a process, method, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of another identical element in the process, method, article or device including that element.

[0161] Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware. However, in many cases, the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of the present invention.

[0162] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present invention, those of ordinary skill in the art can also make many forms without departing from the purpose of the present invention and the scope protected by the claims, and all of them belong to the protection scope of the present invention.

[0163] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed in the embodiments of the present invention can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0164] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.

[0165] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of the devices or units can be in an electrical, mechanical, or other forms.

[0166] The unit described as a separation component may or may not be physically separated. The component shown as a unit may or may not be a physical unit, that is, it may be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0167] In addition, each functional unit in various embodiments of the present invention may be integrated in a processing unit, may exist separately physically for each unit, or two or more units may be integrated in one unit.

[0168] If the above function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this 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 for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical discs that can store program codes.

[0169] As described above, only the specific embodiments of the present invention are provided, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of changes or substitutions, which should all be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims

1. A method for detecting the storage performance of a device, characterized in that, applied to a server, the server includes a backplane and a plurality of hard disks connected to the backplane, the server runs an automated test platform and an automated analysis system, the automated analysis system at least includes a hard disk performance detection unit, and the method includes: Obtain the real-time performance parameters of the hard disk and the corresponding standard performance parameters of the hard disk through the automated test platform, and the real-time performance parameters at least include one of storage capacity, rotation speed, average access time, transmission rate, and cache; Compare at least one of the storage capacity, the rotation speed, the average access time, the transmission rate, and the cache with the corresponding standard performance parameters respectively; If the automated test platform detects that there is at least one real-time performance parameter that does not meet the standard performance parameter, set the server to a performance abnormal state and generate a performance detection signal for the hard disk; Receive the performance detection signal through the hard disk performance detection unit, and obtain the number of hard disks corresponding to the hard disk, the hard disk performance values corresponding to each hard disk, the RAID array performance value corresponding to the hard disk, and the backplane performance value corresponding to the backplane in the server according to the performance detection signal; Perform performance calculation by the hard disk performance detection unit using the number of hard disks and each hard disk performance value to obtain the total hard disk performance value corresponding to all hard disks; If the total hard disk performance value is greater than the RAID array performance value, and / or, the total hard disk performance value is greater than the backplane performance value, perform a power-off operation on the backplane; In response to the backplane being powered on again, turn off the operation of at least one hard disk, and continue to detect the storage performance of the remaining hard disks until the total hard disk performance value of the remaining hard disks is less than or equal to the RAID array performance value, and the total hard disk performance value is less than or equal to the backplane performance value, and obtain the detection result corresponding to each storage performance detection, and the detection result includes read and write performance values.

2. The method according to claim 1, characterized in that, The performing the power-off operation on the backplane includes: Obtain the hard disk type of the hard disk; If the hard disk type indicates that the hard disk is a SAS hard disk, and / or, a SATA hard disk, it is determined that the storage performance bottleneck of the server is a backplane bottleneck, and perform a power-off operation on the backplane; If the hard disk type indicates that the hard disk is an NVME hard disk, it is determined that the storage performance bottleneck of the server is a CPU bottleneck, and perform a power-off operation on the backplane.

3. The method according to claim 1 or 2, characterized in that, The server further includes a plurality of CPUs communicatively connected to the hard disks, and the responding to the backplane being powered on again and turning off the operation of at least one hard disk includes: If the storage performance bottleneck of the server is a CPU bottleneck, then in response to the backplane being powered on again, respectively obtain the target number of NVME hard disks connected to each CPU; If the target numbers of the NVMe hard disks connected to each of the CPUs are all different, then shut down the operation of at least one NVMe hard disk from the CPU connected to the most NVMe hard disks; If there are at least two CPUs for which the target numbers of the NVMe hard disks connected thereto are greater than the target numbers of the NVMe hard disks connected to other CPUs, then randomly select one of the at least two CPUs as the first CPU, and shut down the operation of at least one NVMe hard disk from the NVMe hard disks connected to the first CPU.

4. The method according to claim 3, characterized in that, further comprising: If the target numbers of the NVMe hard disks connected to each of the CPUs are all the same, and the total hard disk performance value is greater than the RAID array performance value, and / or, the total hard disk performance value is greater than the backplane performance value, then randomly select one of the CPUs as the second CPU, and shut down the operation of at least one NVMe hard disk from the NVMe hard disks connected to the second CPU.

5. The method according to claim 1, characterized in that, further comprising: Generate a storage performance detection curve corresponding to the server according to the read-write performance value corresponding to each storage performance detection, and the storage performance detection curve is used to characterize the change in the total storage performance of the server when running different numbers of hard disks.

6. The method according to claim 1, characterized in that, The automated analysis system further includes a backplane control unit. If the total hard disk performance value is greater than the RAID array performance value, and / or, the total hard disk performance value is greater than the backplane performance value, then perform a power-off operation on the backplane, including: If the hard disk performance detection unit detects that the total hard disk performance value is greater than the RAID array performance value, and / or, the total hard disk performance value is greater than the backplane performance value, then generate a backplane power-off signal for the backplane; Receive the backplane power-off signal through the backplane control unit, and execute to control the backplane to perform a power-off operation corresponding to the backplane power-off signal.

7. The method according to claim 1 or 6, characterized in that, The automated analysis system further includes a data analysis and display unit. In response to the backplane being powered on again, shut down the operation of at least one hard disk, and continue to perform storage performance detection on the remaining hard disks until the total hard disk performance value of the remaining hard disks is less than or equal to the RAID array performance value, and, the total hard disk performance value is less than or equal to the backplane performance value, and obtain the detection result corresponding to each storage performance detection, including: In response to the backplane being powered on again through the hard disk performance detection unit, shut down the operation of at least one hard disk, and continue to perform storage performance detection on the remaining hard disks until the total hard disk performance value of the remaining hard disks is less than or equal to the RAID array performance value, and, the total hard disk performance value is less than or equal to the backplane performance value, and obtain the detection result corresponding to each storage performance detection; Send the detection result to the data analysis and display unit through the hard disk performance detection unit.

8. A detection device for the storage performance of a device Characterized in that, Applied to a server, the server includes a backplane and a plurality of hard disks connected to the backplane. The server runs an automated test platform and an automated analysis system. The automated analysis system at least includes a hard disk performance detection unit. The device includes: A real-time performance parameter acquisition module, configured to obtain the real-time performance parameters of the hard disk and the corresponding standard performance parameters of the hard disk through the automated test platform. The real-time performance parameters at least include one of storage capacity, rotation speed, average access time, transmission rate, and cache; respectively compare at least one of the storage capacity, the rotation speed, the average access time, the transmission rate, and the cache with the corresponding standard performance parameters; A real-time performance value comparison module, configured to if the automated test platform detects that at least one of the real-time performance parameters does not meet the standard performance parameters, set the server to a performance abnormal state, and generate a performance detection signal for the hard disk; receive the performance detection signal through the hard disk performance detection unit, and obtain the number of hard disks corresponding to the hard disk, the hard disk performance values respectively corresponding to each hard disk, the RAID array performance value corresponding to the hard disk, and the backplane performance value corresponding to the backplane in the server according to the performance detection signal; A total hard disk performance calculation module, configured to perform performance calculation by using the number of hard disks and each hard disk performance value through the hard disk performance detection unit to obtain the total hard disk performance value corresponding to all the hard disks; A backplane power-off module, configured to if the total hard disk performance value is greater than the RAID array performance value, and / or, the total hard disk performance value is greater than the backplane performance value, perform a power-off operation on the backplane; a detection result determination module, configured to in response to the backplane being powered on again, turn off the operation of at least one hard disk, and continue to perform storage performance detection on the remaining hard disks until the total hard disk performance value of the remaining hard disks is less than or equal to the RAID array performance value, and, the total hard disk performance value is less than or equal to the backplane performance value, obtain the detection result corresponding to each storage performance detection, and the detection result includes read and write performance values.

9. An electronic device, Characterized in that, It includes a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete mutual communication through the communication bus; The memory is used for storing a computer program; The processor, when executing the program stored on the memory, implements the method according to any one of claims 1-7.

10. A computer-readable storage medium, on which instructions are stored, and when executed by one or more processors, cause the processors to execute the method according to any one of claims 1-7.

Citation Information

Patent Citations

  • NAND Flash Solid State Disk Space Environment Effect Test System and Test Method

    CN109285583A

  • RAID configuration method and system, equipment and storage medium

    CN114063912A