CN111722966B - PCIe Switch detection method, system, equipment and medium - Google Patents

PCIe Switch detection method, system, equipment and medium Download PDF

Info

Publication number
CN111722966B
CN111722966B CN202010567730.5A CN202010567730A CN111722966B CN 111722966 B CN111722966 B CN 111722966B CN 202010567730 A CN202010567730 A CN 202010567730A CN 111722966 B CN111722966 B CN 111722966B
Authority
CN
China
Prior art keywords
pcie switch
target
real
information
analysis result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010567730.5A
Other languages
Chinese (zh)
Other versions
CN111722966A (en
Inventor
管彦广
张猛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Inspur Smart Computing Technology Co Ltd
Original Assignee
Guangdong Inspur Big Data Research Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Inspur Big Data Research Co Ltd filed Critical Guangdong Inspur Big Data Research Co Ltd
Priority to CN202010567730.5A priority Critical patent/CN111722966B/en
Publication of CN111722966A publication Critical patent/CN111722966A/en
Application granted granted Critical
Publication of CN111722966B publication Critical patent/CN111722966B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/267Reconfiguring circuits for testing, e.g. LSSD, partitioning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0026PCI express
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a PCIe Switch detection method, a system, equipment and a medium, and judges whether real-time firmware information and real-time driving information of a target PCIe Switch meet a first preset requirement or not; if yes, judging whether the negotiation bandwidth and the real-time transmission rate of the target PCIe Switch meet a second preset requirement; if yes, judging whether the target PCIe Switch is in an activated state or not; if the link of the target PCIe Switch is in an active state, acquiring performance information of the target PCIe Switch, acquiring error code information of the target PCIe Switch, and performing stability analysis on the target PCIe Switch based on the performance information and the error code information to obtain a target analysis result, so that the stability analysis on the link of the target PCIe Switch is performed based on the target analysis result, and the accuracy of the link analysis can be improved.

Description

PCIe Switch detection method, system, equipment and medium
Technical Field
The present application relates to the field of PCIe Switch detection technology, and more particularly, to PCIe Switch detection methods, systems, devices, and media.
Background
Currently, in the field of servers or storage, in order to improve the data transmission rate, manufacturers lay out PCIe (peripheral component interconnect express, high-speed serial computer expansion bus standard) technologies, such as PCIe4.0 technology, where the transmission rate of PCIe4.0 can reach 16GT/s, and under such high transmission rate, stability of a link is very important.
In order to ensure the stability of the PCIe link, in the existing method, the transmission rate, the negotiated bandwidth, and the like of the PCIe link may be detected to determine whether the PCIe link is stable. However, in the conventional PCIe link detection method, after the PCIe link is determined to be stable according to the transmission rate, the negotiated bandwidth, and the like, in practical application, the PCIe link is still unstable.
In summary, how to ensure stability of PCIe links is a problem to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a PCIe Switch detection method which can solve the technical problem of how to improve the stability of PCIe links to a certain extent. The application also provides a PCIe Switch detection system, equipment and a computer readable storage medium.
In order to achieve the above object, the present application provides the following technical solutions:
a PCIe Switch detection method comprises the following steps:
judging whether the real-time firmware information and the real-time driving information of the target PCIe Switch meet a first preset requirement or not;
if the real-time firmware information and the real-time driving information meet the first preset requirement, judging whether the negotiation bandwidth and the real-time transmission rate of the target PCIe Switch meet a second preset requirement;
if the negotiated bandwidth and the real-time transmission rate meet the second preset requirement, judging whether the target PCIe Switch is in an activated state or not;
if the link of the target PCIe Switch is in an active state, acquiring performance information of the target PCIe Switch, acquiring error code information of the target PCIe Switch, and performing stability analysis on the target PCIe Switch based on the performance information and the error code information to obtain a target analysis result so as to perform stability analysis on the link of the target PCIe Switch based on the target analysis result.
Preferably, the obtaining the error code information of the target PCIe Switch includes:
and reading the error code information in a register of the target PCIe Switch.
Preferably, the performing stability analysis on the target PCIe Switch based on the performance information and the error code information to obtain a target analysis result includes:
performing stability analysis on the target PCIe Switch based on the performance information to obtain a first analysis result;
performing stability analysis on the target PCIe Switch based on the error code information to obtain a second analysis result;
the target analysis result is determined based on the first analysis result, the weight of the first analysis result, the second analysis result, and the weight of the second analysis result.
Preferably, the performing stability analysis on the target PCIe Switch based on the performance information, to obtain a first analysis result includes:
judging whether the performance information meets a preset performance requirement or not;
if the performance information meets the preset performance requirement, obtaining the first analysis result representing the stable performance of the target PCIe Switch; and if the performance information does not meet the preset performance requirement, obtaining the first analysis result representing the unstable performance of the target PCIe Switch.
Preferably, the performing stability analysis on the target PCIe Switch based on the error information to obtain a second analysis result includes:
judging whether the increase rate of the error code information is larger than a preset value or not;
if the growth rate is greater than the preset value, generating the second analysis result representing that the error code of the target PCIe Switch is unstable; and if the growth rate is smaller than or equal to the preset value, generating the second analysis result representing the error code stability of the target PCIe Switch.
Preferably, the determining whether the real-time firmware information and the real-time driving information of the target PCIe Switch meet the first preset requirement includes:
judging whether the real-time firmware information is consistent with target firmware information or not, if the real-time firmware information is consistent with the target firmware information, judging that the real-time firmware information meets the first preset requirement, and if the real-time firmware information is inconsistent with the target firmware information, judging that the real-time firmware information does not meet the first preset requirement;
judging whether the real-time driving information is consistent with the target driving information or not, if the real-time driving information is consistent with the target driving information, judging that the real-time driving information meets the first preset requirement, and if the real-time driving information is inconsistent with the target driving information, judging that the real-time driving information does not meet the first preset requirement.
Preferably, the type of the negotiation bandwidth includes a sum of a negotiation bandwidth of an uplink port of the target PCIe Switch and a negotiation bandwidth of a downlink connection device of the target PCIe Switch;
the type of the real-time transmission rate comprises the real-time transmission rate of the uplink port of the target PCIe Switch and the real-time transmission rate of the downlink connection device of the target PCIe Switch.
A PCIe Switch detection system comprising:
the first judging module is used for judging whether the real-time firmware information and the real-time driving information of the target PCIe Switch meet a first preset requirement or not;
the second judging module is used for judging whether the negotiation bandwidth and the real-time transmission rate of the target PCIe Switch meet a second preset requirement or not if the real-time firmware information and the real-time driving information meet the first preset requirement;
a third judging module, configured to judge whether the target PCIe Switch is in an active state if the negotiated bandwidth and the real-time transmission rate meet the second preset requirement;
the first analysis module is configured to obtain performance information of the target PCIe Switch if the link of the target PCIe Switch is in an active state, obtain error code information of the target PCIe Switch, perform stability analysis on the target PCIe Switch based on the performance information and the error code information, obtain a target analysis result, and perform stability analysis on the link of the target PCIe Switch based on the target analysis result.
A PCIe Switch detection device comprising:
a memory for storing a computer program;
and the processor is used for realizing the steps of the PCIe Switch detection method when executing the computer program.
A computer readable storage medium having stored therein a computer program which, when executed by a processor, implements the steps of any of the PCIe Switch detection methods described above.
According to the PCIe Switch detection method, whether the real-time firmware information and the real-time driving information of the target PCIe Switch meet the first preset requirement is judged; if the real-time firmware information and the real-time driving information meet the first preset requirement, judging whether the negotiation bandwidth and the real-time transmission rate of the target PCIe Switch meet the second preset requirement; if the negotiated bandwidth and the real-time transmission rate meet the second preset requirement, judging whether the target PCIe Switch is in an activated state or not; if the link of the target PCIe Switch is in an active state, acquiring performance information of the target PCIe Switch, acquiring error code information of the target PCIe Switch, and performing stability analysis on the target PCIe Switch based on the performance information and the error code information to obtain a target analysis result so as to perform stability analysis on the link of the target PCIe Switch based on the target analysis result. According to the method and the device for analyzing the stability of the target PCIe Switch, the stability analysis of the target PCIe Switch is achieved, and the accuracy of the link stability analysis can be improved when the stability analysis of the link of the target PCIe Switch is carried out based on the target analysis result. The PCIe Switch detection system, the PCIe Switch detection device and the PCIe Switch storage medium provided by the application also solve corresponding technical problems.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings may be obtained according to the provided drawings without inventive effort to a person skilled in the art.
Fig. 1 is a flowchart of a PCIe Switch detection method provided in an embodiment of the present application;
FIG. 2 is a flowchart of a PCIe Switch detection system according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a PCIe Switch detection device according to an embodiment of the present application;
fig. 4 is another schematic structural diagram of a PCIe Switch detection device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Referring to fig. 1, fig. 1 is a flowchart of a PCIe Switch detection method according to an embodiment of the present application.
The PCIe Switch detection method provided by the embodiment of the present application may include the following steps:
step S101: judging whether the real-time firmware information and the real-time driving information of the target PCIe Switch meet a first preset requirement or not; if the real-time firmware information and the real-time driving information do not meet the first preset requirement, executing step S102; if the real-time firmware information and the real-time driving information meet the first preset requirement, step S103 is executed.
Step S102: the determination target PCIe Switch is unstable.
In practical application, since the real-time firmware information and the real-time driving information directly influence the working condition of the target PCIe Switch, whether the real-time firmware information and the real-time driving information of the target PCIe Switch meet the first preset requirement can be judged; if the real-time firmware information and the real-time driving information do not meet the first preset requirement, the method can be ended, and the unstable target PCIe Switch and the like can also be directly judged; if the real-time firmware information and the real-time driving information meet the first preset requirement, a subsequent judging step needs to be executed to determine the stability of the target PCIe Switch.
Step S103: judging whether the negotiated bandwidth and the real-time transmission rate of the target PCIe Switch meet a second preset requirement or not; if the negotiated bandwidth and the real-time transmission rate do not meet the second preset requirement, executing step S104; if the negotiated bandwidth and the real-time transmission rate meet the second preset requirement, step S105 is executed.
Step S104: the determination target PCIe Switch is unstable.
In practical application, since the negotiated bandwidth and the real-time transmission rate determine the transmission condition of the target PCIe Switch during operation, if the real-time firmware information and the real-time driving information meet the first preset requirement, it is necessary to determine whether the negotiated bandwidth and the real-time transmission rate of the target PCIe Switch meet the second preset requirement; if the negotiated bandwidth and the real-time transmission rate do not meet the second preset requirement, the method can be ended, and the unstable target PCIe Switch and the like can also be directly judged; if the negotiated bandwidth and the real-time transmission rate meet the second preset requirement, a subsequent determination step needs to be performed to determine the stability of the target PCIe Switch.
Step S105: judging whether the target PCIe Switch is in an activated state or not; if the link of the target PCIe Switch is not in an active state, executing step S106; if the link of the target PCIe Switch is in an active state, step S107 is executed.
Step S106: the determination target PCIe Switch is unstable.
In practical applications, if the target PCIe Switch is in an inactive state, it may indicate that the target PCIe Switch has a fault, so after the negotiated bandwidth and the real-time transmission rate meet the second preset requirements, it needs to be determined whether the target PCIe Switch is in an active state; if the link of the target PCIe Switch is not in an active state, the method can be ended, or the unstable target PCIe Switch can be directly judged; if the link of the target PCIe Switch is in an active state, then a subsequent determination step needs to be performed to determine the stability of the target PCIe Switch.
Step S107: acquiring performance information of the target PCIe Switch, acquiring error code information of the target PCIe Switch, and performing stability analysis on the target PCIe Switch based on the performance information and the error code information to obtain a target analysis result so as to perform stability analysis on a link of the target PCIe Switch based on the target analysis result.
In practical applications, since both the performance information and the error code information of the target PCIe Switch affect the working stability of the target PCIe Switch, the performance information of the target PCIe Switch needs to be acquired, the error code information of the target PCIe Switch is acquired, and stability analysis is performed on the target PCIe Switch based on the performance information and the error code information, so as to obtain a target analysis result.
It should be noted that, since the target PCIe Switch belongs to a PCIe link and affects the operation condition of the PCIe link, after the target analysis result is obtained, the stability analysis can be performed on the link of the target PCIe Switch based on the target analysis result.
According to the PCIe Switch detection method, whether the real-time firmware information and the real-time driving information of the target PCIe Switch meet the first preset requirement is judged; if the real-time firmware information and the real-time driving information meet the first preset requirement, judging whether the negotiation bandwidth and the real-time transmission rate of the target PCIe Switch meet the second preset requirement; if the negotiated bandwidth and the real-time transmission rate meet the second preset requirement, judging whether the target PCIe Switch is in an activated state or not; if the link of the target PCIe Switch is in an active state, acquiring performance information of the target PCIe Switch, acquiring error code information of the target PCIe Switch, and performing stability analysis on the target PCIe Switch based on the performance information and the error code information to obtain a target analysis result so as to perform stability analysis on the link of the target PCIe Switch based on the target analysis result. According to the method and the device for analyzing the stability of the target PCIe Switch, the stability analysis of the target PCIe Switch is achieved, and the accuracy of the link stability analysis can be improved when the stability analysis of the link of the target PCIe Switch is carried out based on the target analysis result.
In the PCIe Switch detection method provided by the embodiment of the present application, in a process of obtaining the error code information of the target PCIe Switch, in order to facilitate obtaining the error code information, the error code information may be directly read in a register of the target PCIe Switch.
In practical application, in the process of performing stability analysis on the target PCIe Switch based on the performance information and the error code information to obtain a target analysis result, the stability analysis can be performed on the target PCIe Switch based on the performance information to obtain a first analysis result; performing stability analysis on the target PCIe Switch based on the error code information to obtain a second analysis result; and determining a target analysis result based on the first analysis result, the weight of the first analysis result, the second analysis result and the weight of the second analysis result. The first analysis result and the second analysis result can be comprehensively considered to obtain an accurate target analysis result.
Of course, in practical applications, it may be directly set that the target PCIe Switch is stable only when the first analysis result and the second analysis result indicate that the target PCIe Switch is stable, and in addition, the target PCIe Switch is unstable. In addition, in the process of determining the target analysis result based on the first analysis result, the weight of the second analysis result, and the weight of the second analysis result, the corresponding stability score may be calculated based on the weight of the first analysis result, the weight of the second analysis result, and then the target analysis result may be determined according to the stability score.
It should be noted that, in the present application, the performance information of the target PCIe Switch may include IOPS, latency, CPU utilization, and the like, and the specific type thereof may be determined according to actual needs.
In practical application, in the process of performing stability analysis on the target PCIe Switch based on the performance information to obtain a first analysis result, whether the performance information meets the preset performance requirement can be judged; if the performance information meets the preset performance requirement, a first analysis result representing the stable performance of the target PCIe Switch is obtained; if the performance information does not meet the preset performance requirement, a first analysis result representing unstable performance of the target PCIe Switch is obtained.
In practical application, in the process of performing stability analysis on the target PCIe Switch based on the error code information to obtain a second analysis result, whether the increase rate of the error code information is larger than a preset value can be judged; if the growth rate is greater than the preset value, generating a second analysis result representing that the error code of the target PCIe Switch is unstable; and if the growth rate is smaller than or equal to a preset value, generating a second analysis result representing the error code stability of the target PCIe Switch. Of course, it may also be directly determined whether the number of errors in the error information is greater than a preset number, if the number of errors is greater than the preset number, a second analysis result indicating that the error of the target PCIe Switch is unstable is generated, and if the number of errors is less than or equal to the preset number, a second analysis result indicating that the error of the target PCIe Switch is stable is generated.
In the PCIe Switch detection method provided by the embodiment of the present application, in a process of determining whether the real-time firmware information and the real-time driving information of the target PCIe Switch meet the first preset requirement, whether the real-time firmware information is consistent with the target firmware information may be determined, if the real-time firmware information is consistent with the target firmware information, the real-time firmware information is determined to meet the first preset requirement, and if the real-time firmware information is inconsistent with the target firmware information, the real-time firmware information is determined to not meet the first preset requirement; judging whether the real-time driving information is consistent with the target driving information or not, if so, judging that the real-time driving information meets the first preset requirement, and if not, judging that the real-time driving information does not meet the first preset requirement.
In the PCIe Switch detection method provided by the embodiment of the present application, the type of the negotiation bandwidth may include a negotiation bandwidth of an uplink port of the target PCIe Switch, and a negotiation bandwidth of a downlink connection device of the target PCIe Switch; the type of real-time transmission rate may include a sum of a real-time transmission rate of an upstream port of the target PCIe Switch and a real-time transmission rate of a downstream connection device of the target PCIe Switch.
Referring to fig. 2, fig. 2 is a flowchart of a PCIe Switch detection system according to an embodiment of the present application.
A PCIe Switch detection system provided in the embodiments of the present application may include:
a first judging module 101, configured to judge whether the real-time firmware information and the real-time driving information of the target PCIe Switch meet a first preset requirement;
a second judging module 102, configured to judge whether the negotiated bandwidth and the real-time transmission rate of the target PCIe Switch meet the second preset requirement if the real-time firmware information and the real-time driving information meet the first preset requirement;
a third judging module 103, configured to judge whether the target PCIe Switch is in an active state if the negotiated bandwidth and the real-time transmission rate meet a second preset requirement;
the first analysis module 104 is configured to obtain performance information of the target PCIe Switch if the link of the target PCIe Switch is in an active state, obtain error code information of the target PCIe Switch, perform stability analysis on the target PCIe Switch based on the performance information and the error code information, obtain a target analysis result, and perform stability analysis on the link of the target PCIe Switch based on the target analysis result.
The PCIe Switch detection system provided in the embodiment of the present application, the first analysis module may include:
and the first reading unit is used for reading the error code information in the register of the target PCIe Switch.
The PCIe Switch detection system provided in the embodiment of the present application, the first analysis module may include:
the first analysis submodule is used for carrying out stability analysis on the target PCIe Switch based on the performance information to obtain a first analysis result;
the second analysis submodule is used for carrying out stability analysis on the target PCIe Switch based on the error code information to obtain a second analysis result;
the first determining sub-module is used for determining a target analysis result based on the first analysis result, the weight of the first analysis result, the second analysis result and the weight of the second analysis result.
The PCIe Switch detection system provided in the embodiment of the present application, the first analysis submodule may include:
the first judging unit is used for judging whether the performance information meets the preset performance requirement or not; if the performance information meets the preset performance requirement, a first analysis result representing the stable performance of the target PCIe Switch is obtained; if the performance information does not meet the preset performance requirement, a first analysis result representing unstable performance of the target PCIe Switch is obtained.
The PCIe Switch detection system provided in the embodiment of the present application, the second analysis submodule may include:
the second judging unit is used for judging whether the increasing rate of the error code information is larger than a preset value; if the growth rate is greater than the preset value, generating a second analysis result representing that the error code of the target PCIe Switch is unstable; and if the growth rate is smaller than or equal to a preset value, generating a second analysis result representing the error code stability of the target PCIe Switch.
The PCIe Switch detection system provided in this embodiment of the present application, the first judging module may include:
the first judging unit is used for judging whether the real-time firmware information is consistent with the target firmware information, if the real-time firmware information is consistent with the target firmware information, judging that the real-time firmware information meets the first preset requirement, and if the real-time firmware information is inconsistent with the target firmware information, judging that the real-time firmware information does not meet the first preset requirement;
and the fourth judging unit is used for judging whether the real-time driving information is consistent with the target driving information, if so, judging that the real-time driving information meets the first preset requirement, and if not, judging that the real-time driving information does not meet the first preset requirement.
The type of the negotiation bandwidth may include a sum of a negotiation bandwidth of an uplink port of a target PCIe Switch and a negotiation bandwidth of a downlink connection device of the target PCIe Switch;
the type of the real-time transmission rate may include the real-time transmission rate of the upstream port of the target PCIe Switch, the real-time transmission rate of the downstream connection device of the target PCIe Switch.
The application also provides PCIe Switch detection equipment and a computer readable storage medium, which have corresponding effects of the PCIe Switch detection method provided by the embodiment of the application. Referring to fig. 3, fig. 3 is a schematic structural diagram of a PCIe Switch detection device according to an embodiment of the present application.
The PCIe Switch detection device provided in the embodiment of the present application includes a memory 201 and a processor 202, where a computer program is stored in the memory 201, and when the processor 202 executes the computer program, the following steps are implemented:
judging whether the real-time firmware information and the real-time driving information of the target PCIe Switch meet a first preset requirement or not;
if the real-time firmware information and the real-time driving information meet the first preset requirement, judging whether the negotiation bandwidth and the real-time transmission rate of the target PCIe Switch meet the second preset requirement;
if the negotiated bandwidth and the real-time transmission rate meet the second preset requirement, judging whether the target PCIe Switch is in an activated state or not;
if the link of the target PCIe Switch is in an active state, acquiring performance information of the target PCIe Switch, acquiring error code information of the target PCIe Switch, and performing stability analysis on the target PCIe Switch based on the performance information and the error code information to obtain a target analysis result so as to perform stability analysis on the link of the target PCIe Switch based on the target analysis result.
The PCIe Switch detection device provided in the embodiment of the present application includes a memory 201 and a processor 202, where a computer program is stored in the memory 201, and when the processor 202 executes the computer program, the following steps are implemented: the error information is read in a register of the target PCIe Switch.
The PCIe Switch detection device provided in the embodiment of the present application includes a memory 201 and a processor 202, where a computer program is stored in the memory 201, and when the processor 202 executes the computer program, the following steps are implemented: performing stability analysis on the target PCIe Switch based on the performance information to obtain a first analysis result; performing stability analysis on the target PCIe Switch based on the error code information to obtain a second analysis result; and determining a target analysis result based on the first analysis result, the weight of the first analysis result, the second analysis result and the weight of the second analysis result.
The PCIe Switch detection device provided in the embodiment of the present application includes a memory 201 and a processor 202, where a computer program is stored in the memory 201, and when the processor 202 executes the computer program, the following steps are implemented: judging whether the performance information meets the preset performance requirement or not; if the performance information meets the preset performance requirement, a first analysis result representing the stable performance of the target PCIe Switch is obtained; if the performance information does not meet the preset performance requirement, a first analysis result representing unstable performance of the target PCIe Switch is obtained.
The PCIe Switch detection device provided in the embodiment of the present application includes a memory 201 and a processor 202, where a computer program is stored in the memory 201, and when the processor 202 executes the computer program, the following steps are implemented: judging whether the increase rate of the error code information is larger than a preset value; if the growth rate is greater than the preset value, generating a second analysis result representing that the error code of the target PCIe Switch is unstable; and if the growth rate is smaller than or equal to a preset value, generating a second analysis result representing the error code stability of the target PCIe Switch.
The PCIe Switch detection device provided in the embodiment of the present application includes a memory 201 and a processor 202, where a computer program is stored in the memory 201, and when the processor 202 executes the computer program, the following steps are implemented: judging whether the real-time firmware information is consistent with the target firmware information or not, if so, judging that the real-time firmware information meets the first preset requirement, and if not, judging that the real-time firmware information does not meet the first preset requirement; judging whether the real-time driving information is consistent with the target driving information or not, if so, judging that the real-time driving information meets the first preset requirement, and if not, judging that the real-time driving information does not meet the first preset requirement.
The type of the negotiation bandwidth comprises the sum of the negotiation bandwidth of the uplink port of the target PCIe Switch and the negotiation bandwidth of the downlink connection device of the target PCIe Switch; the types of the real-time transmission rate include the real-time transmission rate of the uplink port of the target PCIe Switch and the real-time transmission rate of the downlink connection device of the target PCIe Switch.
Referring to fig. 4, another PCIe Switch detection device provided in the embodiment of the present application may further include: an input port 203 connected to the processor 202 for transmitting an externally input command to the processor 202; a display unit 204 connected to the processor 202, for displaying the processing result of the processor 202 to the outside; and the communication module 205 is connected with the processor 202 and is used for realizing communication between the PCIe Switch detection device and the outside. The display unit 204 may be a display panel, a laser scanning display, or the like; communication means employed by the communication module 205 include, but are not limited to, mobile high definition link technology (HML), universal Serial Bus (USB), high Definition Multimedia Interface (HDMI), wireless connection: wireless fidelity (WiFi), bluetooth communication, bluetooth low energy communication, ieee802.11s based communication.
The embodiment of the application provides a computer readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
judging whether the real-time firmware information and the real-time driving information of the target PCIe Switch meet a first preset requirement or not;
if the real-time firmware information and the real-time driving information meet the first preset requirement, judging whether the negotiation bandwidth and the real-time transmission rate of the target PCIe Switch meet the second preset requirement;
if the negotiated bandwidth and the real-time transmission rate meet the second preset requirement, judging whether the target PCIe Switch is in an activated state or not;
if the link of the target PCIe Switch is in an active state, acquiring performance information of the target PCIe Switch, acquiring error code information of the target PCIe Switch, and performing stability analysis on the target PCIe Switch based on the performance information and the error code information to obtain a target analysis result so as to perform stability analysis on the link of the target PCIe Switch based on the target analysis result.
The embodiment of the application provides a computer readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: the error information is read in a register of the target PCIe Switch.
The embodiment of the application provides a computer readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: performing stability analysis on the target PCIe Switch based on the performance information to obtain a first analysis result; performing stability analysis on the target PCIe Switch based on the error code information to obtain a second analysis result; and determining a target analysis result based on the first analysis result, the weight of the first analysis result, the second analysis result and the weight of the second analysis result.
The embodiment of the application provides a computer readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: judging whether the performance information meets the preset performance requirement or not; if the performance information meets the preset performance requirement, a first analysis result representing the stable performance of the target PCIe Switch is obtained; if the performance information does not meet the preset performance requirement, a first analysis result representing unstable performance of the target PCIe Switch is obtained.
The embodiment of the application provides a computer readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: judging whether the increase rate of the error code information is larger than a preset value; if the growth rate is greater than the preset value, generating a second analysis result representing that the error code of the target PCIe Switch is unstable; and if the growth rate is smaller than or equal to a preset value, generating a second analysis result representing the error code stability of the target PCIe Switch.
The embodiment of the application provides a computer readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: judging whether the real-time firmware information is consistent with the target firmware information or not, if so, judging that the real-time firmware information meets the first preset requirement, and if not, judging that the real-time firmware information does not meet the first preset requirement; judging whether the real-time driving information is consistent with the target driving information or not, if so, judging that the real-time driving information meets the first preset requirement, and if not, judging that the real-time driving information does not meet the first preset requirement.
The type of the negotiation bandwidth includes the sum of the negotiation bandwidth of the uplink port of the target PCIe Switch and the negotiation bandwidth of the downlink connection device of the target PCIe Switch; the types of the real-time transmission rate include the real-time transmission rate of the uplink port of the target PCIe Switch and the real-time transmission rate of the downlink connection device of the target PCIe Switch.
The computer readable storage medium referred to in this application includes Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The description of relevant portions in the PCIe Switch detection system, the PCIe Switch detection device and the computer readable storage medium provided in the embodiments of the present application refers to detailed description of corresponding portions in PCIe Switch detection provided in the embodiments of the present application, and is not repeated here. In addition, the parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of the corresponding technical solutions in the prior art, are not described in detail, so that redundant descriptions are avoided.
It is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A PCIe Switch detection method, comprising:
judging whether the real-time firmware information and the real-time driving information of the target PCIe Switch meet a first preset requirement or not;
if the real-time firmware information and the real-time driving information meet the first preset requirement, judging whether the negotiation bandwidth and the real-time transmission rate of the target PCIe Switch meet a second preset requirement;
if the negotiated bandwidth and the real-time transmission rate meet the second preset requirement, judging whether the target PCIe Switch is in an activated state or not;
if the link of the target PCIe Switch is in an active state, acquiring performance information of the target PCIe Switch, acquiring error code information of the target PCIe Switch, and performing stability analysis on the target PCIe Switch based on the performance information and the error code information to obtain a target analysis result so as to perform stability analysis on the link of the target PCIe Switch based on the target analysis result.
2. The method of claim 1, wherein the obtaining the error information of the target PCIe Switch comprises:
and reading the error code information in a register of the target PCIe Switch.
3. The method according to claim 1 or 2, wherein the performing stability analysis on the target PCIe Switch based on the performance information and the error information to obtain a target analysis result includes:
performing stability analysis on the target PCIe Switch based on the performance information to obtain a first analysis result;
performing stability analysis on the target PCIe Switch based on the error code information to obtain a second analysis result;
the target analysis result is determined based on the first analysis result, the weight of the first analysis result, the second analysis result, and the weight of the second analysis result.
4. The method of claim 3, wherein the performing stability analysis on the target PCIe Switch based on the performance information results in a first analysis result comprising:
judging whether the performance information meets a preset performance requirement or not;
if the performance information meets the preset performance requirement, obtaining the first analysis result representing the stable performance of the target PCIe Switch; and if the performance information does not meet the preset performance requirement, obtaining the first analysis result representing the unstable performance of the target PCIe Switch.
5. The method of claim 3, wherein the performing stability analysis on the target PCIe Switch based on the error information to obtain a second analysis result comprises:
judging whether the increase rate of the error code information is larger than a preset value or not;
if the growth rate is greater than the preset value, generating the second analysis result representing that the error code of the target PCIe Switch is unstable; and if the growth rate is smaller than or equal to the preset value, generating the second analysis result representing the error code stability of the target PCIe Switch.
6. The method of claim 1, wherein determining whether the real-time firmware information and the real-time driver information of the target PCIe Switch satisfy the first preset requirement comprises:
judging whether the real-time firmware information is consistent with target firmware information or not, if the real-time firmware information is consistent with the target firmware information, judging that the real-time firmware information meets the first preset requirement, and if the real-time firmware information is inconsistent with the target firmware information, judging that the real-time firmware information does not meet the first preset requirement;
judging whether the real-time driving information is consistent with the target driving information or not, if the real-time driving information is consistent with the target driving information, judging that the real-time driving information meets the first preset requirement, and if the real-time driving information is inconsistent with the target driving information, judging that the real-time driving information does not meet the first preset requirement.
7. The method of claim 1, wherein the type of negotiated bandwidth comprises a sum of a negotiated bandwidth of an upstream port of the target PCIe Switch, a negotiated bandwidth of a downstream connection device of the target PCIe Switch;
the type of the real-time transmission rate comprises the real-time transmission rate of the uplink port of the target PCIe Switch and the real-time transmission rate of the downlink connection device of the target PCIe Switch.
8. A PCIe Switch detection system comprising:
the first judging module is used for judging whether the real-time firmware information and the real-time driving information of the target PCIe Switch meet a first preset requirement or not;
the second judging module is used for judging whether the negotiation bandwidth and the real-time transmission rate of the target PCIe Switch meet a second preset requirement or not if the real-time firmware information and the real-time driving information meet the first preset requirement;
a third judging module, configured to judge whether the target PCIe Switch is in an active state if the negotiated bandwidth and the real-time transmission rate meet the second preset requirement;
the first analysis module is configured to obtain performance information of the target PCIe Switch if the link of the target PCIe Switch is in an active state, obtain error code information of the target PCIe Switch, perform stability analysis on the target PCIe Switch based on the performance information and the error code information, obtain a target analysis result, and perform stability analysis on the link of the target PCIe Switch based on the target analysis result.
9. A PCIe Switch detection device, comprising:
a memory for storing a computer program;
processor for implementing the steps of the PCIe Switch detection method according to any one of claims 1 to 7 when executing said computer program.
10. A computer readable storage medium, wherein a computer program is stored in the computer readable storage medium, the computer program implementing the steps of the PCIe Switch detection method according to any one of claims 1 to 7 when executed by a processor.
CN202010567730.5A 2020-06-19 2020-06-19 PCIe Switch detection method, system, equipment and medium Active CN111722966B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010567730.5A CN111722966B (en) 2020-06-19 2020-06-19 PCIe Switch detection method, system, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010567730.5A CN111722966B (en) 2020-06-19 2020-06-19 PCIe Switch detection method, system, equipment and medium

Publications (2)

Publication Number Publication Date
CN111722966A CN111722966A (en) 2020-09-29
CN111722966B true CN111722966B (en) 2024-01-23

Family

ID=72568212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010567730.5A Active CN111722966B (en) 2020-06-19 2020-06-19 PCIe Switch detection method, system, equipment and medium

Country Status (1)

Country Link
CN (1) CN111722966B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112269753A (en) * 2020-10-23 2021-01-26 苏州浪潮智能科技有限公司 PCIE link management method, system and related assembly
CN116582471B (en) * 2023-07-14 2023-09-19 珠海星云智联科技有限公司 PCIE equipment, PCIE data capturing system and server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404608A (en) * 2007-10-03 2009-04-08 国际商业机器公司 System and method for dynamically balancing pci-express bandwidth
CN109388597A (en) * 2018-09-30 2019-02-26 杭州迪普科技股份有限公司 A kind of data interactive method and device based on FPGA
CN109445997A (en) * 2018-06-29 2019-03-08 郑州云海信息技术有限公司 A kind of production line test method, system, medium and the equipment of PCIE Switch product
CN110932930A (en) * 2019-11-13 2020-03-27 苏州浪潮智能科技有限公司 Detection method, device and medium for server PCIE link stability
WO2020087954A1 (en) * 2018-11-01 2020-05-07 郑州云海信息技术有限公司 Method, apparatus, device and system for grabbing trace of nvme hard disk

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404608A (en) * 2007-10-03 2009-04-08 国际商业机器公司 System and method for dynamically balancing pci-express bandwidth
CN109445997A (en) * 2018-06-29 2019-03-08 郑州云海信息技术有限公司 A kind of production line test method, system, medium and the equipment of PCIE Switch product
CN109388597A (en) * 2018-09-30 2019-02-26 杭州迪普科技股份有限公司 A kind of data interactive method and device based on FPGA
WO2020087954A1 (en) * 2018-11-01 2020-05-07 郑州云海信息技术有限公司 Method, apparatus, device and system for grabbing trace of nvme hard disk
CN110932930A (en) * 2019-11-13 2020-03-27 苏州浪潮智能科技有限公司 Detection method, device and medium for server PCIE link stability

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
以太网、PCIe和Rapid IO高速总线比较分析;祝树生;解春雷;仇公望;詹景坤;王小辉;;电子测试(第11期);全文 *

Also Published As

Publication number Publication date
CN111722966A (en) 2020-09-29

Similar Documents

Publication Publication Date Title
CN111722966B (en) PCIe Switch detection method, system, equipment and medium
CN109558282B (en) PCIE link detection method, system, electronic equipment and storage medium
TWI571737B (en) Software test system, method and non-transitory computer readable medium of the same
CN112684982B (en) Data migration method, system, equipment and computer readable storage medium
CN113535721A (en) Data writing method and device
CN105487937A (en) RDMA (Remote Direct Memory Access) implementation method and device
CN110209605B (en) Register read-write method of PCIE bus network card and computing equipment
CN114327258B (en) Solid state disk processing method, system, equipment and computer storage medium
CN112506827A (en) Data transmission method, device and equipment based on ADMA controller
CN111399857A (en) FRU data burning method, system, equipment and computer storage medium
CN112597049A (en) Interrupt response time testing method, device and medium
CN114564334B (en) MRPC data processing method, system and related components
CN111740881B (en) Network card link detection method, system, equipment and computer storage medium
CN109344025B (en) CPU performance self-monitoring method and server
JP5341198B2 (en) Bit inversion in communication interface
CN110728306A (en) Target parameter selection method in reverse proxy evaluation model and related device
CN115576791A (en) Dynamic adjustment method and device for pressure measurement thread, electronic equipment and storage medium
CN111857996B (en) Interrupt processing method, system, equipment and computer readable storage medium
CN111061621B (en) Method, device and equipment for verifying program performance and storage medium
CN111130863B (en) Virtual network card management method, system, equipment and computer storage medium
CN109919307B (en) FPGA (field programmable Gate array) and depth residual error network implementation method, system and computer medium
CN111858129B (en) Erasure code read request processing method, system, equipment and computer medium
US20160077942A1 (en) Storage system and test method for testing pci express interface
CN108845765B (en) NAND data reading method, system, device and storage medium
CN114446373A (en) Method for testing DDR device and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant