Package Details: cpulimit 1:0.2-4

Git Clone URL: https://aur.archlinux.org/cpulimit.git (read-only, click to copy)
Package Base: cpulimit
Description: Limit cpu usage of a process in percentage. Actually sends SIGSTOP/SIGCONT POSIX signals to processes
Upstream URL: https://github.com/opsengine/cpulimit
Keywords: cpu limits process resources
Licenses: GPL-2.0-or-later
Submitter: arojas
Maintainer: tarball
Last Packager: tarball
Votes: 14
Popularity: 0.000605
First Submitted: 2023-03-31 22:46 (UTC)
Last Updated: 2025-08-06 10:19 (UTC)

Dependencies (1)

Required by (3)

Sources (2)

Pinned Comments

tarball commented on 2024-01-29 05:17 (UTC)

NOTE: cpulimit hasn't been developed for quite some time. Please take a look at this fork (limitcpu) which is used by multiple major Linux distributions and at least one BSD, is compatible with this one, and keeps getting updated to this day.

Latest Comments

tarball commented on 2025-08-06 10:20 (UTC)

Thanks for letting me know, it should compile now.

jlindgren commented on 2025-08-06 03:42 (UTC)

Fails to build with current gcc:

busy.c: In function ‘main’:
busy.c:20:58: error: passing argument 3 of ‘pthread_create’ from incompatible pointer type [-Wincompatible-pointer-types]
   20 |                 if ((ret = pthread_create(&thread, NULL, loop, NULL)) != 0)
      |                                                          ^~~~
      |                                                          |
      |                                                          void * (*)(void)
In file included from busy.c:3:
/usr/include/pthread.h:204:36: note: expected ‘void * (*)(void *)’ but argument is of type ‘void * (*)(void)’
  204 |                            void *(*__start_routine) (void *),
      |                            ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
busy.c:6:7: note: ‘loop’ declared here
    6 | void *loop()
      |       ^~~~

tarball commented on 2024-01-29 05:17 (UTC)

NOTE: cpulimit hasn't been developed for quite some time. Please take a look at this fork (limitcpu) which is used by multiple major Linux distributions and at least one BSD, is compatible with this one, and keeps getting updated to this day.

tarball commented on 2024-01-29 05:16 (UTC)

Debian (along with its derivatives), OpenSUSE, FreeBSD, maybe others have been using this fork, which is actively developed, but it's already packaged on the AUR.

Fedora, Alpine, and this package are using the original upstream.

Most users would probably be better served by limitcpu. I would add a postinstall message if it didn't cause a pointless upgrade for existing users.

Freso commented on 2024-01-28 22:16 (UTC)

There’s a 0.3.2 release from https://github.com/denji/cpulimit/releases – I don’t know if this is the "official" fork of the project or not, but AFAICT at a brief glance, it’s the only fork that has done any releases. It hasn’t received commits for 5 years though and it doesn’t seem like https://github.com/HiGarfield/cpulimit has incorporated the changes/commits from that fork at this point.