Ulimit

From HPC Wiki
Revision as of 09:23, 5 September 2019 by Daniel-schurhoff-de23@rwth-aachen.de (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

General

ulimit is a tool to print and control user limits on a Linux system

Manual

The ulimit command line tool allows to print the user limits for certain recources within the current shell:

$ ulimit -a

Furthermore, the ulimit command can be used to set a limit to a differnt value. The most frequent cases when this is needed is: 1. When a program uses more memory for the stack than allowed, this leads to a SEGFAULT during execution of the program. This happens quite often for Fortran programs. In such cases increasing the stacksize with one of the following commands can help:

$ ulimit -s 100000
or
$ ulimit -s unlimited

2. On frontend nodes often a timelimit is set for processes to avoid that people start long running applications and distub other users. For IDEs or debuggers this can be a bad idea, since the limit might kill the debugger or the IDE after some time without any warning or message. In such cases deactivating the timelimit before starting the IDE is useful:

$ ulimit -t unlimited


FAQs

ulimit manpage

Side specific information