Data reuse tracking and memory allocation management
Abstract
Exemplary methods, apparatuses, and systems determine a miss-rate at various amounts of memory allocation for each of a plurality of workloads running within a computer. A value representing an estimated change in miss-rate for each of the workloads based upon an increase in a current allocation of memory to the workload is determined. The workload with a value representing a greatest improvement in hit rate is selected. Additional memory is allocated to the selected workload.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 5 · Forward citations: 0.
Claims (7)
- Claim 1Independent Claim
A computer-implemented method, comprising: determining a miss-rate at various amounts of memory allocation for each of a plurality of workloads running within a computer; determining a value representing an estimated change in miss-rate for each of the workloads based upon an increase in a current allocation of memory to the workload, wherein determining the value representing the estimated change in miss-rate includes determining a difference between a miss-rate at the current allocation for the workload and a miss-rate at a maximum allocation for the workload; selecting a workload with a value representing a greatest improvement in hit rate using the determined value for each workload; and allocating additional memory to the selected workload.
- Claim 2Depends on #1
The computer-implemented method of claim 1 , wherein determining the value representing the estimated change in miss-rate for each of a plurality of workloads includes weighting one or more estimated changes in miss-rate to prioritize allocation of memory to one or more of the plurality of workloads.
- Claim 3Depends on #1
The computer-implemented method of claim 1 , wherein one or more of the plurality of workloads are initially allocated zero memory.
- Claim 4Depends on #1
The computer-implemented method of claim 1 , further comprising: reallocating memory allocated to one or more of the plurality of workloads in response to determining a change in a number of workloads within the plurality of workloads.
- Claim 5Depends on #1
The computer-implemented method of claim 1 , further comprising: reallocating memory allocated to one or more of the plurality of workloads in response to determining a value representing an estimated change in miss-rate for one of the workloads is greater than a threshold value.
- Claim 6Depends on #1
The computer-implemented method of claim 1 , wherein determining the miss-rate at various amounts of memory allocation for each of the plurality of workloads comprises: receiving a first request for a storage address at a first access time; adding a first entry to a first data structure, wherein the first entry includes the storage address and the first access time, and wherein the first data structure is sorted in an order of storage addresses; adding a second entry to a second data structure, wherein the second entry includes the storage address and the first access time, and wherein the second data structure is sorted in an order of access times; receiving a second request for the storage address at a second access time; determining the first access time by looking up the first entry in first data structure using the storage address received in the second request; using the determined first access time to look up the second entry in the second data structure; determining a number of entries in second data structure that were subsequent to the second entry; and incrementing a hit count for a reuse distance corresponding to the determined number of entries.
- Claim 7Independent Claim
A non-transitory computer-readable medium storing instructions, which when executed by a processing device, cause the processing device to perform a method comprising: determining a miss-rate at various amounts of memory allocation for each of a plurality of workloads running within a computer; determining a value representing an estimated change in miss-rate for each of the workloads based upon an increase in a current allocation of memory to the workload, wherein determining the value representing the estimated change in miss-rate includes determining a difference between a miss-rate at the current allocation for the workload and a miss-rate at a maximum allocation for the workload; selecting a workload with a value representing a greatest improvement in hit rate using the determined value for each workload; and allocating additional memory to the selected workload.
Technical Overview & Description
FIELD OF THE INVENTION The various embodiments described herein relate to the allocation of flash memory to virtual machines running on a host server. In particular, embodiments relate to dynamically determining data reuse patterns in the input/output workload of each virtual machine and to allocating flash memory based upon data reuse patterns. BACKGROUND OF THE INVENTION Host computers allocate portions of flash memory to virtual machines to serve as an input/output cache between the virtual machine and an underlying storage device. For example, an administrator may allocate a portion of the total amount of flash memory to a virtual machine that is equal to a percentage of the size of the virtual machine's virtual disk drive. As a result, data for the virtual machine may be fetched from the host computer's flash memory rather than by accessing the underlying storage device. The amount of benefit resulting from caching data blocks in flash memory, however, is dependent upon the workload and, in particular, the data reuse pattern of the workload. For example, allocating a large portion of flash to a virtual machine with a streaming workload (i.e. a workload with no data reuse) will result in little to no benefit. Additionally, there may be one or more other virtual machine workloads running on the host computer with a greater amount of data reuse that would better utilize that portion of flash memory. Conventional algorithms used to determine data reuse in workloads consume large amounts of processing and memory resources. As a result, these algorithms are typically utilized for offline workload analysis. Given that the data reuse pattern for workloads can vary over time, it is challenging for administrators to specify flash allocations based upon data reuse in a given workload. This problem is exacerbated when the administrator is responsible for allocating flash in multiple host computers, each running thousands of virtual machines.
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (5)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (17)
- A. Gulati, A. Merchant, and P. Varman, mClock: Handling Throughput Variability for Hypervisor IO Scheduling, In 9th USENIX Symposium on Operating Systems Design and Implementation (OSDI '10), Oct. 2010, pp. 437-450.
- A. Gulati, G. Shanmuganathan, I. Ahmad, C. A. Waldspurger, and M. Uysal, Pesto: Online Storage Performance Management in Virtualized Datacenters, In Proc. ACM Symposium on Cloud Computing (SOCC 2011), Nov. 2011, 14 pages.
- A. Gulati, I. Ahmad, and C. A. Waldspurger, PARDA: Proportional allocation of resources for distributed storage access, In Proceedings of the 7th conference on File and Storage Technologies, pp. 85-98, Berkeley, CA, USA, 2009, USENIX Association.
- C. Albrecht, A.Merchant,M. Stokely,M.Waliji, F. Labelle, N. Coehlo, X. Shi, and E. Schrock. Janus: Optimal flash provisioning for cloud storage workloads, In Proceedings of the USENIX Annual Technical Conference, pp. 91-102, 2560 Ninth Street, Suite 215, Berkeley, CA 94710, USA, 2013.
- G. Almási, C. Cacaval, and D. A. Padua, Calculating stack distances efficiently, SIGPLAN Not., 38(2 supplement):37-43, Jun. 2002.
- G. Soundararajan, D. Lupei, S. Ghanbari, A. D. Popescu, J. Chen, and C. Amza, Dynamic resource allocation for database servers running on virtual storage, In FAST, pp. 71-84, 2009.
- P. Goyal, D. S. Modha, and R. Tewari, Cachecow: providing qos for storage system caches, In SIGMETRICS, pp. 306-307, 2003.
- P. Sehgal, K. Voruganti, and R. Sundaram, Slo-aware hybrid store, In MSST, pp. 1-6, 2012.
- P. Zhou, V. Pandey, J. Sundaresan, A. Raghuraman, Y. Zhou, and S. Kumar, Dynamic tracking of page miss ratio curve for memory management, SIGOPS Oper. Syst. Rev., 38(5):177-188, Oct. 2004.
- Performance of vSphere flash read cache in vSphere 5.5, www.vmware.com/files/pdf/techpaper/vfrc-pert-vsphere55.pdf, 2013, 18 pages.
- R. L. Mattson, J. Gecsei, D. R. Slutz, and I. L. Traiger, Evaluation techniques for storage hierarchies, IBMSystems Journal, 9(2):78-117, 1970.
- Technical White Paper: Storage I/O Control Technical Overview and Considerations for Deployment, VMware, Inc., 2010, 12 pages.
- Technical White Paper: What's New in VMware, Virtual SAN, VMware, Inc., 2014, 18 pages.
- VMware Virtual SAN, http://www.vmware.com/products/virtual-san/features.html, 2014, 6 pages.
- Wikipedia, Bloom filter, http://en.wikipedia.org/wiki/Bloom-filter, 16 pages, 2014.
- Wu et al., Simulation of Memory Management in Virtual Machines, Spring 2011.
- Zhao, Weming, Memory Resource Balancing for Virtualized Computing, Michigan Tech, 2011.