首页> 外国专利> optimalisierte in - and output buffer

optimalisierte in - and output buffer

机译:输入输出缓冲器的最佳化

摘要

A computer system (10) having optimized I/O buffers (31, 32) is disclosed. The I/O buffers are used to write data into or read data from auxiliary storage (50). A double buffering scheme is used. When a user wants to send data to auxiliary storage, the first buffer is filled with data and the contents are asynchronously written to auxiliary storage. Without waiting for the asynchronous write to complete, the second buffer is filled with data. When the second buffer is filled, the contents of the second buffer are asynchronously written to auxiliary storage. If the first buffer has not completed its write operation by this point, the buffers are determined to be too small and the size of both buffers is increased. Control switches back and forth between these two buffers until all of the desired data is sent to auxiliary storage. The size of the buffers is increased until the computer system does not have to synchronously wait for one buffer to complete its write operation before it can refill that buffer with new data. Ideally, the first buffer should complete its write operation when the second buffer is filled beyond a predetermined threshold percentage, such as one half. If the first buffer completes its write operation before the second buffer is filled beyond the predetermined threshold percentage, the buffers are determined to be too large and the size of both buffers are decreased. The size of the buffers is dynamically increased and decreased as needed to achieve an optimum size based on the unique and dynamically changing computer environment.
机译:公开了具有优化的I / O缓冲器(31、32)的计算机系统(10)。 I / O缓冲器用于将数据写入辅助存储器(50)或从中读取数据。使用双缓冲方案。当用户希望将数据发送到辅助存储时,第一个缓冲区中将填充数据,并且内容将被异步写入辅助存储中。无需等待异步写入完成,第二个缓冲区将充满数据。当第二个缓冲区已满时,第二个缓冲区的内容被异步写入辅助存储器。如果此时第一个缓冲区尚未完成其写操作,则确定缓冲区太小,并且两个缓冲区的大小都会增加。控制在这两个缓冲区之间来回切换,直到所有需要的数据都发送到辅助存储器。缓冲区的大小会增加,直到计算机系统不必同步等待一个缓冲区完成其写操作,然后才可以用新数据重新填充该缓冲区。理想地,当第二缓冲器被填充超过预定阈值百分比(诸如一半)时,第一缓冲器应完成其写操作。如果在第二缓冲区被填充超过预定阈值百分比之前,第一缓冲区完成了其写操作,则确定缓冲区太大,并且两个缓冲区的大小都会减小。根据唯一且动态变化的计算机环境,可以根据需要动态增加和减少缓冲区的大小,以实现最佳大小。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号