Skip to content

Expose more limits in ulimit #8786

@septatrix

Description

@septatrix
  • Version: 3.3.1
  • OS: Fedora 35, Kernel Version: 5.16.12-200.fc35.x86_64

The bash builtin ulimit (which is also the fallback/command ulimit) exposes many more limits which fish does not show. Some of them might be unique to bash and others seem to have a reason for excluding -p the are quite a few which are missing. The list seems to be eipqrsx

~ $ bash -c "type ulimit && ulimit -a"
ulimit is a shell builtin
real-time non-blocking time  (microseconds, -R) unlimited
core file size              (blocks, -c) unlimited
data seg size               (kbytes, -d) unlimited
scheduling priority                 (-e) 0
file size                   (blocks, -f) unlimited
pending signals                     (-i) 95584
max locked memory           (kbytes, -l) 8192
max memory size             (kbytes, -m) unlimited
open files                          (-n) 1024
pipe size                (512 bytes, -p) 8
POSIX message queues         (bytes, -q) 819200
real-time priority                  (-r) 0
stack size                  (kbytes, -s) 8192
cpu time                   (seconds, -t) unlimited
max user processes                  (-u) 95584
virtual memory              (kbytes, -v) unlimited
file locks                          (-x) unlimited
~ $ type ulimit && ulimit -a
ulimit is a builtin
Maximum size of core files created                           (kB, -c) unlimited
Maximum size of a process’s data segment                     (kB, -d) unlimited
Maximum size of files created by the shell                   (kB, -f) unlimited
Maximum size that may be locked into memory                  (kB, -l) 8192
Maximum resident set size                                    (kB, -m) unlimited
Maximum number of open file descriptors                          (-n) 1024
Maximum stack size                                           (kB, -s) 8192
Maximum amount of cpu time in seconds                   (seconds, -t) unlimited
Maximum number of processes available to a single user           (-u) 95584
Maximum amount of virtual memory available to the shell      (kB, -v) unlimited

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions