QZRAM: A Transparent Kernel Memory Compression System Design for Memory-Intensive Applications with QAT Accelerator Integration
Source abstract
Abstract
In recent decades, memory-intensive applications have experienced a boom, e.g., machine learning, natural language processing (NLP), and big data analytics. Such applications often experience out-of-memory (OOM) errors, which cause unexpected processes to exit without warning, resulting in negative effects on a system’s performance and stability. To mitigate OOM errors, many operating systems implement memory compression (e.g., Linux’s ZRAM) to provide flexible and larger memory space. However, these schemes incur two problems: (1) high-compression algorithms consume significant CPU resources, which inevitably degrades application performance; and (2) compromised compression algorithms with low latency and low compression ratios result in insignificant increases in memory space. In this paper, we propose QZRAM, which achieves a high-compression-ratio algorithm without high computing consumption through the integration of QAT (an ASIC accelerator) into ZRAM. To enhance hardware and software collaboration, a page-based parallel write module is introduced to serve as a more efficient request processing flow. More importantly, a QAT offloading module is introduced to asynchronously offload compression to the QAT accelerator, reducing CPU computing resource consumption and addressing two challenges: long CPU idle time and low usage of the QAT unit. The comprehensive evaluation validates that QZRAM can reduce CPU resources by up to 49.2% for the FIO micro-benchmark, increase memory space (1.66×) compared to ZRAM, and alleviate the memory overflow phenomenon of the Redis benchmark.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Advanced Data Storage Technologies · Parallel Computing and Optimization Techniques · Distributed systems and fault tolerance
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Fifteen Department, Chengdu Aircraft Design Institute, Chengdu 610041, China
Electronic Department, China Aeronautical Radio Electronic Research Institute, Shanghai 200233, China
Shanghai Key Laboratory of Scalable Computing and Systems, Shanghai Jiao Tong University, Shanghai 200240, China
Fujian Key Laboratory of Big Data Mining and Applications, Fuzhou 350118, China
School of Computer Science and Mathematics, Fujian University of Technology, Fuzhou 350118, China
Funding
NSFC
References (31)
Show source-provided references
1. Pre-train, prompt, and predict: A systematic survey of prompting methods in natural language processing
2. Choi, H., Kim, J., Joe, S., and Gwon, Y. (2021, January 10–15). Evaluation of bert and albert sentence embedding performance on downstream nlp tasks. Proceedings of the 25th International Conference on Pattern Recognition (ICPR), Milan, Italy.10.1109/ICPR48806.2021.9412102 ↗
3. Siddiq, M.L., and Santos, J.C. (2022, January 8). Bert-based github issue report classification. Proceedings of the 2022 IEEE/ACM 1st International Workshop on Natural Language-Based Software Engineering (NLBSE), Pittsburgh, PA, USA.10.1145/3528588.3528660 ↗
4. A survey of architectural approaches for data compression in cache and main memory systems10.1109/TPDS.2015.2435788 ↗
5. A universal algorithm for sequential data compression10.1109/TIT.1977.1055714 ↗
6. Burrows, M., and Wheeler, D. (1994, January 25–27). A block-sorting lossless data compression algorithm. Proceedings of the Digital SRC Research Report Citeseer, Snowbird, UT, USA.
7. Gupta, N. (2020). ZRAM Project. Linux Foundation, Linux Corporation.
8. Intel (2023, June 06). Intel® QAT: Performance, Scale and Efficiency. Available online: https://www.intel.com/content/www/us/en/architecture-and-technology/intel-quick-assist-technology-overview.html.
9. Panwar, G., Laghari, M., Bears, D., Liu, Y., Jearls, C., Choukse, E., Cameron, K.W., Butt, A.R., and Jian, X. (2022, January 1–5). Translation-optimized Memory Compression for Capacity. Proceedings of the 2022 55th IEEE/ACM International Symposium on Microarchitecture (MICRO), Chicago, IL, USA.10.1109/MICRO56248.2022.00073 ↗
10. Jennings, S. (2023, June 01). The Zswap Compressed Swap Cache. Available online: https://lwn.net/.
11. Sanchez, D., and Kozyrakis, C. (2010, January 4–8). The ZCache: Decoupling ways and associativity. Proceedings of the 2010 43rd Annual IEEE/ACM International Symposium on Microarchitecture, Atlanta, GA, USA.10.1109/MICRO.2010.20 ↗
12. Park, S., Kang, I., Moon, Y., Ahn, J.H., and Suh, G.E. (2021, January 12–14). BCD deduplication: Effective memory compression using partial cache-line deduplication. Proceedings of the 26th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Las Vegas, NV, USA.10.1145/3445814.3446722 ↗
13. IBM memory expansion technology (MXT)10.1147/rd.452.0271 ↗
14. Ekman, M., and Stenstrom, P. (2005, January 4–8). A robust main-memory compression scheme. Proceedings of the 32nd International Symposium on Computer Architecture (ISCA’05), Madison, WI, USA.10.1109/ISCA.2005.6 ↗
15. Pekhimenko, G., Seshadri, V., Kim, Y., Xin, H., Mutlu, O., Gibbons, P.B., Kozuch, M.A., and Mowry, T.C. (2013, January 19–23). Linearly compressed pages: A low-complexity, low-latency main memory compression framework. Proceedings of the 46th Annual IEEE/ACM International Symposium on Microarchitecture, Minneapolis, MN, USA.10.1145/2540708.2540724 ↗
16. Buri: Scaling big-memory computing with hardware-based memory expansion10.1145/2808233 ↗
17. Kim, S., Lee, S., Kim, T., and Huh, J. (2017, January 9–13). Transparent dual memory compression architecture. Proceedings of the 2017 26th International Conference on Parallel Architectures and Compilation Techniques (PACT), Portland, OR, USA.10.1109/PACT.2017.12 ↗
18. Qian, C., Huang, L., Yu, Q., Wang, Z., and Childers, B. (2018, January 26–28). CMH: Compression management for improving capacity in the hybrid memory cube. Proceedings of the 15th ACM International Conference on Computing Frontiers, Snowbird, UT, USA.10.1145/3203217.3203235 ↗
19. (2023, June 06). ZPool. Available online: https://www.kernel.org/doc/html/v5.0/vm/zsmalloc.html.
20. Oberhumer, M. (2023, June 01). LZO (Lempel-Ziv-Oberhumer) Data Compression Library. Available online: http://www.oberhumer.com/opensource/lzo/.
21. Collet, Y. (2023, June 06). LZ4 Compression Algorithm. Available online: https://github.com/lz4/lz4.
22. Collet, Y., and Turner, C. (2023, June 01). Smaller and Faster Data Compression with Z Standard. Facebook Code, Volume 1. Available online: https://engineering.fb.com/2016/08/31/core-data/smaller-and-faster-data-compression-with-zstandard/.
23. Plauth, M., and Polze, A. (2018, January 23–24). Towards Improving Data Transfer Efficiency for Accelerators Using Hardware Compression. Proceedings of the 2018 Sixth International Symposium on Computing and Networking Workshops (CANDARW), Pangkal, Indonesia.10.1109/CANDARW.2018.00031 ↗
24. Harnik, D., Khaitzin, E., Sotnikov, D., and Taharlev, S. (2014, January 4–7). A fast implementation of deflate. Proceedings of the 2014 Data Compression Conference, Snowbird, UT, USA.10.1109/DCC.2014.66 ↗
25. FPGA architecture: Survey and challenges10.1561/1000000005 ↗
26. GPU computing10.1109/JPROC.2008.917757 ↗
27. Smith, M.J.S. (1997). Application-Specific Integrated Circuits, Addison-Wesley.
28. Improving performance and lifetime of solid-state drives using hardware-accelerated compression10.1109/TCE.2011.6131148 ↗
29. Hu, X., Wang, F., Li, W., Li, J., and Guan, H. (April, January 30). {QZFS}:{QAT} Accelerated Compression in File System for Application Agnostic and Cost Efficient Data Storage. Proceedings of the 2019 USENIX Annual Technical Conference (USENIX ATC 19), Snowbird, UT, USA.
30. Eddelbuettel, D. (2022). A Brief Introduction to Redis. arXiv.
31. Abel, D.I.J. (2023, June 06). Calgary Corpus. Available online: http://www.data-compression.info/Corpora/CalgaryCorpus/.