内存管理装置和方法制造方法及图纸

技术编号:16287582 阅读:35 留言:0更新日期:2017-09-26 01:53
一种内存管理装置和方法,涉及信息技术领域,所述方法包括:获取预定大小的待分配内存(S502);根据待分配内存创建共享内存池,该共享内存池中包括将待分配内存划分得到的n个长度为预定长度的内存块,该共享内存池用于提供至少两种不同长度的内存块的内存申请服务(S504);获取内存申请所对应的需求长度(S506);从共享内存池中获取一个长度为需求长度的内存块进行分配使用(S508)。该技术方案解决了相关技术存在的内存浪费严重,内存的总利用率低的问题;通过不同长度的内存块共用一个共享内存池,既可以保证在内存分配时应对不同长度内存块的峰值需求,又可以达到节约内存、提高内存的总利用率的效果。

Memory management device and method

A memory management device and method, relates to the field of information technology, the method comprises: obtaining a predetermined size to be allocated memory (S502); to allocate memory to create the shared memory pool based on the shared memory pool includes memory allocation will be divided by the length of the n block of memory preset length, the shared the memory pool for providing at least two memory blocks of different length memory application service (S504); access memory application corresponding to the required length (S506); to obtain a length from the shared memory pool for the memory block length of demand assignment (S508). The technical scheme solves the technical existence of memory waste is serious, the problem of low utilization rate of the total memory; through the different length of the block of memory sharing a shared memory pool, can guarantee the response peak demand of different length of the memory block in the memory allocation, and can save memory and improve the effect of the total utilization rate of memory the.

【技术实现步骤摘要】
【国外来华专利技术】PCT国内申请,说明书已公开。

【技术保护点】
PCT国内申请,权利要求书已公开。

【技术特征摘要】
【国外来华专利技术】PCT国内申请,...

【专利技术属性】
技术研发人员:洪涛
申请(专利权)人:华为技术有限公司
类型:发明
国别省市:广东;44

网友询问留言 已有0条评论
  • 还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。

1