Supercharge Your Innovation With Domain-Expert AI Agents!

SLUB memory application monitoring method and system based on LINUX operating system

A memory application and operating system technology, applied in the PCB field, can solve problems such as business impact, damage, recurrence and positioning of adverse problems, and achieve the effect of improving efficiency and avoiding business impact.

Pending Publication Date: 2022-04-15
INSPUR BUSINESS MACHINE CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since replacing the kernel requires restarting the system, the system needs to be restarted in the production environment, which will have a great impact on the business, and the scene where the problem occurs after the system restarts will also be destroyed, which is not conducive to the reproduction and location of the problem. Therefore, this method is very important for problem location. not friendly enough

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • SLUB memory application monitoring method and system based on LINUX operating system
  • SLUB memory application monitoring method and system based on LINUX operating system
  • SLUB memory application monitoring method and system based on LINUX operating system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0033] Please refer to Figure 1-3 , figure 1 A schematic flow chart of the steps of a specific implementation of the SLUB memory application monitoring method of the LINUX operating system provided by the embodiment of the present invention; figure 2 The legal judgment step process of the write function of the SLUB memory application monitoring method of the LINUX operating system provided by the embodiment of the present invention; image 3 A schematic st...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an SLUB memory application monitoring method and system for a LINUX operating system, and the method comprises the steps: S1, adding a system file / proc / sys / vm / slab / slab / enable through a procfs file system, and enabling to obtain the call stack information of the SLUB memory application; s2, registering a read-write function of the system file; s3, judging whether an enable trace in the current writing function is 1 or not; and S4, setting a lubdebug = DEBUGDEFAULTFLAGS to start an acquisition call stack switch, and calling an inittrackingfunction to initialize a data structure related to the acquisition call stack if the data structure related to the acquisition call stack is not the data structure related to the acquisition call stack, and S5, setting the lubdebug = 0, and closing the acquisition call stack switch if the data structure related to the acquisition call stack is not the data structure related to the acquisition call stack is not the data structure related to the acquisition call stack. The call stack information of the SLUB memory application is obtained by setting the system parameters, so that the system restart problem is avoided, the service influence caused by the system restart is avoided, and the efficiency of analyzing and positioning the kernel mode memory leakage problem by a user is greatly improved.

Description

technical field [0001] The invention relates to the technical field of PCB, in particular to a method and system for monitoring SLUB memory application based on a LINUX operating system. Background technique [0002] At present, it is often necessary to monitor the usage of system memory during system operation. Memory leaks are the most common and difficult to locate problems. The Linux operating system kernel allocates memory for each kernel module through the SLUB memory allocator. For kernel state For memory leaks, it is necessary to obtain the call stack information of the SLUB memory application, so as to locate and analyze the cause of the memory leak. [0003] For monofilament, in the process of locating kernel-mode memory leaks in the current kernel, it is necessary to recompile the kernel and replace the kernel by configuring compilation options to obtain the call stack information of the SLUB memory application. Since replacing the kernel requires restarting the ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/50G06F11/30
Inventor 刘长生
Owner INSPUR BUSINESS MACHINE CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More