Patent ID: 8266385
Filing Date: 2012-09-11
Classification: G06F

Abstract:
1. A method for caching data, which is to be written back to a main memory, in a cache memory in a memory apparatus, the memory apparatus comprising: a cache memory including a plurality of cache segments, memorizing, for each cache segment, validity data indicative of whether or not each of the sectors contained in each cache segment is a valid sector inclusive of valid data; and a cache controlling component controlling access to the cache memory; and the method of the cache controlling component comprising the steps of: detecting, at a detecting component, when writing a cache segment back to the main memory, areas having consecutive invalid sectors by accessing validity data corresponding to the cache segment; and issuing, for each area detected, a read command to the main memory, making each area a valid sector, and writing the data in the cache segment back to the main memory, wherein the validity data is a bit string in which logical values are arrayed, the logical values each indicating whether or not each sector is valid; and wherein detecting comprises steps of: