Design Algorithms for Asynchronous Operations in Cache Memory A T & T Bell Laboratories Technical M e m o r a n d u m , September 28, 1987. Anna Hat AT&T Bell Laboratories Naperville, Illinois 60566 ABSTRACT The algorithms used to operate on disk buffer cache memory have significant impact on operating system performance. The buffer cache size, the size of the file being written, the disk access time, and the algorithms used to append updated blocks from the buffer cache to the disk queue determine performance of operations in disk cache memory. The determination of these algorithms is particularly important since they are implemented in the system kernel and cannot be changed by the user or system administrator. This paper introduces new algorithms for asynchronous operations in disk buffer cache memory. These algorithms allow for writing the files into the buffer cache by the processes. The number of active processes in the system and the length of the queue to the disk buffer cache are considered in the algorithm design. This information is obtained dynamically during the execution of the algorithms. The performance of the operations on the buffer cache is improved by using the algorithms, which allow for writing the contents of the buffer cache to the disk depending on the system load and the write activity. The elapsed time of writing a file into the buffer cache is calculated. The waiting time to start writing a file is also considered. It is shown that the elapsed time of writing a file decreases by using the algorithms, which write the blocks to the disk depending on the rate of write operations and the number of active processes in the system. The time for a block to become available for update in the buffer cache is given. The number of blocks available for update in the buffer cache is derived. The performance of the algorithms is compared. It is shown that the proposed algorithms allow for better performance than an algorithm that does not use the information about the system load. Performance Evaluation Review Vol. 16 #2-4 February 1989
/lp/association-for-computing-machinery/design-algorithms-for-asynchronous-operations-in-cache-memory-vDbnOQ0Jqu