首页> 外国专利> Method for implementing dual link list structure to enable fast link-list pointer updates

Method for implementing dual link list structure to enable fast link-list pointer updates

机译:实现双链接列表结构以实现快速链接列表指针更新的方法

摘要

A method is disclosed for free memory allocation in a linked list memory scheme. Free lists are link lists designating available memory for data storage. This method leverages the ability to read memory while concurrently updating a pointer to the next location. Multiple free lists are used to reduce the number of cycles necessary to allocate memory. The number of entries in each free list is tracked. When memory becomes available, it is spliced into the shortest free list to achieve balance between the free lists. The free list structure disclosed consists of head, head +1, and tail pointers where head +1 is the next logical address pointed to from the head pointer location. The free list consists only of the head and tail pointers. Each link list structure of memory to be freed contains the head, head +1, and tail pointers. This allows us to simultaneously allocate and free with only 1 memory cycle. This structure provides the ability to free and allocate memory for further processing without executing the allocate step. A whole logical data packet can be spliced into a free list in one processing cycle. Utilization of the dual link lists reduces the bandwidth requirements for free memory allocation. Balancing of these dual lists is achieved by splicing a freed block of memory into the shortest list. The splicing method disclosed also reduces the processing cycles necessary to allocate and free memory.
机译:公开了一种用于链表存储方案中的空闲存储器分配的方法。空闲列表是链接列表,用于指定数据存储的可用内存。此方法利用了在同时更新指向下一个位置的指针的同时读取内存的功能。多个空闲列表用于减少分配内存所需的周期数。跟踪每个空闲列表中的条目数。当内存可用时,它将被拼接到最短的空闲列表中,以实现空闲列表之间的平衡。公开的自由列表结构由头,头+1和尾指针组成,其中头+1是从头指针位置指向的下一个逻辑地址。空闲列表仅包含头和尾指针。每个要释放的内存的链接列表结构都包含头,头+1和尾部指针。这使我们可以仅用1个内存周期就可以同时分配和释放内存。这种结构提供了释放和分配内存以进行进一步处理的能力,而无需执行分配步骤。整个逻辑数据包可以在一个处理周期内被拼接成空闲列表。双链路列表的使用减少了空闲内存分配的带宽需求。通过将释放的内存块拼接到最短列表中,可以实现这些双重列表的平衡。所公开的拼接方法还减少了分配和释放存储器所需的处理周期。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号