METHOD AND APPARATUS OF IMPROVING COMPUTER PERFORMANCE BY SIMULATED CACHE ASSOCIATIVITY
A computer system using virtual memory addressing and having a direct-mapped cache is operated in a manner to simulate the effect of a set associative cache by detecting cache misses and remapping pages in the main memory so that memory references which would have caused thrashing can instead coexis...
Saved in:
Main Author | |
---|---|
Format | Patent |
Language | English Korean |
Published |
25.04.1996
|
Edition | 6 |
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | A computer system using virtual memory addressing and having a direct-mapped cache is operated in a manner to simulate the effect of a set associative cache by detecting cache misses and remapping pages in the main memory so that memory references which would have caused thrashing can instead coexist in the cache. Two memory addresses which are in different pages but which map to the same location in the cache may not reside in the direct-mapped cache at the same time, so alternate reference to these addresses by a task executing on the CPU would cause thrashing. However, if the location of one of these addresses in main memory is changed, the data items having these addresses can coexist in the cache, and performance will be markedly improved because thrashing will no longer result. For a CPU executing a virtual memory operating system, a page of data or instructions can be moved to a different physical page frame but remain the same virtual address. This is accomplished by simply updating the page-mapping tables to reflect the new physical location of the page, and copying the data from the old page frame to the new one. The thrashing condition is detected and corrected dynamically by latching cache miss addresses and periodically sampling the latch, then remapping pages containing the addresses found upon sampling. The direct-mapped cache must be large enough to hold two or more pages. |
---|---|
Bibliography: | Application Number: KR19930700415 |