summaryrefslogtreecommitdiffstats
path: root/urunlevel/runlevel/sysconfig/ulimit
diff options
context:
space:
mode:
Diffstat (limited to 'urunlevel/runlevel/sysconfig/ulimit')
-rw-r--r--urunlevel/runlevel/sysconfig/ulimit253
1 files changed, 253 insertions, 0 deletions
diff --git a/urunlevel/runlevel/sysconfig/ulimit b/urunlevel/runlevel/sysconfig/ulimit
new file mode 100644
index 0000000..4b5de8b
--- /dev/null
+++ b/urunlevel/runlevel/sysconfig/ulimit
@@ -0,0 +1,253 @@
1## Path System/Limits
2## Description: Set single process limits (memory, CPU, core ...)
3## Command: killall mingetty
4#
5# Both hard and soft limits may be set. Soft limits are enough if you
6# trust the users. Then, the soft limits may protect your machine
7# against suffering too much from an application leaking memory.
8# If you don't trust your users, you may use hard limits to prevent
9# the amount of harm they can do to the machine. Note that this is
10# only partially effective: Memory limits are per process, not per
11# user.
12# A setting of 0 will skip the adjustment of the particular limit
13# (except for core file sizes), thus the default will remain in
14# place, which is "unlimited" for most limits. If a value is unset,
15# no adjustment will be made either.
16# The memory sizes are percentages, the other values are absolute
17# numbers.
18# Note that the limits only get effective after a session is
19# restarted by init. Thus exiting mingetty (^D on console login)
20# or changing runlevel to 3 and back to 5 for xdm is needed.
21# Rebooting helps as well, of course.
22#
23## Type: integer(0:99)
24## Default: 0
25#
26# Limit the amount of virtual memory a single process may allocate.
27# Hard limit: Can not be increased by non-root.
28# This value corresponds to ulimit -Hv
29# Parameter is in percent of virtual (phys+swap) memory, 0 means
30# no adjustment (unlimited).
31#
32HARDVIRTUALLIMIT=0
33
34## Type: integer(0:99)
35## Default: 80
36#
37# Limit the amount of virtual memory a single process may allocate.
38# Soft limit: Can be increased by non-root up to the hard limit.
39# This value corresponds to ulimit -Sv
40# Parameter is in percent of virtual (phys+swap) memory, 0 means
41# no adjustment (unlimited).
42#
43SOFTVIRTUALLIMIT=80
44
45## Type: integer(0:99)
46## Default: 0
47#
48# Limit the amount of resident memory a single process may occupy.
49# The process virtual memory can grow larger than this limit, but
50# it can not get more resident memory.
51# Hard limit: Can not be increased by non-root.
52# This value corresponds to ulimit -Hm
53# Parameter is in percent of physical memory, 0 means no adjustment
54# (unlimited).
55#
56HARDRESIDENTLIMIT=0
57
58## Type: integer(0:99)
59## Default: 85
60#
61# Limit the amount of resident memory a single process may occupy.
62# The process virtual memory can grow larger than this limit, but
63# it can not get more resident memory.
64# Soft limit: Can be increased by non-root up to the hard limit.
65# This value corresponds to ulimit -Sm
66# Parameter is in percent of physical memory, 0 means no adjustment
67# (unlimited).
68#
69SOFTRESIDENTLIMIT=85
70
71## Type: integer(0:99)
72## Default: 0
73#
74# Limit the size of the stack that a single process may allocate.
75# Normally, it should be enough to limit virtual and resident size.
76# Note that with NPTL, the stack limit determines the stack SIZE
77# of multithreaded programs and should thus better not be set.
78# Hard limit: Can not be increased by non-root.
79# This value corresponds to ulimit -Hs
80# Parameter is in percent of physical memory, 0 means no adjustment
81# (unlimited).
82#
83HARDSTACKLIMIT=0
84
85## Type: integer(0:99)
86## Default: 0
87#
88# Limit the size of the stack that a single process may allocate.
89# Normally, it should be enough to limit virtual and resident size.
90# Note that with NPTL, the stack limit determines the stack SIZE
91# of multithreaded programs and should thus better not be set.
92# Soft limit: Can be increased by non-root up to the hard limit.
93# This value corresponds to ulimit -Ss
94# Parameter is in percent of physical memory, 0 means no adjustment
95# (unlimited).
96#
97SOFTSTACKLIMIT=0
98
99## Type: integer(0:99)
100## Default: 0
101#
102# Limit the size of the data segment that a single process may allocate.
103# Normally, it should be enough to limit virtual and resident size.
104# Hard limit: Can not be increased by non-root.
105# This value corresponds to ulimit -Hd
106# Parameter is in percent of physical memory, 0 means no adjustment
107# (unlimited).
108#
109HARDDATALIMIT=0
110
111## Type: integer(0:99)
112## Default: 0
113#
114# Limit the size of the data segment that a single process may allocate.
115# Normally, it should be enough to limit virtual and resident size.
116# Soft limit: Can be increased by non-root up to the hard limit.
117# This value corresponds to ulimit -Sd
118# Parameter is in percent of physical memory, 0 means no adjustment
119# (unlimited).
120#
121SOFTDATALIMIT=0
122
123## Type: integer(0:99)
124## Default: 42
125#
126# Limit the size of the memory that a single process may lock in
127# physical memory (thus preventing it to be swapped out).
128# Hard limit: Can not be increased by non-root.
129# This value corresponds to ulimit -Hl
130# Parameter is in percent of physical memory, 0 means no adjustment
131# (unlimited).
132#
133HARDLOCKLIMIT=0
134
135## Type: integer(0:99)
136## Default: 42
137#
138# Limit the size of the memory that a single process may lock in
139# physical memory (thus preventing it to be swapped out).
140# Soft limit: Can be increased by non-root up to the hard limit.
141# This value corresponds to ulimit -Sl
142# Parameter is in percent of physical memory, 0 means no adjustment
143# (unlimited).
144#
145SOFTLOCKLIMIT=0
146
147## Type: integer
148## Default: 0
149#
150# Limit the amount of CPU time for a single process.
151# Should not normally be set to non-zero values.
152# Hard limit: Process will be killed.
153# Corresponds to ulimit -Ht.
154# Parameter is in seconds, 0 means no adjustment (unlimited).
155#
156HARDCPULIMIT=0
157
158## Type: integer
159## Default: 0
160#
161# Limit the amount of CPU time for a single process.
162# Should not normally be set to non-zero values.
163# Soft limit: Process will be sent SIGXCPU.
164# Corresponds to ulimit -St.
165# Parameter is in seconds, 0 means no adjustment (unlimited).
166#
167SOFTCPULIMIT=0
168
169## Type: integer
170## Default: 8192
171#
172# Limit the amount of file descriptors that a process
173# may have open at any time. Linux default is 1024.
174# Hard limit: Can not be increased by non-root.
175# Corresponds to ulimit -Hn.
176# 0 means no adjustment (system default: 1024).
177#
178HARDFDLIMIT=8192
179
180## Type: integer
181## Default: 1024
182#
183# Limit the amount of file descriptors that a process
184# may have open at any time. Linux default is 1024.
185# Soft limit: Can be increased by non-root up to the hard limit.
186# Corresponds to ulimit -Sn.
187# 0 means no adjustment (system default: 1024).
188#
189SOFTFDLIMIT=1024
190
191## Type: string
192## Default: "unlimited"
193#
194# Limit the size of core dump files. 0 turns them off.
195# Hard limit: Can not be increased by non-root.
196# Corresponds to ulimit -Hc.
197# Parameter is in blocks (1k), 0 means turning core files off.
198#
199HARDCORELIMIT="unlimited"
200
201## Type: string
202## Default: "0"
203#
204# Limit the size of core dump files. 0 turns them off.
205# Soft limit: Can be increased by non-root up to the hard limit.
206# Corresponds to ulimit -Sc.
207# Parameter is in blocks (1k), 0 means turning core files off.
208#
209SOFTCORELIMIT="0"
210
211## Type: string
212## Default: "unlimited"
213#
214# Limit the size of files a user may create.
215# Hard limit: Can not be increased by non-root.
216# Corresponds to ulimit -Hf.
217# Parameter is in blocks (1k), 0 means no adjustment (unlimited).
218#
219HARDFILESZLIMIT="unlimited"
220
221## Type: string
222## Default: "unlimited"
223#
224# Limit the size of files a user may create.
225# Soft limit: Can be increased by non-root up to the hard limit.
226# Corresponds to ulimit -Sf.
227# Parameter is in blocks (1k), 0 means no adjustment (unlimited).
228#
229SOFTFILESZLIMIT="unlimited"
230
231## Type: string
232## Default: "0"
233#
234# Limit the number of processes that a single user may have at the
235# same time.
236# Hard limit: Can not be increased by non-root.
237# Corresponds to ulimit -Hu.
238# 0 means no adjustment (system default is a few thousands, exact
239# value depends on the architecture).
240#
241HARDPROCESSLIMIT="0"
242
243## Type: string
244## Default: "0"
245#
246# Limit the number of processes that a single user may have at the
247# same time.
248# Soft limit: Can be increased by non-root up to the hard limit.
249# Corresponds to ulimit -Su.
250# 0 means no adjustment (system default is a few thousands, exact
251# value depends on the architecture).
252#
253SOFTPROCESSLIMIT="0"