[Paper Review] High-Level Synthesis Case Study: Implementation of a Memcached Server
This paper presents a high-level synthesis (HLS) implementation of the memcached key-value store using Vivado HLS, achieving performance equivalent to a manually written RTL design while reducing code size by 3x, development time by 2x, and improving latency by 7–30% and resource usage by 22% (LUTs) and 35% (registers). The design was validated on a Xilinx VC709 board at 10Gbps line rate.
High-Level Synthesis (HLS) aspires to raise the level of abstraction in hardware design without sacrificing hardware efficiency. It has so far been successfully employed in signal and video processing but has found only limited use in other areas. This paper utilizes a commercial HLS tool, namely Vivado(R) HLS, to implement the processing of a common data center application, the Key-Value Store (KVS) application memcached, as a deeply pipelined dataflow architecture. We compared our results to a fully equivalent RTL implementation done previously in our group and found that it matches its performance, yields tangible improvements in latency (between 7-30%) and resource consumption (22% in LUTs and 35% in registers), all while requiring 3x less lines of code and 2x less development time. The implementation was validated in hardware on a Xilinx(R) VC709 development board, meeting timing requirements for 10Gbps line rate processing.
Motivation & Objective
- To evaluate the viability of high-level synthesis (HLS) for implementing general-purpose data center workloads, specifically the memcached key-value store.
- To compare HLS-generated hardware against a manually optimized RTL implementation in terms of performance, resource usage, and development effort.
- To demonstrate that HLS can achieve high performance and efficiency in non-traditional domains like key-value storage, not just signal and video processing.
- To validate the HLS design in hardware at 10Gbps line rate on a Xilinx VC709 FPGA development board.
- To quantify the trade-offs between development productivity and hardware efficiency when using HLS for production-grade applications.
Proposed method
- Employed Vivado HLS to implement the memcached processing logic as a deeply pipelined dataflow architecture.
- Mapped the C++-based algorithmic description of memcached to hardware using HLS directives to enable high-level optimization.
- Designed the HLS architecture to support high-throughput 10Gbps line rate processing by exploiting parallelism and pipelining.
- Generated hardware from C++ code with high-level synthesis, targeting a Xilinx VC709 FPGA for physical validation.
- Used a fully equivalent RTL implementation from a prior study as the performance baseline for comparison.
- Applied timing closure techniques and constraints to meet 10Gbps throughput requirements in hardware.
Experimental results
Research questions
- RQ1Can high-level synthesis effectively implement a production-grade key-value store like memcached with performance comparable to hand-optimized RTL?
- RQ2To what extent does HLS reduce development time and code complexity compared to traditional RTL design?
- RQ3What are the improvements in latency and resource utilization when using HLS versus RTL for this workload?
- RQ4Can HLS-generated designs meet stringent performance requirements such as 10Gbps line rate processing in real hardware?
- RQ5How does the quality of results from HLS compare to hand-optimized RTL in terms of LUTs, registers, and overall efficiency?
Key findings
- The HLS-generated memcached implementation matched the performance of the prior RTL implementation in terms of throughput and line rate capability.
- The HLS design achieved a 7–30% improvement in latency compared to the RTL baseline, demonstrating better timing optimization.
- Resource usage was significantly reduced: 22% fewer LUTs and 35% fewer registers in the HLS version compared to RTL.
- The HLS implementation required 3x fewer lines of code and 2x less development time than the equivalent RTL design.
- The design met timing requirements and was successfully validated in hardware on a Xilinx VC709 FPGA board at 10Gbps line rate.
- The results show that HLS is viable and beneficial for non-signal-processing workloads such as key-value stores, extending its applicability beyond traditional domains.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.