Questions tagged [resource-limiting]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
103 views

kernel does not support Block I/O weight error, Docker

I need to set block IO limit to a docker container. I decided to try out this docker feature, but I am getting the following: (base) me@ubuntu:~/dev/ws3$ docker run -it --name cont_B --blkio-weight ...
1
vote
0answers
139 views

How To Limit User RAM and CPU

So this is my first time posting on Ubuntu forums, so please excuse me if this question is repetitive, or just plain stupid. A bit of background: I am a 14yr old developer, who has an ubuntu 20.04 ...
0
votes
1answer
132 views

Applications are ignoring/exceeding user-set CPU frequencies limitations (20.04)

I've been trying to limit the maximum allowed CPU frequency on a 2nd gen Intel i7 CPU. To do that, I tried: sudo cpupower -c all frequency-set --max; TLP, setting both the percentage and frequency (...
0
votes
0answers
117 views

DefaultTasksMax too low

After installing Jitsi meet on my v-server, I had the following error after a few hours: -bash: fork: retry: Resource temporarily unavailable. As either the memory is used up (top output below) or my ...
0
votes
1answer
1k views

How can I limit GPU usage for every process?

I'm trying to switch over back to Linux (as my primary OS at least) and one thing that's annoying now is mining etherium. On Windows even with 99% GPU usage everything runs perfectly fine and I can ...
0
votes
0answers
83 views

Unable to Increase ulimit Settings on Ubuntu 16.04

In order to try to increase the ulimit -n values to larger ones on a Ubuntu 16.04 system, I have made the following changes: Edited /etc/security/limits.conf to include * hard nofile ...
1
vote
1answer
362 views

Ubuntu 18.04: Maximum number of clients reached - related to dbus-daemon

From time to time I get this message, I cant start application when this happens. I've tried those links: Can't start applications due to “Maximum number of clients reached” error and How can I ...
0
votes
0answers
28 views

Limiting the number of cores for a user

I have a 32 core server but I want to limit a specific user to use only 16 cores. In other words, if the user performs nproc --all I want the output to be only 16 cores. I'm also looking for a ...
3
votes
1answer
690 views

fork: retry: Resource temporarily unavailable in spite of highly tuned server settings

# cat /etc/sysctl.conf fs.aio-max-nr=99999999 fs.file-max=99999999 kernel.pid_max=4194304 kernel.threads-max=99999999 kernel.sem=32768 1073741824 2000 32768 kernel.shmmni=32768 kernel.msgmni=32768 ...
0
votes
1answer
584 views

Limiting ram usage of a program

Is there an easy way to limit the ram consumption of a specific program? I have a program that generates a really big file, up to 1 gb and it causes my whole laptop to freeze up. I want to limit the ...
1
vote
1answer
2k views

When I modify /etc/security/limits.conf I get “E45: 'readonly' option is set (add ! to override)” [duplicate]

I'm trying to increase the open files limit for Ubuntu 16.04 version by using vi /etc/security/limits.conf Then I add two lines like: #* soft nofile 4096 #* hard nofile 4096 But when I use :x to ...
1
vote
0answers
47 views

18.04 LTS install - Allocating resources problem message

I installed 18.04 LTS on my laptop and I get an 'Allocating resources problem' error message. Do I wait this out or is there something I must do?
2
votes
1answer
921 views

What is the best cgmanager alternative for Ubuntu 18.04 LTS?

I was using package cgmanager to automatically manage processes into memory cgroups in Ubuntu 16.04 LTS environment. However, I did a fresh install of Ubuntu 18.04 and package cgmanager is no longer ...
1
vote
0answers
919 views

Ubuntu desktop, wildcard nofile not working

I've tried setting the file limit to 32000 on ubuntu desktop for normal users by adding the following lines: * soft nofile 32000 * hard nofile 32000 To: /etc/security/limits.conf But, even after ...
0
votes
0answers
69 views

Why my pc is lagging on ubuntu?

Why my pc is lagging on ubuntu 16.04 as compared to windows 10 (dual boot) when I run android studio ? Is it due to lack of RAM ? System specs: Intel(R) Core(TM) i3-5005U CPU @ 2.00GHz RAM 4GB ...
28
votes
3answers
41k views

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 ...
0
votes
1answer
27 views

How resource management work in snappy?

If I deploy a software with snappy how does the resource management occurs for that particular software? Is the resources elastic in terms of the system? Or is it defined?
1
vote
2answers
5k views

Cannot increase open file limit beyond 999999 on 14.04+

I'm trying to increase open file limit for root user as well as non-root user via /etc/security/limits.conf. But, cannot get past 999999, anything above this value reverts to default 1024 nor I can ...
1
vote
0answers
526 views

How can I give resource to Ubuntu for Windows 10?

I installed Ubuntu from Microsoft Windows 10 store. It's good for my task and run well. Thanks you for your job. But it has just one problem, too slow at all. How can I give more resource to Ubuntu ...
1
vote
1answer
1k views

limit internet bandwidth (17.04) [duplicate]

I want to limit the internet bandwidth to avoid causing a bad ping for other users in the same network. I used to use wondershaper but it doesn't seem work on Ubuntu 17.04 (kernel 4.10, 64bit): sudo ...
0
votes
0answers
218 views

Error: You must specify exactly one target process

what is the syntax to use cpulimit to throttle Web Content? Note the space between Web and Content. top - 09:16:00 up 1:09, 2 users, load average: 1.80, 1.70, 1.77 Tasks: 215 total, 2 running, ...
5
votes
0answers
2k views

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 ...
1
vote
1answer
877 views

Running an executable with fixed execution-time and memory limit and getting exit-code

What is the best way to run an executable with execution-time and memory(RAM) limit (e.g. 2.5 seconds and 32768 kB)? I need to get the exit-code if it exits without violating time and memory limits....
6
votes
2answers
696 views

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. ...
3
votes
2answers
2k views

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 ...
3
votes
0answers
29 views

Limiting physical memory of specifc process [duplicate]

Performing research, I am interested in limiting the Physical Memory per specific process. My requirements: Limit physical memory consumption for specific program In case of crossing limitation - ...
3
votes
1answer
863 views

Limits are restored to the defaults after I reboot

I want to remove "memorylocked" and "maxproc" limits. I am using tcsh shell. I read that if I use #limit memorylocked unlimited and #limit maxproc unlimited then they will be set to unlimited. I did ...
11
votes
1answer
16k views

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 ...
4
votes
5answers
16k views

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 ...
0
votes
0answers
174 views

Limit overall cpu usage Ubuntu 12.04 [duplicate]

Possible Duplicate: CPU frequency scaling for 12.04? I was wondering if there is a way to limit the total cpu usage percentage? I know that you can limit the usage per process with cpulimit but I'...
34
votes
2answers
28k views

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 (...
8
votes
1answer
2k views

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 /...
6
votes
2answers
13k views

Permanently set process limit

How do you permanently set process limit per user (ulimit -u) in Ubuntu?
2
votes
1answer
3k views

How to limit download/upload speed for specific users? [duplicate]

I want to setup an ubuntu server in which some users are limited to a specific download/upload speed.Is it possible? I know about Wondershaper, Trickle or similar tools but I don't want to limit ...
21
votes
5answers
13k views

Can I limit the CPU usage of a single application?

Is there a way to stop ClamScan eating my server CPU?
66
votes
1answer
50k views

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 ...
10
votes
1answer
495 views

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 ...
23
votes
1answer
1k views

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 ...