Questions tagged [resource-limiting]

For questions regarding limiting some resource of the computer, generally RAM, I/O or CPU usage.

54 questions
75
votes
1 answer

How do I limit internet bandwidth?

I am getting complaints that I consume lots of internet bandwidth. Is there any software that can limit internet bandwidth on my computer from my own computer? I use Firefox as browser and use bittorrent and download software from software…
S L
  • 1,909
  • 7
  • 24
  • 31
36
votes
2 answers

Memory limiting solutions for greedy applications that can crash OS?

I use my computer for scientific programming. It has a healthy 8GB of RAM and 12GB of swap space. Often, as my problems have gotten larger, I exceed all of the available RAM. Rather than crashing (which would be preferred), it seems Ubuntu starts…
Hooked
  • 2,333
  • 4
  • 22
  • 32
32
votes
3 answers

How to increase max open files limit on Ubuntu 18.04?

I've run ulimit -n 65536, added the following lines to /etc/security/limits.conf: * soft nofile 65536 * hard nofile 65536 alix soft nofile 65536 alix hard nofile 65536 root soft nofile 65536 root hard nofile 65536 And added session required…
Alix Axel
  • 1,023
  • 3
  • 13
  • 26
23
votes
1 answer

Is there a way to limit the bandwidth that Software Center uses?

Whenever I am downloading packages using Ubuntu Software Center (or any package manager for that matter), my Internet connection slows to an absolute crawl. In fact, most requests timeout. Is there a way to limit the bandwidth that Software Center…
Nathan Osman
  • 31,915
  • 40
  • 179
  • 259
21
votes
5 answers

Can I limit the CPU usage of a single application?

Is there a way to stop ClamScan eating my server CPU?
Pitto
  • 1,938
  • 6
  • 20
  • 35
20
votes
3 answers

How can I limit the CPU and RAM usage for a process?

I'm on a Ubuntu VPS with SFTP and a console. I need a specific process to only use 60% of my CPU and 2048 MB of RAM. I also need that another process only uses 30% of CPU and 1024MB of RAM. How can I limit the CPU and RAM usage of a process?
newalvaro9
  • 316
  • 1
  • 2
  • 5
12
votes
1 answer

How to impose memory limits on a shell script?

I have a PHP script that, while a folder contains XML files, will process them onto the database. Currently, the server is running PHP version 5.3.10 and there's a bug report about memory issues triggered by ZEND_MM_HEAP within a loop. This causes…
Zuul
  • 1,974
  • 4
  • 19
  • 29
10
votes
1 answer

How to restrict the number of processes a user can start?

We tried /etc/security/limits.conf, but that seems to have no effect. The used line for limits.conf looks as follows: myuser hard nproc 6 That is configuration for a server. I want to limit the processes started. Ulimit limits the processes started…
Mnementh
  • 297
  • 3
  • 14
8
votes
3 answers

Is the kilobyte used by time and ulimit commands either 1000 (SI) or 1024 (old school) bytes?

From man time: M Maximum resident set size of the process during its lifetime, in Kilobytes. From ulimit -a: max memory size (kbytes, -m) unlimited But a "kilobyte" may mean either 1000 or 1024 bytes. I guess here it is a round 1024,…
abukaj
  • 409
  • 1
  • 4
  • 12
8
votes
1 answer

Fork bomb protection not working : Amount of processes not limited

I just came to realize that my system is not limiting the amount of processes per user properly thus not preventing a user from doing a fork-bomb and crashing the entire system: user@thebe:~$ cat /etc/security/limits.conf | grep user user …
d_inevitable
  • 1,882
  • 3
  • 22
  • 35
7
votes
2 answers

Permanently set process limit

How do you permanently set process limit per user (ulimit -u) in Ubuntu?
redman
  • 223
  • 2
  • 3
  • 6
6
votes
2 answers

How to enable cpuset on Ubuntu 12.04?

I have set up CPU sets with cset in Ubuntu 12.04, but they are not respected. Processes just use all the CPU they can, no matter what set they are assigned to. It seems that cpuset is not enabled. How can I enable cpuset?
Ruben Verborgh
  • 203
  • 2
  • 5
6
votes
5 answers

Limit the size of a directory by deleting old files

I have a IP cam which save its recordings in a specific directory named Camera1 in my Ubuntu Server 12.04. I would like to limit the size of this folder to 5 gigs, by deleting -say once a day- the oldest files. I first checked the quota program but…
Sulliwane
  • 2,085
  • 5
  • 26
  • 38
5
votes
0 answers

Using multiple GPU's in Ubuntu 16?

I have a question I have been researching for days on. I have a MSI z97 gaming 5 board with 7 PCI slots. All the slots work fine for GPU's as I have an identical board with 7 AMD GPU's running. The other board I have 7 NVidia cards, GTX 1060 3GB.…
bughatti
  • 51
  • 3
4
votes
2 answers

Is it possible to reserve/limit the network usage for certain processes (applications)?

Is it possible to reserve (at least so much bandwidth) or limit (no more than so much bandwidth) the network usage of certain processes or applications. Alternatively, reserve/limit the network usage of an/some user(s) and or groups? I'm interested…
Baard Kopperud
  • 1,074
  • 12
  • 21
1
2 3 4