-
公开(公告)号:US5289581A
公开(公告)日:1994-02-22
申请号:US947370
申请日:1992-09-18
申请人: Leo Berenguel , Weii Lin
发明人: Leo Berenguel , Weii Lin
CPC分类号: G06F12/0866
摘要: A modified driver program for an external hard disk drive for a personal computer which manages a cache in RAM on the motherboard to speed up disk access operations is disclosed. A block of 2000 bytes contiguous to the driver code is reserved at boot time. An "on/off" data byte flag is managed to indicate whether the data in the cache is valid. For read operations of a size less than the size of the cache, a number of sequential blocks of data from the disk are stored in the cache. Any write operation potentially invalidates the cache data so the flag is set "off". On subsequent read operations, if the cache flag is "on", the driver code compares the contents of the cache to the requested data to see if it is stored in the cache. If it is, the data is read from the cache as opposed to the disk thereby speeding up the access.
摘要翻译: 公开了一种用于个人计算机的外部硬盘驱动器的修改的驱动程序,其管理主板上的RAM中的高速缓存以加速磁盘访问操作。 在引导时保留与驱动程序代码相邻的2000字节的块。 管理“开/关”数据字节标志以指示高速缓存中的数据是否有效。 对于小于高速缓存大小的读操作,来自磁盘的多个连续的数据块被存储在高速缓存中。 任何写入操作都可能使缓存数据无效,因此该标志被设置为“关闭”。 在随后的读取操作中,如果缓存标志为“on”,则驱动程序代码将缓存的内容与请求的数据进行比较,以查看其是否存储在缓存中。 如果是这样,数据从缓存读取而不是磁盘,从而加速访问。