lol

Merge pull request #33260 from lopsided98/jemalloc-thp

jemalloc: disable transparent hugepages by default on ARMv6/7

authored by

Jörg Thalheim and committed by
GitHub
e9d5c55d 1ecebbd9

+7 -5
+7 -5
pkgs/development/libraries/jemalloc/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "jemalloc-${version}"; 5 - version = "4.5.0"; 5 + version = "5.0.1"; 6 6 7 7 src = fetchurl { 8 8 url = "https://github.com/jemalloc/jemalloc/releases/download/${version}/${name}.tar.bz2"; 9 - sha256 = "9409d85664b4f135b77518b0b118c549009dc10f6cba14557d170476611f6780"; 9 + sha256 = "4814781d395b0ef093b21a08e8e6e0bd3dab8762f9935bbfb71679b0dea7c3e9"; 10 10 }; 11 11 12 12 # By default, jemalloc puts a je_ prefix onto all its symbols on OSX, which 13 13 # then stops downstream builds (mariadb in particular) from detecting it. This 14 14 # option should remove the prefix and give us a working jemalloc. 15 - configureFlags = stdenv.lib.optional stdenv.isDarwin "--with-jemalloc-prefix="; 16 - 15 + configureFlags = stdenv.lib.optional stdenv.isDarwin "--with-jemalloc-prefix=" 16 + # jemalloc is unable to correctly detect transparent hugepage support on 17 + # ARM (https://github.com/jemalloc/jemalloc/issues/526), and the default 18 + # kernel ARMv6/7 kernel does not enable it, so we explicitly disable support 19 + ++ stdenv.lib.optional stdenv.isArm "--disable-thp"; 17 20 doCheck = true; 18 - 19 21 20 22 meta = with stdenv.lib; { 21 23 homepage = http://jemalloc.net;