摘要 |
Systems and methods for implementing improved disk caching in a programmed computer. Improved disk caching is achieved through apparatus and methods that permit the designation of files or types of files as memory-resident, transient, or normal (i.e., neither memory-resident or transient). The disk blocks associated with a memory-resident file are loaded immediately into cache memory in whole or in part, or are loaded on a block-by-block basis as they are accessed. The blocks of a memory-resident file remain in cache until the file is designated not memory resident, whereupon the blocks become purgeable, or until cache size limits force the removal of blocks from the cache. The blocks are purged immediately in whole or in part, or displaced gradually as blocks from other memory-resident files displace them. The blocks of a transient file are maintained in cache for a shorter duration before removal, freeing resources to cache other blocks.
|