-
Notifications
You must be signed in to change notification settings - Fork 103
OOM: "Out of memory: Kill process" happens when using apt-get command #25
Description
Hello
I got following error every time on my NanoPi NEO when running apt-get command.
root@NanoPi-NEO:/home/pi# apt-get update
Hit:1 http://ports.ubuntu.com xenial InRelease
Hit:2 http://ports.ubuntu.com xenial-security InRelease
Hit:3 http://ports.ubuntu.com xenial-updates InRelease
Hit:4 http://ports.ubuntu.com xenial-backports InRelease
[ 1083.337086] Out of memory: Kill process 2204 (apt-get) score 117 or sacrifice child
[ 1083.345843] Killed process 2204 (apt-get) total-vm:42564kB, anon-rss:34092kB, file-rss:2160kB
Killed
This issue doesn't happen on the mainline Kernel. I opened another SSH session to check the free memory periodically, and I can see it should have enough memory for "LowFree”.
root@NanoPi-NEO:# egrep 'High|Low' /proc/meminfo# egrep 'High|Low' /proc/meminfo
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 246992 kB
LowFree: 140976 kB
root@NanoPi-NEO:
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 246992 kB
LowFree: 141576 kB
root@NanoPi-NEO:# egrep 'High|Low' /proc/meminfo# egrep 'High|Low' /proc/meminfo
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 246992 kB
LowFree: 140532 kB
root@NanoPi-NEO:
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 246992 kB
LowFree: 140664 kB
root@NanoPi-NEO:# egrep 'High|Low' /proc/meminfo#
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 246992 kB
LowFree: 139876 kB
root@NanoPi-NEO:
root@NanoPi-NEO:# egrep 'High|Low' /proc/meminfo# egrep 'High|Low' /proc/meminfo
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 246992 kB
LowFree: 138508 kB
root@NanoPi-NEO:
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 246992 kB
LowFree: 172348 kB
root@NanoPi-NEO:~# egrep 'High|Low' /proc/meminfo
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 246992 kB
LowFree: 171912 kB
Could help to check this ?
Thanks