BRIEF DESCRIPTION OF THE DRAWINGS
The above and other aspects of the present invention will be more apparent from the following detailed description of exemplary embodiments taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a block diagram illustrating a related art storage apparatus;
FIG. 2 is a block diagram illustrating a storage apparatus using a non-volatile memory as a cache according to an exemplary embodiment of the present invention;
FIG. 3 is a view showing regions of the non-volatile memory converted in a circular formation according to an exemplary embodiment of the present invention;
FIG. 4 is a view showing a non-stationary region allocated in a rotary block shape according to an exemplary embodiment of the present invention;
FIG. 5A is a view showing the regions of the non-volatile memory according to an exemplary embodiment of the present invention, in which a first A point moves into the non-stationary region when blocks in a stationary region are retrieved;
FIG. 5B is a view showing the regions of the non-volatile memory according to an exemplary embodiment of the present invention, in which activated data are moved from the first A point to a first B point when the blocks in the stationary region are retrieved;
FIG. 5C is a view showing the regions of the non-volatile memory according to an exemplary embodiment of the present invention, in which the activated data are sequentially moved to a point beginning from the first B point to a first B ending point in a block when the blocks in the stationary region are retrieved;
FIG. 5D is a view showing the regions of the non-volatile memory according to an exemplary embodiment of the present invention, in which the first A point moves to the first B point, and a first A ending point to the first B ending point when the blocks in the stationary region are retrieved;
FIG. 6A is a view showing the regions of the non-volatile memory according to an exemplary embodiment of the present invention, in which a second A starting point moves to a first B point in the stationary region when the blocks in the stationary region are retrieved;
FIG. 6B is a view showing the regions of the non-volatile memory according to an exemplary embodiment of the present invention, in which the activated data are sequentially moved from the second B starting point when the blocks in the non-stationary region are retrieved;
FIG. 7 is a view showing the regions of the non-volatile memory according to an exemplary embodiment of the present invention, in which a scanning direction is indicated when power failure is recovered;
FIG. 8 is a flowchart illustrating a method of allocating the blocks of the non-volatile memory according to an exemplary embodiment of the present invention;
FIG. 9 is a flowchart illustrating a method of retrieving the blocks with respect to the stationary region of the non-volatile memory according to an exemplary embodiment of the present invention; and
FIG. 10 is a flowchart illustrating a method of retrieving the blocks with respect to the non-stationary region of the non-volatile memory according to an exemplary embodiment of the present invention.