createrepo --update needs 6GB RAM, but tests if there is 5000MB only
Dear all,
I had an incident of excess memory consumption, and found out script /usr/bin/uln-yum-mirror, from package uln-yum-mirror, was to blame.
Important: this is a very old version, so I don't know if there's a fix already.
This excerpt from this script called my attention:
# We need 6GB of memory, but check if it's greater than 5000 to allow for reserved memory and kdump
…
if [ "$(free -m | awk '/Mem/{print $2}')" -ge 5000 ]; then
CREATEREPO_EXTRA_ARGS+="--update"
fi
Well, clearly 5000MB or more does not necessarily fulfill 6GB requirement. According to Murphy's Law, this server has more than 5000MB and less than 6GB, so we got the problem.