Patent ID: 9734073
Date: 2017-08-15
CPC Classifications: G06F

Claim:
1. A method for improved flash memory performance in a portable computing device (PCD), the method comprising: determining a value N corresponding to an amount of prefetch data to be retrieved from the flash memory; receiving at a cache controller in communication with a cache memory an access request for a flash memory; determining whether the access request for the flash memory corresponds to a portion of data stored in the cache memory; returning the portion of data stored in the cache memory in response to the request to access the flash memory if the access request for the flash memory corresponds to the portion of data stored in the cache memory; retrieving an N amount of prefetch data from the flash memory, and storing the N amount of prefetch data in the cache memory if the access request for the flash memory does not correspond to the portion of data stored in the cache memory; incrementing the value N based on a cache hit percentage for the cache memory by determining that the cache hit percentage is above a threshold value and increasing the value N if N is less than a maximum value N determining whether prefetch data of the N amount of prefetch data is used by a processor or other components in the PCD, moving the prefetch data from the cache memory and placing the prefetched data in a file cache if the prefetch data is used by the processor or the other components, and simultaneously determining if the retrieving of the N amount of prefetch data causing overlow in the cache memory, and automatically overwriting oldest unused data stored in the cache memory.