CN112540846B - Method, device and medium for controlling performance stability of server - Google Patents

Method, device and medium for controlling performance stability of server Download PDF

Info

Publication number
CN112540846B
CN112540846B CN202011261744.0A CN202011261744A CN112540846B CN 112540846 B CN112540846 B CN 112540846B CN 202011261744 A CN202011261744 A CN 202011261744A CN 112540846 B CN112540846 B CN 112540846B
Authority
CN
China
Prior art keywords
component
interruption
information
server
components
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011261744.0A
Other languages
Chinese (zh)
Other versions
CN112540846A (en
Inventor
蔡順承
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202011261744.0A priority Critical patent/CN112540846B/en
Publication of CN112540846A publication Critical patent/CN112540846A/en
Application granted granted Critical
Publication of CN112540846B publication Critical patent/CN112540846B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method for controlling the stable performance of a server, which is used for acquiring the distribution condition of interruption points of a component; acquiring and archiving the spatial address of the component; finding out interruption points occupied by key components in the system process and marking the space addresses of the key components; and summarizing the process, comparing the process with the space address of the component, and discharging the marked interrupt points occupied by other components. By the method, the interrupt point program distributed by the component can be automatically analyzed, other components can be dynamically distributed to the unprotected interrupt points, and the core resources of the processor can be reasonably distributed.

Description

Method, device and medium for controlling performance stability of server
Technical Field
The present invention relates to the technical field of server efficiency improvement, and in particular, to a method, an apparatus, and a medium for controlling server performance stability.
Background
In order to meet the huge data processing requirements, the server needs to be loaded with various high-performance components to complete a large amount of business processing. In the prior art, a server is started to enter an operating system, and an operating system kernel automatically allocates interrupt points to different components, so that the allocated processor core can be ensured to process the performance requirements of the components. In the prior art, the interrupt points are automatically distributed to each part through the operating system, but the operating system cannot ensure that the processor core is only distributed to one part/process, and when more than two processes use the same processor core, resource robbery can occur at the moment, so that the situation of unstable performance occurs.
Disclosure of Invention
The invention mainly solves the technical problem of providing a method, a device and a medium for controlling the stable performance of a server, which can automatically analyze interrupt point programs distributed by components, dynamically distribute other components to unprotected interrupt points and reasonably distribute processor core resources.
In order to solve the technical problems, the invention adopts a technical scheme that: the method for controlling the performance stability of the server comprises the following steps:
obtaining an interruption report file by searching a file instruction, checking the interruption report file, and analyzing the distribution condition of interruption points of the component;
finding the part information of all parts through the display part information instruction, analyzing the space address corresponding to the part through the part information, archiving the space address of the part, and arranging the space address of all parts into a temporary address document;
finding out interruption points occupied by key components in the system process and marking the space addresses of the key components;
and finding current process information through the process checking instruction, comparing the process information list with the part space address in the address document, and ensuring that the interrupt point corresponding to the marked space address is not used by other processes.
An apparatus for controlling performance stabilization of a server, comprising: the system comprises a distribution condition acquisition module, a component information acquisition module, a marking module and a summarizing and comparing module;
the distribution condition acquisition module is used for analyzing the interrupt report file and obtaining the interrupt point distribution condition from the interrupt report file;
the component information acquisition module is used for searching component information of the component and analyzing a space address corresponding to the component by comparing the component information;
the marking module is used for finding out the interruption point of the key component and marking the space address of the component;
the collecting and comparing module is used for obtaining the current process information and comparing the current process information with the space address of the component, and eliminating the interruption point corresponding to the marked space address.
A control server performance stabilization medium for storing computer software instructions for the control server performance stabilization method, comprising a program designed for executing the control server performance stabilization method.
The invention has the beneficial effects that: the invention adopts an interruption point analysis mode, monitors the interruption point load of the processor kernel by combining with an automatic script and corrects in time, automatically closes unnecessary interruption points by reading the interruption point data of the kernel and reading the interruption point data of the kernel, and the interruption points are prevented from being occupied by other programs, thereby improving the performance stability and reliability of parts.
Drawings
FIG. 1 is a flow chart of a method of controlling server performance stabilization according to the present invention;
FIG. 2 is an architecture diagram of a method of controlling server performance stabilization according to the present invention;
fig. 3 is a block diagram of an apparatus for controlling server performance stabilization according to the present invention.
Detailed Description
The following detailed description of the preferred embodiments of the present invention, taken in conjunction with the accompanying drawings, will make the advantages and features of the invention easier to understand by those skilled in the art, and thus will clearly and clearly define the scope of the invention.
Referring to fig. 1 and 2, an embodiment of the present invention includes:
a method for controlling the performance stability of a server adopts an interruption point analysis mode and combines an automatic script to monitor the interruption point load of a processor kernel and correct the interruption point load in time, and automatically closes unnecessary interruption points for use by reading the interruption point data of the kernel and reading a breakpoint occupation program; specifically, a Linux executable file [ interbalanced.sh ] is adopted for detection, and the program mainly comprises the following steps:
the method comprises the following steps: checking an interruption report file through an instruction # cat/proc/interrupt | tr-s, wherein a cat command is a text output command under linux, the interruption report file displays the interruption frequency, and the interruption distribution condition of the current component can be observed through the report file;
step two: in combination with the command # lspci, the finding unit bus/device/function, # lspci can display all the pci device information, including the BDFs, device types, vendor information, etc. of all the devices in the system, the BDFs form the identity of each PCIe device node, and with the three BDFs, the address of the given device in the physical memory space can be calculated; exporting the data to a temporary file temp, wherein the temp is a temporary folder temp;
step three: combing temp through # for loop instruction, taking CPU of 24 core as example, there are about two thousand more data;
step four: comparing the interruption points occupied by the system process, and independently and protecting the interruption points used by the key components;
step five: monitoring the working condition of the background process through an instruction # ps aux | less, summarizing the current process, and comparing the temp data of the interrupt;
step six: and continuously monitoring the interruption points used by the component, automatically closing the use of unnecessary interruption points, and protecting the key interruption points from being occupied by other processes.
In a second aspect, referring to fig. 3, an apparatus for controlling performance stability of a server includes: the system comprises a distribution condition acquisition module, a component information acquisition module, a marking module and a summarizing and comparing module;
the distribution condition acquisition module is used for analyzing the interrupt report file and obtaining the interrupt point distribution condition from the interrupt report file;
the component information acquisition module is used for searching component information of the component and analyzing a space address corresponding to the component through the component information;
the marking module is used for finding out the interruption point of the key component and marking the space address of the component;
the collecting and comparing module is used for obtaining the current process information and comparing the current process information with the space address of the component, and eliminating the interruption point corresponding to the marked space address.
In a third aspect, a control server performance stabilization medium for storing computer software instructions for the control server performance stabilization method comprises a program designed for executing the control server performance stabilization method.
The invention ensures the consistent performance of the components in a break point analysis mode of the processor core; and the automatic analysis part dynamically allocates other parts to unprotected interrupt points, and reasonably allocates the core resources of the processor.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (6)

1. A method for controlling performance stability of a server, comprising:
acquiring the distribution condition of the interruption points of the component, obtaining an interruption report file by searching a file instruction, and analyzing the interruption report file to obtain the distribution condition of the interruption points of the component;
acquiring and archiving the spatial address of the component;
finding out an interruption point occupied by a key component in a system process and marking a space address of the key component;
monitoring the working condition of the background process, summarizing the process and comparing the process with the space address of the component to eliminate the marked interrupt points occupied by other components;
the excluding of the other components from occupying the marked discontinuity includes: and continuously monitoring the interruption points used by the components, automatically closing the use of unnecessary interruption points, and protecting the interruption points occupied by the key components from being occupied by other processes.
2. The method of claim 1, wherein the method further comprises: and after the space addresses of the components are acquired and filed, the space addresses of all the components are arranged into a temporary address document.
3. The method for controlling the performance stability of the server according to claim 2, wherein: the step of obtaining the spatial address of the component comprises the following steps: and finding the part information of all parts through the display part information instruction, and analyzing the space address corresponding to the part through the part information.
4. The method for controlling the performance stability of the server according to claim 1, wherein: the summarization process comprises the steps of: and finding the current process information through the process checking instruction, and listing the process information.
5. An apparatus for controlling performance stability of a server, comprising: the system comprises a distribution condition acquisition module, a component information acquisition module, a marking module and a summarizing and comparing module;
the distribution condition acquisition module is used for analyzing the interrupt report file and obtaining the interrupt point distribution condition from the interrupt report file;
the component information acquisition module is used for searching component information of the component and analyzing a space address corresponding to the component according to the component information;
the marking module is used for finding out the interruption point of the key component and marking the space address of the component;
the collecting and comparing module is used for obtaining the current process information and comparing the current process information with the space address of the component, and eliminating the interruption point corresponding to the marked space address.
6. A medium for controlling server performance stabilization, storing computer software instructions for a method for controlling server performance stabilization according to any one of claims 1 to 4, comprising a program designed to perform the method for controlling server performance stabilization.
CN202011261744.0A 2020-11-12 2020-11-12 Method, device and medium for controlling performance stability of server Active CN112540846B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011261744.0A CN112540846B (en) 2020-11-12 2020-11-12 Method, device and medium for controlling performance stability of server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011261744.0A CN112540846B (en) 2020-11-12 2020-11-12 Method, device and medium for controlling performance stability of server

Publications (2)

Publication Number Publication Date
CN112540846A CN112540846A (en) 2021-03-23
CN112540846B true CN112540846B (en) 2022-12-20

Family

ID=75014880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011261744.0A Active CN112540846B (en) 2020-11-12 2020-11-12 Method, device and medium for controlling performance stability of server

Country Status (1)

Country Link
CN (1) CN112540846B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102004678A (en) * 2010-11-11 2011-04-06 青岛普加智能信息有限公司 Operation system performance analysis method and device
CN102279877A (en) * 2011-07-26 2011-12-14 山东省计算中心 Physical memory mirror image file analyzing method of Mac OS system
CN105550575A (en) * 2015-12-03 2016-05-04 北京神州绿盟信息安全科技股份有限公司 Method and device for obtaining un-exported function address and data structure offset

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102004678A (en) * 2010-11-11 2011-04-06 青岛普加智能信息有限公司 Operation system performance analysis method and device
CN102279877A (en) * 2011-07-26 2011-12-14 山东省计算中心 Physical memory mirror image file analyzing method of Mac OS system
CN105550575A (en) * 2015-12-03 2016-05-04 北京神州绿盟信息安全科技股份有限公司 Method and device for obtaining un-exported function address and data structure offset

Also Published As

Publication number Publication date
CN112540846A (en) 2021-03-23

Similar Documents

Publication Publication Date Title
US8423997B2 (en) System and method of controlling virtual machine
US20080250400A1 (en) Method for System Call Interception in User Space
US6698016B1 (en) Method for injecting code into another process
US20090254889A1 (en) Just-in-time dynamic instrumentation
CN108508874B (en) Method and device for monitoring equipment fault
US10725889B2 (en) Testing multi-threaded applications
US10013335B2 (en) Data flow analysis in processor trace logs using compiler-type information method and apparatus
US20090276205A1 (en) Stablizing operation of an emulated system
CN113407414A (en) Program operation monitoring method, device, terminal and storage medium
KR102545765B1 (en) Method and system for detecting memory errors
CN113157347A (en) Automatic probe deployment method, electronic device and storage medium
CN110908837A (en) Application program exception handling method and device, electronic equipment and storage medium
CN111813646A (en) Method and device for injecting application probe in docker container environment
US10275595B2 (en) System and method for characterizing malware
CN111522706A (en) Method and device for monitoring page abnormity of front-end application
CN111290942A (en) Pressure testing method, device and computer readable medium
CN112540846B (en) Method, device and medium for controlling performance stability of server
CN111176986B (en) Thread script debugging method and device, computer equipment and storage medium
US8312433B2 (en) Operating system aided code coverage
CN111176987A (en) Method and device for uniformly outputting front-end log, computer equipment and storage medium
CN115705294B (en) Method, device, electronic equipment and medium for acquiring function call information
CN114328090A (en) Program monitoring method and device, electronic equipment and storage medium
CN114490265A (en) Data acquisition method, device, equipment and storage medium
US20150046414A1 (en) Computer product, managing apparatus, and managing method
JP2006079485A (en) Method for information collection for fault analysis in electronic computer

Legal Events

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