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

Lock resource to stop other users from using it

In our company we have a server machine that is widely used by our team, everybody has their own user account and everything works good. Now, there are a few developers that are working with a ...
2
votes
1answer
102 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
46 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
532 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
30 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
674 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
711 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
54 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 ...
19
votes
2answers
25k 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
26 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
3k 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
454 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
164 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
817 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
645 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
1k 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
621 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 ...
10
votes
1answer
14k 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 ...
3
votes
5answers
13k 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
173 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
26k 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
12k views

Permanently set process limit

How do you permanently set process limit per user (ulimit -u) in Ubuntu?
2
votes
1answer
2k 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 ...
18
votes
5answers
11k views

Can I limit the CPU usage of a single application?

Is there a way to stop ClamScan eating my server CPU?
62
votes
1answer
44k 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
489 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 ...