Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI - OOM (Out-Of-Memory) is Killing dnf on Newly Created Compute Instance while Performing dnf

APPLIES TO:

Oracle Cloud Infrastructure

Linux OS 

SYMPTOMS

While performing dnf install , OOM ( Out-Of-Memory ) is killing dnf command on newly created Oracle Linux 8 compute instance.

Sometimes SSH was losing connectivity to the server.

-- free

              total        used        free      shared  buff/cache   available
Mem:         971124      684612       58704        2924      227808      127208
Swap:        970748      492920      477828

-- /proc/meminfo

MemTotal:         971124 kB
MemFree:           60452 kB

Server has total 1 GB of memory.

Console history and message log shows OOM killer has been activated if there is any operation being performed on the server.

message log :

Feb 14 00:14:42 newtest kernel: oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/system.slice/dnf-makecache.service,task=dnf,pid=5318,uid=0
Feb 14 00:14:42 newtest kernel: Out of memory: Killed process 5318 (dnf) total-vm:1702636kB, anon-rss:583360kB, file-rss:6148kB, shmem-rss:0kB, UID:0 pgtables:2944kB oom_score_adj:0
Feb 14 00:14:43 newtest systemd[1]: dnf-makecache.service: Main process exited, code=killed, status=9/KILL
Feb 14 00:52:33 newtest kernel: oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/session-11.scope,task=dnf,pid=7315,uid=0
Feb 14 00:52:33 newtest kernel: Out of memory: Killed process 7315 (dnf) total-vm:1453364kB, anon-rss:534448kB, file-rss:5436kB, shmem-rss:0kB, UID:0 pgtables:2856kB oom_score_adj:0
Feb 14 00:52:33 newtest pcp-pmie[3116]: OOM kill 0.00640242/sec@newtest
Feb 14 00:52:33 newtest pcp-pmie[3116]: High 1-minute load average 14.8load@newtest
Feb 14 01:03:04 newtest kernel: pmie invoked oom-killer: gfp_mask=0x1100cca(GFP_HIGHUSER_MOVABLE), order=0, oom_score_adj=0
Feb 14 01:03:04 newtest kernel: CPU: 1 PID: 3116 Comm: pmie Not tainted 5.15.0-202.135.2.el8uek.x86_64 #2
Feb 14 01:03:04 newtest

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!