Dynamic cache partition manager in heterogeneous virtual cloud cache environment
By introducing a dynamic cache partition manager into the virtual machine shared storage system, the partition cache is a performance guarantee area and a peak buffer area, which solves the problem of cache resource partitioning between virtual machines and achieves a more efficient I/O hit rate. and resource utilization.
Patent Information
- Application Number
- CN201811339631.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-11-12
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2038-11-12
AI Technical Summary
In a shared virtualized storage system running virtual machines with heterogeneous I/O requirements, efficient management of cache resources, especially when partitioned and allocated among multiple virtual machines, has cross-VM impacts and inability to fully utilize SSD resources. question.
Use the Dynamic Cache Partition Manager (DCPM) to divide the local cache into a performance guarantee area and a peak buffer area, and dynamically adjust the cache partition of each virtual machine through reusability statistics, access statistics and peak detection to ensure that each VM Adaptively allocate sufficient cache resources based on changes in its workload.
Maximizes the I/O hit rate, reduces I/O costs, reduces cross-VM impact, improves SSD resource utilization, and ensures that each virtual machine can effectively obtain the required cache resources when the workload changes. .
Smart Images

Figure CN109840134B_ABST
Abstract
Description
[0001] Related application data
[0002] This application claims priority to U.S. Provisional Patent Application No. 62 / 592,355 filed on November 29, 2017 and U.S. Patent Application No. 15 / 891,350 filed on February 7, 2018, which are incorporated herein by reference for all purposes. Technical Field
[0003] The inventive concept relates generally to data storage and, more particularly, to managing cache in a virtual machine server. Background Art
[0004] In a shared virtualized storage system running virtual machines (VMs) with heterogeneous I / O requirements, cost-effective partitioning and allocation of cache resources among multiple VMs becomes a key issue. Heterogeneous VMs may have cross-VM impacts when sharing local cache resources and backend storage arrays.
[0005] There remains a need for a method to more accurately predict VM workload changes and track cache gains of past partitioning solutions. Summary of the invention
[0006] According to one embodiment of the inventive concept, a system includes: a virtual machine server and a dynamic cache partition manager (DCPM). The virtual machine server includes: a processor; a memory; at least two virtual machines stored in the memory and running on the processor; a virtual machine hypervisor for managing the operation of the at least two virtual machines; and a cache, including at least one storage device. The DCPM manages the partitioning of the cache into a performance guarantee area and a spike buffer in each of a plurality of periods, the performance guarantee area including an area for each of the at least two virtual machines, and the spike buffer storing workload spike data for the at least two virtual machines. The DCPM includes: a reusability statistics calculator for calculating reusability statistics of data stored in the cache during a previous period; a comparator for comparing the reusability statistics with a spike threshold; an access statistics calculator for calculating access statistics of first data stored in a first performance guarantee area during a previous period; a spike data identifier for identifying second data that satisfies the access statistics in the first spike buffer during the previous period; and a cache partitioner for partitioning the cache into a second performance guarantee area for a new period and a second spike buffer for the new period, so that the second spike buffer is large enough to store the second data.
[0007] According to one embodiment of the present invention, a system includes at least two virtual machine servers; at least one cache including at least one storage device; and a dynamic cache partition manager (DCPM) controller. Each of the at least two virtual machine servers includes: a processor; a memory; at least one virtual machine; and a hypervisor for managing the operation of the at least one virtual machine. The DCPM controller manages the division of at least one cache into a performance guarantee area and a spike buffer in each of a plurality of periods, the performance guarantee area including an area for each of at least one virtual machine on each of the at least two virtual machine servers, and the spike buffer storing workload spike data for each of the at least one virtual machine on each of the at least two virtual machine servers. The DCPM controller includes: a reusability statistics calculator for calculating reusability statistics of data stored in at least one cache during a previous period; a comparator for comparing the reusability statistics with a spike threshold; an access statistics calculator for calculating access statistics of first data stored in a first performance guarantee area during a previous period; a spike data identifier for identifying second data that satisfies the access statistics in the first spike buffer during the previous period; and a cache partitioner for partitioning at least one cache into a second performance guarantee area for a new period and a second spike buffer for the new period, so that the second spike buffer is large enough to store the second data.
[0008] According to one embodiment of the present invention, the method includes: dividing a cache into a first performance guarantee area and a first spike buffer; determining reusability statistics of data stored in the cache in a previous period; and if the reusability statistics are at least as large as a spike threshold: determining access statistics of first data stored in the first performance guarantee area in the previous period; identifying second data stored in the first spike buffer during the previous period that satisfies the access statistics; and re-dividing the cache into a second performance guarantee area for a new period and a second spike buffer for a new period, so that the second spike buffer is large enough to store the second data. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 A networked machine that can host virtual machines and use a storage pool according to an embodiment of the inventive concept is shown.
[0010] Figure 2 Show Figure 1 Additional details of the machine.
[0011] Figure 3 The embodiment according to the present invention is shown. Figure 1 Storage pool interaction Figure 1 Additional details of a server.
[0012] Figure 4 Shows Figure 1 The cache details.
[0013] FIG. 5A to FIG. 5C Show Figure 1 The cache is divided into various partitions into performance guarantee areas and spike buffers.
[0014] Figure 6 Show Figure 3 The high-level operation flow of the Dynamic Cache Partition Manager (DCPM) daemon.
[0015] Figure 7 The following illustrates how the system can be used when there is no workload spike according to an embodiment of the inventive concept. Figure 1 The cache is partitioned.
[0016] Figure 8 The present invention shows how to deal with workload spikes according to an embodiment of the present invention. Figure 1 The cache is partitioned.
[0017] Fig. 9 shows how the embodiments of the present invention can be Figure 1 The performance guarantee area of the cache is divided into areas for virtual machines.
[0018] Fig.10 Show Figure 3 Details of the DCPM daemon.
[0019] FIG. 11A to FIG. 11B The embodiment according to the present invention is shown Figure 3 The DCPM daemon is Figure 1 Flowchart of an example process for partitioning a cache.
[0020] Fig.12 The embodiment according to the present invention is shown Figure 3 The DCPM daemon uses an aggressive allocation strategy for Figure 1 Flowchart of an example process for partitioning a cache.
[0021] Fig.13 The embodiment according to the present invention is shown Figure 3 The DCPM daemon uses a conservative allocation strategy for Figure 1 Flowchart of an example process for partitioning a cache.
[0022] Fig.14 The embodiment according to the present invention is shown Figure 3 Flowchart of an example process for the DCPM daemon to calculate reusability statistics.
[0023] Fig.15 The embodiment according to the present invention is shown Figure 3 The DCPM daemon will FIG. 5A to FIG. 5C Flow diagram of an example process for partitioning a performance guarantee zone into zones for virtual machines. DETAILED DESCRIPTION
[0024] Reference will now be made in detail to embodiments of the inventive concept, examples of which are illustrated in the accompanying drawings. In the following detailed description, many specific details are set forth to enable a thorough understanding of the inventive concept. However, it should be appreciated that one of ordinary skill in the art can practice the inventive concept without these specific details. In other cases, well-known methods, processes, components, circuits and networks are not described in detail to avoid unnecessarily obscuring the various aspects of the embodiments.
[0025] It should be understood that although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of the present invention, a first module may be referred to as a second module, and similarly, a second module may be referred to as a first module.
[0026] The terms used in the description of the inventive concept are only for the purpose of describing a specific embodiment, rather than to limit the inventive concept. As used in the description of the inventive concept and the appended claims, the singular forms "one", "an" and "the" are intended to also include plural forms, unless the context clearly states otherwise. It should also be understood that the term "and / or" used herein refers to and includes any and all possible combinations of one or more related listed items. It will be further understood that when used in this specification, the terms "include" and / or "include" specify the presence of the features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or their groups. The components and features of the accompanying drawings are not necessarily drawn to scale.
[0027] In a virtualized cloud computing environment, multiple virtual machine (VM) servers (also called "physical machines" (PMs), hosts, or physical servers) are running VM hypervisor software (such as Xen, KVM, VMware, etc.) to host multiple VMs. Inside each physical server, the hosted VMs share the local resources of their host server, such as central processing unit (CPU), graphics processing unit (GPU), memory, solid state drive (SSD) (flash memory, used to cache hot data), network, etc. The PM is connected to a backend storage pool.
[0028] Virtual machines run client operating systems (O / S) (e.g., Linux, Windows, etc.). Virtual machines can be isolated from each other. Cloud service providers may "rent" these VMs to users. VMs can have different virtualization hardware and software resource configurations based on the provider's plans and user needs. VMs can have different workload characteristics based on user applications (commonly referred to as "heterogeneous" VMs). In order to solve the problem of cache management, embodiments of the present invention focus on input / output (I / O) mode characteristics. However, since VMs may share SSD resources, I / O is usually a bottleneck, so the goal is to minimize cross-VM impact.
[0029] VM hypervisor software (such as Xen, KVM, VMware, etc.) can host multiple virtual machines (VMs). The VM hypervisor is responsible for scheduling, resource management, system software application programming interfaces (APIs), and hardware virtualization. The Dynamic Cache Partition Manager (DCPM) daemon can be installed at the VM hypervisor level.
[0030] The local cache layer can be in any desired format, such as a hard disk drive (HDD), SSD, or NVMe SSD array installed within each server. SSDs are faster than traditional HDDs. VMs can share this cache. In terms of partitioning the cache layer, the cache layer can be treated as a single logical volume: for example, just a bunch of disks (JBOD), just a bunch of flash (JBOF), or redundant array of independent disks (RAID) level 0.
[0031] All VM servers can be connected to a centralized storage pool to share backend hard disk drives (HDDs) or other storage resources. The backend storage pool can store all data sets, while the local cache can store hot data sets. In other words, the local cache SSD is performance-oriented, while the storage pool HDD is capacity-oriented. Different cache / replacement algorithms can be used to handle HDD-SSD content updates.
[0032] The DCPM daemon can run on the VM hypervisors of all physical machines. The DCPM daemon can track the workload changes (I / O access pattern changes) of the VM servers and also record the status of the cache, such as space usage, I / O hit rate, etc.
[0033] The DCPM controller can run on a dedicated server or an embedded system in a storage system. The DCPM controller can decide to partition the SSD resources of each VM on each PM. The DCPM controller can use the information collected by the DCPM daemon to make these decisions. The decision will be sent back to each DCPM daemon to use HDD and SSD for partitioning and data set updates. Optionally, the functions attributed to the DCPM controller can be part of the DCPM daemon.
[0034] DCPM should achieve the following design goals:
[0035] (1) Use local cache fast storage devices (SSD, NVMe SSD, etc.) to cache hot data sets. DCPM should minimize storage pool I / O by detecting hot data and copying it to local cache unless necessary.
[0036] (2) Make better use of local cache and adaptively allocate space size to each VM according to workload changes.
[0037] For (1), DCPM performs dataset updates between the local cache and the storage pool at any desired time granularity (e.g., 1 minute, 5 minutes, or longer) and coarse spatial granularity (i.e., the minimum data unit to be transferred between the local cache and the storage pool can be 512KB, 1MB, or larger).
[0038] But (2) presents many challenges.
[0039] There are two straightforward approaches to allocating SSD resources among multiple VMs.
[0040] One approach is to reserve SSD resources for each VM in the system in proportion so that all VMs are isolated using their own allocated SSD resources. This approach will have a fixed partition size for each VM. The fixed partition size for each VM is based on their weight, which in turn can be based on service level agreements (SLAs) or workload variations (e.g., based on the amount of data sets reused). Additionally, the partition size may vary at runtime. Note that the frequency should be low to reduce overhead. Each VM can use a different cache replacement algorithm to cache their recently accessed data blocks, and cache management is completely subject to its own workload variations.
[0041] The second approach manages SSD resources in a fair competition mode by allowing all VMs to freely use or share the entire SSD to absorb spikes. At different times, VMs can have different sizes depending on their workload variations. If a particular VM has large I / O accesses during a period, it may occupy a correspondingly large percentage of the available cache. Cache algorithms are usually used to centrally decide which data blocks should be saved in the SSD for all VMs. Therefore, cache management is inevitably affected by the intensity of all workload variations.
[0042] However, none of these approaches can fully utilize the advantages of SSDs when some VMs have spike I / O workloads during operation. Although the first approach is able to avoid performance interference, unfortunately, VMs with workload spikes do not have the opportunity to obtain more SSD resources during their spikes. Each VM reserves a fixed amount of SSD resources during its operation. On the other hand, the second approach solves the problem by allowing all VMs to compete for SSD resources based on their current I / O needs. However, cache-unfriendly VMs may occupy more SSD resources when there are I / O spikes in the workload. Therefore, their I / O hit rate is improved and the overall utilization of SSD resources is also increased. However, VMs with I / O spikes may occupy a large amount of SSD resources during their spikes by evicting other cached data, which may pollute the critical caches of VMs with cache-friendly workloads, thereby reducing their I / O hit rate.
[0043] To ensure that all VMs benefit from SSDs, a new resource management scheme named DCPM is proposed, which divides the local cache SSD into two regions (denoted as “Z P ” (Performance Guarantee Area) and “Z S "(Spike Buffer)" strives to distinguish between different workload types (for example, cache-friendly workloads and cache-unfriendly workloads). The cache is treated as a single logical volume by DCPM. The "Performance Guarantee Zone" can reserve SSD resources for each VM, and the "Spike Buffer" can absorb and handle I / O spikes.
[0044] But just pinning these partitions may not be optimal for general use cases. For example, if a VM has a large number of bins popular for only a short period of time, it may be difficult to handle I / O spikes accessing those bins. S may not be large enough. This situation may result in very low I / O hit rates and increase the S The cost of caching new blocks in the medium-high speed operation. Therefore, adjust Z PIt is also important to size each VM within and adjust the distance (bar) between the "performance guarantee zone" and the "spike buffer zone". Aiming to maximize the overall (write and read) I / O hit rate and minimize the I / O cost (including I / O access and SSD-HDD update cost), the following formula can define the operation of DCPM:
[0045] maximize:
[0046]
[0047] Subject to:
[0048] 1≤i≤m (2)
[0049]
[0050] in:
[0051] C o (C i )=Co Access (i)+Co Update (i) (6)
[0052]
[0053] Table 1: List of symbols
[0054]
[0055]
[0056] The goal is to maximize the hit rate and reduce the corresponding normalized I / O cost for updates between SSDs and HDDs (Equation 1). The I / O hit rate function Hr() in Equation 1 can be monitored directly from the system during runtime, or can be estimated by other methods in use (i.e., the percentage of popularity of blocks whose maximum revisit distance is less than a given cache size). Equations 6 to 8 show formulas for estimating the I / O time cost corresponding to each I / O operation. In addition, the normalized I / O cost function is defined in Equation 9. Finally, the administrator-specified per-VM SSD space lower / upper bounds for each region are defined in Equations 4 to 5.
[0057] Solving the optimization framework may be difficult and time-consuming, so low-cost heuristic methods have advantages. Specifically, the size of each VM within the performance guarantee zone, as well as the partition size of the two zones, can be adaptively adjusted.
[0058] DCPM may try to reserve Z for each VM PSSD resources in the cache to ensure that each VM has its own private cache for its critical hot data. A straightforward approach is to partition region Z evenly or proportionally among the VMs. P ,Right now,
[0059]
[0060] Among them, w i is a fixed weight based on the service level agreement (SLA) for VM i, and:
[0061]
[0062] In actual implementation, each VM can be reserved Medium fixed amount (i.e. ) cache. However, this approach may not be efficient when the workload changes frequently over time and I / O spikes occur. When some VMs start to have a low I / O access rate, the reserved cache resources may not be fully utilized; while when other VMs experience an I / O spike that requires access to a large number of unique data blocks (i.e., a large working set), sufficient cache resources may not be available. Therefore, a partitioning algorithm can be used to dynamically decide Z based on both the long-term access history of each VM and their I / O workload changes. P The capacity of the reserved cache for each VM in Or more specifically, w i ).
[0063] For example, consider the case where there are four VMs, and during the last period, they each had an area of the same size in the performance guarantee area. As described above, the period can be set to a coarse granularity as needed, such as 5 minutes, or a shorter or longer interval. Based on the history of all its accesses (which can be a global sort of all blocks by I / O access times), the size of the VM area in the performance guarantee area can be adjusted. On the other hand, DCPM puts only the top blocks accessed in the current period into the spike buffer. Therefore, the spike buffer can provide fair competition and absorb I / O spikes.
[0064] When sizing the VM region in the Performance Guarantee Zone, the goal is to capture a long-term, frequently used dataset for the Performance Guarantee Zone. The best way to understand how much space each VM needs in the Performance Guarantee Zone is to estimate the size based on the access blocks from the last epoch. For example, if only the most recent epoch is used to predict the VM region size, the process would be:
[0065] 1) On each VM server, all accessed I / O blocks on all VMs on the VM server are globally sorted.
[0066] 2) Pick a threshold number of blocks, select the number of sorted blocks, and save them to the next epoch “performance guarantee zone”.
[0067] This process actually does two things: it determines the size of each VM based on the access history of the current epoch, and determines which blocks should be cached. However, considering only the recent epoch may not be enough to predict the actual cache needs of the VM, and may be misled by I / O spikes during the recent epoch. Therefore, access history from more than the recent epoch can be used to improve the prediction. A convolutional weight function can be used to fade out the impact of access history from a long time ago and assign higher weights to the recent epoch. A sliding window including the last N epochs can be used to select the region size for each VM during the next epoch. In fact, the "recent epoch" information method is actually a good candidate for estimating the partition size of the "spike buffer".
[0068] However, static two-region partitioning may not be optimal for general cases. For example, if the workload has a large number of blocks that are popular only during short periods of time, Z S may not be sufficient to handle I / O spikes accessing these blocks. This can result in very low I / O hit rates and increase the amount of time spent on Z S To solve this problem, we can use the method that allows DCPM to dynamically adjust Z P and Z S A spike detection-based partitioning algorithm for the size of .
[0069] DCPM can include two main components: a spike detector and a policy switcher. The spike detector can take feedback about workload changes and cache performance (e.g., I / O hits or I / O misses) as input to determine whether the current workload is a spike. Based on the detection results, the policy switcher can make different partitioning decisions to improve cache resource utilization.
[0070] Initially, these two regions are each set to half of the entire cache (although they can also be set to any other ratio by the system administrator). Once the kurtosis is calculated, the appropriate strategy can be selected by comparing the kurtosis to a threshold β. If the current kurtosis is greater than β, the DCPM can use an aggressive allocation strategy, in which the DCPM aggressively expands Z S On the other hand, if the current kurtosis is not greater than β, DCPM can adjust the allocation of cache to these regions in a more conservative way. After doing this, DCPM can adjust Z P The region for each VM in the .
[0071] As mentioned above, a "spike" can be defined as an I / O request with (1) a relatively large working set size (i.e., address space accessed) in a short period of time, and (2) relatively low reusability, defined as:
[0072]
[0073] Basically, if the reusability is close to zero, it is almost a one-time use pass, which will pollute the dataset in the local cache. A sliding window containing access records for multiple periods can be used to calculate the kurtosis (B d ). The goal is to calculate the percentage of data accesses in the current epoch that have not been used in the last N epochs. The sliding window can be the union of the addresses of the blocks accessed in the last N epochs. DCPM can track the change in the working set size between the current and previous sliding windows (where WS curSW and WS prevSW represents the working set of the window in question, and |WS curSW | and | WS prevSW | denotes their respective sizes). Then, the relative size difference between these two sliding windows (which can be calculated as the absolute value of the difference to always return a positive value) can be defined as the kurtosis (denoted as B d ), which may be better than using absolute values.
[0074] Table 2 shows an example of the spike detection process, where the sliding window size is N=3. It can be seen that there is no spike in the 4th period (i.e., no new data is accessed than can be found in the recent access history), but there is a spike in the 5th period (i.e., more data is being accessed, including data that has not been accessed recently): the kurtosis of the 4th and 5th periods is 0.167 and 0.533 respectively. The higher the kurtosis, the more spikes it has. In addition, the spike detection threshold β can be pre-defined by the administrator. The lower the threshold β, the more sensitive the system.
[0075] Table 2. Spike detection example.
[0076]
[0077] When there is no spike in the current I / O workload, that is, B d<β, DCPM can adjust the partition between the two regions by utilizing feedback on the cache performance of each region under the current partition. Specifically, DCPM can estimate the importance of the two regions (i.e., their contribution to the overall I / O performance) by recording the total I / O hit volume (i.e., the amount of all cached data hit by one or more I / O requests) in each region within a recent period (e.g., 5 minutes). The contribution ratio ρ can be calculated as the ratio of the total number of I / O requests in the "performance guarantee zone" and the "spike buffer" respectively: that is, Intuitively, regions that contribute more to the overall hit rate are likely to get more cache resources, and the cache is allocated proportionally to the contribution rate. This strategy is called "conservative allocation" because this strategy based on hit rate contribution is relatively stable and it is unlikely to suddenly increase a region size significantly.
[0078] When the spike detector identifies an I / O spike, the DCPM can actively move cache resources from one zone to another. Unfortunately, using contribution ratio as feedback to reset the capacity of the two zones does not work well in this case, because this approach may not adapt quickly to workload changes. In addition, the delay in moving resources after a sudden workload change may trigger a "cascading effect" (also known as a "thrashing effect") of insufficient capacity in one of the zones. For example, when an I / O spike accessing a new block arrives, the Z in the current epoch may be insufficient. S The I / O hit volume of the epoch may not be large enough to obtain more cache resources to handle these I / O spikes. Therefore, the I / O hit volume of the "spike buffer" may become smaller in the next epoch, which will trigger further reductions in future epochs and continue to reduce Z. S capacity.
[0079] To avoid this cascading effect, DCPM may attempt to dynamically and proactively provision Z instances when I / O spikes are detected in VM workloads. S Allocate more cache resources, but still minimize Z P The general idea is to increase Z in the near future if the working set size of the blocks accessed in the current epoch has increased significantly compared to the previous epoch. S It will also be helpful to have a size that absorbs the spike. However, Z S How many cache resources to add?
[0080] We just need to actively increase Z STo cache reusable short-term hot blocks instead of all spike blocks. To achieve this goal, another sliding window can be used to record the I / O popularity statistics of all blocks accessed in the last few epochs (instead of the latest epoch). This sliding window can be of any size: for example, the last 10 epochs.
[0081] After introducing the concept of "reusable short-term hot blocks", this term needs to be defined. A fixed number of I / O accesses can be used (for example, a block has been accessed 1000 times or more in the last period). But since VM workload I / O accesses are not limited to a specific range, using a fixed absolute number as a criterion to qualify short-term reusable hot blocks may not scale to larger clusters. Therefore, the average number of accesses to data blocks in the sliding window, which is also found in the "performance guarantee zone", can be used as a setting for selecting the blocks to be included in the Z S Then, DCPM can find that the number of accesses in the current sliding window exceeds a certain threshold but there is currently no cache in Z P All data blocks in the Z. Such blocks are defined as “reusable short-term hot blocks”. Then, DCPM can S The expected capacity is set to the total size of such blocks.
[0082] Figure 1 A networked machine that can host virtual machines and use a storage pool according to an embodiment of the inventive concept is shown. Figure 1 In FIG. 1 , a system 105 is shown. The system 105 may include virtual machine servers 110 - 1 , 110 - 2 , and 110 - 3 . Figure 1 Three virtual machine servers are shown, but embodiments of the inventive concept may support any number of virtual machine servers.
[0083] Each of the virtual machine servers 110-1, 110-2, and 110-3 may include a processor 115-1, 115-2, and 115-3, respectively, and may include a memory 120-1, 120-2, and 120-3, respectively. Among other uses, the processors 115-1, 115-2, and 115-3 may execute applications, such as applications used by virtual machines running on the virtual machine servers 110-1, 110-2, and 110-3 and that may be stored in the memories 120-1, 120-2, and 120-3. The processors 115-1, 115-2, and 115-3 may be any kind of processor: for example, an Intel Xeon, Celeron, Itanium, or Atom processor, an AMD Opteron processor, an ARM processor, etc. Although Figure 1A single processor is shown in each of virtual machine servers 110-1, 110-2, and 110-3, but virtual machine servers 110-1, 110-2, and 110-3 may each include any number of processors, each of which may be a single-core or multi-core processor, and may be mixed in any desired combination. Memories 120-1, 120-2, and 120-3 may each be any type of memory, such as flash memory, dynamic random access memory (DRAM), static random access memory (SRAM), persistent random access memory (PRAM), ferroelectric random access memory (FRAM), or non-volatile random access memory (NVRAM), such as magnetoresistive random access memory (MRAM), etc. Memories 120-1, 120-2, and 120-3 may each also be any desired combination of different memory types. Memories 120-1, 120-2, and 120-3 may be controlled by a memory controller ( Figure 1 ) is controlled by the virtual machine server 110-1, 110-2 and 110-3.
[0084] Each of the virtual machine servers 110-1, 110-2, and 110-3 may also include a local storage device. For example, the virtual machine servers 110-1, 110-2, and 110-3 may include caches 125-1, 125-2, and 125-3, respectively. Local storage devices such as caches 125-1, 125-2, and 125-3 may take any desired form, such as a hard disk drive (HDD) or a solid-state drive (SSD), and may use any desired connector, such as Peripheral Component Interconnect (PCI), PCI Express (PCIe), Serial AT Attachment (SATA), Non-Volatile Memory Express (NVMe), NVMe over Fabric (NVMeoF), M.2, or any other desired connection. Embodiments of the inventive concept may be combined with embodiments of the inventive concept disclosed in U.S. Patent Application No. 15 / 891,350, filed on February 7, 2018, which claims priority to U.S. Patent Application No. 62 / 534,647, filed on July 19, 2017, both of which are incorporated herein by reference for all purposes.
[0085] The system 105 may also include a data center server 130. Similar to the virtual machine servers 110-1, 110-2, and 110-3, the data center server 130 may include a processor 115-4 and a memory 120-4. However, the data center server 130 may also include a storage pool 135, a receiver 140, and a transmitter 145. The storage pool 135 may be a pool of storage devices organized into storage tiers. In some embodiments of the present inventive concept, the storage pool 135 may include only SSDs or other flash memory devices; in other embodiments of the present inventive concept, the storage pool 135 may include storage devices using other storage formats. The receiver 140 may receive input / output (I / O) commands and other data from the virtual machine servers 110-1, 110-2, and 110-3, and the transmitter 145 may send data to the virtual machine servers 110-1, 110-2, and 110-3.
[0086] Virtual machine servers 110-1, 110-2, and 110-3 and data center server 130 are shown as connected via network 150. Using network 150, virtual machine servers 110-1, 110-2, and 110-3 can send I / O commands to data center server 130 and can receive responses from it. Virtual machine servers 110-1, 110-2, and 110-3 and data center server 130 can all be part of a local area network (LAN), or can include other network types, such as a wide area network (WAN) or a global network such as the Internet. Network 150 can also be a combination of multiple such networks in any desired combination.
[0087] Although Figure 1 Virtual machine servers 110-1, 110-2, and 110-3 and data center server 130 are depicted as servers (and each may be a standalone server or a rack server), but embodiments of the inventive concept may include virtual machine servers 110-1, 110-2, and 110-3 and data center server 130, each of any desired type without limitation. For example, Figure 1Each of the servers shown in the figure can be replaced with a desktop computer or a laptop computer or any other device that can benefit from the embodiments of the present invention. Virtual machine servers 110-1, 110-2 and 110-3 and data center server 130 can also each include dedicated portable computing devices, tablet computers, smart phones and other computing devices. For the purpose of description, virtual machine servers 110-1, 110-2 and 110-3 are described as hosting virtual machines, but embodiments of the present invention may include machines that are not virtual machines running on virtual machine servers 110-1, 110-2 and 110-3. For example, virtual machine servers 110-1, 110-2 and 110-3 may include a computer that includes multiple applications running in parallel that can compete for resources of caches 125-1, 125-2 and 125-3.
[0088] Figure 2 Show Figure 1 Additional details of the virtual machine servers 110-1, 110-2, 110-3 and the data center server 130 are provided. Figure 2 In general, the virtual machine server 110 (which may represent Figure 1 The server 110-1, 110-2, or 110-3) includes one or more processors 115, which may include a memory controller 205 and a clock 210, which may be used to coordinate the operation of the components of the virtual machine server 110. The processor 115 may also be coupled to a memory 120, which may include a random access memory (RAM), a read-only memory (ROM), or other state retention medium, as examples. The processor 115 may also be coupled to a storage device 125 and to a network connector 215, which may be, for example, an Ethernet connector or a wireless connector. The processor 115 may also be connected to a bus 220, which may be attached a user interface 225 and input / output interface ports, which may be managed using an input / output engine 230 and other components.
[0089] Figure 3 The embodiment according to the present invention is shown Figure 1 Storage pool interaction Figure 1 Additional details of a server. Figure 3, the virtual machine server 110 is shown as hosting three virtual machines 305-1, 305-2, and 305-3, but embodiments of the inventive concept may include any number of virtual machines hosted by the virtual machine server 110. Although only the virtual machine 305-3 is described in more detail below, embodiments of the inventive concept include other virtual machines that operate similarly, such as the virtual machines 305-1 and 305-2. The virtual machine 305-3 is shown to include an application 310 running on an operating system 315. The hypervisor 320 can manage the operation of the virtual machines 305-1, 305-2, and 305-3 running on the virtual machine server 110. The hypervisor 320 can also interact with the storage pool 135 for sending input / output (I / O) requests from the virtual machines 305-1, 305-2, and 305-3.
[0090] The virtual machine server 110 may also include a cache 125. The cache 125 may include local storage for data sets accessed by the virtual machines 305-1, 305-2, and 305-3. A dynamic cache partition manager (DCPM) daemon 325, which may be implemented within the hypervisor 320, may manage partitions of the cache 125 for use by the virtual machines 305-1, 305-2, and 305-3, as described below.
[0091] As mentioned above, Figure 3 A virtual machine server 110 is shown with its own local cache 125, which reflects Figure 1 Virtual machine servers 110-1, 110-2, and 110-3 are shown, each having its own cache 125-1, 125-2, and 125-3, respectively. However, embodiments of the inventive concept do not limit the location of the cache 125 to within the virtual machine server 110. For example, the data center server 130 may include its own cache 330, which may be shared among the virtual machines 305-1 to 305-3 on the virtual machine server 110, or across Figure 1 The plurality of virtual machine servers 110-1, 110-2 and 110-3 are shared among the virtual machines. Optionally, the cache 125 may be Figure 1 1, 110-2, and 110-3, provides cache services for some but not all of those servers. Although these settings may seem unusual, for example, if cache 125 includes SSDs and storage pool 135 includes hard drives, cache 125 may be a cross-platform storage system. Figure 11, 110-2, and 110-3 and still be useful. In such an embodiment of the present invention, the functions performed by the DCPM can be divided between the DCPM daemon 325 and the DCPM controller 335. The DCPM daemon 325 can measure the workload of each virtual machine located on the virtual machine server 110, and the DCPM controller 335 can manage the partitioning of the cache 330, as described below. Optionally, the DCPM daemon 325 or the DCPM controller 335 can perform all of the functions described below. The term DCPM is intended to represent the overall operation of the DCPM daemon 325 and the DCPM controller 335, regardless of whether the system includes only one or two of these components.
[0092] Even in embodiments of the inventive concept where the virtual machine server 110 includes the local cache 125, the functionality of the DCPM may be split between the DCPM daemon 325 and the DCPM controller 335 in a similar manner. Figure 1 Each virtual machine server 110-1, 110-2, and 110-3 may include its own local cache 125 and its own DCPM daemon 325 to measure virtual machine workloads, and as Figure 3 The DCPM controller 335 shown as residing in the data center server 130 can manage the partitioning of each local cache. Embodiments of the inventive concept can also separate the cache 125 and / or 330 from either or both of the DCPM daemon 325 and the DCPM controller 335: that is, the cache 125 and / or 330 can be on a different machine from the DCPM daemon 325 and the DCPM controller 335.
[0093] As described above, depending on the embodiment of the inventive concept, the DCPM functions may be divided between the DCPM daemon 325 and the DCPM controller 335. In the rest of this document, to simplify the description, the DCPM daemon 325 is described as performing all functions of the DCPM.
[0094] The above description uses the term "cache" to describe the operation of the intermediate storage (between the virtual machines 305-1 to 305-3 and the data center server 130). Traditionally, the term "cache" is used to describe a storage system that is faster, but also smaller in size, than a more permanent / larger storage location for data. Therefore, when new data that is not currently resident in the cache is accessed, the cache can evict some of the data currently stored in the cache in favor of storing the newly requested data. (If the evicted data is accessed again, the evicted data will generate a cache miss, forcing the data to be retrieved from the more permanent / larger storage and potentially evicting some additional data from the cache). The cache can use any desired algorithm to select data to evict, such as two common cache eviction policies known as Least Recently Used (LRU) and Least Frequently Used (LFU).
[0095] Although cache 125 and / or 330 may operate in this manner—eviction of data as needed when new data is accessed—in other embodiments of the present inventive concept, cache 125 and / or 330 may operate differently. For example, in some embodiments of the present inventive concept, cache 125 and / or 330 may only update its stored data at the beginning of a new epoch (see below). Fig. 9 epochs are discussed in more detail in ). That is, when a new epoch begins, caches 125 and / or 330 may evict some data and add some new data based on the recent data access patterns of virtual machines 305-1 to 305-3. If new data is requested (not currently in cache 125 and / or 330), the new data will be accessed from storage pool 135 but will not be stored in cache 125 and / or 330 (unless the DCPM decides to include the data in cache 125 and / or 330 at the start of the next epoch). This type of cache may be referred to as a "lazy cache" or a "coarse-grained cache."
[0096] Figure 4 Show Figure 1 Details of cache 125. Figure 4, cache 125 is shown as including four solid-state drives (SSDs) 405-1, 405-2, 405-3, and 405-4. However, embodiments of the inventive concept may include a cache 125 that includes any number of storage devices, which may be in any desired format (SSDs, hard disk drives (HDDs), etc.). In general, embodiments of the inventive concept may treat cache 125 as a single storage unit, regardless of its composition. Thus, for example, storage devices 405-1, 405-2, 405-3, and 405-4 may be implemented as just a bunch of disks (JBOD), just a bunch of flash (JBOF), or redundant array of independent disks (RAID) level 0, or any other desired configuration that may be treated as a single storage unit.
[0097] FIG. 5A to FIG. 5C Show Figure 1 The cache 125 is divided into various partitions of a performance guarantee area and a spike buffer. Figure 5A In the embodiment of the present invention, the cache 125 may be initially partitioned into a performance guarantee area 505 and a spike buffer 510 of equal size. Then, after a few periods without workload spikes, the spike buffer 510 may be reduced in size and the performance guarantee area 505 may be increased in size, such as Figure 5B During periods when there are workload spikes, the spike buffer 510 may be increased and the performance guarantee region 505 may be reduced, as shown. Figure 5C This illustrates how the DCPM can adjust the amount of storage in cache 125 allocated to the performance guarantee region 505 and the spike buffer 510 as the workload demands of the various virtual machines change.
[0098] Figure 6 Show Figure 3 The high-level operation flow of the dynamic cache partition manager (DCPM) daemon 325 of the DCPM daemon 325 can enable the workload spike detector 605 to determine Figure 3 In addition, the DCPM daemon 325 can receive feedback from the cache feedback tracker 610 indicating whether there is a workload spike in the virtual machines in the virtual machine server 110. Figure 1 The DCPM daemon 325 can then use this information to select a repartition using the policy switch 615 Figure 1 The cache 125 policy, the content update controller 620 can update Figure 1 How the cache 125 is partitioned based on the policy switch 615.
[0099] Figure 7 1 shows how to deal with the load spike when there is no workload spike according to an embodiment of the present invention. Figure 1 The cache 125 of the embodiment of the present invention is partitioned. When there is no workload spike, the spike buffer 510 does not need to be so large because there is no need to worry about I / O spikes. In that case, the performance guarantee area 505 can be larger to handle more regular data access.
[0100] To adjust the partitioning of cache 125 for the next epoch, Figure 3 The DCPM daemon 325 can identify the current period by Figure 3 All data addresses accessed by virtual machines 305-1, 305-2, and 305-3 in I / O requests. These data addresses can then be organized into three groups: data hits 705 in the performance guarantee area 505, data hits 710 in the spike buffer 510, and data misses 715. The performance guarantee area 505 and the spike buffer 510 can then be repartitioned in proportion to the number of data hits 705 and 710 in each area. Thus, for example, assume that of all I / O requests issued by virtual machines 305-1, 305-2, and 305-3 during the current period, 60% of the I / O requests result in data hits in the performance guarantee area 505, 30% of all I / O requests result in data hits in the spike buffer 510, and 10% of the I / O requests result in data misses: that is, in Figure 1 The data is not found in the cache 125 of the performance guarantee area 505. This actual pattern shows that 2 / 3 of all I / O requests that result in data hits are for data found in the performance guarantee area 505, and 1 / 3 of all I / O requests that result in data hits are for data found in the spike buffer 510. In that case, the performance guarantee area 505 and the spike buffer 510 can be repartitioned so that the performance guarantee area 505 is allocated Figure 1 2 / 3 of the storage in the cache 125, the spike buffer 510 is allocated Figure 1 1 / 3 of the storage in cache 125. Note that data misses 715 do not affect this calculation because they do not result in a cache hit.
[0101] As mentioned above, this analysis can be performed using more data than the most recent period. For example, Figure 1 The memory 120 is Figure 1 The cache 125 stores historical information about data hits and misses, which can affect the analysis. Thus, for example, data hits 705 and 710 can take into account data hits in the current period and in older periods. For example, a sliding window of the last, for example, 10 periods can be stored as historical information, and this sliding window of historical data can be used to determine how to analyze the data. Figure 1The cache 125 is partitioned. To prevent older performance data that may be anomalous (relative to newer performance data), older data may be given a lower weight than newer periods: for example, using a convolution function. Any desired weighting function may be used to manage the impact of older performance data.
[0102] Figure 8 The present invention is conceived to illustrate how to deal with workload spikes in the presence of Figure 1 The cache is partitioned into 125. Figure 7 Similar, in Figure 8 in Figure 1 The data hits in cache 125 can be divided into those data hits 805 satisfied by performance guarantee region 505 and those data hits 810 satisfied elsewhere (i.e., spike buffer 510). However, instead of partitioning the performance guarantee region 505 and the spike buffer region 510 in proportion to the number of data hits in each region, another calculation can be used.
[0103] For data hits 805 in the performance guarantee area 505, access statistics may be used. Any access statistics may be used: embodiments of the inventive concept may use an average access count. The average access count may be calculated as the total number of data accesses to the data in the performance guarantee area 505 divided by the number of data addresses accessed. The average access count may be used to divide the data hits 810 in the spike buffer 510 into qualified short-term hot blocks 815 and other hits 820. The spike buffer 510 may then be allocated sufficient Figure 1 cache 125 to include all data in eligible short-term hot blocks 815, and Figure 1 The remaining storage of the cache 125 is allocated to the performance guarantee area 505.
[0104] As mentioned above, Figures 7 and 8 Different strategies for allocating between the performance guarantee region 505 and the spike buffer 510 are reflected. The question then becomes when to use each allocation strategy. Figure 3 The DCPM daemon 325 can calculate reusability statistics, which can represent Figure 1 How much data is in the cache 125 of the workload spike and Figure 1 How much of the data in the cache 125 represents long-term data. This reusability statistic can then be compared to a spike threshold, which can be set by the system administrator to any desired threshold. If the reusability statistic exceeds the spike threshold (or is at least as large as the spike threshold), then the Figure 8 The aggressive allocation strategy shown; otherwise, you can use Figure 7 Conservative allocation strategy shown.
[0105] The reusability statistic then becomes an important variable. The reusability statistic can be calculated by calculating the difference between the size of the data set in the current period and the size of the data set in the previous period. This difference can then be divided by the size of the current data set to produce a value that reflects how much the current data set differs from the previous data set. This increase (which can be called the reusability statistic) represents Figure 1 How much data is cached in 125 is the result of workload I / O spikes and therefore reflects the FIG. 5A to FIG. 5C Compared with the performance guarantee area 505, FIG. 5A to FIG. 5C How much workload is being managed by the spike buffer 510. When compared to the spike threshold, the reusability statistics can indicate whether aggressive or conservative allocation should be used.
[0106] exist Figures 7 and 8 middle, Figure 3 The DCPM daemon 325 can manage Figure 1 The allocation of the cache 125 to the performance guarantee area 505 and the spike buffer 510. However, this allocation does not end the analysis. The performance guarantee area 505 is intended to Figure 1 A portion of cache 125 is reserved to Figure 3 However, similar to the allocation between the performance guarantee area 505 and the peak buffer 510, Figure 3 The amount of performance guarantee region 505 reserved by each virtual machine 305 - 1 , 305 - 2 , and 305 - 3 may need to change over time to better reflect the changing needs of each virtual machine. Fig. 9 It shows how embodiments of the inventive concept can adjust the allocation of the performance guarantee area 505 to each virtual machine.
[0107] exist Fig. 9 , a history of N periods 905-1, 905-2, 905-3, and 905-4 is shown, where period 905-4 is the latest (e.g., current) period among them. Within each period, allocations (referred to as "regions") 910-1, 910-2, 910-3, and 910-4 are shown, each region representing four virtual machines. FIG. 5A to FIG. 5C As can be seen, over time, the allocation of regions 910-1 to 910-4 has changed. Initially, during period 905-1, all four regions 910-1 to 910-4 were allocated the same percentage of FIG. 5A to FIG. 5C performance guarantee area 505. Later, during period 905-2, area 910-1 is allocated a larger percentage of FIG. 5A to FIG. 5Cperformance guarantee area 505, area 910-4 is allocated a small percentage. Later, during period 905-4, area 910-1 is allocated a small percentage. FIG. 5A to FIG. 5C Of the performance guarantee area 505, area 910-4 is allocated the maximum percentage.
[0108] To determine the allocation of regions 910-1 to 910-4, selection statistics may be used. The selection statistics may be used to select various data sets for each virtual machine relative to the data in regions 910-1 to 910-4. The sizes of the selected data sets may then be compared, and regions 910-1 to 910-4 may then be allocated in proportion to the size of the data set for each virtual machine for the new epoch 915. The data in regions 910-1 to 910-4 may be compared to the selection statistics for only the current epoch 905-4, or to the selection statistics for all epochs 905-1 to 905-4. As described above with reference to Figure 7 As discussed, Figure 1 The memory 120 can store Figure 3 The DCPM daemon 325 of the embodiment of the present invention may use historical information of past periods 905-1 to 905-3. The historical information may include any desired data: for example, all past periods, or a subset such as a sliding window covering the past, for example, 5 or 10 periods. In embodiments of the present invention not only considering the current period 905-4, the contributions of past periods may be equal, or they may be weighted using any desired weighting function. For example, a convolution function may be used to reduce the influence of older periods in favor of newer periods (which may better represent the Figure 3 of virtual machines 305-1, 305-2 and 305-3).
[0109] In one embodiment of the present invention, the selected statistics may include a set number of blocks. FIG. 5A to FIG. 5C All data sets in the performance guarantee area 505 can be sorted: for example, by their access counts. The value of a selection statistic (e.g., 1000 blocks) can then be used to identify blocks to be considered within this sorted list: the block with the highest 1000 access count can be selected, and any other blocks can be discarded. These selected data sets can then be divided according to the virtual machines accessing the data (i.e., the areas 910-1 to 910-4 storing the data sets). The relative number of blocks per machine can then be used to determine the relative size percentage of areas 910-1 to 910-4 for the new epoch 915.
[0110] As a specific example, consider the case where only the current epoch 905-4 is considered. (Using only the current epoch 905-4 may result in poor allocation of cache resources due to I / O spikes, but for the purposes of a simple example, this issue may be ignored.) Assume that after sorting and applying the selection statistics, two of the selected data sets are located in region 910-1, three of the selected data sets are located in region 910-2, one of the selected data sets is located in region 910-3, and four of the selected data sets are located in region 910-4. Then, for the new epoch 915, FIG. 5A to FIG. 5C The performance guarantee zone 505 may be allocated to give 20% of the resources to the region 910-1, to give 30% of the resources to the region 910-2, to give 10% of the resources to the region 910-3, and to give 40% of the resources to the region 910-4.
[0111] Fig.10 Show Figure 3 Details of the DCPM daemon 325. Fig.10 , the DCPM daemon 325 is shown to include a reusability statistics calculator 1005, a comparator 1010, an access statistics calculator 1015, a spike data identifier 1020, a cache partitioner 1025, a percentage calculator 1030, a selection statistic 1035, and an identifier 1040. The reusability statistics calculator 1005 can be used to calculate reusability statistics for determining whether there is a workload I / O spike. The comparator 1010 can be used to compare the reusability statistics with a spike threshold 1045, which can indicate whether a preset cutoff for the workload I / O spike is reasonable for an aggressive allocation strategy or a conservative allocation strategy. (The comparator 1010 can also be used for other comparisons: for example, comparing FIG. 5A to FIG. 5C The access statistics calculator 1015 can calculate access statistics, such as FIG. 5A to FIG. 5C The peak data identifier 1020 can be used to identify the data that meets the access statistics. FIG. 5A to FIG. 5C The cache partitioner 1025 may be used to allocate data in the spike buffer 510. (e.g., for an aggressive allocation strategy). Figure 1 The cache 125 is partitioned into FIG. 5A to FIG. 5C The performance guarantee area 505 and FIG. 5A to FIG. 5C The cache partitioner 1025 can also be used to FIG. 5A to FIG. 5C The performance guarantee area 505 is divided into Fig. 9 The percentage calculator 1030 can be used to calculate FIG. 5A to FIG. 5C The performance guarantee area 505 and FIG. 5A to FIG. 5CThe selection statistic 1035 may be, for example, a statistic preset by a system administrator for use in allocating Fig. 9 In addition, the identifier 1040 can identify the percentage of data sets that meet the selection statistics 1035 for each virtual machine, which is again used to allocate Fig. 9 The size of regions 910 - 1 to 910 - 4 .
[0112] Figures 11A to 11B The embodiment according to the present invention is shown Figure 3 The DCPM daemon 325 pairs Figure 1 Flowchart of an example process for partitioning cache 125. Fig.11A In block 1105, Fig.10 The cache partitioner 1025 may initially Figure 1 The cache 125 is partitioned into FIG. 5A to FIG. 5C The performance guarantee area 505 and FIG. 5A to FIG. 5C The spike buffer 510. This initial partition can be evenly distributed FIG. 5A to FIG. 5C The performance guarantee area 505 and FIG. 5A to FIG. 5C At block 1110, for each virtual machine, Fig.10 The cache partitioner 1025 may initially FIG. 5A to FIG. 5C The performance guarantee area 505 is partitioned into areas 910-1 to 910-4. Again, this initial partitioning allocates equal areas 910-1 to 910-4.
[0113] When a new epoch begins, at block 1115, Fig.10 The reusability statistics calculator 1005 can calculate the reusability statistics for the current period (and possibly previous periods). Fig. 11B ), Figure 3 The DCPM daemon 325 can combine the reusability statistics with Fig.10 The spike threshold of 1045 is compared. If the reusability statistic is at least Fig.10 The spike threshold 1045 is as large as that of the peak threshold 1045, then at block 1125 Figure 3 The DCPM daemon 325 may use an aggressive allocation strategy. Otherwise, at block 1130, Figure 3 The DCPM daemon 325 may use a conservative allocation strategy. Either way, once Figure 1 The cache 125 has been partitioned into FIG. 5A to FIG. 5C The performance guarantee area 505 and FIG. 5A to FIG. 5C spike buffer 510, then at block 1135, Figure 3The DCPM daemon 325 can FIG. 5A to FIG. 5C The performance guarantee area 505 is divided into Fig. 9 Then, the process can return to block 1115 to perform repartitioning when the next epoch arrives.
[0114] Fig.12 The embodiment according to the present invention is shown Figure 3 The DCPM daemon 325 uses an aggressive allocation strategy to Figure 1 Flowchart of an example process for partitioning cache 125. Fig.12 In block 1205, FIG. 5A to FIG. 5C The performance guarantee area 505 contains data, Fig.10 The access statistics calculator 1015 can calculate access statistics, such as average access count or average access time. At block 1210, Fig.10 The peak data identifier 1020 can identify the peak data that meets the access statistics. FIG. 5A to FIG. 5C At block 1215, for Fig. 9 The next period of 915, Fig.10 The cache partitioner 1025 can Figure 1 The cache 125 is partitioned into FIG. 5A to FIG. 5C The performance guarantee area 505 and FIG. 5A to FIG. 5C The spike buffer 510 makes FIG. 5A to FIG. 5C The spike buffer 510 has sufficient storage space to store the identified data.
[0115] Block 1210 FIG. 5A to FIG. 5C The reason for filtering data in the spike buffer 510 is that there may be data that is used only once and does not actually need to be in Figure 3 cache 125 and / or 330 even if there are data spikes. For example, a video segment accessed over the network may be viewed once and then no longer needed. Fig. 9 The next period 915, such data does not need to be stored in Figure 3 cache 125 and / or 330, and when determining FIG. 5A to FIG. 5C The spike buffer 510 is of appropriate size and can be safely filtered out.
[0116] Information about access statistics can be stored in RAM instead of in Figure 3 125 and / or 330. For example, RAM can be used to store information about Figure 332-bit wide access count can track billions of accesses to a particular address, or can very accurately store access times measured in small fractions of a second. Thus, the amount of metadata that can be stored is very small relative to the data itself. By storing metadata in RAM (or Figure 3 cache 125 and / or some other faster memory 330), generating Fig.12 The access statistics described in block 1205 can be completed very efficiently.
[0117] exist Fig.12 You can use only Fig. 9 Blocks 1205 and 1210 are performed using data from the previous period 905-4. However, it is also possible to use data from Fig. 9 Blocks 1205 and 1210 are performed by using the data of the sliding window of any desired number of previous periods 905-1 to 905-4. By using additional periods, the access statistics are satisfied. FIG. 5A to FIG. 5C The amount of data in the spike buffer 510 is almost certainly greater than Fig. 9 The previous period 905-4 FIG. 5A to FIG. 5C The amount of data in the spike buffer 510 may be relative to Fig. 9 The previous period 905-4 increased FIG. 5A to FIG. 5C The size of the spike buffer 510 is as follows. Fig.12 , so it is usually expected to increase FIG. 5A to FIG. 5C The size of the spike buffer is 510, although FIG. 5A to FIG. 5C The spike buffer 510 should not be increased enough to affect FIG. 5A to FIG. 5C The performance guarantee area 505 (for example, by using FIG. 5A to FIG. 5C The performance guarantee area 505 is too small to support Figure 3 Normal working load of virtual machines 305-1 to 305-3).
[0118] In block 1205, if a sliding window of epochs is used to determine access statistics, then in some embodiments of the inventive concept, the access statistics stored in any of the previous epochs may be FIG. 5A to FIG. 5C The data in the performance guarantee area 505 is calculated to obtain access statistics (regardless of whether Fig. 9 In the previous period 905-4 FIG. 5A to FIG. 5C In other embodiments of the present invention, only Fig. 9 In the previous period 905-4 FIG. 5A to FIG. 5C The performance guarantee area 505 calculates the access statistics for the data found. That is, if Fig. 9 In the previous period 905-4 FIG. 5A to FIG. 5C If specific data is not found in the performance guarantee area 505, the metadata of the data is not used when calculating the access statistics.
[0119] In some embodiments of the inventive concept, blocks 1205 and 1210 may also use windows of different widths. For example, a large sliding window (e.g., 10 epochs) may be used in block 1205 to determine access statistics, but a small sliding window (e.g., one or two epochs) may be used in block 1210 to determine which data satisfies the access statistics.
[0120] Fig.13 The embodiment according to the present invention is shown Figure 3 The DCPM daemon 325 uses a conservative allocation strategy for Figure 1 Flowchart of an example process for partitioning cache 125. Fig.13 In block 1305, Fig.10 The percentage calculator 1030 can calculate FIG. 5A to FIG. 5C The performance guarantee area 505 Figure 1 Cache 125 of Figure 7 The percentage of data hits 705. At block 1310, Fig.10 The percentage calculator 1030 can calculate FIG. 5A to FIG. 5C The spike buffer 510 Figure 1 Cache 125 of Figure 7 The percentage of data hits 710. At block 1315, Fig.10 The cache partitioner 1025 can be used with FIG. 5A to FIG. 5C The performance guarantee area 505 and FIG. 5A to FIG. 5C The spike buffer 510 Figure 7 The percentage of data hits 705 and 710 is proportional to Fig. 9 The next period of 915 will Figure 1 The cache 125 is partitioned into FIG. 5A to FIG. 5C The performance guarantee area 505 and FIG. 5A to FIG. 5C The spike buffer 510.
[0121] Fig.14 The embodiment according to the present invention is shown Figure 3 A flowchart of an example process for calculating reusability statistics by the DCPM daemon 325. Fig.14 In block 1405, Fig.10 The reusability statistics calculator 1005 can calculate the difference between the number of blocks in the cache in the current period 905-4 and the previous periods 905-1, 905-2 and / or 905-3. At block 1410, Fig.10 The reusability statistics calculator 1005 may divide the difference by Figure 1 The number of blocks in cache 125.
[0122] Fig.15 The embodiment according to the present invention is shown Figure 3 The DCPM daemon 325 will FIG. 5A to FIG. 5C The performance guarantee area 505 is divided into virtual machines Fig. 9 A flowchart of an example process for regions 910-1 to 910-4. Fig.15 In block 1505, it can be determined Fig.10 The selected statistics are 1035. As mentioned above, Fig.10 The selected statistics 1035 can be preset by the system administrator. At block 1510, Figure 3 The DCPM daemon 325 can Figure 1 The ordering may depend on the selection statistic used. For example, if Fig.10 The selection statistics 1035 selects blocks based on the most frequently used blocks, and then the blocks can be sorted by access count. Whether the blocks need to be sorted depends on Fig.10 Selection statistics 1035: In some embodiments of the present inventive concept, block 1510 may be omitted, as indicated by dashed line 1515. In block 1520, the number of virtual machines satisfying Fig.10 The percentage of blocks selected for statistics 1035. Finally, at block 1525, Fig.10 The cache partitioner 1025 can satisfy the requirements of each virtual machine. Fig.10 The percentage of blocks with a selection statistic of 1035 will be proportional to FIG. 5A to FIG. 5C The performance guarantee area 505 is partitioned into areas 910-1 to 910-4.
[0123] exist FIG. 11A to FIG. 15 In the flowchart, some embodiments of the inventive concept are shown. However, those skilled in the art will recognize that other embodiments of the inventive concept are possible by changing the order of the blocks, by omitting blocks, or by including links not shown in the drawings. All these variations of the flowchart are considered embodiments of the inventive concept, whether or not explicitly described.
[0124] The following discussion is intended to provide a brief, general description of suitable one or more machines in which certain aspects of the inventive concepts may be implemented. One or more machines may be controlled at least in part by input from traditional input devices (such as a keyboard, mouse, etc.) and instructions received from another machine, interaction with a virtual reality (VR) environment, biometric feedback, or other input signals. As used herein, the term "machine" is intended to broadly cover a single machine, a virtual machine, or a system of communicatively coupled machines, virtual machines, or devices operating together. Exemplary machines include computing devices such as personal computers, workstations, servers, portable computers, handheld devices, phones, tablets, etc., and transportation devices such as private or public transportation, e.g., cars, trains, taxis, etc.
[0125] One or more machines may include embedded controllers, such as programmable or non-programmable logic devices or arrays, application specific integrated circuits (ASICs), embedded computers, smart cards, etc. One or more machines may utilize one or more connections to one or more remote machines, such as through a network interface, modem, or other communication coupling. The machines may be interconnected by physical and / or logical networks, such as an intranet, the Internet, a local area network, a wide area network, etc. Those skilled in the art will appreciate that network communications may utilize a variety of wired and / or wireless short-range or long-range carriers and protocols, including radio frequency (RF), satellite, microwave, Institute of Electrical and Electronics Engineers (IEEE) 802.11, Optical, infrared, cable, laser, etc.
[0126] Embodiments of the present inventive concept may be described by reference to or in conjunction with related data including functions, procedures, data structures, applications, etc., which when accessed by a machine cause the machine to perform a task or define an abstract data type or a low-level hardware environment. The related data may be stored, for example, in volatile and / or non-volatile memory (e.g., RAM, ROM, etc.), or in other storage devices and their related storage media, including hard disk drives, floppy disks, optical disks, tapes, flash memory, memory sticks, digital video disks, biometric storage, etc. The related data may be transmitted in the form of packets, serial data, parallel data, propagated signals, etc., through a transmission environment including a physical and / or logical network, and may be used in a compressed or encrypted format. The related data may be used in a distributed environment and stored locally and / or remotely for machine access.
[0127] Embodiments of the inventive concepts may include a tangible, non-transitory machine-readable medium including instructions executable by one or more processors, the instructions including instructions for performing elements of the inventive concepts as described herein.
[0128] The various operations of the above methods may be performed by any suitable means capable of performing the operations, such as various hardware and / or software components, circuits and / or modules. Software may include an ordered list of executable instructions for implementing logical functions, which may be embodied in any "processor readable medium" for use by or in conjunction with an instruction execution system, apparatus or device, such as a single-core or multi-core processor or a system including a processor.
[0129] The blocks or steps of the methods or algorithms and functions described in conjunction with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. If implemented in software, the functions may be stored on or transmitted through a tangible, non-transitory computer-readable medium as one or more instructions or codes. The software module may reside in a random access memory (RAM), flash memory, read-only memory (ROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), registers, a hard disk, a removable disk, a CD ROM, or any other form of storage medium known in the art.
[0130] Having described and illustrated the principles of the inventive concept with reference to the illustrated embodiments, it will be appreciated that the illustrated embodiments may be modified in arrangement and detail without departing from these principles, and the illustrated embodiments may be combined in any desired manner. In addition, although the foregoing discussion has focused on specific embodiments, other configurations may be contemplated. In particular, even if expressions such as "embodiments of the inventive concept" are used herein, these phrases generally mean the possibility of reference embodiments, and are not intended to limit the inventive concept to specific embodiment configurations. As used herein, these terms may refer to the same or different embodiments that may be combined into other embodiments.
[0131] The foregoing illustrative embodiments should not be construed as limiting the inventive concept thereof. Although some embodiments have been described, it will be readily appreciated by those skilled in the art that many modifications may be made to those embodiments without substantially departing from the novel teachings and advantages of the present disclosure. Therefore, all such modifications are intended to be included within the scope of the inventive concept defined in the claims.
[0132] Embodiments of the present inventive concept may be extended to the following statements, but are not limited to:
[0133] Statement 1. An embodiment of the inventive concept includes a virtual machine server, comprising:
[0134] processor;
[0135] Memory;
[0136] at least two virtual machines stored in the memory and running on the processor;
[0137] a virtual machine hypervisor for managing operations of at least two virtual machines;
[0138] a cache comprising at least one storage device; and
[0139] A dynamic cache partition manager (DCPM) for managing, in each of a plurality of epochs, partitioning of a cache into a performance guaranteed region and a spike buffer, the performance guaranteed region comprising an area for each of at least two virtual machines, the spike buffer storing workload spike data of the at least two virtual machines, the DCPM comprising:
[0140] a reusability statistics calculator for calculating reusability statistics for data stored in the cache during a prior period;
[0141] a comparator for comparing the reusability statistic to a spike threshold;
[0142] an access statistics calculator for calculating access statistics of first data stored in the first performance guarantee area during a previous period;
[0143] a spike data identifier for identifying second data in the first spike buffer satisfying access statistics during a previous period; and
[0144] The cache partitioner is used to partition the cache into a second performance guarantee area for the new era and a second peak buffer area for the new era, so that the second peak buffer area is large enough to store the second data.
[0145] Statement 2. An embodiment of the inventive concept includes a system according to statement 1, wherein the DCPM is included in one of a virtual machine server and a data center server.
[0146] Statement 3. An embodiment of the inventive concept includes a virtual machine server according to statement 2, wherein:
[0147] The access statistics calculator operates to calculate an average access count for the first data stored in the performance guarantee area during a previous period; and
[0148] The spike data identifier operates to identify second data in the first spike buffer during a previous period whose access count is greater than the average access count.
[0149] Statement 4. An embodiment of the inventive concept includes a virtual machine server according to statement 3, wherein:
[0150] The access statistics calculator operates to calculate an average access count of the first data in the performance guarantee area during a plurality of previous periods; and
[0151] The spike data identifier is operative to identify second data in the first spike buffer during a plurality of previous epochs whose access count is greater than the average access count.
[0152] Statement 5. An embodiment of the inventive concept includes a virtual machine server according to statement 2, wherein:
[0153] The DCPM further includes a percentage calculator for calculating a first hit percentage in the performance guarantee region during a previous period and a second hit percentage in the spike buffer during the previous period; and
[0154] The cache partitioner is operable to partition the cache in the virtual machine server into a third performance guarantee area and a third spike buffer in proportion to the first hit percentage and the second hit percentage.
[0155] Statement 6. An embodiment of the inventive concept includes a virtual machine server according to statement 5, wherein the percentage calculator is operative to calculate a first percentage of hits in the performance guarantee region during a plurality of previous periods and a second percentage of hits in the spike buffer during the plurality of previous periods.
[0156] Statement 7. An embodiment of the present inventive concept includes a virtual machine server according to statement 2, wherein the reusability statistics calculator is operable to calculate the reusability statistics as the difference between the current number of blocks in the cache in a previous period and the previous number of blocks in the cache in a second previous period divided by the current number of blocks in the cache in the previous period.
[0157] Statement 8. An embodiment of the present inventive concept includes a virtual machine server according to statement 7, wherein the reusability statistics calculator is operable to calculate the difference between the current number of blocks in the cache in a previous period and the previous number of blocks in the cache in a second previous period as the minimum difference between the current number of blocks in the cache in the previous period and multiple previous numbers of blocks in the cache in multiple previous periods.
[0158] Statement 9. An embodiment of the inventive concept includes a virtual machine server according to statement 2, wherein:
[0159] DCPM includes:
[0160] Select statistics; and
[0161] An identifier for identifying, for each virtual machine storing data in the first performance guarantee area, a percentage of first data in the first performance guarantee area that satisfied the selected statistic during a previous period;
[0162] as well as
[0163] The cache partitioner is operable to allocate a plurality of regions in the second performance guarantee region for the new epoch in proportion to the percentage of each virtual machine.
[0164] Statement 10. An embodiment of the inventive concept comprises a virtual machine server according to statement 9, wherein:
[0165] selecting a statistic including a threshold number of blocks; and
[0166] The identifier is operable to identify a subset of the plurality of chunks having corresponding access counts exceeding a threshold number of chunks.
[0167] Statement 11. An embodiment of the inventive concept includes the virtual machine server according to statement 9, wherein the selected statistics include selected statistics of first data in the first performance guarantee region during a previous period.
[0168] Statement 12. An embodiment of the inventive concept includes the virtual machine server of statement 9, wherein the selected statistics include selected statistics of the first data in the first performance guarantee region during a plurality of previous periods.
[0169] Statement 13. An embodiment of the inventive concept comprises the virtual machine server of statement 12, wherein the memory stores a history of sizes of the regions during a plurality of prior periods.
[0170] Statement 14. An embodiment of the inventive concept includes the virtual machine server according to statement 9, wherein the area for each of the at least two virtual machines in the first performance guarantee zone is initially allocated with the same size.
[0171] Statement 15. An embodiment of the inventive concept includes a virtual machine server according to statement 9, wherein the area for each of the at least two virtual machines in the first performance guarantee zone is initially allocated in proportion to at least two weights associated with at least two service level agreements of the at least two virtual machines.
[0172] Statement 16. An embodiment of the inventive concept includes the virtual machine server according to statement 2, wherein the first performance guaranteed area and the first spike buffer are initially allocated with the same size.
[0173] Statement 17. An embodiment of the present inventive concept includes a system comprising:
[0174] At least two virtual machine servers, each of the at least two virtual machine servers comprising:
[0175] processor;
[0176] Memory;
[0177] at least one virtual machine; and
[0178] a virtual machine hypervisor for managing operations of at least one virtual machine;
[0179] at least one cache comprising at least one storage device; and
[0180] A dynamic cache partition manager (DCPM) controller for managing partitioning of at least one cache into a performance guarantee region and a spike buffer in each of a plurality of epochs, the performance guarantee region comprising an area for each of at least one virtual machine on each of at least two virtual machine servers, the spike buffer storing workload spike data for each of at least one virtual machine on each of the at least two virtual machine servers, the DCPM controller comprising:
[0181] a reusability statistics calculator for calculating reusability statistics for data stored in at least one cache during a prior period;
[0182] a comparator for comparing the reusability statistic to a spike threshold;
[0183] an access statistics calculator for calculating access statistics of first data stored in the first performance guarantee area during a previous period;
[0184] a spike data identifier for identifying second data satisfying access statistics in the first spike buffer during a previous period; and
[0185] The cache partitioner is used to divide the at least one cache into a second performance guarantee area for the new era and a second spike buffer area for the new era, so that the second spike buffer area is large enough to store the second data.
[0186] Statement 18. An embodiment of the inventive concept comprises a system according to statement 17, further comprising a data center server, the data center server comprising a DCPM controller.
[0187] Statement 19. An embodiment of the inventive concept comprises a system according to statement 18, wherein the data center server further comprises at least one cache.
[0188] Statement 20. An embodiment of the inventive concept includes the system of statement 18, wherein the at least one cache is located on a machine other than a virtual machine server and a data center server.
[0189] Statement 21. An embodiment of the inventive concept comprises the system of statement 18, wherein each of the at least two virtual machine servers comprises a DCPM daemon to monitor a workload of at least one virtual machine.
[0190] Statement 22. An embodiment of the inventive concept comprises a system according to statement 17, wherein:
[0191] an access statistics calculator for calculating an average access count of the first data stored in the performance guarantee area during a previous period; and
[0192] A spike data identifier is used to identify second data in the first spike buffer during a previous period, whose access count is greater than the average access count.
[0193] Statement 23. An embodiment of the inventive concept comprises a system according to statement 22, wherein:
[0194] an access statistics calculator operable to calculate an average access count for the first data in the performance guarantee area during a plurality of previous periods; and
[0195] A spike data identifier is operable to identify second data in the first spike buffer during a plurality of previous epochs having an access count greater than an average access count.
[0196] Statement 24. An embodiment of the inventive concept comprises a system according to statement 17, wherein:
[0197] The DCPM controller further includes a percentage calculator for calculating a first hit percentage in the performance guarantee region during a previous period and a second hit percentage in the spike buffer region during a previous period; and
[0198] The cache partitioner is operable to partition the cache in the virtual machine server into a third performance guarantee area and a third spike buffer in proportion to the first hit percentage and the second hit percentage.
[0199] Statement 25. An embodiment of the inventive concept includes the system of statement 24, wherein the percentage calculator is used to calculate a first hit percentage in the performance guarantee region during a plurality of previous periods and a second hit percentage in the spike buffer during a plurality of previous periods.
[0200] Statement 26. An embodiment of the inventive concept includes a system according to statement 17, wherein the reusability statistics calculator can be operated to calculate the reusability statistics as the difference between the current number of blocks in the cache in a previous period and the previous number of blocks in the cache in a second previous period divided by the current number of blocks in the cache in the previous period.
[0201] Statement 27. An embodiment of the inventive concept includes a system according to statement 26, wherein the reusability statistics calculator is operable to calculate the difference between the current number of blocks in the cache in a previous period and the previous number of blocks in the cache in a second previous period as the minimum difference between the current number of blocks in the cache in the previous period and multiple previous numbers of blocks in the cache in multiple previous periods.
[0202] Statement 28. An embodiment of the inventive concept comprises a system according to statement 17, wherein:
[0203] The DCPM controller includes:
[0204] Select statistics; and
[0205] An identifier for identifying, for each virtual machine storing data in the first performance guarantee area, a percentage of first data in the first performance guarantee area that satisfied the selected statistic during a previous period;
[0206] as well as
[0207] The cache partitioner is operable to allocate a plurality of regions in the second performance guarantee region for the new epoch in proportion to the percentage used for each virtual machine.
[0208] Statement 29. An embodiment of the inventive concept comprises a system according to statement 28, wherein:
[0209] selecting a statistic including a threshold number of blocks; and
[0210] The identifier is operable to identify a subset of the plurality of chunks having corresponding access counts exceeding a threshold number of chunks.
[0211] Statement 30. An embodiment of the present inventive concept comprises the system of statement 28, wherein the selected statistics comprises selected statistics of first data in the first performance guarantee region during a previous period.
[0212] Statement 31. An embodiment of the inventive concept comprises the system of statement 28, wherein the selected statistics comprises selected statistics of the first data in the first performance guarantee region during a plurality of previous periods.
[0213] Statement 32. An embodiment of the inventive concept includes the system of statement 31, wherein the memory stores a history of the size of the region during a plurality of previous periods.
[0214] Statement 33. An embodiment of the inventive concept includes the system according to statement 28, wherein the area of each of the at least two virtual machines in the first performance guaranteed zone is initially allocated with the same size.
[0215] Statement 34. An embodiment of the inventive concept includes the system of statement 28, wherein the area of each of the at least two virtual machines in the first performance guarantee zone is initially allocated in proportion to at least two weights associated with at least two service level agreements of the at least two virtual machines.
[0216] Statement 35. An embodiment of the inventive concept comprises the system according to statement 17, wherein the first performance guaranteed area and the first spike buffer are initially allocated with the same size.
[0217] Statement 36. An embodiment of the inventive concept includes a method comprising:
[0218] Dividing the cache into a first performance guarantee area and a first peak buffer area;
[0219] determining a reusability statistic for data stored in the cache in a previous epoch; and if the reusability statistic is at least as great as a spike threshold:
[0220] determining access statistics of first data stored in a first performance guarantee area in a previous period;
[0221] identifying second data stored in the first spike buffer during a previous period that satisfies the access statistics; and
[0222] The cache is repartitioned into a second performance guarantee area of a new period and a second peak buffer area of a new period, so that the second peak buffer area is large enough to store the second data.
[0223] Statement 37. An embodiment of the inventive concept includes the method of statement 36, wherein the cache is one of a virtual machine server, a data center server, and a machine in a system including a virtual machine server and a data center server.
[0224] Statement 38. An embodiment of the inventive concept comprises a method according to statement 36, wherein:
[0225] Determining access statistics of the first data stored in the first performance guarantee area in the previous period includes determining an average access count of the first data stored in the first performance guarantee area during the previous period; and
[0226] Identifying second data stored in the first spike buffer during the previous period that satisfies the access statistics includes identifying second data stored in the first spike buffer having an access count greater than an average access count during the previous period.
[0227] Statement 39. An embodiment of the inventive concept comprises a method according to statement 38, wherein:
[0228] Determining an average access count of the first data stored in the performance guarantee area during a previous period includes determining an average access count of the first data stored in the performance guarantee area during a plurality of previous periods; and
[0229] Identifying second data stored in the first spike buffer having an access count greater than the average access count during a previous period includes identifying second data stored in the first spike buffer having an access count greater than the average access count during a plurality of previous periods.
[0230] Statement 40. An embodiment of the inventive concept comprises the method of statement 36, wherein if the reusability statistic is less than the spike threshold, the method comprises:
[0231] determining a first hit percentage in the performance guarantee region during a prior period;
[0232] determining a second hit percentage in the spike buffer during a prior period; and
[0233] The cache is repartitioned into a third performance guarantee area and a third spike buffer in proportion to the first hit percentage and the second hit percentage.
[0234] Statement 41. An embodiment of the inventive concept comprises a method according to statement 40, wherein:
[0235] Determining a first hit percentage in the performance guarantee region during a previous period includes determining a first hit percentage in the performance guarantee region during a plurality of previous periods; and
[0236] Determining a second hit percentage in the spike buffer during a previous epoch includes determining a second hit percentage in the spike buffer during a plurality of previous epochs.
[0237] Statement 42. An embodiment of the inventive concept comprises the method of statement 36, wherein determining the reusability statistics of data stored in the cache in a previous period comprises:
[0238] determining a difference between a current number of blocks in the cache in a previous epoch and a previous number of blocks in the cache in a second previous epoch; and
[0239] A ratio of the difference to the current number of blocks in the cache in the previous epoch is determined.
[0240] Statement 43. An embodiment of the inventive concept comprises a method according to statement 42, wherein:
[0241] Determining a difference between the current number of blocks in the cache in a previous epoch and the previous number of blocks in the cache in a second previous epoch includes determining a minimum difference between the current number of blocks in the cache in the previous epoch and a plurality of previous numbers of blocks in the cache in a plurality of previous epochs; and
[0242] Determining a ratio of the difference to the current number of blocks in the cache in a previous epoch includes determining a ratio of a minimum difference in the cache in a previous epoch to the current number of blocks.
[0243] Statement 44. An embodiment of the inventive concept comprises the method according to statement 36, further comprising:
[0244] Determining selection statistics of first data in a first performance guarantee area;
[0245] identifying, for each virtual machine storing data in the first performance guaranteed region, a percentage of first data in the first performance guaranteed region that satisfied the selected statistic during a previous period; and
[0246] A plurality of regions are allocated in the second performance guarantee zone for the new period in proportion to the percentage of each virtual machine.
[0247] Statement 45. An embodiment of the inventive concept comprises a method according to statement 44, wherein:
[0248] Determining a selection statistic of first data in the first performance guarantee region during a prior period includes determining a threshold number of blocks; and
[0249] Identifying, for each virtual machine storing data in the first performance guarantee region, a percentage of first data in the first performance guarantee region that satisfies the selected statistics during a previous period, including:
[0250] sorting the plurality of partitions in the first performance guarantee area in all virtual machines by corresponding access counts; and
[0251] A subset of the plurality of blocks is selected as ordered by corresponding access counts exceeding a threshold number of blocks.
[0252] Statement 46. An embodiment of the inventive concept comprises the method of statement 44, wherein determining selection statistics of the first data in the first performance guarantee region comprises determining selection statistics of the first data in the first performance guarantee region during a previous period.
[0253] Statement 47. An embodiment of the present inventive concept includes a method according to statement 44, wherein, for each virtual machine storing data in a first performance guarantee area, identifying the percentage of first data in the first performance guarantee area that satisfies selected statistics during a previous period includes: for each virtual machine storing data in the first performance guarantee area, identifying the percentage of first data in the first performance guarantee area that satisfies selected statistics during multiple previous periods.
[0254] Statement 48. An embodiment of the inventive concept includes the method according to statement 44, further comprising: initially allocating a plurality of regions in the second performance guarantee area with the same size for the new epoch.
[0255] Statement 49. An embodiment of the inventive concept comprises the method of statement 44, further comprising: initially allocating the plurality of zones in proportion to a plurality of weights associated with a plurality of service level agreements for the plurality of virtual machines.
[0256] Statement 50. An embodiment of the inventive concept comprises the method of statement 36, wherein dividing the cache into the first performance guaranteed area and the first spike buffer comprises initially dividing the cache into the first performance guaranteed area and the first spike buffer of equal size.
[0257] Statement 51. Embodiments of the inventive concept include an article of manufacture comprising a non-transitory storage medium having stored thereon instructions that, when executed by a machine, cause:
[0258] Dividing the cache into a first performance guarantee area and a first peak buffer area;
[0259] determining a reusability statistic for data stored in the cache in a previous epoch; and if the reusability statistic is at least as great as a spike threshold:
[0260] determining access statistics of first data stored in a first performance guarantee area in a previous period;
[0261] identifying second data stored in the first spike buffer during a previous period that satisfies the access statistics; and
[0262] The cache is repartitioned into a second performance guarantee area of a new period and a second peak buffer of a new period, so that the second peak buffer is large enough to store the second data.
[0263] Statement 52. An embodiment of the inventive concept includes an article of manufacture according to statement 51, wherein the cache is one of a virtual machine server, a data center server, and a machine in a system including a virtual machine server and a data center server.
[0264] Statement 53. Embodiments of the inventive concept include an article according to statement 51, wherein:
[0265] Determining access statistics of the first data stored in the first performance guarantee area in the previous period includes determining an average access count of the first data stored in the first performance guarantee area during the previous period; and
[0266] Identifying second data stored in the first spike buffer during the previous period that satisfies the access statistics includes identifying second data stored in the first spike buffer having an access count greater than an average access count during the previous period.
[0267] Statement 54. Embodiments of the inventive concept include an article according to statement 53, wherein:
[0268] Determining an average access count of the first data stored in the performance guarantee area during a previous period includes determining an average access count of the first data stored in the performance guarantee area during a plurality of previous periods; and
[0269] Identifying second data stored in the first spike buffer having an access count greater than the average access count during a previous period includes identifying second data stored in the first spike buffer having an access count greater than the average access count during a plurality of previous periods.
[0270] Statement 55. An embodiment of the inventive concept comprises an article of manufacture according to statement 51, wherein if the reusability statistic is less than a spike threshold, then:
[0271] determining a first hit percentage in the performance guarantee region during a prior period;
[0272] determining a second hit percentage in the spike buffer during a prior period; and
[0273] The cache is repartitioned into a third performance guarantee area and a third spike buffer in proportion to the first hit percentage and the second hit percentage.
[0274] Statement 56. Embodiments of the inventive concept include an article according to statement 55, wherein:
[0275] Determining a first hit percentage in the performance guarantee region during a previous period includes determining a first hit percentage in the performance guarantee region during a plurality of previous periods; and
[0276] Determining a second hit percentage in the spike buffer during a previous epoch includes determining a second hit percentage in the spike buffer during a plurality of previous epochs.
[0277] Statement 57. An embodiment of the inventive concept comprises an article of manufacture according to statement 51, wherein determining reusability statistics of data stored in the cache in a previous period comprises:
[0278] determining a difference between a current number of blocks in the cache in a previous epoch and a previous number of blocks in the cache in a second previous epoch; and
[0279] A ratio of the difference to the current number of blocks in the cache in the previous epoch is determined.
[0280] Statement 58. Embodiments of the inventive concept include an article according to statement 57, wherein:
[0281] Determining a difference between the current number of blocks in the cache in a previous epoch and the previous number of blocks in the cache in a second previous epoch includes determining a minimum difference between the current number of blocks in the cache in the previous epoch and a plurality of previous numbers of blocks in the cache in a plurality of previous epochs; and
[0282] Determining a ratio of the difference to the current number of blocks in the cache in a previous epoch includes determining a ratio of a minimum difference in the cache in a previous epoch to the current number of blocks.
[0283] Statement 59. Embodiments of the inventive concept include an article of manufacture according to statement 51, the non-transitory storage medium having further instructions stored thereon which, when executed by a machine, cause:
[0284] Determining selection statistics of first data in a first performance guarantee area;
[0285] identifying, for each virtual machine storing data in the first performance guaranteed region, a percentage of first data in the first performance guaranteed region that satisfied the selected statistic during a previous period; and
[0286] A plurality of regions are allocated in the second performance guarantee zone for the new period in proportion to the percentage of each virtual machine.
[0287] Statement 60. Embodiments of the inventive concept include an article according to statement 59, wherein:
[0288] Determining a selection statistic of first data in the first performance guarantee region during a prior period includes determining a threshold number of blocks; and
[0289] Identifying, for each virtual machine storing data in the first performance guarantee region, a percentage of first data in the first performance guarantee region that satisfies the selected statistics during a previous period, including:
[0290] sorting the plurality of partitions in the first performance guarantee area in all virtual machines by corresponding access counts; and
[0291] A subset of the plurality of blocks is selected as ordered by corresponding access counts exceeding a threshold number of blocks.
[0292] Statement 61. An embodiment of the inventive concept includes an article of manufacture according to statement 59, wherein determining selected statistics of the first data in the first performance guarantee region comprises determining selected statistics of the first data in the first performance guarantee region during a previous period.
[0293] Statement 62. An embodiment of the present inventive concept includes an article according to statement 59, wherein, for each virtual machine storing data in a first performance guarantee area, identifying the percentage of first data in the first performance guarantee area that satisfied selected statistics during a previous period includes: for each virtual machine storing data in the first performance guarantee area, identifying the percentage of first data in the first performance guarantee area that satisfied selected statistics during multiple previous periods.
[0294] Statement 63. An embodiment of the inventive concept comprises an article of manufacture according to statement 59, a non-transitory storage medium having further instructions stored thereon that, when executed by a machine, cause initially allocating a plurality of regions in the second performance guarantee area with the same size for a new epoch.
[0295] Statement 64. An embodiment of the inventive concept comprises an article of manufacture according to statement 59, a non-transitory storage medium having further instructions stored thereon that, when executed by a machine, cause the plurality of zones to be initially allocated in proportion to a plurality of weights associated with a plurality of service level agreements for a plurality of virtual machines.
[0296] Statement 65. An embodiment of the inventive concept comprises an article of manufacture according to statement 51, wherein dividing the cache into the first performance guaranteed region and the first spike buffer comprises initially dividing the cache into the first performance guaranteed region and the first spike buffer of equal size.
[0297] Therefore, in view of the various arrangements of the embodiments described herein, the detailed description and the accompanying materials are illustrative only and should not be considered as limiting the scope of the inventive concept. Therefore, what is claimed as the inventive concept is all modifications that may fall within the scope and spirit of the appended claims and their equivalents.
Claims
1. A cache management system, include: Virtual machine server, including: processor; Memory; at least two virtual machines stored in the memory and running on the processor; a hypervisor for managing operations of at least two virtual machines; and a cache comprising at least one storage device; and A dynamic cache partition manager DCPM, for managing the partitioning of the cache into a performance guarantee zone and a spike buffer in each of a plurality of epochs, the performance guarantee zone comprising an area for each of at least two virtual machines, the spike buffer storing workload spike data for the at least two virtual machines, the DCPM comprising: a reusability statistics calculator for calculating reusability statistics for data stored in the cache during a prior period; a comparator for comparing the reusability statistic to a spike threshold; an access statistics calculator for calculating access statistics of first data stored in the first performance guarantee area during a previous period; a spike data identifier for identifying second data satisfying access statistics in the first spike buffer during a previous period; and The cache partitioner is used to partition the cache into a second performance guarantee area of the new period and a second peak buffer area of the new period, so that the second peak buffer area is large enough to store the second data.
2. The system according to claim 1, in, The DCPM is included in one of the virtual machine server and the data center server.
3. The system according to claim 2, in: The DCPM further includes a percentage calculator for calculating a first hit percentage in the performance guarantee region during a previous period and a second hit percentage in the spike buffer during the previous period; as well as The cache partitioner is operable to partition the cache in the virtual machine server into a third performance guarantee area and a third spike buffer in proportion to the first hit percentage and the second hit percentage.
4. The system according to claim 2, in, The reusability statistics calculator is operable to calculate the reusability statistics as a difference between a current number of blocks in the cache in a previous epoch and a previous number of blocks in the cache in a second previous epoch divided by the current number of blocks in the cache in the previous epoch.
5. The system according to claim 2, in: DCPM includes: Select statistics; and an identifier for identifying, for each virtual machine storing data in the first performance guarantee region, a percentage of first data in the first performance guarantee region satisfying a selected statistic during a previous period; and The cache partitioner is operable to allocate a plurality of regions in the second performance guarantee area for a new period in proportion to the percentage of each virtual machine.
6. The system according to claim 5, in: selecting a statistic including a threshold number of blocks; and The identifier is operable to identify a subset of the plurality of chunks having corresponding access counts exceeding a threshold number of chunks.
7. The system according to claim 5, in, The region for each of the at least two virtual machines in the first performance guarantee zone is initially allocated in proportion to at least two weights associated with at least two service level agreements of the at least two virtual machines.
8. A cache management system, include: At least two virtual machine servers, each of the at least two virtual machine servers comprising: processor; Memory; at least one virtual machine; and a virtual machine hypervisor for managing operations of at least one virtual machine; at least one cache comprising at least one storage device; and A dynamic cache partition manager DCPM controller, for managing the partitioning of at least one cache into a performance guarantee area and a spike buffer in each of a plurality of periods, the performance guarantee area comprising an area for each of at least one virtual machine on each of at least two virtual machine servers, the spike buffer storing workload spike data for each of at least one virtual machine on each of the at least two virtual machine servers, the DCPM controller comprising: a reusability statistics calculator for calculating reusability statistics for data stored in at least one cache during a prior period; a comparator for comparing the reusability statistic to a spike threshold; an access statistics calculator for calculating access statistics of first data stored in the first performance guarantee area during a previous period; a spike data identifier for identifying second data satisfying access statistics in the first spike buffer during a previous period; and The cache partitioner is used to divide the at least one cache into a second performance guarantee area for the new era and a second spike buffer area for the new era, so that the second spike buffer area is large enough to store the second data.
9. The system of claim 8, further comprising a data center server, the data center server comprising a DCPM controller.
10. The system according to claim 9, in, The data center server also includes at least one cache.
11. The system according to claim 9, in, Each of the at least two virtual machine servers includes a DCPM daemon to monitor a workload of at least one virtual machine.
12. The system according to claim 8, in: an access statistics calculator operable to calculate an average access count of first data stored in the performance guarantee area during a previous period; as well as A spike data identifier is operable to identify second data having an access count greater than an average access count in the first spike buffer during a previous period.
13. The system according to claim 8, in, The DCPM controller includes: Select statistics; and an identifier for identifying, for each virtual machine storing data in the first performance guarantee region, a percentage of first data in the first performance guarantee region that satisfied the selected statistic during a previous period; and The cache partitioner is operable to allocate a plurality of regions in the second performance guarantee region for the new epoch in proportion to the percentage of each virtual machine.
14. The system according to claim 13, in: selecting a statistic including a threshold number of blocks; and The identifier is operable to identify a subset of the plurality of chunks having corresponding access counts exceeding a threshold number of chunks.
15. A cache management method, include: Dividing the cache into a first performance guarantee area and a first peak buffer area; determining reusability statistics for data stored in the cache during a prior period; as well as If the reusability statistic is at least as large as the spike threshold: determining access statistics of first data stored in the first performance guarantee area during a previous period; identifying second data stored in the first spike buffer during a prior period that satisfies the access statistics; as well as The cache is re-divided into a second performance guarantee area of a new period and a second peak buffer area of a new period, so that the second peak buffer area is large enough to store the second data.
16. The method according to claim 15, in, The cache is one of a virtual machine server and a data center server in a system including the virtual machine server and the data center server.
17. The method according to claim 15, in: Determining access statistics of the first data stored in the first performance guarantee area during the previous period includes determining an average access count of the first data stored in the first performance guarantee area during the previous period; as well as Identifying second data stored in the first spike buffer during the previous period that satisfies the access statistics includes identifying second data stored in the first spike buffer having an access count greater than an average access count during the previous period.
18. The method according to claim 17, in: Determining an average access count of the first data stored in the performance guarantee area during a previous period includes determining an average access count of the first data stored in the performance guarantee area during a plurality of previous periods; as well as Identifying second data stored in the first spike buffer having an access count greater than the average access count during a previous period includes identifying second data stored in the first spike buffer having an access count greater than the average access count during a plurality of previous periods.
19. The method according to claim 15, in, If the reusability statistic is less than the spike threshold, the method includes: determining a first hit percentage in the performance guarantee region during a prior period; determining a second hit percentage in the spike buffer during a prior period; and The cache is repartitioned into a third performance guarantee area and a third spike buffer in proportion to the first hit percentage and the second hit percentage.
20. The method according to claim 19, in, Determining a first hit percentage in the performance guarantee region during a previous period includes determining a first hit percentage in the performance guarantee region during a plurality of previous periods; as well as Determining a second hit percentage in the spike buffer during a previous epoch includes determining a second hit percentage in the spike buffer during a plurality of previous epochs.
21. The method according to claim 15, in, Statistics that determine the reusability of data stored in the cache in previous periods include: determining a difference between a current number of blocks in the cache in a previous epoch and a previous number of blocks in the cache in a second previous epoch; and A ratio of the difference to the current number of blocks in the cache in the previous epoch is determined.
22. The method according to claim 21, in: Determining a difference between a current number of blocks in the cache in a previous epoch and a previous number of blocks in the cache in a second previous epoch includes determining a minimum difference between the current number of blocks in the cache in the previous epoch and a plurality of previous numbers of blocks in the cache in a plurality of previous epochs; as well as Determining a ratio of the difference to the current number of blocks in the cache in the previous epoch includes determining a ratio of a minimum difference to the current number of blocks in the cache in the previous epoch.
23. The method according to claim 15, further comprising: include: Determining selection statistics of first data in a first performance guarantee area; identifying, for each virtual machine storing data in the first performance guaranteed region, a percentage of first data in the first performance guaranteed region that satisfied the selected statistic during a previous period; as well as A plurality of regions are allocated in the second performance guarantee zone for the new period in proportion to the percentage of each virtual machine.
24. The method according to claim 15, in: Determining a selected statistic of first data in the first performance guarantee zone during a prior period includes determining a threshold number of blocks; as well as Identifying, for each virtual machine storing data in the first performance guarantee region, a percentage of first data in the first performance guarantee region that satisfies the selected statistics during a previous period, including: sorting the plurality of partitions in the first performance guarantee area in all virtual machines by corresponding access counts; as well as A subset of more than a threshold number of blocks among the plurality of blocks ordered by corresponding access counts is selected.
25. The method according to claim 23, in, Identifying, for each virtual machine storing data in the first performance guarantee region, a percentage of first data that satisfied selected statistics in the first performance guarantee region during a previous period includes: identifying, for each virtual machine storing data in the first performance guarantee region, a percentage of first data that satisfied selected statistics in the first performance guarantee region during multiple previous periods.
26. The method according to claim 23, further comprising: include: The plurality of zones are initially allocated in proportion to a plurality of weights associated with a plurality of service level agreements for the plurality of virtual machines.
27. The method according to claim 15, in, Dividing the cache into a first performance guaranteed area and a first spike buffer includes initially dividing the cache into a first performance guaranteed area and a first spike buffer of equal size.
Citation Information
Patent Citations
Dynamic cache partition manager in heterogeneous virtualization cloud cache environment
US10496541B2
Cache partitioning in virtualized environments
CN102483718A
Multi-CPU system and computing system having the same
CN103389961A
