Questions tagged [limit]
Limiting the usage of a resource (memory, disk space, CPU time, open files, network bandwidth, …) by a process or a group of processes.
257 questions
1 vote
1 answer
95 views
PAM maxlogins limit not working
Since upgrading from CentOS 7 to Rocky Linux 8 our PAM maxlogins limit is no longer being enforced for SFTP sessions. SFTP users belong to the sftp group and we have this in /etc/security/limits.d/10-...
12 votes
4 answers
2k views
Limit file IO speed
I am looking for a command similar to ionice and trickle and pv -L and tc - but which puts limits on IO to files. ionice looks at block devices on the local machine. I want this to work for file I/O ...
3 votes
2 answers
820 views
How to limit the number of files printed by ls and print them in columns like ls prints normally?
Here is extension of the question: How do I limit the number of files printed by ls? with additional condition: how to print results in as many columns as fit to the current terminal width — as ls ...
0 votes
1 answer
153 views
Piped dd command limits its output to 65536 bytes, why?
My colleague and I are both using a Docker container running Ubuntu 22.04.4 LTS (Jammy Jellyfish): root@c2155d7af4a4:/# grep VERSION= /etc/os-release VERSION="22.04.4 LTS (Jammy Jellyfish)" ...
0 votes
1 answer
828 views
How to get rid of ssh bandwidth limit?
I was playing around with a server I set up myself, running archlinux, and when I tried to retrieve files from it, using scp or rsync, I noticed the download speed was abnormally low, being capped at ...
2 votes
1 answer
264 views
How to prevent relayd on OpenBSD from using all memory
I have an OpenBSD "firewall" with relayd, where relayd starts to consume all available memory to the point that the system becomes completely non responsive. This happens when a user starts ...
1 vote
0 answers
214 views
How to limit the memory used for each process of a certain binary?
I have a process which is part of standalone, non-service executable. The process in question spawns thousands of co-processes under a single binary. I'd like to limit the memory usage of processes ...
0 votes
1 answer
313 views
Limit CPU usage of background process if system is busy
At the moment I do the following: When I see that the system load of my Ubuntu server is high, I get the PIDs of specific currently running background processes and start cpulimit with the PID. When ...
2 votes
1 answer
445 views
What is the way to enforce daily write limits on a disk partition in linux?
I would like to enforce certain write limits on my disk partitions. I would like to limit the amount of data application can write on a given disk partition on hourly, daily or weekly basis. Is there ...
0 votes
0 answers
307 views
Performance limits of file I/O vs Unix pipes on multicore systems
I am running some benchmarks where I have a program that performs some file IO. It creates a fresh directory, writes and reads some files to that directory, and then deletes it. When I run this ...
1 vote
0 answers
146 views
Resource limits getting enforced only for processes in user's terminal not for su [user] from root's terminal
Cgroups v2 is enabled in almalinux 9.1 with kernel 5.14.0-70.22.1.el9_0.x86_64 and systemd 250 (250-12.el9_1.3). Content of /etc/systemd/system/user-1002.slice.d/override.conf: [Unit] Description=User ...
1 vote
1 answer
597 views
How to limit the concurrent GUI login, but allow multiple SSH login?
On an Ubuntu desktop, contains several accounts, I want to limit the GUI login number. At anytime, there should be only one account can login by using local GUI. (The first account must logout before ...
0 votes
0 answers
646 views
grep: What is the limit for a pattern file size
I am using grep with the -f option and I run into an issue when the pattern file given with -f is very long. The one that is failing for me has almost 300 thousand lines and 40 MBytes. grep does not ...
4 votes
1 answer
633 views
How limit CPU/Ram on a system service on nixos?
My metabase service is eating all the resources on my machine, and while found a solution I need a way to limit the usage the resources. How can I configure it on nixos? ❯ nixos-version 22.05.2123....
0 votes
1 answer
2k views
How to determine "number of concurrent sessions" for all users on a server
I am trying to determine the total number of concurrent sessions on a server to determine a good number for the maxlogins option in /etc/security/limits.conf. How is the number of sessions calculated ...