Limit CPU Usage of a Process in Linux with CPULimit Tool

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Aaron Kili

Aaron Kili is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, web developer, and currently a content creator for TecMint who loves working with computers and strongly believes in sharing knowledge.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

6 Responses

  1. Dragos says:

    Without using cpulimit the process uses 95-100% of the cpu (4 cores / 8 threads).

    Using this code: cpulimit --pid 17918 --limit 75
    Makes my cpu use only 8-12%…..

    Also tried: cpulimit --pid 17918 --limit 75 -cpu 4 and --cpu 8
    Same result… the cpulimit module seems glitched.

    Sad that Linux is so shit in 2019 since Windows could have controlled the CPU usage 100% precise since like 2004 and that from the task manager without installing additional shit and waste more time.

  2. The TechReader says:

    --background or -b is no longer a valid option.

  3. gera says:

    such tool is a bit outdated for these times, since long time ago, Linux allows controlling these kind of resources via cgroups, in a much more way than using SIGSTOP/SIGCONT. Indeed in current times, you have systemd-run to do these kinds of things and much more.

    • Aaron Kili says:

      @gera

      Yap, that’s true. Thanks for pointing this out, we’ll soon organize an article about cgroups and resource control especially under systemd. However, these tools are still useful even in current Linux systems.

Leave a Reply to Dragos Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.