cpulimit icon indicating copy to clipboard operation
cpulimit copied to clipboard

Segmentation fault

Open Delitants opened this issue 13 years ago • 7 comments

I'm using CentOS 5.8 with kernel Linux 2.6.18-308.16.1.el5xen (VDS). And I urgently need to cut CPU for mysqld but cpulimit goes in Segmentation fault after a some time of running. I tried both developer and master releases of cpulimit.

My startup is: cpulimit -e mysqld -l 85 Host provider says next info: Processor information Intel(R) Xeon(R) CPU L5420 @ 2.50GHz, 4 cores

But I am not sure that all 4 cores are in use because when mysql uses (if look in top, cpu column) >100%, server lags insanely.

Delitants avatar Nov 19 '12 18:11 Delitants

Hi, can you provide a core dump or a stacktrace with gdb?

opsengine avatar Jan 23 '13 19:01 opsengine

Whenever I try to use it with the -e flag, I get a segmentation fault error, too. [Linux user]

gwpl avatar May 18 '14 16:05 gwpl

This is still an issue. Using Arch Linux, -e processname results in segmentation fault.

phil294 avatar Jul 23 '18 13:07 phil294

no brainer workaround: cpulimit ... -p $(pgrep <name>) :-)

varenc avatar Jun 17 '20 11:06 varenc

Would this be fixed by the suggestions in #57 ?

niklasbeierlarc avatar May 23 '21 16:05 niklasbeierlarc

What fixed this for me was compiling cpulimit in another distro and copying the executable. For example, I compiled in Ubuntu and used in CentOS

thyagoleal avatar Sep 16 '21 12:09 thyagoleal

Still valid ten years later.

Jummit avatar Oct 07 '22 08:10 Jummit