3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #68335 from lopsided98/jemalloc450-disable-thp

jemalloc450: disable transparent huge pages on ARM
This commit is contained in:
Jörg Thalheim 2019-09-09 05:45:20 +01:00 committed by GitHub
commit 4d6a6fe8af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,6 +24,13 @@ stdenv.mkDerivation rec {
configureFlags = [] configureFlags = []
++ optional stripPrefix "--with-jemalloc-prefix=" ++ optional stripPrefix "--with-jemalloc-prefix="
++ optional disableInitExecTls "--disable-initial-exec-tls" ++ optional disableInitExecTls "--disable-initial-exec-tls"
# jemalloc is unable to correctly detect transparent hugepage support on
# ARM (https://github.com/jemalloc/jemalloc/issues/526), and the default
# kernel ARMv6/7 kernel does not enable it, so we explicitly disable support
++ optionals (stdenv.isAarch32 && versionOlder version "5") [
"--disable-thp"
"je_cv_thp=no"
]
; ;
doCheck = true; doCheck = true;