Skip to content

cpulimit is not sending SIGCONT signal to the processes #123

Open

Description

@rammohanganap

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

Activity

  1. HiGarfield commented on Nov 28, 2024

    @HiGarfield

    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

  2. rammohanganap commented on Nov 28, 2024

    @rammohanganap
    Author

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

  3. HiGarfield commented on Nov 28, 2024

    @HiGarfield

    @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

  4. HiGarfield commented on Nov 28, 2024

    @HiGarfield

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions