Questions tagged [limits]
82 questions
3
votes
4 answers
If I upgrade an ext3 fs to ext4, will it automatically increase the maximum amount of directories per directory?
Due to an external unavoidable situation*, I need to have more than 32k directories in a directory (but as far as I can tell, less than 64k). I'm hitting the limit of ext3. I presume the original server was running ReiserFS. The backup is stored in…

Pablo Fernandez
- 7,438
- 25
- 71
- 83
3
votes
2 answers
When NOT to use virtualisation?
When virtualisation was new, we tried to virtualise everything, but then we noticed use cases where the our virtual machines were much slower than a bare metal.
For us, we use the following rules when deciding not to virtualise:
Network IO…

Nils
- 7,695
- 3
- 34
- 73
3
votes
1 answer
how do i set hard and soft file limits for a non-root user at boot?
I have a xen HVM vps and I'm trying to raise the hard and soft file limits for nobody at boot time. I'm using Ubuntu 10.04.3 and inside /etc/security/limits.conf I have:
nobody soft nofile 10000
nobody hard nofile 30000
But…

incognito2
- 935
- 4
- 13
- 17
3
votes
4 answers
Setup "open files" limit in Linux per user. Cannot setup more than 1024
I try to increase open file limit for certain user on CentOS 5.5 Linux.
I added a new line to /etc/security/limits.conf:
seed hard nofile 10240
Then do test:
runuser -s /bin/bash - seed -c "ulimit -S -c 0>/dev/null 2>&1; ulimit…

Andrey Zentavr
- 161
- 1
- 1
- 5
2
votes
1 answer
Linux : Count Open Files for Process
How can I check how many open files are currently used?
Checking on PM2 is just an example:
I found the PID:
ps aux | grep pm2 | awk '{ print $2 }'
Checked that there is a limit of 65536 openfiles:
# cat /proc/16305/limits | grep 'Max open…

crashoverbike
- 123
- 1
- 4
2
votes
3 answers
How to setup a traffic limit per user on OpenVPN?
I am setting up a VPN server using OpenVPN. The authentication method is the certificate one (different certs for client and server). The VPS has 1TB of traffic monthly.
I plan allowing up to 4 clients per one server. So I'd like to restrict the…

user6232516
- 21
- 1
- 1
- 4
2
votes
1 answer
How do I increase the open file limit on Linux?
I am using CentOS 7. I found out that the current value can be seen using $ ulimit -a (look for open files).
Or just $ ulimit -n
Then I try to edit these limits by editing the file at
$ vim /etc/security/limits.conf
and adding these two…

Alex
- 301
- 2
- 7
- 14
2
votes
1 answer
KVM Raw file size limitations
What are the technical and practical size limitations of raw disk files to be used with KVM? Can I create a 2 or 3TB raw disk file as a data drive for a KVM based windows virtual machine (acutally using Proxmox as the hypervisor) without problems?

AudioDan
- 398
- 1
- 14
2
votes
1 answer
From which Apache version onward is LimitRequestFieldSize no longer hardcoded to 8k max?
Title says it all:
from which version onward is the LimitRequestFieldSize no longer hardcoded to a max. of 8k?
It seems 2.2.15 is still affected.

Michael Böckling
- 309
- 3
- 15
2
votes
2 answers
Fork-bomb Protection on OS X - Limit processes with ulimit?
Got introduced to the fascinating world of UNIX about a year ago, but after, for lack of a better expression, "the waste-matter colliding with the rapidly spinning blades" today as a result of my tinkering; I decided it may be time to get a bit of…
oms
2
votes
2 answers
Process limit for user in Linux
This is the standard question, "How do I set a process limit for a user account in Linux to prevent fork-bombing," with an additional twist. The running program originates as a root-owned Python process, which then setuids/setgids itself as a…

BrainCore
- 161
- 1
- 3
2
votes
1 answer
EKS Pods with ephemeral-storage constantly evicted
I'm working on EKS v1.20.11-eks-f17b81 and I'm facing an issue with a Java container Alpine based. Basically my deployment have the limits of ephemeral-storage for the request's and also the limit's like this.
- containerPort: 8080
protocol:…

user2275908
- 21
- 1
1
vote
1 answer
How to current Linux process count (compared to pid_max)
How can I get the number of Linux processes (including lightweight processes)?
I want to see how many before I hit the limit dictated by /proc/sys/kernel/pid_max.

Paul Draper
- 317
- 5
- 24
1
vote
3 answers
Aggregation under the radar
I'm considering writing an application that aggregates information from a fairly popular website. This application would request information from this website at a set interval. I know this is a really hard question to even "ballpark" an answer…

lotri
- 143
- 1
- 4
1
vote
0 answers
Force nproc ulimit on non interactive user
I have a script that can be launched n times at the same time through php-fpm. php-fpm pool is set to run under a certain username and I want to limit the number of processes this username can launch.
ps aux|grep fpm
root 7165 0.0 0.0 849288…

w00t
- 1,164
- 3
- 19
- 35