Linux Operating System (MOSC)

MOSC Banner

createrepo --update needs 6GB RAM, but tests if there is 5000MB only

edited Nov 21, 2024 10:55PM in Linux Operating System (MOSC) 6 commentsAnswered ✓

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.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center