主权项 |
1. A storage system for handling data for virtual machines, comprising:
a virtual storage module operable to run in a virtual machine monitor, the virtual storage module including at least, a wait-queue operable to store incoming block-level data requests from one or more virtual machines; in-memory metadata for storing information associated with data stored in local persistent storage that is local to a host computer hosting the virtual machines, the data stored in local persistent storage being replication of a subset of data in one or more virtual disks provided to the virtual machines, the virtual disks being mapped to remote storage accessible via a network connecting the virtual machines and the remote storage; and a cache handling logic operable to handle the block-level data requests and to replace data in the local persistent storage based on a score determined from summing weighted values associated with how recently the data was accessed, how sequential the data is with respect to an adjacent data, how far away the data is from a base row, how sequential the data would be if new block is cached, how far away from the base row the data would be if a new block is cached, and whether the data is modified. |