How can I start a process using cpulimit?

Freedom_Ben

I am trying to use cpulimit for testing an app I'm developing under low resource conditions, and I need the process to start under the influence of cpulimit. It is not sufficient to start the program and later apply cpulimit. The example on the cpulimit page does not work for me.

The example is this:

cpulimit --limit 40 /etc/rc.d/rc.boinc start

And I'm doing this:

cpulimit --limit 40 a.out start
Gilles 'SO- stop being evil'

This is unrelated to cpulimit. Running a.out directly on the command line wouldn't have worked either. When you execute a program without specifying any directory component, the program is looked up in the PATH. The current directory is normally not in the PATH, so you need to give an explicit directory indication.

cpulimit -l 40 -- ./a.out start

It's also generally a good practice to end the options with "--", so cpulimit, or whatever command, won't interpret wrong what comes after that, as an option, when it's part of a file name or an option to a different program.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

How can I process a form using Google Apps Script?

分類Dev

How can I start using MS-SQL Server ( express )

分類Dev

How can I start and stop a service by using the "service" command, instead of "/etc/init.d/nameofservice start"?

分類Dev

I'm new to Git... How can I start using Git on multiple projects?

分類Dev

How do I grab a process's start time in minutes?

分類Dev

How can i terminate process created with winexec()?

分類Dev

Using bupaR, how can I combine the counts and times from the process and performance maps into one map?

分類Dev

How can I find File name in string which start with # Using RegEx

分類Dev

How can I retrieve data from spinner and process it?

分類Dev

How can I attach to a specific process in Visual Studio Code

分類Dev

How can I open an .xls file as a separate process

分類Dev

How can I make a one-shot sshd process?

分類Dev

How can I know the absolute path of a running process?

分類Dev

How can I change 'process.on' into RxJS style based events?

分類Dev

How can I add to a already running process an additional 'shutdown' command?

分類Dev

How can I start PostgreSQL server on Mac OS X?

分類Dev

How can I start tomcat by .bat and add JAVA_OPTS

分類Dev

How can I invert the count and set the countdown start time?

分類Dev

How can I track the time pods are waiting to start?

分類Dev

How can I make a bash script start, stop and restart in ubuntu

分類Dev

How can I start my pattern in first caractere

分類Dev

How i can start build Jwplayer plugins (Addons)?

分類Dev

How can I get vboxweb to start properly at boot

分類Dev

How can I start a script after connecting via xrdp?

分類Dev

How can I force X to start in a computer without a monitor?

分類Dev

How do I start a process with a nice value of -20 and not give it root privilege?

分類Dev

How do I process an image in Swift without using UIImage?

分類Dev

How do I respond to a prompt after using & to make a new process?

分類Dev

How to call method at App start if I am using provider?

Related 関連記事

  1. 1

    How can I process a form using Google Apps Script?

  2. 2

    How can I start using MS-SQL Server ( express )

  3. 3

    How can I start and stop a service by using the "service" command, instead of "/etc/init.d/nameofservice start"?

  4. 4

    I'm new to Git... How can I start using Git on multiple projects?

  5. 5

    How do I grab a process's start time in minutes?

  6. 6

    How can i terminate process created with winexec()?

  7. 7

    Using bupaR, how can I combine the counts and times from the process and performance maps into one map?

  8. 8

    How can I find File name in string which start with # Using RegEx

  9. 9

    How can I retrieve data from spinner and process it?

  10. 10

    How can I attach to a specific process in Visual Studio Code

  11. 11

    How can I open an .xls file as a separate process

  12. 12

    How can I make a one-shot sshd process?

  13. 13

    How can I know the absolute path of a running process?

  14. 14

    How can I change 'process.on' into RxJS style based events?

  15. 15

    How can I add to a already running process an additional 'shutdown' command?

  16. 16

    How can I start PostgreSQL server on Mac OS X?

  17. 17

    How can I start tomcat by .bat and add JAVA_OPTS

  18. 18

    How can I invert the count and set the countdown start time?

  19. 19

    How can I track the time pods are waiting to start?

  20. 20

    How can I make a bash script start, stop and restart in ubuntu

  21. 21

    How can I start my pattern in first caractere

  22. 22

    How i can start build Jwplayer plugins (Addons)?

  23. 23

    How can I get vboxweb to start properly at boot

  24. 24

    How can I start a script after connecting via xrdp?

  25. 25

    How can I force X to start in a computer without a monitor?

  26. 26

    How do I start a process with a nice value of -20 and not give it root privilege?

  27. 27

    How do I process an image in Swift without using UIImage?

  28. 28

    How do I respond to a prompt after using & to make a new process?

  29. 29

    How to call method at App start if I am using provider?

ホットタグ

アーカイブ