-
- Downloads
equix: Disable huge page support by default
Equi-X supports optionally allocating its solver memory using huge pages, to reduce the virtual memory subsystem overhead required to make the entire solver buffer live. Tor doesn't use this feature, since it seems to have no noticeable performance benefit at this time, but we still included code for it at compile time. To improve portability, this patch disables huge page support by default and enables it only in the cmake build system used for equix benchmarks. With this patch equix-bench still supports huge pages. Verified using strace that we're making the hugepage allocation. There's no fallback for huge pages, so Equi-X initialization will fail if they are requested and we don't support them for any runtime or compile-time reason. Addresses #40843 (NetBSD) but also prevents future porting issues related to huge pages.
parent
95e8ffa9
No related branches found
No related tags found
Showing
- src/ext/equix/CMakeLists.txt 1 addition, 0 deletionssrc/ext/equix/CMakeLists.txt
- src/ext/equix/hashx/src/virtual_memory.c 2 additions, 0 deletionssrc/ext/equix/hashx/src/virtual_memory.c
- src/ext/equix/hashx/src/virtual_memory.h 4 additions, 1 deletionsrc/ext/equix/hashx/src/virtual_memory.h
- src/ext/equix/src/context.c 4 additions, 0 deletionssrc/ext/equix/src/context.c