摘要 |
An apparatus and a method for controlling access of a memory are provided to load data of an HDD into a flash memory to be used as a cache memory to prevent frequent access to the HDD, thereby minimizing power consumption and improving system performance. A system is operated to input a command for user operation(S801,S803). It is judged whether data to be used/operated in the system exists in a flash memory(S805). If so, the data is loaded into a RAM to execute operation(S807). If not, an HDD is read to load data into the flash memory while confirming that a flash memory area is full(S809). If the flash memory area has a room, data read from the HDD is loaded into the flash memory(S813). If the loading is completed, data is loaded into a DRAM by using a cache driver to execute operation(S807). A weight table related to the used/operated data is generated or/and updated(S817). If the loading is not completed due to shortage of the memory area while loading data into the flash memory, data having low weight is first removed, referring to the weight table(S811,S815). If the flash memory area has no room, data having low weight is first removed, referring to the weight table(S809,S811).
|