Novell LINUX ENTERPRISE SERVER 10 SP2 - INSTALLATION AND ADMINISTRATION Installation Manual page 447

Hide thumbs Also See for LINUX ENTERPRISE SERVER 10 SP2 - INSTALLATION AND ADMINISTRATION:
Table of Contents

Advertisement

22.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 22.1, "ulimit: Setting Resources for the User" (page 429).
Table 22.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 22.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
Special System Features
429

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10 sp3

Table of Contents