首页>
外国专利>
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.
展开▼