Cloud platform-based server memory performance test system and method
By building a cloud platform memory performance testing system, centralized scheduling and isolated testing of server memory performance were achieved, adaptive detection of inflection points was enabled, interference sensitivity and virtualization overhead were quantified, the accuracy and efficiency of testing were improved, and a comprehensive evaluation report at the cluster level was generated.
Patent Information
- Application Number
- CN202611357853.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-03
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies make it difficult to achieve centralized scheduling and isolated testing of server memory performance on cloud platforms. They cannot adaptively and accurately detect performance inflection points, lack quantitative testing of interference sensitivity and virtualization overhead, and affect online business with low testing efficiency.
A cloud-based memory performance testing system is constructed, including a cloud-based test management platform, test agent, cloud-based image repository, cloud-based fingerprint database, cloud-based test data lake, and noisy virtual machine. Through task orchestration, environment construction, inflection point detection, and data normalization processing, adaptive inflection point detection and interference sensitivity testing are achieved, generating cluster-level memory performance reports.
It improved the adaptability, reusability, and security of testing, reduced the impact on online business, improved testing accuracy and efficiency, quantified interference sensitivity and virtualization overhead, and generated a comprehensive evaluation report.
Smart Images

Figure CN123178268A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of server testing technology, and in particular to a server memory performance testing system and method based on a cloud platform. Background Technology
[0002] Server memory performance testing often relies on single-machine tools running locally on the target machine. Test components are typically not correlated with hardware topology, memory generation, number of channels, or number of slots per channel, making dynamic matching and reuse based on NUMA topology difficult. Testing is frequently conducted directly within the same environment as the business virtual machine, lacking isolation mechanisms such as cloud snapshots, containers, or shadow test virtual machines. This can easily impact online services and makes lossless resetting after testing difficult. Stress testing often employs a fixed load applied in an open-loop manner, failing to adjust the number of parallel memory access threads and request emission rate based on target bandwidth in a closed-loop manner. It also lacks adaptive inflection point determination for continuous collection and confirmation of latency growth rate, bandwidth increment, correctable error events, and predictive failure analysis events. Furthermore, existing solutions generally do not build cloud fingerprint databases or test data lakes, preventing normalized comparison, outlier attribution, and comprehensive evaluation of performance feature vectors across multiple servers within the cluster. They also lack quantitative testing methods for sensitivity to noise interference from the same host machine and virtualization layer overhead.
[0003] However, how to centrally schedule and isolate server memory testing on a cloud platform, accurately detect performance inflection points, quantify interference sensitivity and virtualization overhead, achieve cluster-level normalized comparison, outlier attribution and comprehensive evaluation, improve testing accuracy and efficiency and reduce the impact on business, and based on this, propose a server memory performance testing system and method based on a cloud platform. Summary of the Invention
[0004] To address the shortcomings of existing technologies, this invention provides the following technical solution:
[0005] The cloud-based server memory performance testing system includes: a cloud-based test management platform, a test agent, a cloud-based image repository, a cloud-based fingerprint database, a cloud-based test data lake, a cloud-based platform resource scheduling system, a host machine, a business virtual machine, a shadow test virtual machine, and a noisy virtual machine;
[0006] The test agent is deployed on each target server;
[0007] The cloud-based image repository is used to store containerized memory testing components;
[0008] The cloud-based fingerprint database is used to store the performance benchmark distribution under various hardware configurations;
[0009] The cloud-based test data lake is used to store test data and associate it with hardware models;
[0010] The cloud platform resource scheduling system is used to inject graded noise loads into the noisy virtual machine.
[0011] As an improvement to the above technical solution, the cloud-based test management platform includes:
[0012] Task orchestration module: used to receive memory performance test requests and parse them to generate test tasks and distribute them to each test agent. The test tasks include at least a set of test items, stress step parameters, inflection point judgment threshold and collection cycle.
[0013] Analysis module: Used to normalize the returned data to obtain performance feature vectors, and perform similarity comparison and outlier attribution based on the cloud fingerprint database.
[0014] The reporting module is used to generate a memory performance test report based on the returned data and the results of the analysis module.
[0015] The task orchestration module obtains the NUMA topology and memory configuration information of each target server, and uses the memory generation, number of channels and number of slots per channel as index keys to search for matching containerized memory test components in the cloud image repository. If no match is found, the components are dynamically combined according to the memory particle specifications and stored in the cloud image repository for reuse. The components and test tasks are then sent to the test agent via the mTLS encrypted channel.
[0016] As an improvement to the above technical solution, the test agent includes:
[0017] Environment building module: used to build an isolated test environment that is isolated from the business virtual machine. The environment building module is also used to create a cloud snapshot on the target server to achieve lossless reset after testing, and then build an isolated test environment that is isolated from the business virtual machine. The isolated test environment is a container or the shadow test virtual machine.
[0018] Execution module: Used to perform memory performance tests in the isolated test environment to obtain initial performance data;
[0019] Inflection point detection module: used to gradually increase memory access pressure based on the pressure stepping parameters, collect bandwidth, latency, correctable error event counts and predictive fault analysis events at each pressure level, calculate latency growth rate and bandwidth increment, and determine that the memory performance inflection point has been reached and stop increasing pressure when the inflection point determination conditions are met and confirmed for N consecutive collection cycles, N≥2.
[0020] Feedback module: Used to send time series performance data, inflection point stress value and inflection point performance parameters back to the cloud test management platform.
[0021] The server memory performance testing method based on the cloud platform includes the following steps:
[0022] S1: The cloud-based test management platform receives a memory performance test request carrying a set of target servers, parses and generates a test task. The test task includes at least a set of test items, stress step parameters, inflection point judgment threshold and collection cycle.
[0023] S2: Match and distribute containerized memory test components based on hardware topology information;
[0024] S3: The test agent builds an isolated test environment on the target server and performs memory configuration consistency verification;
[0025] S4: Perform initial multidimensional tests according to each NUMA binding strategy to obtain initial multidimensional performance data;
[0026] S5: Gradually increase memory access pressure based on pressure step parameters, perform adaptive inflection point detection, and determine that the memory performance inflection point has been reached when the inflection point judgment condition is met and confirmed for N consecutive collection cycles. Record the inflection point pressure value and inflection point performance parameters and stop increasing pressure. N≥2.
[0027] S6: Perform interference sensitivity test and calculate interference sensitivity coefficient;
[0028] S7: Perform virtualization overhead test and calculate virtualization overhead coefficient;
[0029] S8: The cloud-based test management platform performs normalized comparison, attribution, and comprehensive evaluation on the returned data, generating a cluster-level memory performance test report.
[0030] As an improvement to the above technical solution, each pressure level corresponds to a pressure ratio, which is the ratio of the target bandwidth of that pressure level to the rated bandwidth reference value, and the value is between 0 and 1. Pressure is applied using a closed-loop control method: the deviation between the measured bandwidth and the target bandwidth is calculated within each acquisition cycle, and an adjustment amount is generated through a proportional-integral controller. This adjustment amount is then converted into an adjustment of the number of parallel memory access threads and the memory access request transmission rate. The adjustment continues until the relative deviation falls into a preset tolerance band and remains stable for one acquisition cycle. The target bandwidth is calculated using the following formula:
[0031]
[0032] In the formula: For target bandwidth;
[0033] This represents the pressure ratio corresponding to the p-th pressure level.
[0034] This is the reference value for the rated bandwidth;
[0035] The adjustment amount is calculated using the following formula:
[0036]
[0037] In the formula: This represents the deviation between the measured bandwidth and the target bandwidth. and These are the proportional coefficient and integral coefficient, respectively; t is time.
[0038] As an improvement to the above technical solution, the inflection point determination condition is as follows: when the delay growth rate is greater than the first threshold, and / or the bandwidth increment is less than the second threshold, and / or a correctable error event or a predictive fault analysis warning event is collected, and the corresponding conditions are met within N consecutive collection cycles, the memory performance inflection point is determined to be reached, the inflection point pressure value and inflection point performance parameters are recorded, and the pressure is stopped, N≥2.
[0039] As an improvement to the above technical solution, a graded noise load is injected into a noisy virtual machine on the same host as the target server through a cloud platform resource scheduling system. The graded noise load includes four levels: no noise, light, moderate, and heavy. Closed-loop resource management is implemented for the bandwidth-intensive streaming read / write tasks executed by the noisy virtual machine to stabilize the bandwidth usage of the noise load within the allowable deviation range. The memory read / write bandwidth of the target server is measured at each noise level to obtain a degradation sequence, and the interference sensitivity coefficient is calculated using the following formula:
[0040]
[0041] In the formula: This refers to the memory read / write bandwidth under noise-free conditions. Let be the memory read / write bandwidth at the j-th noise level; The weight of the j-th noise level is denoted by ; j is the noise level number; m is the number of noise levels, and the sum of the weights is 1; the interference sensitivity test is performed during business off-peak hours or the new server deployment admission phase; for bare metal cloud servers, the noise load process is run directly on the host operating system.
[0042] As an improvement to the above technical solution, cached data packets are executed directly on the host operating system in a bare-metal execution mode, bound to a physical core, without going through a virtualization layer, to obtain the first bandwidth. ; A second bandwidth is obtained by running cached data packets with the same parameters within a virtual machine using the same NUMA binding strategy and virtualization execution mode. The virtualization overhead factor H is calculated using the following formula:
[0043] .
[0044] As an improvement to the above technical solution, each indicator is normalized item by item using the following formula:
[0045]
[0046] In the formula: Let z be the normalized z-value of the i-th indicator; Let be the measured value of the i-th indicator; and These are the mean and standard deviation of the baseline distribution of this indicator in the cloud fingerprint database, respectively;
[0047] A performance feature vector is constructed from the normalized z-values of each metric. This performance feature vector includes at least the metrics of full-load bandwidth, idle latency, cross-NUMA bandwidth ratio, correctable error event count, and inflection point stress value. The Mahalanobis distance of this performance feature vector relative to the baseline fingerprint distribution is then calculated using the following formula:
[0048]
[0049] In the formula: The Mahalanobis distance is used; x is the performance feature vector. The baseline feature mean vector; is the baseline feature covariance matrix; T is the transpose symbol; when the Mahalanobis distance exceeds the preset outlier threshold, the corresponding server is determined to be an outlier, and the preset outlier threshold is 3.
[0050] As an improvement to the above technical solution, the benchmark scores under each NUMA binding strategy are calculated using the following formula, converted to a percentage, and then weighted and summed according to the weights of each NUMA binding strategy to obtain the benchmark index score:
[0051]
[0052] In the formula: This is the baseline score for the k-th test; This is the measured bandwidth; Reference bandwidth; This is a test of access latency; For reference delay; and These are the bandwidth conversion factor and the delay conversion factor, respectively, and k is the test sequence number;
[0053] Under each NUMA binding strategy, repeated measurements were performed, and the stability metric score was calculated using the following formula:
[0054]
[0055] In the formula: The coefficient of variation for repeated measures; and These are the mean and standard deviation of multiple repeated measures under the same NUMA binding strategy; R is the repeated measures identifier. This is the stability attenuation coefficient;
[0056] The virtualization overhead coefficient is mapped to a virtualization overhead score, and the interference sensitivity coefficient is mapped to an anti-interference score. The comprehensive score S is then calculated using the following formula:
[0057]
[0058] In the formula: P represents the baseline score; P represents the stability score. Score the virtualization overhead; For interference resistance scoring, , , and These are the corresponding weights, and The overall score is then mapped to a memory performance level.
[0059] The beneficial effects of this invention are:
[0060] 1. This invention orchestrates tasks uniformly through a cloud platform, tests agents create cloud snapshots and build container or shadow virtual machine isolation environments, and performs lossless reset after testing to avoid affecting online services; and generates containerized components based on NUMA topology, memory generation and channel number matching or dynamic generation, and distributes them with mTLS encryption to improve adaptability, reusability and security.
[0061] 2. The test of this invention adopts closed-loop control to apply memory access pressure step by step. The number of threads and the request rate are adjusted by the proportional-integral controller to make the actual pressure consistent with the configuration. Bandwidth, latency, correctable errors and predictable fault events are collected, the latency growth rate and bandwidth increment are calculated, and the inflection point is determined after N consecutive cycles of confirmation, which reduces jitter misjudgment and improves detection accuracy.
[0062] 3. This invention calculates the interference sensitivity coefficient by injecting hierarchical load into a noisy virtual machine, compares the bandwidth of the bare machine and the virtual machine to obtain the virtualization overhead coefficient, quantifies the anti-interference capability and virtualization loss, and the analysis module performs outlier attribution based on fingerprint database normalization and Mahalanobis distance calculation. The performance level is obtained by comprehensively considering the benchmark, stability, overhead and anti-interference score, generating a cluster report, and associating the data with the hardware model in the lake, thereby improving automation and evaluation capabilities. Attached Figure Description
[0063] Figure 1 This is a system block diagram of the present invention.
[0064] Attached label: 100, Cloud-based test management platform; 200, Test agent; 210, Environment building module; 220, Execution module; 230, Inflection point detection module; 240, Backhaul module; 300, Host machine; 301, Business virtual machine; 302, Shadow test virtual machine; 303, Noisy virtual machine; 400, Cloud image repository; 410, Cloud fingerprint database; 420, Cloud test data lake; 500, Cloud platform resource scheduling system. Detailed Implementation
[0065] The following specific examples illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention.
[0066] Reference Figure 1 As shown, the cloud-based server memory performance testing system includes: a cloud-based test management platform 100, a test agent 200, a cloud-based image repository 400, a cloud-based fingerprint database 410, a cloud-based test data lake 420, a cloud-based platform resource scheduling system 500, a host machine 300, a business virtual machine 301, a shadow test virtual machine 302, and a noisy virtual machine 303.
[0067] Test agent 200 is deployed on each target server;
[0068] The cloud image repository 400 is used to store containerized memory testing components;
[0069] The cloud-based fingerprint database 410 is used to store the performance benchmark distribution under various hardware configurations;
[0070] The cloud-based test data lake 420 is used to store test data and associate it with hardware models;
[0071] The cloud platform resource scheduling system 500 is used to inject graded noise loads into the noisy virtual machine 303;
[0072] The cloud-based test management platform 100 includes:
[0073] Task orchestration module 110: Used to receive memory performance test requests and parse them to generate test tasks and distribute them to each test agent. The test task includes at least a set of test items, stress step parameters, inflection point judgment threshold and collection cycle.
[0074] Analysis module 120: Used to normalize the returned data to obtain performance feature vectors, and perform similarity comparison and outlier attribution based on the cloud fingerprint database 410.
[0075] Report module 130 is used to generate a memory performance test report based on the returned data and the results of analysis module 120;
[0076] The task orchestration module 110 obtains the NUMA topology and memory configuration information of each target server, and uses the memory generation, number of channels and number of slots per channel as index keys to search for matching containerized memory test components in the cloud image repository 400. If no match is found, the components are dynamically combined according to the memory chip specifications and stored in the cloud image repository 400 for reuse. The components and test tasks are then sent to the test agent 200 via the mTLS encrypted channel.
[0077] Test Agent 200 includes:
[0078] Environment building module 210: Used to build an isolated test environment that is isolated from the business virtual machine 301. Environment building module 210 is also used to create a cloud snapshot on the target server to achieve lossless reset after testing, and then build an isolated test environment that is isolated from the business virtual machine 301. The isolated test environment is a container or shadow test virtual machine 302.
[0079] Execution module 220: Used to perform memory performance tests in an isolated test environment to obtain initial performance data;
[0080] Inflection Point Detection Module 230: Used to gradually increase memory access pressure based on pressure step parameters, collect bandwidth, latency, correctable error event counts and predictive fault analysis events at each pressure level, calculate latency growth rate and bandwidth increment, and determine that the memory performance inflection point has been reached and stop increasing pressure when the inflection point determination conditions are met and confirmed for N consecutive collection cycles, N≥2.
[0081] Feedback module 240: Used to send back timing performance data, inflection point pressure value and inflection point performance parameters to the cloud test management platform 100.
[0082] The testing method for a cloud-based server memory performance testing system includes the following steps:
[0083] S1: The cloud-based test management platform 100 receives a memory performance test request carrying a set of target servers, parses and generates a test task. The test task includes at least a set of test items, stress step parameters, inflection point judgment threshold and collection cycle.
[0084] Test requests are submitted through the management portal or open interface, carrying the target server set and test level; the cloud test management platform parses the request into test tasks and executes test window scheduling: servers that are not yet deployed or are within the maintenance window are directly scheduled for testing, servers that carry online business are scheduled for testing during off-peak business windows, and high-bandwidth business is migrated or limited, the pressure ratio limit is lowered, or a rapid screening level is adopted to control the impact on online business.
[0085] S2: Match and distribute containerized memory test components based on hardware topology information;
[0086] The cloud-based test management platform 100 obtains the NUMA topology and memory configuration information of each target server. Using memory generation, number of channels, and number of slots per channel as index keys, it searches the cloud image repository 400 for matching containerized memory test components (including at least bandwidth test, latency test, and stress injection sub-components). If no match is found, the components are dynamically combined and generated according to the memory chip specifications, packaged into a container image, and stored in the image repository for reuse. Subsequently, the components and test tasks are distributed to the test agent 200 via the mTLS encrypted channel.
[0087] S3: The test agent builds an isolated test environment on the target server and performs memory configuration consistency verification;
[0088] First, create a cloud snapshot on the target server to achieve lossless reset after testing. Then, build an isolated test environment (container or shadow test virtual machine 302) that is isolated from the business virtual machine 301. Read the memory SPD information through IPMI or Redfish interface and compare it with the registered hardware specifications. If there is a discrepancy, an alarm will be triggered and the test will be terminated.
[0089] S4: Perform initial multidimensional tests according to each NUMA binding strategy to obtain initial multidimensional performance data;
[0090] NUMA binding strategies include three types: local node binding, cross-node binding, and interleaved binding. For each strategy, cached data packet read and write tests are run to measure memory read bandwidth, write bandwidth, copy bandwidth, and access latency. Cached data packets are generated according to single packet size, quantity, and access mode parameters and copied according to the expansion factor. Each access mode is executed multiple times and the average value is taken.
[0091] The idle latency test requires the hardware prefetcher to be turned off to eliminate interference. The prefetcher control register is a privileged resource, and the host hypervisor 310 provides a privileged write channel: the test agent requests it to write the register at the host machine 300 privilege level to turn off the prefetcher and save the original configuration value. It is restored after the test. The privileged channel is provided in a request-response manner and only the minimum time window is open, without breaking isolation. After the prefetcher is turned off, a dependency loading chain is generated based on pointer tracing, and the latency of each level of cache and memory-level access is measured. The bandwidth, latency and cross-NUMA access performance data under each strategy together constitute the initial multidimensional performance data.
[0092] S5: Gradually increase memory access pressure based on pressure step parameters and perform adaptive inflection point detection;
[0093] The pressure injection sub-component increases the memory access pressure step by step according to the pressure step parameters. Each pressure level corresponds to a pressure ratio (the ratio of the target bandwidth to the rated bandwidth baseline value, with a value between 0 and 1). Closed-loop control is used to apply the pressure.
[0094]
[0095] In the formula: For target bandwidth;
[0096] This represents the pressure ratio corresponding to the p-th pressure level.
[0097] This is the reference value for the rated bandwidth;
[0098] The rated bandwidth baseline value is obtained from a short-duration full-load pre-test before the actual test, or estimated based on the theoretical peak bandwidth of the memory configuration. The deviation between the measured bandwidth and the target bandwidth is calculated in each acquisition cycle, and the adjustment amount is generated by the proportional-integral controller. :
[0099]
[0100] In the formula: This represents the deviation between the measured bandwidth and the target bandwidth. and These are the proportional coefficient and the integral coefficient, respectively; t is time; the inflection point detection module uses at least one of the number of parallel memory access threads and the memory access request emission rate as the adjustment object, and maintains a stable acquisition cycle after the relative deviation enters the preset tolerance band;
[0101] The adjustment amount is used to convert the number of parallel memory access threads and the memory access request emission rate into an adjustment. The proportional coefficient and integral coefficient can be calibrated according to the platform type. The adjustment continues until the relative deviation falls into the preset tolerance band (3% in this embodiment) and remains stable for one acquisition cycle to ensure that the actual pressure of each pressure level is consistent with the configuration step.
[0102] For each additional stress level, the test agent collects the actual bandwidth at that stress level within the collection window. Access delay Correctable error event counting and predictive failure analysis events; calculation of the delay growth rate between two adjacent pressure levels. With bandwidth increment :
[0103]
[0104]
[0105] In the formula: This refers to the access latency at pressure level p. The access delay is the next adjacent pressure level, i.e., the p-1th pressure level. This represents the measured bandwidth at pressure level p. This represents the measured bandwidth of the adjacent upper pressure level, i.e., the p-1th pressure level. Let be the linear expected bandwidth of the p-th pressure level; when p=1, Determined by the origin and the first pressure level sample; when p≥2, The result is extrapolated from the least squares fitting results of the first M samples, where M is an integer not less than 2. After determining that the memory performance inflection point has been reached, the inflection point detection module records the inflection point pressure value, inflection point bandwidth, and inflection point access latency, and stops increasing the memory access pressure.
[0106] The latency growth rate is the relative growth rate of the access latency between two adjacent levels. The bandwidth increment is the proportion of the measured bandwidth increment to the linearly expected bandwidth increment. The theoretical linear extrapolation bandwidth is determined according to the following rules: when p=1, the straight line passing through the origin and the first point is taken (first point straight line method); when p≥2, the first M samples are taken and linearly fitted using the least squares method and extrapolated (sliding window linear fitting method, M=4 in this embodiment). This can avoid the late samples of the saturation section from skewing the extrapolation benchmark. When queue congestion occurs in the memory subsystem, the bandwidth increment will be significantly less than 100%.
[0107] The inflection point determination criteria are as follows: when the latency growth rate is greater than the first threshold, and / or the bandwidth increment is less than the second threshold, and / or correctable error events or predictive fault analysis warning events are collected, and the corresponding conditions are met within N consecutive collection cycles (N≥2, N=3 in this embodiment), the memory performance inflection point is determined to have been reached. The inflection point pressure value and inflection point performance parameters are recorded and pressure is stopped. In this embodiment, the first threshold is 20% and the second threshold is 50%. The inflection point is determined when any of the three criteria is met and confirmed for N consecutive cycles, avoiding misjudgment due to instantaneous jitter. The correctable error event count is obtained by reading the memory controller error correction register through EDAC or the host management program. The predictive fault analysis events are obtained by subscribing to the baseboard management controller event log through IPMI or Redfish interface. Unsupported platforms are automatically downgraded to the other criteria. The test agent writes the breakpoint after each pressure level is completed and resumes from the most recent breakpoint after interruption.
[0108] S6: Perform interference sensitivity test and calculate interference sensitivity coefficient;
[0109] A graded noise load, including four levels: no noise, light noise, moderate noise, and heavy noise, is injected into the noisy virtual machine 303 on the same host as the target server through the cloud platform resource scheduling system. The noisy virtual machine performs bandwidth-intensive streaming read and write tasks. Through closed-loop resource management, its bandwidth usage is stabilized within the allowable deviation range (±5% in this embodiment). The memory read and write bandwidth of the target server is measured at each noise level to obtain the degradation sequence. The interference sensitivity coefficient is calculated according to the following formula:
[0110]
[0111] In the formula: This refers to the memory read / write bandwidth under noise-free conditions. Let be the memory read / write bandwidth at the j-th noise level; Let be the weight of the j-th noise level; j is the noise level index; m is the number of noise levels, and ;
[0112] Q is the interference sensitivity coefficient, which is the weighted sum of bandwidth degradation rates under each noise level. The sum of the weights is 1. The larger the Q value, the more sensitive it is to interference. Interference sensitivity testing is performed during business off-peak hours or the new server deployment and access phase. For bare metal cloud servers, the noise load process can be run directly on the host operating system.
[0113] S7: Perform virtualization overhead test and calculate virtualization overhead coefficient;
[0114] Bare-metal execution mode refers to running cached data packets directly on the host operating system without going through a virtualization layer, using a physical core binding method to obtain the first memory read / write bandwidth; virtualization execution mode refers to running cached data packets with the same parameters within a virtual machine to obtain the second memory read / write bandwidth. Both modes use the same parameters and NUMA binding strategy. Excluding the impact of configuration differences, the virtualization overhead coefficient is calculated using the following formula:
[0115]
[0116] In the formula: The first bandwidth; For the second bandwidth;
[0117] H is the virtualization overhead coefficient, which is the ratio of the bandwidth difference between the two modes to the bare metal bandwidth. Due to the overhead of Hypervisor level 2 address translation and virtualization interrupts, H is usually between 2% and 15%, and can be used to quantify the performance loss of the virtualization layer.
[0118] S8: The cloud-based test management platform performs normalization comparison, attribution, and comprehensive evaluation on the returned data, and generates a cluster-level memory performance test report.
[0119] Each test agent will compress and verify the signature of the time-series performance data, inflection point stress values, and inflection point performance parameters before transmitting them back via an mTLS encrypted channel. The analysis module 120 will normalize each indicator using the following formula:
[0120]
[0121] In the formula: Let z be the normalized z-value of the i-th indicator; Let be the measured value of the i-th indicator; and These are the mean and standard deviation of the baseline distribution of this indicator in the cloud fingerprint database, respectively;
[0122] The normalized z-value is the difference between the measured value and the mean of the benchmark distribution divided by the standard deviation. The z-values of each index constitute an n-dimensional performance feature vector, which includes at least full-load bandwidth, idle latency, cross-NUMA bandwidth ratio, correctable error event count, and inflection point pressure value.
[0123] Then, the Mahalanobis distance between the performance feature vector and the baseline fingerprint distribution is calculated using the following formula as a similarity measure:
[0124]
[0125] In the formula: The Mahalanobis distance is used; x is the performance feature vector. The baseline feature mean vector; The reference characteristic covariance matrix; T is the transpose sign;
[0126] When the Mahalanobis distance exceeds the preset outlier threshold (3 in this embodiment), the corresponding server is determined to be an outlier node, and the cause is attributed according to the attribution mapping table: deviation between the inflection point pressure value and the stability dimension is judged as a stability risk; deviation between the capacity and frequency dimensions is judged as a mixed insertion anomaly; deviation between the cross-NUMA bandwidth ratio dimension is judged as a NUMA configuration anomaly; deviation between the timing and rate dimensions is judged as a firmware configuration anomaly. The attribution mapping table can be preset by expert experience and updated online.
[0127] When the fingerprint database lacks a baseline distribution with a corresponding configuration, it is processed according to the cold start procedure: the existing baseline with the highest memory configuration similarity is selected as a temporary baseline and marked with a cold start identifier; after the task is completed, the performance feature vectors under this configuration are selected according to the consistency criterion to construct a new baseline and write it into the fingerprint database. If the number of samples is less than the minimum sample size (30 in this embodiment), it is marked as a distribution to be enriched.
[0128] While attributing the results, the analysis module calculates a comprehensive evaluation based on the normalized results. The benchmark scores for each NUMA binding strategy are calculated using the following formula and weighted to obtain the benchmark indicator score:
[0129]
[0130] In the formula: This is the baseline score for the k-th test; This is the measured bandwidth; Reference bandwidth; This is a test of access latency; For reference delay; and These are the bandwidth conversion factor and the delay conversion factor, respectively, and k is the test sequence number;
[0131] The benchmark score is calculated by converting the ratio of measured bandwidth to reference bandwidth and measured latency to reference latency using conversion factors. The reference value is taken as the hardware design specification value or the historical best value of the test data lake. The benchmark score is converted into a percentage and then weighted and summed according to the local node, cross-node, and interleaving weights (0.5, 0.3, and 0.2 in this embodiment) to obtain the benchmark index score.
[0132] Under each NUMA binding strategy, multiple (5 times in this example) repeated measurements were performed, and the stability index score P was calculated using the following formula:
[0133]
[0134] In the formula: The coefficient of variation for repeated measures; and These are the mean and standard deviation of multiple repeated measures under the same NUMA binding strategy; R is the repeated measures identifier. This is the stability attenuation coefficient;
[0135] The stability score is calculated based on the coefficient of variation of repeated measurements. Simultaneously, a pre-defined piecewise mapping function maps the virtualization overhead coefficient H to the virtualization overhead score and the interference sensitivity coefficient Q to the anti-interference score. The overall score is then calculated and summarized using the following formula. :
[0136]
[0137] In the formula: P represents the baseline score; P represents the stability score. Score the virtualization overhead; For interference resistance scoring, , , and These are the corresponding weights. ;
[0138] The comprehensive score is a weighted sum of the baseline index score, stability score, virtualization overhead score, and anti-interference score according to their respective weights (0.35, 0.25, 0.2, and 0.2 in this embodiment), and mapped to memory performance levels: not less than 90 points is grade A, 80 to 89 points is grade B+, 70 to 79 points is grade B, 60 to 69 points is grade C, and less than 60 points is grade D.
[0139] The report module 130 summarizes the inflection point pressure value, performance level, outlier determination and attribution results of each server, generates a cluster-level test report and executes scheduling linkage: servers with stability risks are moved out of the high availability resource pool and maintenance work orders are generated, servers with mixed insertion abnormalities are added to the manual review list, and placement optimization suggestions are sent when the anti-interference score is lower than the threshold or the NUMA configuration is abnormal, forming a closed loop from testing to scheduling. All test data is uploaded to the cloud test data lake 420 and associated with the hardware model. When testing new servers of the same model, a performance baseline is provided based on historical data and the performance deviation is calculated.
[0140] The fault tolerance mechanism in this embodiment includes: the test agent writes breakpoints in units of stress level and resumes from the breakpoint after interruption; when receiving or executing fails, it returns a message carrying a failure stage identifier, and the platform resends it according to the preset retry strategy (up to 3 times, with increasing backoff interval); when the server is offline and unresponsive, it is marked as pending retesting and automatically included in the next batch; after the test is completed, the server state is restored according to the cloud snapshot, and unreleased isolated environments and noisy virtual machines are detected and forcibly released.
[0141] The above embodiments are merely illustrative of the technical solutions of the present invention and are not intended to limit it. Anyone skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in the present invention should still be covered by the claims of the present invention.
Claims
1. A server memory performance testing system based on a cloud platform, characterized in that, include: The cloud-based test management platform (100), test agent (200), cloud-based image repository (400), cloud-based fingerprint database (410), cloud-based test data lake (420), cloud platform resource scheduling system (500), host machine (300), business virtual machine (301), shadow test virtual machine (302) and noisy virtual machine (303). The test agent (200) is deployed on each target server; The cloud image repository (400) is used to store containerized memory testing components; The cloud fingerprint database (410) is used to store the performance benchmark distribution under various hardware configurations; The cloud-based test data lake (420) is used to store test data and associate it with the hardware model; The cloud platform resource scheduling system (500) is used to inject graded noise loads into the noisy virtual machine (303).
2. The server memory performance testing system based on a cloud platform according to claim 1, characterized in that: The cloud-based test management platform (100) includes: Task orchestration module (110): used to receive memory performance test requests and parse them to generate test tasks and distribute them to each test agent. The test tasks include at least a set of test items, stress step parameters, inflection point judgment threshold and collection cycle. Analysis module (120): used to normalize the returned data to obtain performance feature vectors, and perform similarity comparison and outlier attribution based on the cloud fingerprint database (410). The reporting module (130) is used to generate a memory performance test report based on the returned data and the results of the analysis module (120); The task orchestration module (110) obtains the NUMA topology and memory configuration information of each target server, and uses the memory generation, number of channels and number of slots per channel as index keys to search for matching containerized memory test components in the cloud image repository (400). If no match is found, the components are dynamically generated according to the memory particle specifications and stored in the cloud image repository (400) for reuse. The components and test tasks are then sent to the test agent (200) via the mTLS encrypted channel.
3. The server memory performance testing system based on a cloud platform according to claim 2, characterized in that: The test agent (200) includes: Environment building module (210): used to build an isolated test environment isolated from the business virtual machine (301). The environment building module (210) is also used to create a cloud snapshot on the target server to achieve lossless reset after testing, and then build an isolated test environment isolated from the business virtual machine (301). The isolated test environment is a container or the shadow test virtual machine (302). Execution module (220): used to perform memory performance tests in the isolated test environment to obtain initial performance data; Inflection point detection module (230): is used to increase memory access pressure step by step based on the pressure stepping parameters, collect bandwidth, latency, correctable error event count and predictive fault analysis events under each pressure level, calculate latency growth rate and bandwidth increment, and determine that the memory performance inflection point has been reached and stop increasing pressure when the inflection point determination conditions are met and confirmed for N consecutive collection cycles, N≥2. Feedback module (240): Used to send back timing performance data, inflection point pressure value and inflection point performance parameters to the cloud test management platform (100).
4. A cloud-based server memory performance testing method, applied to the cloud-based server memory performance testing system according to any one of claims 1 to 3, characterized in that, Includes the following steps: S1: The cloud-based test management platform (100) receives a memory performance test request carrying a set of target servers, parses and generates a test task. The test task includes at least a set of test items, stress step parameters, inflection point judgment threshold and collection cycle. S2: Match and distribute containerized memory test components based on hardware topology information; S3: The test agent builds an isolated test environment on the target server and performs memory configuration consistency verification; S4: Perform initial multidimensional tests according to each NUMA binding strategy to obtain initial multidimensional performance data; S5: Gradually increase memory access pressure based on pressure step parameters, perform adaptive inflection point detection, and determine that the memory performance inflection point has been reached when the inflection point judgment condition is met and confirmed for N consecutive collection cycles. Record the inflection point pressure value and inflection point performance parameters and stop increasing pressure. N≥2. S6: Perform interference sensitivity test and calculate interference sensitivity coefficient; S7: Perform virtualization overhead test and calculate virtualization overhead coefficient; S8: The cloud-based test management platform (100) performs normalization comparison, attribution and comprehensive evaluation on the returned data, and generates a cluster-level memory performance test report.
5. The server memory performance testing method based on a cloud platform according to claim 4, characterized in that: Each pressure level corresponds to a pressure ratio, which is the ratio of the target bandwidth of that pressure level to the rated bandwidth reference value, and the value is between 0 and 1. Pressure is applied in a closed-loop control manner: the deviation between the measured bandwidth and the target bandwidth is calculated in each acquisition cycle, and an adjustment amount is generated through a proportional-integral controller. The adjustment amount is converted into an adjustment of the number of parallel memory access threads and the memory access request transmission rate. The adjustment continues until the relative deviation falls into a preset tolerance band and remains stable for one acquisition cycle. The target bandwidth is calculated by the following formula: In the formula: For target bandwidth; This represents the pressure ratio corresponding to the p-th pressure level. This is the reference value for the rated bandwidth; The adjustment amount is calculated using the following formula: In the formula: This represents the deviation between the measured bandwidth and the target bandwidth. and These are the proportional coefficient and integral coefficient, respectively; t is time.
6. The server memory performance testing method based on a cloud platform according to claim 4, characterized in that: The inflection point determination criteria are as follows: when the latency growth rate is greater than the first threshold, and / or the bandwidth increment is less than the second threshold, and / or a correctable error event or a predictive fault analysis warning event is collected, and the corresponding conditions are met within N consecutive collection cycles, the memory performance inflection point is determined to be reached. The inflection point pressure value and inflection point performance parameters are recorded and the pressure is stopped, where N≥2.
7. The server memory performance testing method based on a cloud platform according to claim 4, characterized in that: A graded noise load is injected into a noisy virtual machine (303) on the same host as the target server using a cloud platform resource scheduling system (500). The graded noise load includes four levels: no noise, light noise, moderate noise, and heavy noise. Closed-loop resource management is performed on the bandwidth-intensive streaming read / write tasks executed by the noisy virtual machine to stabilize the bandwidth usage of the noise load within the allowable deviation range. The memory read / write bandwidth of the target server is measured at each noise level to obtain a degradation sequence, and the interference sensitivity coefficient is calculated using the following formula: In the formula: This refers to the memory read / write bandwidth under noise-free conditions. Let be the memory read / write bandwidth at the j-th noise level; The weight of the j-th noise level; j represents the noise level number; m represents the number of noise levels, and the sum of the weights is 1; the interference sensitivity test is performed during business off-peak hours or the new server deployment and access phase; for bare metal cloud servers, the noise load process is run directly on the host operating system.
8. The server memory performance testing method based on a cloud platform according to claim 4, characterized in that: In bare-metal execution mode, cached data packets are executed directly on the host operating system by binding to a physical core, without going through a virtualization layer, to obtain the first bandwidth. ; A second bandwidth is obtained by running cached data packets with the same parameters within a virtual machine using the same NUMA binding strategy and virtualization execution mode. The virtualization overhead factor H is calculated using the following formula: 。 9. The server memory performance testing method based on a cloud platform according to claim 4, characterized in that: Normalize each indicator item by the following formula: In the formula: Let z be the normalized z-value of the i-th indicator; Let be the measured value of the i-th indicator; and These are the mean and standard deviation of the baseline distribution of this indicator in the cloud fingerprint database (410), respectively; A performance feature vector is constructed from the normalized z-values of each metric. This performance feature vector includes at least the metrics of full-load bandwidth, idle latency, cross-NUMA bandwidth ratio, correctable error event count, and inflection point stress value. The Mahalanobis distance of this performance feature vector relative to the baseline fingerprint distribution is then calculated using the following formula: In the formula: The Mahalanobis distance is used; x is the performance feature vector. The baseline feature mean vector; The baseline characteristic covariance matrix; T is the transpose symbol; when the Mahalanobis distance exceeds the preset outlier threshold, the corresponding server is determined to be an outlier, and the preset outlier threshold is 3.
10. The server memory performance testing method based on a cloud platform according to claim 4, characterized in that: The benchmark scores for each NUMA binding strategy are calculated using the following formula, converted to a percentage, and then weighted and summed according to the weights of each NUMA binding strategy to obtain the benchmark score: In the formula: The baseline score for the k-th test; This is the measured bandwidth; Reference bandwidth; This is a test of the access latency; For reference delay; and These are the bandwidth conversion factor and the delay conversion factor, respectively, and k is the test sequence number; Under each NUMA binding strategy, repeated measurements were performed, and the stability metric score was calculated using the following formula: In the formula: The coefficient of variation for repeated measures; and These are the mean and standard deviation of multiple repeated measures under the same NUMA binding strategy; R is the repeated measures identifier. This is the stability attenuation coefficient; The virtualization overhead coefficient is mapped to a virtualization overhead score, and the interference sensitivity coefficient is mapped to an anti-interference score. The comprehensive score S is then calculated using the following formula: In the formula: P represents the baseline score; P represents the stability score. Score the virtualization overhead; For interference resistance scoring, , , and These are the corresponding weights, and ; The summarized comprehensive score is mapped to a memory performance level.
