From 5b6444103c65f943f62c78b8585bde1bf3704adc Mon Sep 17 00:00:00 2001 From: Vincenzo Eduardo Padulano Date: Mon, 24 Jun 2024 09:38:13 +0200 Subject: [PATCH] Prevent slowdown in yum due to high file descriptor count --- conda_smithy/templates/build_steps.sh.tmpl | 5 +++++ news/1958_yum_fix_ulimit.rst | 26 ++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 news/1958_yum_fix_ulimit.rst diff --git a/conda_smithy/templates/build_steps.sh.tmpl b/conda_smithy/templates/build_steps.sh.tmpl index 93fb76eef..a5d0f3097 100644 --- a/conda_smithy/templates/build_steps.sh.tmpl +++ b/conda_smithy/templates/build_steps.sh.tmpl @@ -21,6 +21,11 @@ export RECIPE_ROOT="${RECIPE_ROOT:-/home/conda/recipe_root}" export CI_SUPPORT="${FEEDSTOCK_ROOT}/.ci_support" export CONFIG_FILE="${CI_SUPPORT}/${CONFIG}.yaml" +# Due to https://bugzilla.redhat.com/show_bug.cgi?id=1537564 old versions of rpm +# are drastically slowed down when the number of file descriptors is very high. +# This can be visible during a `yum install` step of a feedstock build. +ulimit -n 1024 + cat >~/.condarc < + +**Changed:** + +* Changed the build_steps.sh template so that it sets the number of maximum file + descriptors to 1024. This is done to mitigate a bug in old rpm versions (such + as the one shipped with the Centos7 container) that cause the yum install step + to take tremendously longer than necessary. + +**Deprecated:** + +* + +**Removed:** + +* + +**Fixed:** + +* + +**Security:** + +*