摘要: 在软件开发过程中,共享内存经常会遇到一个进程消耗太多内存导致其他进程无法得到需要内存的潜在问题,针对该问题,基于Linux内核实现一种动态内存管理机制,该机制能够限制每个进程所能申请的最大内存数,同时可以避免进程内存泄露造成的系统崩溃。实验结果表明,该机制效率高、且易用性好。
关键词:
Linux内核,
内存管理,
内存泄露
Abstract: During the development of software, the shared memory always meets potential problem, one process may consume too much memory so that other procsses may be starved. Aiming at the problem, this paper describes an implementation of dynamic memory management based on Linux kernel to limit the maximum memory size of each process that can be applied, avoids system crash caused by memory leak as well. Experimental results show that the management has a high effectiveness and is easy to be used.
Key words:
Linux kernel,
memory management,
memory leak
中图分类号:
杨 峰. 基于Linux内核的动态内存管理机制的实现[J]. 计算机工程, 2010, 36(9): 85-86,8.
YANG Feng. Implementation of Dynamic Memory Management Mechanism Based on Linux Kernel[J]. Computer Engineering, 2010, 36(9): 85-86,8.