Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SLS killing sshd daemon (system process) #60

Open
chetjain opened this issue Oct 20, 2021 · 2 comments
Open

SLS killing sshd daemon (system process) #60

chetjain opened this issue Oct 20, 2021 · 2 comments
Assignees
Labels
Hacktoberfest IBM program

Comments

@chetjain
Copy link
Contributor

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!!

@chetjain
Copy link
Contributor Author

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

@chetjain chetjain added the Hacktoberfest IBM program label Oct 26, 2021
@chetjain chetjain self-assigned this Oct 26, 2021
chetjain added a commit that referenced this issue Oct 26, 2021
@chetjain
Copy link
Contributor Author

Created a pull request : -> #61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hacktoberfest IBM program
Projects
None yet
Development

No branches or pull requests

1 participant