[Eisfair] kthreadd invoked oom-killer
Uwe Kunze
u.kunze.sdh at t-online.de
Mi Mai 31 20:34:26 CEST 2017
> Vorher muss "xyz invoked oom-killer" stehen; wer ist xyz?
> Beim letztenmal war es imapd.
und diesmal ist es "top.sh" !!!
ich hatte deine Einzeiler alle zusammen kleines Script (top.sh)
gesteckt, welches nach 1800 Einträgen die Logs sichert:
--------------------------------------------------------------------
#!/bin/sh
pfad="/tmpram"
usb="/mnt/_sdc"
datei="top.txt"
datei2="mem.txt"
datei3="swap.txt"
i=1
while true
do
(top -b -n 1 -o %MEM | grep -A 1 "%MEM" | tail -n 1) >> $pfad/$datei
# (top -b -n 1 | grep -A 1 "KiB Mem" | tail -n 2) >> $pfad/$datei2
(top -b -n 1 | grep "KiB Mem") >> $pfad/$datei2
(top -b -n 1 | grep "KiB Swap") >> $pfad/$datei3
i=`expr $i + 1`
sleep 1
if [ $i = 1800 ]
then
cp $pfad/$datei $usb/$(date +%y%m%d_%H%M%S"_$datei")
echo -n > $pfad/$datei
cp $pfad/$datei2 $usb/$(date +%y%m%d_%H%M%S"_$datei2")
echo -n > $pfad/$datei2
cp $pfad/$datei3 $usb/$(date +%y%m%d_%H%M%S"_$datei3")
echo -n > $pfad/$datei3
i=1
fi
done
---------------------------------------------------------------------
Kein JAVA, kein IMAPD, sondern ein simples batch-Script war diesmal
SCHEINBAR der Auslöser !
Ich vermute aber, der Auslöser ist ein Bug im oom-Killer, der macht
einfach, was er will !
Mehr Informationen über die Mailingliste Eisfair