作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2010, Vol. 36 ›› Issue (9): 85-86,8. doi: 10.3969/j.issn.1000-3428.2010.09.029

• 软件技术与数据库 • 上一篇    下一篇

基于Linux内核的动态内存管理机制的实现

杨 峰   

  1. (鞍山师范学院计算中心,鞍山 114005)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2010-05-05 发布日期:2010-05-05

Implementation of Dynamic Memory Management Mechanism Based on Linux Kernel

YANG Feng   

  1. (Computer Center, Anshan Normal University, Anshan 114005)
  • Received:1900-01-01 Revised:1900-01-01 Online:2010-05-05 Published:2010-05-05

摘要: 在软件开发过程中,共享内存经常会遇到一个进程消耗太多内存导致其他进程无法得到需要内存的潜在问题,针对该问题,基于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

中图分类号: