首页> 外国专利> A METHOD OF MANAGING A DISK CACHE

A METHOD OF MANAGING A DISK CACHE

机译:一种管理磁盘缓存的方法

摘要

PURPOSE: A method for operating a disk cache is provided to cache up to a disk data block the size of which is less than a size of a cache line. CONSTITUTION: If a signal requesting disk read/write operation is generated, a data block size of a related disk is compared with a size of a cache line(S210). If a data block size of a disk related thereto is bigger than a size of a cache line, a disk input/output is performed without a cache operation. If a data block size of the disk is not bigger than a size of a cache line, it is detected whether the requested operation is reading or writing(S202). If the requested operation is a disk reading operation, a data reading operation unit(210) decides whether data related to a reading is existed in the current cache memory(S211). If the data related to a reading is existed, a data block of a request size is returned(S213). If the data related to a reading is not existed, a data block as much as the cache line size is read from the disk to a cache memory(S212), and a data block of a request size is returned(S213). If the requested operation is a disk writing operation, a data writing operation unit decides whether data related to writing is existed in the current cache memory(S221). If the data related to writing is existed, a writing operation with respect to the request data block is performed(S224). If the data related to writing is not existed, a size of data block related to writing is compared with a size of cache line(S222). If a size of data block is identified with a size of cache line, a writing operation with respect to the request data block is performed(S224). If a size of data block is not identified with a size of cache line, a disk block as much as the cache line size is read to a cache memory, and a writing operation with respect to the request data block is performed(S224).
机译:目的:提供了一种用于操作磁盘高速缓存的方法,以高速缓存多达其大小小于高速缓存行的大小的磁盘数据块。构成:如果产生了请求磁盘读/写操作的信号,则将相关磁盘的数据块大小与高速缓存行的大小进行比较(S210)。如果与其相关的磁盘的数据块大小大于高速缓存行的大小,则执行磁盘输入/输出而不进行高速缓存操作。如果盘的数据块大小不大于高速缓存行的大小,则检测所请求的操作是读还是写(S202)。如果所请求的操作是盘读取操作,则数据读取操作单元(210)确定在当前高速缓冲存储器中是否存在与读取有关的数据(S211)。如果存在与读取有关的数据,则返回请求大小的数据块(S213)。如果不存在与读取有关的数据,则将与高速缓存行大小一样大的数据块从磁盘读取到高速缓存存储器(S212),并且返回请求大小的数据块(S213)。如果所请求的操作是盘写入操作,则数据写入操作单元确定在当前高速缓冲存储器中是否存在与写入有关的数据(S221)。如果存在与写入有关的数据,则对请求数据块执行写入操作(S224)。如果不存在与写入有关的数据,则将与写入有关的数据块的大小与高速缓存线的大小进行比较(S222)。如果用高速缓存行的大小识别出数据块的大小,则对请求数据块执行写操作(S224)。如果没有用高速缓存行的大小来识别数据块的大小,则将与高速缓存行大小一样大的磁盘块读取到高速缓存存储器,并且对请求数据块执行写操作(S224)。

著录项

  • 公开/公告号KR100252505B1

    专利类型

  • 公开/公告日2000-04-15

    原文格式PDF

  • 申请/专利权人 DAEWOO TELECOM LTD.;

    申请/专利号KR19970057227

  • 发明设计人 MOON JIN HWAN;

    申请日1997-10-31

  • 分类号G06F12/08;

  • 国家 KR

  • 入库时间 2022-08-22 01:44:51

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号