Memshare:一种动态多租户内存键值缓存
Memshare: a Dynamic Multi-tenant Memory Key-value Cache
摘要:
Web应用程序的性能严重依赖于基于内存的缓存的命中率。当前基于DRAM的web高速缓存静态地将它们的存储器划分在共享高速缓存的多个应用之间。这会导致内存利用率不足,从而对缓存命中率产生负面影响。我们提出Memshare,一种新的Web内存缓存,动态管理内存跨应用程序。Memshare提供了一个资源共享模型,保证不同应用程序的私有内存,同时动态分配剩余的共享内存以优化整体命中率。当今DRAM存储的高成本以及高性能CPU和内存带宽的可用性,使得Web缓存的内存容量受到限制。Memshare的日志结构化设计使其能够提供更高的命中率,并以增加CPU和内存带宽消耗为代价在应用程序之间动态划分内存。此外,Memshare允许应用程序对它们的对象使用自己的驱逐策略,独立于其他应用程序。我们实现了Memshare,并从一个商业memcached提供者那里对它进行了为期一周的跟踪。我们证明,Memshare增加了6.1%(从84.7%的命中率到90.8%的命中率)的跟踪中的应用程序的组合命中率,并减少了39.7%的未命中的总数,而不影响系统的吞吐量或延迟。即使对于单租户应用程序,Memshare也将当前最先进的内存缓存的平均命中率提高了2.7%。
英文摘要:
Web application performance is heavily reliant on the hit rate of memory-based caches. Current DRAM-based web caches statically partition their memory across multiple applications sharing the cache. This causes under utilization of memory which negatively impacts cache hit rates. We present Memshare, a novel web memory cache that dynamically manages memory across applications. Memshare provides a resource sharing model that guarantees private memory to different applications while dynamically allocating the remaining shared memory to optimize overall hit rate. Today's high cost of DRAM storage and the availability of high performance CPU and memory bandwidth, make web caches memory capacity bound. Memshare's log-structured design allows it to provide significantly higher hit rates and dynamically partition memory among applications at the expense of increased CPU and memory bandwidth consumption. In addition, Memshare allows applications to use their own eviction policy for their objects, independent of other applications. We implemented Memshare and ran it on a week-long trace from a commercial memcached provider. We demonstrate that Memshare increases the combined hit rate of the applications in the trace by an 6.1% (from 84.7% hit rate to 90.8% hit rate) and reduces the total number of misses by 39.7% without affecting system throughput or latency. Even for single-tenant applications, Memshare increases the average hit rate of the current state-of-the-art memory cache by an additional 2.7% on our real-world trace.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。