Difference between revisions of "Ulimit"

From HPC Wiki
Jump to navigation Jump to search
Line 5: Line 5:
 
The ulimit command line tool allows to print the user limits for certain recources within the current shell:
 
The ulimit command line tool allows to print the user limits for certain recources within the current shell:
  
$ ulimit -a
+
$ ulimit -a
  
 
Furthermore, the ulimit command can be used to set a limit to a differnt value.
 
Furthermore, the ulimit command can be used to set a limit to a differnt value.

Revision as of 15:14, 1 September 2017

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