Open chetjain opened 3 years ago
Recreated using "tail /dev/zero" (consumes memory/ create oom)
++ ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem PID PPID CMD %MEM %CPU 195309 165935 tail /dev/zero 87.4 89.1 2627 1966 /opt/rsct/bin/rmcd -a IBM.L 0.3 0.0 1785 1 /sbin/multipathd -d -s 0.1 0.0 2834 1966 /opt/rsct/bin/IBM.MgmtDomai 0.0 0.0 1952 1899 /usr/libexec/sssd/sssd_nss 0.0 0.0 195689 195313 sshd: root [priv] 0.0 1.0 195062 1 /usr/libexec/sssd/sssd_kcm 0.0 2.0 195694 195693 ssh -nq root@vimlp1 ssh -4 0.0 2.0 ----------> Caused due to this. 195505 195313 sshd: root [priv] 0.0 0.2 ++ sleep 1
Following line changes in common_sls.py will fix this 1095 command = "ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head|awk -F' ' '{print $1":"$2" "$3}' |tr '/' ' '|awk -F' ' '{print $1" "$NF}'|tr ':' ' ' | awk '{ print $3}' |grep -vE "CMD|sshd|ssh"|tr '\n' '^'"
1103 command = "grep -w %s /opt/ltp/runtest/*|grep -vE "grep|ssh|sshd"|wc -l" % boat
Created a pull request : -> https://github.com/ppc64le/sls-tool/pull/61
During SLS run, the ssh is getting killed if Free Mem < 10%.
Free Memory is 6% Calling killall -I ssh Calling pkill ssh Free Mem < 10%. Killed ssh process!!