cpulimit icon

cpulimit For Linux

3.8/5 17
GPL    

cpulimit is a simple program that attempts to limit the cpu usage of a process (expressed in percentage, not in cpu time).. #Limit cpu usage  #Limit process  #Batch jobs  #Cpulimit  #Limit  #Cpu  

Description

changelog

Free Download

cpulimit is a simple program that attempts to limit the cpu usage of a process (expressed in percentage, not in cpu time). This is useful to control batch jobs, when you don't want they eat too much cpu.

cpulimit project does not act on the nice value or other scheduling priority stuff, but on the real cpu usage. Also, it is able to adapt itself to the overall system load, dynamically and quickly.

Requirements:

� cpulimit should run on every Linux 2.2 or greater. It has been reported by several users that cpulimit works fine even on SMP hardware, but there is a little difference in the meaning of cpu usage (see below). � If you can modify the source code of cpulimit to make it run in a non Linux OS, please notify me, so I can publish your code. I think that the only non-portable code is iterating through the process list.

Download source from here (under GPL license), extract the source and compile:

$ tar zxf cpulimit-1.0.tar.gz $ cd cpulimit-1.0 $ make

Executable file name is cpulimit.

Limiting the program 'bigloop' by executable name to 40% CPU:

$ ./cpulimit --exe bigloop --limit 40

or

$ ./cpulimit --path /usr/local/bin/bigloop --limit 40

Limiting a program by PID to 55% CPU:

$ ./cpulimit --pid 2960 --limit 55

Usage: cpulimit TARGET [OPTIONS...]

TARGET must be exactly one of these:

-p, --pid=N pid of the process -e, --exe=FILE name of the executable program file -P, --path=PATH absolute path name of the executable program file

OPTIONS

-l, --limit=N percentage of cpu allowed from 0 to 100 (mandatory) -v, --verbose show control statistics -z, --lazy exit if there is no suitable target process, or if it dies -h, --help display this help and exit

If you have just one processor you can limit the percentage from 0% to 100%, and this is fine. But if your machine has four processors percentage may vary from 0% to 400%, so setting the limit to 200% means to use no more than half of the available power.

cpulimit should run at least with the same user running the controlled process. But it is much better if you run cpulimit as root, for precision issues.

Actually, cpulimit does not limit the children (neither processes nor threads) of the original process. I know that it is a big limitation. I'm working to add this feature, though it isn't a trivial task.

cpulimit 1.7

add to watchlist add to download basket send us an update REPORT
  runs on:
Linux
  1 screenshot:
cpulimit - screenshot #1
  main category:
System
  developer:
  visit homepage

IrfanView 4.67

With support for a long list of plugins, this minimalistic utility helps you view images, as well as edit and convert them using a built-in batch mode
IrfanView

Windows Sandbox Launcher 1.0.0

Set up the Windows Sandbox parameters to your specific requirements, with this dedicated launcher that features advanced parametrization
Windows Sandbox Launcher

Microsoft Teams 24060.3102.2733.5911 Home / 1.7.00.7956 Work

Effortlessly chat, collaborate on projects, and transfer files within a business-like environment by employing this Microsoft-vetted application
Microsoft Teams

Bitdefender Antivirus Free 27.0.35.146

Feather-light and free antivirus solution from renowned developer that keeps the PC protected at all times from malware without requiring user configuration
Bitdefender Antivirus Free

ShareX 16.0.1

Capture your screen, create GIFs, and record videos through this versatile solution that includes various other amenities: an OCR scanner, image uploader, URL shortener, and much more
ShareX

Zoom Client 6.0.3.37634

The official desktop client for Zoom, the popular video conferencing and collaboration tool used by millions of people worldwide
Zoom Client

calibre 7.9.0

Effortlessly keep your e-book library thoroughly organized with the help of the numerous features offered by this efficient and capable manager
calibre

7-Zip 23.01 / 24.04 Beta

An intuitive application with a very good compression ratio that can help you not only create and extract archives, but also test them for errors
7-Zip

4k Video Downloader 1.5.3.0080 Plus / 4.30.0.5655

Export your favorite YouTube videos and playlists with this intuitive, lightweight program, built to facilitate downloading clips from the popular website
4k Video Downloader

Context Menu Manager 3.3.3.1

Customize Windows’ original right-click context menu using this free, portable and open-source utility meant to enhance your workflow
Context Menu Manager

% discount
7-Zip
  • 7-Zip
  • 4k Video Downloader
  • Context Menu Manager
  • IrfanView
  • Windows Sandbox Launcher
  • Microsoft Teams
  • Bitdefender Antivirus Free
  • ShareX
  • Zoom Client
  • calibre
essentials


Click to load comments
This enables Disqus, Inc. to process some of your data. Disqus privacy policy