Method and apparatus for data cache in converged system
First Claim
1. A computer device comprising:
- a first node, the first node comprising;
a first storage device having a plurality of first internal address spaces;
a first cache memory; and
a first processor, configured to provide a virtual volume, the virtual volume having a plurality of virtual address spaces, the plurality of virtual address spaces including first virtual address spaces, which correspond to the plurality of first internal address spaces of the first storage device;
wherein the first processor is configured to cache data of a virtual address space of the virtual address spaces in a first cache space of the first cache memory by associating the virtual address space with the first cache space, andwherein the first processor is configured to cache data of a first internal address space of the plurality of first internal address spaces in a second cache space of the first cache memory by associating the first internal address space with the second cache space;
wherein, in response to receiving a command from an application to read target data stored on the first storage device of the first node when data caching is enabled for the virtual volume, the first processor is configured to;
determine if the target data has been cached to the first cache space;
allocate the first cache space to cache the target data if the target data has not been cached to the first cache space;
determine if target data has been cached to the second cache space associated with the first internal address space of the first storage device, if data caching is enabled for the first storage device;
for the data caching being enabled for the first storage device;
allocate the second cache space to cache the target data if the target data has not been cached to the second cache space;
issue a read command to the first storage device to read the target data and cache the target data to the second cache space;
transfer the target data from the second cache space to the first cache space; and
transfer the target data from the first cache space to the application;
for the data caching not being enabled for the first storage device;
transfer the target data from a node having responsibility of the target data to the first cache space; and
transfer the target data from the first cache space to the application.
1 Assignment
0 Petitions
Accused Products
Abstract
A computer device including a node having a storage device having a plurality of first internal address spaces, a cache memory, and a processor may be provided. The processor may provide a virtual volume. The virtual volume may have a plurality of virtual address spaces including first virtual address spaces corresponding to the plurality of first internal address spaces. The processor may cache data of a virtual address space in a first cache space of the cache memory by associating the virtual address space with the first cache space. Further, the processor may cache data of a first internal address space of the first internal address spaces in a second cache space of the cache memory by associating the first internal address space with the second cache space.
15 Citations
16 Claims
-
1. A computer device comprising:
-
a first node, the first node comprising; a first storage device having a plurality of first internal address spaces; a first cache memory; and a first processor, configured to provide a virtual volume, the virtual volume having a plurality of virtual address spaces, the plurality of virtual address spaces including first virtual address spaces, which correspond to the plurality of first internal address spaces of the first storage device; wherein the first processor is configured to cache data of a virtual address space of the virtual address spaces in a first cache space of the first cache memory by associating the virtual address space with the first cache space, and wherein the first processor is configured to cache data of a first internal address space of the plurality of first internal address spaces in a second cache space of the first cache memory by associating the first internal address space with the second cache space; wherein, in response to receiving a command from an application to read target data stored on the first storage device of the first node when data caching is enabled for the virtual volume, the first processor is configured to; determine if the target data has been cached to the first cache space; allocate the first cache space to cache the target data if the target data has not been cached to the first cache space; determine if target data has been cached to the second cache space associated with the first internal address space of the first storage device, if data caching is enabled for the first storage device; for the data caching being enabled for the first storage device; allocate the second cache space to cache the target data if the target data has not been cached to the second cache space; issue a read command to the first storage device to read the target data and cache the target data to the second cache space; transfer the target data from the second cache space to the first cache space; and transfer the target data from the first cache space to the application; for the data caching not being enabled for the first storage device; transfer the target data from a node having responsibility of the target data to the first cache space; and transfer the target data from the first cache space to the application. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)
-
-
16. A method comprising:
providing a virtual volume, the virtual volume having a plurality of virtual address spaces, the plurality of virtual address spaces including first virtual address spaces, which correspond to a plurality of first internal address spaces of a first storage device of a first node; caching data of a virtual address space of the virtual address spaces in a first cache space of a first cache memory by associating the virtual address space with the first cache space, caching data of the first internal address space of the plurality of first internal address spaces in a second cache space of the first cache memory by associating the first internal address space with the second cache space; in response to receiving a command from an application to read target data stored on the first storage device of the first node when data caching is enabled for the virtual volume; determining if the target data has been cached to the first cache space; allocating the first cache space to cache the target data if the target data has not been cached to the first cache space; determining if target data has been cached to the second cache space associated with the first internal address space of the first storage device, if data caching is enabled for the first storage device; for the data caching being enabled for the first storage device; allocating the second cache space to cache the target data if the target data has not been cached to the second cache space; allocating the second cache space to cache the target data if the target data has not been cached to the second cache space; issuing a read command to the first storage device to read the target data and cache the target data to the second cache space; transferring the target data from the second cache space to the first cache space; and transferring the target data from the first cache space to the application; for the data caching not being enabled for the first storage device; transfer the target data from a node having responsibility of the target data to the first cache space; and transfer the target data from the first cache space to the application.
Specification