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

cpulimit is not sending SIGCONT signal to the processes #123

Open
rammohanganap opened this issue Nov 28, 2024 · 4 comments
Open

cpulimit is not sending SIGCONT signal to the processes #123

rammohanganap opened this issue Nov 28, 2024 · 4 comments

Comments

@rammohanganap
Copy link

Hi,

I am seeing this intermittent behavior in rocky8.9 where i suspect cpulimit is not sending SIGCONT to the child proc and child processes is been hung there for days. Any idea what could be the reason ? How do debug this issue?

cmd: cpulimit -l 15 aws s3 cp foo bar

and there is no load on the system and have enough cpu cycles. If i send SIGCONT to the pid then the processes is getting executed successfully. We never saw this behavior in centos7.

 sudo strace -p 2558819
strace: Process 2558819 attached
--- stopped by SIGSTOP ---

version: cpulimit-0.2-13.20151118gitf4d2682.el8.x86_64

@HiGarfield
Copy link

You can try my modified version with the errors fixed: https://github.com/HiGarfield/cpulimit.

I also provided an executable; just extract it and run it.

wget https://github.com/user-attachments/files/17942073/cpulimit.tar.gz
tar -zxvf cpulimit.tar.gz
./cpulimit -l 15 aws s3 cp foo bar

cpulimit.tar.gz

@rammohanganap
Copy link
Author

@HiGarfield thanks for the quick response, is this a known issue with cpulimit in rocky8/rhel8 OS? any references related to this issue?

@HiGarfield
Copy link

@rammohanganap In recent years, I have discovered some bugs in the processes of process name matching, reading process information, sending signals, and handling multithreading concurrency. I made many modifications. Please refer to the commits in my forked repository for details. https://github.com/HiGarfield/cpulimit

@HiGarfield
Copy link

After testing, the cpulimit in my repo works properly on Rocky Linux.

Rocky Linux x64

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

No branches or pull requests

2 participants