Novell LINUX ENTERPRISE DESKTOP 10 SP2 - DEPLOYMENT GUIDE 08-05-2008 Deployment Manual page 445

Table of Contents

Advertisement

19.1.5 The ulimit Command
With the ulimit (user limits) command, it is possible to set limits for the use of system
resources and to have these displayed. ulimit is especially useful for limiting the
memory available for applications. With this, an application can be prevented from
using too much memory on its own, which could bring the system to a standstill.
ulimit can be used with various options. To limit memory usage, use the options
listed in
Table 19.1, "ulimit: Setting Resources for the User"
Table 19.1
ulimit: Setting Resources for the User
-m
-v
-s
-c
-a
Systemwide entries can be made in /etc/profile. There, enable creation of core
files, needed by programmers for debugging. A normal user cannot increase the values
specified in /etc/profile by the system administrator, but can make special entries
in ~/.bashrc.
Example 19.4 ulimit: Settings in ~/.bashrc
# Limits of physical memory:
ulimit -m 98304
# Limits of virtual memory:
ulimit -v 98304
Memory amounts must be specified in KB. For more detailed information, see man
bash.
Maximum size of physical memory
Maximum size of virtual memory
Maximum size of the stack
Maximum size of the core files
Display of limits set
(page 429).
Special System Features
429

Advertisement

Table of Contents
loading

This manual is also suitable for:

Linux enterprise desktop 10 sp2

Table of Contents