首页> 外国专利> Method for determining if data should be written at the beginning of a buffer depending on space available after unread data in the buffer

Method for determining if data should be written at the beginning of a buffer depending on space available after unread data in the buffer

机译:用于确定是否应根据缓冲区中未读取数据后的可用空间将数据写入缓冲区的开头的方法

摘要

A buffer, implemented in computer memory, that never wraps data around from the buffer end to the buffer beginning unless the amount of data being transferred exceeds the entire size of the buffer. Eliminating wrapping improves performance by eliminating the need for the reading device to reconstruct a contiguous block of data from multiple reads. In addition, when possible, only the beginning portion of the buffer is used, thereby minimizing the occurrence of virtual memory page faults during buffer use and increasing the probability that pages near the end of the buffer will be freed for uninterrupted use by other processes. In addition to the usual read and write pointers, the buffer in the invention adds two variables, a buffer end pointer and a marker. When necessary, the buffer end pointer indicates the end of a block of data. The marker is used to limit the use of the buffer memory to a few pages at the beginning of the buffer when possible. If a block of data is written past the marker, the next block of data is written at the beginning of the buffer.
机译:在计算机内存中实现的缓冲区,除非将要传输的数据量超过缓冲区的整个大小,否则从不将数据从缓冲区末端包装到缓冲区开始。消除包装可消除读取设备从多次读取中重建连续数据块的需求,从而提高了性能。另外,在可能的情况下,仅使用缓冲区的开始部分,从而最大程度地减少了缓冲区使用过程中虚拟内存页面错误的发生,并增加了缓冲区末尾的页面将被其他进程无中断使用的可能性。除了通常的读和写指针之外,本发明的缓冲器还添加了两个变量,即缓冲器结束指针和标记。必要时,缓冲区结束指针指示数据块的结束。该标记用于在可能的情况下将缓冲区存储器的使用限制在缓冲区开始处的几页。如果将数据块写入标记之后,则将下一个数据块写入缓冲区的开头。

著录项

  • 公开/公告号US5864713A

    专利类型

  • 公开/公告日1999-01-26

    原文格式PDF

  • 申请/专利权人 HEWLETT-PACKARD COMPANY;

    申请/专利号US19960598582

  • 发明设计人 DONN TERRY;

    申请日1996-02-12

  • 分类号G06F13/00;G06F13/14;

  • 国家 US

  • 入库时间 2022-08-22 02:08:48

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号