ClickHouse Performance on NVIDIA Vera Shows Mixed Scaling Results
Testing ClickHouse on NVIDIA Vera without customization reveals mixed results, with performance declining gradually beyond 176 cores due to challenges in scaling on high-core systems.
Testing ClickHouse on NVIDIA Vera without Customization
Testing ClickHouse on NVIDIA Vera without customization reveals mixed results. According to ClickHouse, the standard ClickHouse binary was used without any optimizations or customizations tailored for the Vera platform. ClickHouse explains that three micro-benchmarks were developed to simulate common database operations, providing insight into ClickHouse’s scalability on this hardware. However, ClickHouse notes that efficiency begins to decline gradually starting at 176 cores, which is the number of physical cores available on the Vera machine. These findings suggest that while ClickHouse can run on NVIDIA Vera, its performance may not scale optimally without further tuning or modifications specific to the architecture.
Challenges in Scaling ClickHouse on High-Core Systems
Running ClickHouse on the NVIDIA Vera CPU presents unique challenges, particularly in scaling database performance linearly with the machine's resources. As noted by researchers, without careful engineering at every layer, the database may fail to fully utilize Vera’s high core count and memory bandwidth, potentially leaving performance untapped. This is especially evident in compute-bound queries, where efficiency begins to decline past the physical cores due to limitations in taking full advantage of SMT. These challenges highlight the need for optimized database architecture and resource management strategies when deploying ClickHouse on high-core systems like the NVIDIA Vera CPU.
ClickHouse's Parallelization and Hash Table Handling
ClickHouse's approach to parallelization and hash table handling is a key factor in its performance. According to ClickHouse, query processing is parallelized by dividing the table into 352 equally sized virtual chunks, which are filtered concurrently. This method allows ClickHouse to scale efficiently across multiple cores. Additionally, ClickHouse notes that 255 groups are considered a “low cardinality” aggregation, which can impact how ClickHouse processes and optimizes queries. Regarding hash tables, ClickHouse explains that even when a hash table has only a few entries (256), ClickHouse unconditionally inserts the resize operator into the query plan because the hash table size is not known until runtime. These design choices reflect ClickHouse's emphasis on runtime adaptability and performance optimization, even at the cost of some predictable behavior.
Performance Enhancements via Hardware Features
Running ClickHouse on the NVIDIA Vera CPU introduces performance enhancements through hardware features tailored for high-throughput data processing. Vera's neural branch prediction and sophisticated prefetching help ClickHouse to write and read hash tables efficiently, reducing latency caused by data skew. Additionally, with auto-vectorization enabled, ClickHouse leverages Vera’s 128-bit NEON instructions to compare four 32-bit integers simultaneously, offering a theoretical 4x speedup. Beyond NEON, Vera also provides a powerful 6x128-bit SVE2 implementation, which significantly increases vector processing throughput across its execution units. These hardware capabilities enable ClickHouse to handle complex queries and large datasets more effectively, though actual performance gains depend on workload specifics and configuration.
Ongoing Support and Community Contributions
Ongoing support and community contributions play a crucial role in the integration of ClickHouse with the NVIDIA Vera CPU. As noted in the open-source community, support for specific instructions in ClickHouse is currently being added through collaborative efforts, as highlighted in PR #122860. This demonstrates the active involvement of developers in enhancing compatibility and performance on the NVIDIA Vera platform. Community contributions are essential for ensuring that ClickHouse can fully leverage the capabilities of the Vera CPU, which has been described as the fastest server platform seen to date. While the potential of this combination is promising, users should be aware that ongoing development and testing are still required to achieve optimal results. Interested users can explore ClickHouse Cloud to begin their journey, with the option to receive $300 in free credits to support initial experimentation and deployment.
Sources and reporting notes
Based on published source material. No independent hands-on testing is claimed.