Performance data management method and device and storage medium
Through dynamic allocation of memory space and pointer management, the problem of excessive memory usage caused by performance data management in wireless communication systems is solved, and the performance testing efficiency and equipment upgrade capabilities are improved.
Patent Information
- Application Number
- CN202310736568.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-20
- Publication Date
- 2024-12-20
AI Technical Summary
In wireless communication systems, the performance data management of network equipment leads to excessive memory occupancy, affecting the device's volume, power consumption and performance testing efficiency.
By dynamically allocating memory space, store the attribute value of performance metrics to the target memory space, and point the pointer of performance variables to this memory space, avoiding pre-occupation of large amounts of memory, reducing unnecessary metrics and initialization errors, and improving memory utilization.
It reduces the data scale and memory usage of performance variables, reduces the time-consuming of initialization errors and traversing global variables, and improves performance testing efficiency and equipment upgrade capabilities.
Smart Images

Figure CN119166538A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a performance data management method, device and storage medium. Background Art
[0002] In a wireless communication system, network equipment can evaluate performance indicators, for example, perform data statistics and data calculation on performance indicators for radio resource control (RRC), generate a performance file corresponding to RRC, and perform performance evaluation through the performance file.
[0003] The operation and maintenance (OM) subsystem deployed on network devices includes a performance (PM) module. When managing performance data: the PM module initializes all performance indicators of the assessment object into a global array, which is stored in memory; the PM module collects the attribute values corresponding to the performance indicators and puts them into the global array for calculation, and finally obtains the performance file.
[0004] However, the memory usage of the above method is too high. Summary of the invention
[0005] The present disclosure provides a performance data management method, device and storage medium, which are used to solve the problem of excessive memory usage in performance data management.
[0006] In a first aspect, the present disclosure provides a performance data management method, which is applied to a network device, and includes: obtaining an attribute value of a first performance indicator of a performance test object; allocating a corresponding target memory space for the attribute value of the first performance indicator; storing the attribute value in the target memory space; pointing a pointer in a performance variable corresponding to the first performance indicator to the target memory space; wherein the performance variable is used to manage the performance indicator of the performance test object.
[0007] In a possible implementation, allocating a corresponding memory space for the attribute value of the first performance indicator includes: allocating a target memory space for the attribute value in a memory pool; wherein the memory pool is a memory space of a fixed size.
[0008] In one possible implementation, in a memory pool, a corresponding target memory space is allocated for an attribute value, including: determining a memory block pointed to by a head node in the memory pool; if the space size of the memory block is greater than or equal to the space size required for the attribute value, determining the memory block as the target memory space; if the space size of the memory block is less than the space size required for the attribute value, allocating the next memory block to the head node according to the space size required for the attribute value, and determining the next memory block as the target memory space.
[0009] In a possible implementation manner, before allocating the corresponding target memory space for the attribute value of the first performance indicator, the method further includes: determining that the pointer corresponding to the first performance indicator has no memory space allocated.
[0010] In a possible implementation, storing the attribute value in the target memory space includes: if the pointer corresponding to the first performance indicator is allocated with memory space, storing the attribute value in the memory space pointed to by the pointer corresponding to the first performance indicator.
[0011] In a possible implementation manner, the method further includes: when the state of the network device changes, updating the attribute value of the performance indicator to which the memory space is allocated among the performance indicators of the performance test object.
[0012] In one possible implementation, the performance indicator of the performance test object also includes a second performance indicator, and the performance variable stores an initial value of the second performance indicator. The performance data management method also includes: obtaining the attribute value of the second performance indicator; and storing the attribute value of the second performance indicator in the data position corresponding to the second performance indicator in the performance variable.
[0013] In a possible implementation, it also includes: after the network device is started, initializing the second performance indicator to obtain an initial value of the second performance indicator; storing the initial value of the second performance indicator in the performance variable at a data position corresponding to the second performance indicator; adding a pointer corresponding to the first performance indicator to the performance variable, and initializing the pointer corresponding to the first performance indicator to a null pointer.
[0014] In a second aspect, the present disclosure provides a performance data management device, which is applied to a network device. The performance data management device includes a memory, a transceiver and a processor; the memory is used to store a computer program; the transceiver is used to send and receive data under the control of the processor; the processor is used to read the computer program in the memory and perform the following operations: obtain the attribute value of the first performance indicator of the performance test object; allocate a corresponding target memory space for the attribute value of the first performance indicator; store the attribute value in the target memory space; point the pointer corresponding to the first performance indicator in the performance variable to the target memory space; wherein the performance variable is used to manage the performance indicator of the performance test object.
[0015] In a possible implementation manner, the processor is further configured to: allocate a target memory space for the attribute value in a memory pool; wherein the memory pool is a memory space of a fixed size.
[0016] In one possible implementation, the processor is also used to: determine the memory block pointed to by the head node in the memory pool; if the space size of the memory block is greater than or equal to the space size required by the attribute value, determine the memory block as the target memory space; if the space size of the memory block is less than the space size required by the attribute value, allocate the next memory block to the head node according to the space size required by the attribute value, and determine the next memory block as the target memory space.
[0017] In a possible implementation, before allocating the corresponding target memory space for the attribute value of the first performance indicator, the processor is further configured to: determine that no memory space is allocated to the pointer corresponding to the first performance indicator.
[0018] In a possible implementation, the processor is further configured to: if the pointer corresponding to the first performance indicator is allocated with memory space, store the attribute value in the memory space pointed to by the pointer corresponding to the first performance indicator.
[0019] In a possible implementation manner, the processor is further configured to: when the state of the network device changes, update the attribute value of the performance indicator to which the memory space is allocated among the performance indicators of the performance test object.
[0020] In one possible implementation, the performance indicator of the performance test object also includes a second performance indicator, the performance variable stores an initial value of the second performance indicator, and the processor is also used to: obtain an attribute value of the second performance indicator; and store the attribute value of the second performance indicator at a data position in the performance variable corresponding to the second performance indicator.
[0021] In one possible implementation, the processor is also used to: after the network device is started, initialize the second performance indicator to obtain an initial value of the second performance indicator; store the initial value of the second performance indicator in the data position corresponding to the second performance indicator in the performance variable; add a pointer corresponding to the first performance indicator to the performance variable, and initialize the pointer corresponding to the first performance indicator to a null pointer.
[0022] In a third aspect, the present disclosure provides a performance data management device, which is applied to a network device. The performance data management device includes: a first acquisition unit, used to acquire the attribute value of a first performance indicator of a performance test object; a space dynamic allocation unit, used to allocate a corresponding target memory space for the attribute value of the first performance indicator; a first storage unit, used to store the attribute value to the target memory space; a pointer adjustment unit, used to point a pointer in a performance variable corresponding to the first performance indicator to the target memory space; wherein the performance variable is used to manage the performance indicator of the performance test object.
[0023] In a possible implementation manner, the space dynamic allocation unit is specifically used to: allocate a target memory space for the attribute value in a memory pool; wherein the memory pool is a memory space of a fixed size.
[0024] In one possible implementation, the space dynamic allocation unit is specifically used to: determine the memory block pointed to by the head node in the memory pool; if the space size of the memory block is greater than or equal to the space size required by the attribute value, then determine the memory block as the target memory space; if the space size of the memory block is less than the space size required by the attribute value, then allocate the next memory block to the head node according to the space size required by the attribute value, and determine the next memory block as the target memory space.
[0025] In a possible implementation, before allocating the corresponding target memory space for the attribute value of the first performance indicator, the space dynamic allocation unit is further used to: determine that the pointer corresponding to the first performance indicator has no allocated memory space.
[0026] In a possible implementation, the first storage unit is specifically used to: if the pointer corresponding to the first performance indicator is allocated with memory space, store the attribute value in the memory space pointed to by the pointer corresponding to the first performance indicator.
[0027] In a possible implementation, the performance data management device further includes: an updating unit, configured to update the attribute value of the performance indicator to which the memory space is allocated among the performance indicators of the performance test object when the state of the network device changes.
[0028] In one possible implementation, the performance indicator of the performance test object also includes a second performance indicator, the performance variable stores an initial value of the second performance indicator, and the performance data management device also includes: a second acquisition unit, used to obtain the attribute value of the second performance indicator; and a second storage unit, used to store the attribute value of the second performance indicator in the data position corresponding to the second performance indicator in the performance variable.
[0029] In one possible implementation, the performance data management device also includes an initialization unit, which is used to: after the network device is started, initialize the second performance indicator to obtain an initial value of the second performance indicator; store the initial value of the second performance indicator in the performance variable at a data position corresponding to the second performance indicator; add a pointer corresponding to the first performance indicator to the performance variable, and initialize the pointer corresponding to the first performance indicator to a null pointer.
[0030] In a fourth aspect, the present disclosure provides a processor-readable storage medium, wherein the processor-readable storage medium stores a computer program, and the computer program is used to enable a processor to execute the performance data management method provided in the first aspect.
[0031] In a fifth aspect, the present disclosure provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the performance data management method provided in the first aspect above.
[0032] In a sixth aspect, the present disclosure provides a communication system, comprising any of the network devices described above.
[0033] According to the performance data management method, device and storage medium provided by the present disclosure, after the network device obtains the attribute value of the first performance indicator of the performance test object, it allocates the corresponding target memory space for the attribute value and stores it in the target memory space, and then points the pointer corresponding to the first performance indicator in the performance variable to the target memory space. Thus, by dynamically allocating memory space for the first performance indicator and reserving a pointer for the first performance indicator in the performance variable, the size of the performance variable is reduced, and there is no need to reserve memory space for the attribute value of the first performance indicator, thereby reducing the memory occupancy rate.
[0034] It should be understood that the contents described in the above summary of the invention are not intended to limit the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easy to understand through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the present disclosure or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0036] Figure 1 This is an example diagram of the process of initializing performance data in the PM module;
[0037] Figure 2 An example diagram of the process of collecting statistics on RRC performance indicators for the PM module;
[0038] Figure 3 An example diagram of an application scenario provided by an embodiment of the present disclosure;
[0039] Figure 4 Schematic diagram of the process of the performance data management method provided in the embodiment of the present disclosure Figure 1 ;
[0040] Figure 5 Schematic diagram of the process of the performance data management method provided in the embodiment of the present disclosure Figure 2 ;
[0041] Figure 6Schematic diagram of the process of the performance data management method provided in the embodiment of the present disclosure Figure 3 ;
[0042] Figure 7 A schematic diagram of the structure of the performance data management device provided in the embodiment of the present disclosure Figure 1 ;
[0043] Figure 8 A schematic diagram of the structure of the performance data management device provided in the embodiment of the present disclosure Figure 2 . DETAILED DESCRIPTION
[0044] In the present disclosure, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or plural.
[0045] It is understandable that the steps or operations in the embodiments of the present disclosure are only examples, and the embodiments of the present disclosure may also perform other operations or variations of various operations. In addition, the steps may be performed in different orders presented in the embodiments of the present disclosure, and it is possible that not all operations in the embodiments of the present disclosure are to be performed.
[0046] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0047] The technical solution provided by the embodiments of the present disclosure can be applicable to a variety of systems, especially 5G and 6G systems. For example, the system to which the embodiments of the present disclosure are applicable can be a global system of mobile communication (GSM) system, a code division multiple access (CDMA) system, a wideband code division multiple access (WCDMA) general packet radio service (GPRS) system, a long term evolution (LTE) system, a LTE frequency division duplex (FDD) system, a LTE time division duplex (TDD) system, an advanced long term evolution (LTE-A) system, a universal mobile telecommunication system (UMTS), a world-wide interoperability for microwave access (WiMAX) system, a 5G new radio (NR) system, etc. These various systems include terminals and network equipment. The system may also include a core network part, such as an evolved packet system (EPS), a 5G system (5GS), etc.
[0048] The terminal involved in the embodiments of the present disclosure may be a device that provides voice and / or data connectivity to a user, a handheld device with a wireless connection function, or other processing devices connected to a wireless modem. In different systems, the name of the terminal may also be different. For example, in a 5G system, the terminal may be called a user equipment (UE). A wireless terminal can communicate with one or more core networks (CN) via a radio access network (RAN). The wireless terminal may be a mobile terminal, such as a mobile phone (or a "cellular" phone) and a computer with a mobile terminal. For example, it may be a portable, pocket-sized, handheld, computer-built-in or vehicle-mounted mobile device that exchanges language and / or data with a radio access network. For example, personal communication service (PCS) phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs) and other devices. A wireless terminal may also be referred to as a system, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, an access point, a remote terminal, an access terminal, a user terminal, a user agent, or a user device, but is not limited to these terms in the embodiments of the present disclosure.
[0049] The network device involved in the embodiments of the present disclosure may be a base station, which may include multiple cells providing services for the terminal. Depending on the specific application scenario, the base station may also be called an access point, or may be a device in the access network that communicates with the wireless terminal through one or more sectors on the air interface, or other names. The network device may be used to interchange received air frames with Internet Protocol (IP) packets, and serve as a router between the wireless terminal and the rest of the access network, wherein the rest of the access network may include an Internet Protocol (IP) communication network. The network device may also coordinate the attribute management of the air interface. For example, the network device involved in the embodiments of the present disclosure may be a network device (Base Transceiver Station, BTS) in the Global System for Mobile communications (Global System for Mobile communications, GSM) or Code Division Multiple Access (Code Division Multiple Access, CDMA), or a network device (NodeB) in Wide-band Code Division Multiple Access (WCDMA), or an evolutionary network device (eNB or e-NodeB) in the long term evolution (LTE) system, a 5G base station (gNB) in the 5G network architecture (next generation system), or a home evolved Node B (HeNB), a relay node, a home base station (femto), a pico base station (pico), etc., which is not limited in the embodiments of the present disclosure. In some network structures, the network device may include a central unit (CU) node and a distributed unit (DU) node, and the central unit and the distributed unit may be arranged together or separately in terms of geography.
[0050] An operation maintain (OM) system may be deployed on the network device. The OM system may include a performance (PM) module. The PM module uses global variables to manage all performance data. The global variable is a global array whose size is the sum of the data volume of all performance data.
[0051] When network equipment is to be evaluated for key performance indicators (KPIs), after the network equipment is powered on and started (for example, base station startup), the PM module can initialize the attribute values of all indicators of each performance test object for each performance test object, and store the initialization value of the performance test object in a global variable. When performing statistics, the PM module will collect relevant indicators based on the type of network equipment (such as 4G base stations, 5G base stations) and the configuration of network equipment (such as antennas, cells, boards, etc.), determine the attribute values of relevant indicators, and put the attribute values of relevant indicators in the instance into global variables for management.
[0052] For example, the PM module has a variety of different performance indicators (also known as assessment indicators) for different base station types and different radio frequency unit types, such as cell OM counters, physical layer abnormal state statistics, etc. With the increase of performance indicators and the refinement of statistical items, new statistical items have been added, such as statistics of radio resource control (RRC) process-level resources and paging statistics of public land mobile network (PLMN) in cell areas. When the base station is started, the attribute values of all performance indicators are initialized and placed in global variables according to the corresponding rules, and memory space is allocated for data storage for these attribute values, resulting in a large amount of memory space being used. During the test cycle, the base station collects various instance data according to the judgment conditions and configured indicators, puts them into global variables for solution, generates performance files, and reports the performance files to the operation and maintenance center (OMC).
[0053] Figure 1 The following is an example of the process of initializing performance data in the PM module. Figure 1 As shown, the initialization process of the performance data in the PM module may include: S101, the base station main control board is powered on, and an independent virtual address space is allocated to the PM module; S102, the PM module on the main control board is initialized. During the initialization process, the executable file is mapped to the virtual address space, the instruction register of the processor is set to the program entry of the executable file, and the code corresponding to the PM module is executed; S103, the performance indicators of all instances (i.e., all performance test objects) are loaded into the memory; S104, the performance indicators just loaded into the memory are initialized according to the initialization rules, and the initialization values are placed in the global variables accordingly, so that the instances are associated with the global variables, and all instances are managed by a global variable. At this time, all instances will occupy the memory; S105, in the actual test process, after collecting the data, the data attributes are solved, and the attribute values obtained by the solution are placed in the global variables accordingly.
[0054] Figure 2 The following is an example of the process of calculating the performance indicators of RRC for the PM module. Figure 2 As shown, after the base station is started, the PM module initializes all performance indicators as global variables (the specific process can be referred to the above description). When the performance statistics time comes, the PM module can traverse the global variables to see which performance indicators need to collect data (such as which performance indicators need to be assessed, which indicators need statistics, etc.). After determining the performance indicators for which data can be currently collected, if these performance indicators include the performance indicators of RRC, the PM module can perform statistics on the performance indicators of RRC, and the statistical process is as follows: S201, the PM module sends a performance request to the business system related to RRC to request statistics on the performance indicators of RRC; S202, the business system related to RRC can respond to the performance request of the PM module and send a performance statistics response message to the PM module, and the response message may include the actual data of the RRC performance indicators reported by the business system related to RRC to the PM module; S203, solve the actual data of the RRC performance indicators according to the rules; S204, traverse the global variables to determine whether the performance indicators of RRC allow the generation of performance files; S205, generate the RRC performance file when the solution meets the requirements and the generation of performance files is allowed; S206, send the performance file to OMC for the operator to evaluate the current base station performance.
[0055] It can be seen that the above performance management method has the following shortcomings: the data scale of performance variables is too large, resulting in excessive memory occupancy. The memory space corresponds to the physical memory, which is expensive. The demand for a large amount of memory space will further require the embedded device where the physical memory is located to be larger in size and have higher power consumption, which is not conducive to equipment upgrade and optimization; there may be a large number of indicators in the performance variables that do not meet the requirements and do not need to be evaluated. These indicators will bring more initialization rules and leave initialization errors. After a large amount of memory is occupied, it is not conducive to the subsequent introduction of more performance test indicators according to demand; global variables will be traversed when collecting data and writing performance files. The large size of global variables causes the entire traversal process to take a long time, affecting the program running rate and the test efficiency.
[0056] To solve the above problems, the present disclosure proposes a performance data management method, device and storage medium. After obtaining the attribute value of the first performance indicator of the performance test object, the network device dynamically opens up memory space for the first performance indicator and points the pointer corresponding to the first performance indicator in the global variable to the memory space, instead of occupying the memory space after the network device is started. This reduces the data size of the global variable, reduces the indicators in the performance variables that do not meet the requirements and do not need to be assessed, reduces the occurrence of initialization errors, and can also reduce the time spent on traversing the global traversal during the test, thereby improving the efficiency of performance testing. While not affecting the basic framework of performance management, performance management is quickly and smoothly upgraded.
[0057] Among them, the method and the device are based on the same application concept. Since the method and the device solve the problem in a similar principle, the implementation of the device and the method can refer to each other, and the repeated parts will not be repeated.
[0058] Based on the above technical concept, the application scenarios of the embodiments of the present disclosure are as follows:
[0059] Figure 3 This is an example diagram of an application scenario provided by an embodiment of the present disclosure. Figure 3 As shown, the application scenario involved in this embodiment may include a network device 301, in which an OM system is deployed, and the OM system includes a PM module. After the network device 301 is powered on, the PM module may initialize global variables, which include pointers corresponding to performance indicators, so as to manage performance data through global variables; during the performance test process, the attribute value of the performance indicator may be obtained according to the collected data, and memory space may be dynamically allocated for the attribute value, and the pointer corresponding to the performance indicator may be pointed to the memory space.
[0060] Optional, such as Figure 3 As shown, the application scenario may also include a server 302. The network device 301 may generate a performance file of the performance test object based on the attribute value of the performance indicator of the performance test object, and report the performance file to the server 302 so that the server 302 can perform performance supervision.
[0061] Combine the following Figure 4 For application scenarios, refer to Figures 4 to 6 It should be noted that the above application scenarios are only shown to facilitate understanding of the spirit and principle of the present disclosure, and the embodiments of the present disclosure can also be applied to any applicable scenarios.
[0062] Figure 4 Schematic diagram of the process of the performance data management method provided in the embodiment of the present disclosure Figure 1 .like Figure 4As shown, on the network device side, the performance data management method of this embodiment may include:
[0063] S401: Obtain an attribute value of a first performance indicator of a performance test object.
[0064] The first performance indicator may be all or part of the indicators of the performance test object.
[0065] The performance test object may be all or part of the performance test object of the network device.
[0066] As an example, if the network device is configured with multiple antennas, the performance test object may be antenna a, antenna b, etc. The performance test object may also be different RRC resources.
[0067] In this embodiment, during the performance indicator test (i.e., performance indicator assessment), the network device may collect performance data of the first performance indicator of the performance test object in an actual scenario, and determine the attribute value of the first performance indicator based on the performance data of the first performance indicator; or, the network device may read the attribute value of the first performance indicator of the performance test object from a database; or, the attribute value of the first performance indicator may be obtained by statistics from other devices, and the network device may receive the attribute value of the first performance indicator of the performance test object sent by other devices.
[0068] S402: Allocate a corresponding target memory space for the attribute value of the first performance indicator.
[0069] In this embodiment, after obtaining the attribute value of the first performance indicator, a corresponding memory space is allocated to the attribute value of the first performance indicator in the memory space of the network device. For the sake of distinction, the memory space allocated to the attribute value of the first performance indicator is referred to as a target memory space. In the case of multiple first performance indicators, a corresponding target memory space can be allocated to the attribute value of each first performance indicator.
[0070] S403: Store the attribute value of the first performance indicator into the target memory space.
[0071] In this embodiment, the attribute value of the first performance indicator is stored in the corresponding target memory space. In this way, when the attribute value of the first performance indicator is not obtained, the first performance indicator will not occupy the memory space. After the attribute value of the first performance indicator is obtained, the memory space is dynamically allocated for the first performance indicator, which avoids the attribute value of the performance indicator occupying the memory space after initialization, thereby improving memory utilization.
[0072] S404: Point the pointer corresponding to the first performance indicator in the performance variable to the target memory space.
[0073] Among them, the performance variables are used to manage the performance indicators of the performance test object. The performance variables can be used to manage the performance indicators of multiple performance test objects. For example, the performance variables include the performance indicator of antenna a, the performance indicator of antenna b, and the performance indicators of multiple RRC resources.
[0074] The performance variable includes a pointer corresponding to the first performance indicator, and the pointer corresponding to the first performance indicator is used to indicate the storage location of the attribute value of the first performance indicator. Compared with putting the attribute value of the first performance indicator into the performance variable, putting the pointer corresponding to the first performance indicator into the performance variable can reduce the data size of the performance variable and reduce the memory space occupied by the performance variable.
[0075] In this embodiment, after the attribute value corresponding to the first performance indicator is stored in the target memory space, the pointer corresponding to the first performance indicator in the performance variable is pointed to the target memory space, so that the pointer corresponding to the first performance indicator accurately reflects the storage location of the attribute value of the first performance indicator.
[0076] In the disclosed embodiment, by storing a pointer corresponding to the first performance indicator in the performance variable, after obtaining the attribute value of the first performance indicator, a target memory space is dynamically allocated for the attribute value of the first performance indicator, the attribute value of the first performance indicator is stored in the target memory space, and the pointer corresponding to the first performance indicator is pointed to the target memory space, thereby reducing the data size of the performance variable, reducing the size of the memory space occupied by the performance variable, and thus reducing the complexity of initializing the performance variable, reducing the indicators in the performance variable that do not meet the requirements and do not need to be assessed, reducing the occurrence of initialization errors, reserving memory space for more performance indicators, and reducing the time spent on traversing performance variables in performance testing, effectively improving the efficiency of performance testing. In addition, dynamically allocating memory space is also conducive to reducing the generation of memory fragmentation and reducing the occurrence of memory leaks.
[0077] In some embodiments, obtaining the attribute value of the first performance indicator of the performance test object may include: collecting performance data of the first performance indicator of the performance test object in an actual scenario; solving the performance data to obtain the attribute value of the first performance indicator. Allocating a corresponding target memory space to the attribute value of the first performance indicator may include: determining whether the attribute value of the first performance indicator meets the requirements, and if the attribute value of the first performance indicator meets the requirements, allocating a corresponding target memory space to the attribute value of the first performance indicator. Thus, only when it is determined through solving that the attribute value of the first performance indicator meets the requirements, memory space is dynamically allocated for the attribute value of the first performance indicator, so as to avoid performance indicators that do not meet the test requirements from occupying memory space, and further improve the memory occupancy rate.
[0078] In this embodiment, when the performance data is solved, the solution can be performed according to the solution mode configured for the attribute value (such as addition, subtraction, multiplication, etc.). Whether the attribute value of the first performance indicator meets the requirements refers to whether the attribute value of the first performance indicator is normal, such as whether it is greater than a certain threshold, or whether it is less than a certain threshold. For example, if the performance test object is a person and the first performance indicator is height, if the height of the person is greater than the height threshold after solution, it is determined that the height does not meet the requirements.
[0079] Optionally, when there are multiple first performance indicators, different first performance indicators may correspond to different or the same solution methods, and the solution method corresponding to the first performance indicator can be reflected by the solution identifier carried by the first performance indicator (such as the number carried by the first performance indicator), so that each performance indicator can be solved separately according to the correct solution method.
[0080] Optionally, in the process of allocating memory space, a dynamic memory allocation function (malloc function, full name is memory allocation) can be used to allocate the corresponding target memory space for the attribute value of the first performance indicator. The dynamic memory allocation function is used to apply for a continuous memory area of a specified size and return the address of the allocated memory area through a pointer type.
[0081] In some embodiments, a target memory space may be allocated in a memory pool for the attribute value of the first performance indicator. The memory pool is a memory space of fixed size. Thus, a fixed-size memory pool may be configured in advance according to demand to avoid frequent modification of the memory pool size, reduce the amount of program development, and limit the size of the memory space that can be occupied by performance data management to avoid excessive memory usage. Through dynamic allocation of the memory pool and memory space, memory fragmentation may also be avoided.
[0082] In a possible implementation, the network device can determine the size of the memory pool according to the number of indicators of the first performance indicator of the performance test object. For example, the network device has a total of 140 performance indicators, and these 140 performance indicators are divided into 22 types by type. The 22 types can be divided into about 500,000 performance instances according to the number of performance test objects. Among these performance instances, the data that can dynamically open up memory space ranges from 250 to 2. If all are opened up, it is estimated that 500 megabytes of memory space will be required. According to the actual use of the network device performance and performance instances, about 150,000 performance instances will be used and recorded in the performance file. The data that can dynamically open up memory space in these instances will use about 150 megabytes of memory space. In order to ensure the safety of program operation, the size of the memory pool can be determined to be 200 megabytes, leaving a margin of 50 megabytes for future upgrades of performance indicators, so that there is no need to frequently modify the size of the memory pool, reducing the amount of program development.
[0083] In a possible implementation, in the memory pool, a memory block of a corresponding size can be allocated to the attribute value of the first performance indicator according to the size of the memory space required by the attribute value of the first performance indicator. Thus, when there is a memory demand, a memory block of a suitable size can be allocated from the memory pool according to the required memory size, thereby improving memory utilization and reducing waste of memory space.
[0084] Furthermore, in the memory pool, a target memory space is allocated for the attribute value of the first performance indicator, including: determining the memory block pointed to by the head node in the memory pool; if the space size of the memory block pointed to by the head node is greater than or equal to the space size required by the attribute value of the first performance indicator, then determining the memory block pointed to by the head node as the target memory space; if the space size of the memory block pointed to by the head node is less than the space size required by the attribute value of the first performance indicator, then the next memory block can be allocated to the head node according to the space size required by the attribute value of the first performance indicator, and the next memory block is determined as the target memory space. In this way, based on the head node in the memory pool, the memory pool is traversed, and a suitable memory block is allocated from the memory pool for the attribute value of the first performance indicator.
[0085] In this implementation, after the network device applies for a memory pool for performance data management, a head node may be created in the memory pool and the head node may be initialized. In the process of allocating target memory space for the attribute value of the first performance indicator, it can be first determined whether the head node is empty. If the head node is empty, a memory block can be allocated to the head node according to the space size required for the attribute value of the first performance indicator, and the memory block pointed to by the head node is determined as the target memory space corresponding to the attribute value of the first performance indicator; if the head node is not empty, it can be determined whether the space size of the memory block pointed to by the head node is greater than or equal to the space size required for the attribute value of the first performance indicator; if the space size of the memory block pointed to by the head node is greater than or equal to the space size required for the attribute value of the first performance indicator, it means that the memory block pointed to by the head node can store the attribute value of the first performance indicator, and the memory block pointed to by the head node can be determined as the target memory space corresponding to the attribute value of the first performance indicator; if the space of the memory block pointed to by the head node is less than the space size required for the attribute value of the first performance indicator, it means that the memory block pointed to by the head node cannot store the attribute value of the first performance indicator, and the next memory block can be allocated to the head node according to the space size required for the attribute value of the first performance indicator, and the next memory block can be determined as the target memory space corresponding to the attribute value of the first performance indicator. It should be noted that the space size of the memory block pointed to by the head node refers to the size of the free space in the memory block pointed to by the head node.
[0086] Furthermore, if there are multiple memory blocks in the memory pool, the head node can be used to traverse each memory block to find out whether there is an available memory block, that is, whether there is a memory block in the multiple memory blocks whose space size is greater than or equal to the space size required by the attribute value of the first performance indicator. If so, the memory block can be determined as the target memory space corresponding to the attribute value of the first performance indicator. Otherwise, the next memory block can be allocated to the head node according to the space size required by the attribute value of the first performance indicator, and the next memory block can be determined as the target memory space corresponding to the attribute value of the first performance indicator.
[0087] In some embodiments, since the operating state of the network device is relatively stable, after allocating the target memory space for the attribute value of the first performance indicator, the target memory space may be kept from being released to avoid memory leakage and improve the security of performance data.
[0088] Figure 5 Schematic diagram of the process of the performance data management method provided in the embodiment of the present disclosure Figure 2 .like Figure 5 As shown, on the network device side, the performance data management method of this embodiment may include:
[0089] S501: Obtain an attribute value of a first performance indicator of a performance test object.
[0090] The implementation principle and technical effects of S501 may refer to the aforementioned embodiments and will not be described in detail.
[0091] S502, determining whether a pointer corresponding to a first performance indicator in a performance variable has memory space allocated thereto.
[0092] In this embodiment, if the pointer corresponding to the first performance indicator in the performance variable is not allocated with memory space, S503 is executed, otherwise S506 is executed. It can be determined whether the pointer corresponding to the first performance indicator in the performance variable is a null pointer, that is, whether it points to a null address. If the pointer corresponding to the first performance indicator is a null pointer, it means that the pointer corresponding to the first performance indicator is not allocated with memory space, and S503 is executed. Otherwise, it means that the pointer corresponding to the first performance indicator is allocated with memory space, and S506 is executed.
[0093] S503: Allocate a corresponding target memory space for the attribute value of the first performance indicator.
[0094] S504: Store the attribute value of the first performance indicator into the target memory space.
[0095] S505: Point the pointer corresponding to the first performance indicator in the performance variable to the target memory space.
[0096] The implementation principles and technical effects of S503 to S505 may refer to the aforementioned embodiments and will not be described in detail.
[0097] In this embodiment, when the pointer corresponding to the first performance indicator has no memory space allocated, that is, when the attribute value of the first performance indicator has no memory space allocated, memory space is dynamically applied for the attribute value of the first performance indicator through S503 to S505.
[0098] S506: Store the attribute value of the first performance indicator in the memory space pointed to by the pointer corresponding to the first performance indicator.
[0099] In this embodiment, when memory space is allocated to the pointer corresponding to the first performance indicator, the attribute value of the first performance indicator is stored in the memory space pointed to by the pointer corresponding to the first performance indicator. Therefore, when the attribute value of the first performance indicator is updated, the memory space allocated to the first performance indicator can be used without reapplying for memory space, thereby reducing memory occupancy.
[0100] In the disclosed embodiment, before storing the attribute value of the first performance indicator, a dynamic memory space allocation is first determined, that is, whether the pointer corresponding to the first performance indicator points to an allocated address is determined, thereby improving the accuracy of the storage location of the attribute value of the first performance indicator and reducing memory occupancy.
[0101] In some embodiments, when the state of the network device changes, the network device can update the attribute value of the performance indicator of the performance test object that has been allocated with memory space. Thus, by only updating the performance indicator that has been allocated with memory space, the performance indicator that has not been allocated with memory space is protected, the crash of the performance data management program is prevented, and the operation of the performance indicator that has not been allocated with memory space is reduced, thereby further improving the efficiency of performance management.
[0102] In some embodiments, the performance indicator of the performance test object also includes a second performance indicator, and the second performance indicator is a different performance indicator from the first performance indicator. For the performance test object, the second performance indicator is a necessary performance indicator, and the first performance indicator is a non-essential performance indicator. The initial value of the second performance indicator can be stored in the performance variable. Therefore, different processing methods are adopted for necessary performance indicators and non-essential performance indicators. For non-essential performance indicators, corresponding pointers are stored in performance variables to reduce the attribute values of non-essential performance indicators so that the data scale of the performance variables is too large, and to avoid occupying too much memory after the performance variables are initialized. For necessary performance indicators, the initial value of the performance indicator is stored in the performance variable to ensure that the necessary performance indicators are directly managed in the performance variable.
[0103] The initial value of the second performance indicator refers to the initial value of the attribute value of the second performance indicator, and the initial value of the second performance indicator can be stored in the performance variable during the initialization process.
[0104] Figure 6 Schematic diagram of the process of the performance data management method provided in the embodiment of the present disclosure Figure 3 .like Figure 6 As shown, on the network device side, the performance data management method of this embodiment may include:
[0105] S601, after the network device is started, the second performance indicator of the performance test object is initialized to obtain an initial value of the second performance indicator.
[0106] S602: Store the initial value of the second performance indicator in the data position corresponding to the second performance indicator in the performance variable.
[0107] S603: Add a pointer corresponding to the first performance indicator of the performance test object to the performance variable, and initialize the pointer corresponding to the first performance indicator to a null pointer.
[0108] Among them, S601~S603 is the initialization process of the performance variables, including the initialization of the first performance indicator and the second performance indicator. The initialization of the first performance indicator and the initialization of the second performance indicator can be performed simultaneously or successively, and the execution order is not limited here.
[0109] In this embodiment, the performance indicator is initialized after the network device is started. In the performance variable, each performance indicator has a corresponding data position. Since the second performance indicator is a necessary performance indicator, the data position corresponding to the second performance indicator is used to store the specific data of the second performance indicator. The first performance indicator is a non-essential performance indicator, and the data position corresponding to the first performance indicator is used to store the pointer corresponding to the first performance indicator. Therefore, the initial value of the second performance indicator is stored in the data position corresponding to the second performance indicator in the performance variable, and the pointer corresponding to the first performance indicator of the performance test object is added to the performance variable. During initialization, the attribute value corresponding to the first performance indicator has not been obtained, and the indicator corresponding to the first performance indicator can be initialized to a null pointer.
[0110] After initialization, the performance data collection process of the second performance indicator and / or the first performance indicator can be performed to obtain the attribute value of the second performance indicator and / or the attribute value of the first performance indicator, and then the corresponding performance file generation, performance testing, etc. can be performed. Among them, S604 and S605 are the performance data processing process after the second performance indicator is initialized, and S606 to S609 are the performance data processing process after the first performance indicator is initialized. S606 to S609 can refer to the above embodiment and will not be repeated.
[0111] S604: Obtain an attribute value of a second performance indicator.
[0112] S605: Store the attribute value of the second performance indicator in the data position corresponding to the second performance indicator in the performance variable.
[0113] In this embodiment, since memory space is reserved for the second performance indicator by placing the initial value of the second performance indicator in the performance variable during initialization, after obtaining the attribute value of the second performance indicator, the attribute value of the second performance indicator can be stored in the data position corresponding to the second performance indicator in the performance variable.
[0114] S606: Obtain an attribute value of the first performance indicator.
[0115] S607: Allocate a corresponding target memory space for the attribute value of the first performance indicator.
[0116] S608: Store the attribute value of the first performance indicator into the target memory space.
[0117] S609: Point the pointer corresponding to the first performance indicator in the performance variable to the target memory space.
[0118] In the disclosed embodiment, in order to reduce the memory occupied by performance data, the initial values of all performance indicators are initialized in the performance variables so that all performance indicators occupy memory space after initialization. This is modified to only initialize necessary performance indicators in the performance variables, thereby reducing initialization tasks. For non-essential performance indicators, memory space is dynamically requested during the use of the performance indicators, thereby reducing the data scale of the performance variables, reducing the memory occupied by performance data, and reducing memory occupancy.
[0119] The present disclosure provides a performance data management device. Figure 7 As shown, on the network device side, the performance data management device may include a transceiver 701 , a processor 702 , and a memory 703 .
[0120] The transceiver 701 is used to receive and send data under the control of the processor 702 .
[0121] Among them, Figure 7In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking together various circuits of one or more processors represented by processor 702 and memory represented by memory 703. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 701 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium, which transmission medium may include a wireless channel, a wired channel, an optical cable, and the like. The processor 702 is responsible for managing the bus architecture and general processing, and the memory 703 may store data used by the processor 702 when performing operations.
[0122] The processor 702 may be a CPU, an ASIC, an FPGA or a CPLD, and the processor may also adopt a multi-core architecture.
[0123] The processor 702 is used to execute the performance data management method provided by the embodiment of the present disclosure according to the obtained executable instructions by calling the computer program stored in the memory 703. The processor and the memory can also be arranged physically separately.
[0124] Specifically, processor 702 is used to perform the following operations: obtain the attribute value of the first performance indicator of the performance test object; allocate the corresponding target memory space for the attribute value of the first performance indicator; store the attribute value to the target memory space; point the pointer corresponding to the first performance indicator in the performance variable to the target memory space; wherein the performance variable is used to manage the performance indicator of the performance test object.
[0125] In a possible implementation, the processor 702 is further configured to: allocate a target memory space for the attribute value in a memory pool; wherein the memory pool is a memory space of a fixed size.
[0126] In one possible implementation, the processor 702 is also used to: determine the memory block pointed to by the head node in the memory pool; if the space size of the memory block is greater than or equal to the space size required by the attribute value, determine the memory block as the target memory space; if the space size of the memory block is less than the space size required by the attribute value, allocate the next memory block to the head node according to the space size required by the attribute value, and determine the next memory block as the target memory space.
[0127] In a possible implementation, before allocating the corresponding target memory space for the attribute value of the first performance indicator, the processor 702 is further configured to: determine that the pointer corresponding to the first performance indicator has no allocated memory space.
[0128] In a possible implementation, the processor 702 is further configured to: if the pointer corresponding to the first performance indicator is allocated with memory space, store the attribute value in the memory space pointed to by the pointer corresponding to the first performance indicator.
[0129] In a possible implementation, the processor 702 is further configured to: when the state of the network device changes, update the attribute value of the performance indicator to which the memory space is allocated among the performance indicators of the performance test object.
[0130] In one possible implementation, the performance indicator of the performance test object also includes a second performance indicator, and the performance variable stores an initial value of the second performance indicator. The processor 702 is also used to: obtain the attribute value of the second performance indicator; and store the attribute value of the second performance indicator in the data position corresponding to the second performance indicator in the performance variable.
[0131] In one possible implementation, the processor 702 is also used to: after the network device is started, initialize the second performance indicator to obtain an initial value of the second performance indicator; store the initial value of the second performance indicator in the performance variable at a data position corresponding to the second performance indicator; add a pointer corresponding to the first performance indicator to the performance variable, and initialize the pointer corresponding to the first performance indicator to a null pointer.
[0132] It should be noted here that the above-mentioned device provided by the present disclosure can implement all the method steps of the data plane orchestration control node in the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as those in the method embodiment will not be specifically repeated here.
[0133] The present disclosure also provides a performance data management device. Figure 8 As shown, the performance data management device includes: a first acquisition unit 801, a space dynamic allocation unit 802, a first storage unit 803 and a pointer adjustment unit 804.
[0134] The first acquisition unit 801 is used to obtain the attribute value of the first performance indicator of the performance test object; the space dynamic allocation unit 802 is used to allocate the corresponding target memory space for the attribute value of the first performance indicator; the first storage unit 803 is used to store the attribute value to the target memory space; the pointer adjustment unit 804 is used to point the pointer corresponding to the first performance indicator in the performance variable to the target memory space; wherein, the performance variable is used to manage the performance indicator of the performance test object.
[0135] In a possible implementation, the space dynamic allocation unit 802 is specifically configured to: allocate a target memory space for the attribute value in a memory pool; wherein the memory pool is a memory space of a fixed size.
[0136] In one possible implementation, the space dynamic allocation unit 802 is specifically used to: determine the memory block pointed to by the head node in the memory pool; if the space size of the memory block is greater than or equal to the space size required by the attribute value, determine the memory block as the target memory space; if the space size of the memory block is less than the space size required by the attribute value, allocate the next memory block to the head node according to the space size required by the attribute value, and determine the next memory block as the target memory space.
[0137] In a possible implementation, before allocating the corresponding target memory space for the attribute value of the first performance indicator, the space dynamic allocation unit 802 is further used to: determine that the pointer corresponding to the first performance indicator has no allocated memory space.
[0138] In a possible implementation, the first storage unit 803 is specifically configured to: if the pointer corresponding to the first performance indicator is allocated with memory space, store the attribute value in the memory space pointed to by the pointer corresponding to the first performance indicator.
[0139] In a possible implementation, the performance data management apparatus further includes: an updating unit 805, configured to update the attribute value of the performance indicator to which the memory space is allocated among the performance indicators of the performance test object when the state of the network device changes.
[0140] In one possible implementation, the performance indicator of the performance test object also includes a second performance indicator, and the initial value of the second performance indicator is stored in the performance variable. The performance data management device also includes: a second acquisition unit 806, used to obtain the attribute value of the second performance indicator; a second storage unit 807, used to store the attribute value of the second performance indicator in the data position corresponding to the second performance indicator in the performance variable.
[0141] In one possible implementation, the performance data management device also includes an initialization unit 808, which is used to: after the network device is started, initialize the second performance indicator to obtain an initial value of the second performance indicator; store the initial value of the second performance indicator in the performance variable at a data position corresponding to the second performance indicator; add a pointer corresponding to the first performance indicator to the performance variable, and initialize the pointer corresponding to the first performance indicator to a null pointer.
[0142] It should be noted here that the above-mentioned device provided by the present disclosure can implement all the method steps of the data plane orchestration control node in the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as those in the method embodiment will not be specifically repeated here.
[0143] It should be noted that the division of units in the embodiments of the present disclosure is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0144] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of the present disclosure is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0145] The embodiment of the present disclosure provides a processor-readable storage medium, which stores a computer program, and the computer program is used to enable the processor to execute any of the methods described in the performance data management method provided in the embodiment of the present disclosure. The processor is enabled to implement the method steps of the performance data management method in the above method embodiment, and can achieve the same technical effect, and the parts and beneficial effects of this embodiment that are the same as those in the method embodiment will not be specifically described here.
[0146] The processor-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD)), etc.
[0147] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0148] The present disclosure is described with reference to the flowcharts and / or block diagrams of the methods, apparatuses, and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer executable instructions. These computer executable instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0149] These processor executable instructions may also be stored in a processor readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the processor readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0150] These processor-executable instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0151] Obviously, those skilled in the art can make various changes and modifications to the present disclosure without departing from the spirit and scope of the present disclosure. Thus, if these modifications and variations of the present disclosure fall within the scope of the claims of the present disclosure and their equivalents, the present disclosure is also intended to include these modifications and variations.
Claims
1. A performance data management method, characterized in that: Applied to network equipment, including: Obtaining an attribute value of a first performance indicator of a performance test object; Allocating a corresponding target memory space for the attribute value of the first performance indicator; Storing the attribute value in the target memory space; Pointing the pointer corresponding to the first performance indicator in the performance variable to the target memory space; The performance variables are used to manage the performance indicators of the performance test object.
2. The performance data management method according to claim 1, characterized in that: The allocating a corresponding memory space for the attribute value of the first performance indicator includes: In the memory pool, allocating the target memory space for the attribute value; The memory pool is a memory space with a fixed size.
3. The performance data management method according to claim 2, characterized in that: The allocating, in the memory pool, the target memory space corresponding to the attribute value comprises: Determine the memory block pointed to by the head node in the memory pool; If the space size of the memory block is greater than or equal to the space size required by the attribute value, determining the memory block as the target memory space; If the space size of the memory block is smaller than the space size required by the attribute value, a next memory block is allocated to the head node according to the space size required by the attribute value, and the next memory block is determined as the target memory space.
4. The performance data management method according to any one of claims 1 to 3, characterized in that: Before allocating the corresponding target memory space for the attribute value of the first performance indicator, the method further includes: It is determined that no memory space is allocated to the pointer corresponding to the first performance indicator.
5. The performance data management method according to claim 4, characterized in that: The storing the attribute value to the target memory space includes: If the pointer corresponding to the first performance indicator is allocated with memory space, the attribute value is stored in the memory space pointed to by the pointer corresponding to the first performance indicator.
6. The performance data management method according to any one of claims 1 to 3, characterized in that: Also includes: When the state of the network device changes, the attribute value of the performance indicator to which the memory space is allocated among the performance indicators of the performance test object is updated.
7. The performance data management method according to any one of claims 1 to 3, characterized in that: The performance indicator of the performance test object further includes a second performance indicator, the performance variable stores an initial value of the second performance indicator, and the performance data management method further includes: Obtaining the attribute value of the second performance indicator; The attribute value of the second performance indicator is stored in the data position corresponding to the second performance indicator in the performance variable.
8. The performance data management method according to claim 7, characterized in that: Also includes: After the network device is started, initializing the second performance indicator to obtain an initial value of the second performance indicator; storing the initial value of the second performance indicator in the data position corresponding to the second performance indicator in the performance variable; A pointer corresponding to the first performance indicator is added to the performance variable, and the pointer corresponding to the first performance indicator is initialized to a null pointer.
9. A performance data management device, characterized in that: Applied to network equipment, the performance data management device includes a memory, a transceiver and a processor; The memory is used to store computer programs; The transceiver is used to send and receive data under the control of the processor; The processor is configured to read the computer program in the memory and perform the following operations: Obtaining an attribute value of a first performance indicator of a performance test object; Allocating a corresponding target memory space for the attribute value of the first performance indicator; Storing the attribute value in the target memory space; Pointing the pointer corresponding to the first performance indicator in the performance variable to the target memory space; The performance variables are used to manage the performance indicators of the performance test object.
10. The performance data management device according to claim 9, characterized in that: The processor is further configured to: In the memory pool, allocating the target memory space for the attribute value; The memory pool is a memory space with a fixed size.
11. The performance data management device according to claim 10, characterized in that: The processor is further configured to: Determine the memory block pointed to by the head node in the memory pool; If the space size of the memory block is greater than or equal to the space size required by the attribute value, determining the memory block as the target memory space; If the space size of the memory block is smaller than the space size required by the attribute value, a next memory block is allocated to the head node according to the space size required by the attribute value, and the next memory block is determined as the target memory space.
12. The performance data management device according to any one of claims 9 to 11, characterized in that: Before allocating the corresponding target memory space for the attribute value of the first performance indicator, the processor is further configured to: It is determined that no memory space is allocated to the pointer corresponding to the first performance indicator.
13. The performance data management device according to claim 12, characterized in that: The processor is further configured to: If the pointer corresponding to the first performance indicator is allocated with memory space, the attribute value is stored in the memory space pointed to by the pointer corresponding to the first performance indicator.
14. The performance data management device according to any one of claims 9 to 11, characterized in that: The processor is further configured to: When the state of the network device changes, the attribute value of the performance indicator to which the memory space is allocated among the performance indicators of the performance test object is updated.
15. The performance data management device according to any one of claims 9 to 11, characterized in that: The performance indicator of the performance test object further includes a second performance indicator, the performance variable stores an initial value of the second performance indicator, and the processor is further configured to: Obtaining the attribute value of the second performance indicator; The attribute value of the second performance indicator is stored in the data position corresponding to the second performance indicator in the performance variable.
16. The performance data management device according to claim 15, characterized in that: The processor is further configured to: After the network device is started, initializing the second performance indicator to obtain an initial value of the second performance indicator; storing the initial value of the second performance indicator in the data position corresponding to the second performance indicator in the performance variable; A pointer corresponding to the first performance indicator is added to the performance variable, and the pointer corresponding to the first performance indicator is initialized to a null pointer.
17. A performance data management device, characterized in that: Applied to network equipment, the performance data management device comprises: A first acquisition unit, used to acquire an attribute value of a first performance indicator of a performance test object; A space dynamic allocation unit, used to allocate a corresponding target memory space for the attribute value of the first performance indicator; A first storage unit, used to store the attribute value in the target memory space; A pointer adjustment unit, used for pointing a pointer in a performance variable corresponding to the first performance indicator to the target memory space; The performance variables are used to manage the performance indicators of the performance test object.
18. A processor-readable storage medium, characterized in that: The processor-readable storage medium stores a computer program, and the computer program is used to enable the processor to execute the performance data management method according to any one of claims 1 to 8.
