Skip to content

Commit

Permalink
Disable support for Linux THP on architectures other than amd64
Browse files Browse the repository at this point in the history
THP seems to be causing problems on 32-bit and 64-bit ARM hosts.  This
change disables the test for THP on everything except 64-bit x86 hosts
which are known to work.
  • Loading branch information
lexprfuncall committed Aug 8, 2024
1 parent e4f8905 commit dbba3df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions erts/configure
Original file line number Diff line number Diff line change
Expand Up @@ -25692,8 +25692,8 @@ printf "%s\n" "no" >&6; }
;;
esac

case $OPSYS in #(
linux*) :
case $ARCH-$OPSYS in #(
amd64-linux*) :

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the Transparent Huge Pages interface is available" >&5
printf %s "checking whether the Transparent Huge Pages interface is available... " >&6; }
Expand Down
4 changes: 2 additions & 2 deletions erts/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3036,9 +3036,9 @@ case $host_os in
esac

dnl Checks for the Transparent Huge pages (THP) availability on Linux
AS_CASE([$OPSYS],
[linux*],
[
AS_CASE([$ARCH-$OPSYS],
[amd64-linux*],
AC_CACHE_CHECK(
[whether the Transparent Huge Pages interface is available],
erts_cv_linux_thp,
Expand Down

0 comments on commit dbba3df

Please sign in to comment.