Fichte, J., Manthey, N., Stecklina, J., & Schidler, A. (2020). Towards Faster Reasoners by Using Transparent Huge Pages. In H. Simonis (Ed.), Principles and Practice of Constraint Programming CP 2020 (pp. 304–322). Springer Cham. https://doi.org/10.1007/978-3-030-58475-7_18
CP 2020 - 26th International Conference - Principles and Practice of Constraint Programming
-
Event date:
7-Sep-2020 - 11-Sep-2020
-
Event place:
Louvain-laNeuve, Belgium
-
Number of Pages:
19
-
Publisher:
Springer Cham
-
Peer reviewed:
Yes
-
Abstract:
Various state-of-the-art automated reasoning (AR) tools are widely used as backend tools in research of knowledge representation and reasoning as well as in industrial applications. In testing and verification, those tools often run continuously or nightly. In this work, we present an approach to reduce the runtime of AR tools by 10% on average and up to 20% for long running tasks. Our improvement addresses the high memory usage that comes with the data structures used in AR tools, which are based on conflict driven no-good learning. We establish a general way to enable faster memory access by using the memory cache line of modern hardware more effectively. Therefore, we extend the standard C library (glibc) by dynamically allowing to use a memory management feature called huge pages. Huge pages allow to reduce the overhead that is required to translate memory addresses between the virtual memory of the operating system and the physical memory of the hardware. In that way, we can reduce runtime, which in turn decreases costs of running AR tools and applications with similar memory access patterns by linking the tool against this new glibc library when compiling it. In every day industrial applications, runtime savings allow to include more detailed verification tasks, getting better results of any-time optimization algorithms with a bound execution time, and save energy during nightly software builds. To back up the claimed speed-up, we present experimental results for tools that are commonly used in the AR community, including the domains ASP, hardware and software BMC, MaxSAT, and SAT.