Increase application performance with libhugetlbfs
Introduction
Enable libhugetlbfs
Enable libhugetlbfs on MySQL
Next Steps
Increase application performance with libhugetlbfs
Review frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
Add the flags to both
-DCMAKE_C_FLAGS and -DCMAKE_CXX_FLAGS when you configure the MySQL build. Applying the flags to both C and C++ ensures the full server build picks up the change.Yes. Change both the build and the run of the MySQL server to enable
libhugetlbfs.Confirm that you applied the options to both
-DCMAKE_C_FLAGS and -DCMAKE_CXX_FLAGS. Verify that the required Ubuntu packages for libhugetlbfs are installed, and that the library path you reference matches your system.Use your existing sysbench workflow to record a baseline, enable
libhugetlbfs, and rerun the same tests. Compare the before-and-after results to evaluate any change.libhugetlbfs can benefit applications that use considerable amounts of memory and might incur many TLB misses. Workloads with sizable code, data, or heap sections are good candidates.