首页>
外国专利>
LINUX KERNEL-BASED MEMORY LEAKAGE DETECTION METHOD
LINUX KERNEL-BASED MEMORY LEAKAGE DETECTION METHOD
展开▼
机译:基于LINUX核的内存泄漏检测方法
展开▼
页面导航
摘要
著录项
相似文献
摘要
Provided in the present invention is a Linux kernel-based memory leakage detection method, applied to detection of memory leakage, the method comprising: reading nodes, and acquiring a return address of every memory page distribution function and the number of memory pages which are distributed correspondingly by the distribution functions; after reading is completed, releasing the return addresses of the distribution functions counted by the nodes and the number of the memory pages which are distributed correspondingly by the distribution functions; reading the nodes again, and acquiring the return address of every distribution function and the number of the memory pages which are distributed correspondingly by the distribution functions; and comparing the number of the memory pages which are correspondingly distributed by the same distribution functions to obtain a difference, and if the difference is a positive value and increases continuously, determining that the memory pages which are distributed correspondingly by the distribution functions are experiencing a leak. According to the described technical solution, the Linux kernel-based memory leakage detection method has the beneficial effects of the consumption of memory being small and distributing and releasing efficiency of the memory are not affected in the process of detecting whether the memory experiences a leak.
展开▼