summaryrefslogtreecommitdiffstats
path: root/urunlevel/runlevel/sysconfig/ulimit
blob: 4b5de8baf91a811d401fac04b71790bc09c80f1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
## Path System/Limits
## Description: Set single process limits (memory, CPU, core ...)
## Command: killall mingetty	
#
# Both hard and soft limits may be set. Soft limits are enough if you
# trust the users. Then, the soft limits may protect your machine 
# against suffering too much from an application leaking memory.
# If you don't trust your users, you may use hard limits to prevent
# the amount of harm they can do to the machine. Note that this is
# only partially effective: Memory limits are per process, not per
# user. 
# A setting of 0 will skip the adjustment of the particular limit
# (except for core file sizes), thus the default will remain in
# place, which is "unlimited" for most limits. If a value is unset,
# no adjustment will be made either.
# The memory sizes are percentages, the other values are absolute
# numbers.
# Note that the limits only get effective after a session is 
# restarted by init. Thus exiting mingetty (^D on console login)
# or changing runlevel to 3 and back to 5 for xdm is needed.
# Rebooting helps as well, of course.
#  
## Type:	integer(0:99)
## Default:	0
# 
# Limit the amount of virtual memory a single process may allocate.
# Hard limit: Can not be increased by non-root.
# This value corresponds to ulimit -Hv
# Parameter is in percent of virtual (phys+swap) memory, 0 means 
# no adjustment (unlimited).
#
HARDVIRTUALLIMIT=0

## Type:	integer(0:99)
## Default:	80
# 
# Limit the amount of virtual memory a single process may allocate.
# Soft limit: Can be increased by non-root up to the hard limit.
# This value corresponds to ulimit -Sv
# Parameter is in percent of virtual (phys+swap) memory, 0 means 
# no adjustment (unlimited).
#
SOFTVIRTUALLIMIT=80

## Type:	integer(0:99)
## Default:	0
#
# Limit the amount of resident memory a single process may occupy.
# The process virtual memory can grow larger than this limit, but
# it can not get more resident memory. 
# Hard limit: Can not be increased by non-root.
# This value corresponds to ulimit -Hm
# Parameter is in percent of physical memory, 0 means no adjustment
# (unlimited).
#
HARDRESIDENTLIMIT=0

## Type:	integer(0:99)
## Default:	85
#
# Limit the amount of resident memory a single process may occupy.
# The process virtual memory can grow larger than this limit, but
# it can not get more resident memory. 
# Soft limit: Can be increased by non-root up to the hard limit.
# This value corresponds to ulimit -Sm
# Parameter is in percent of physical memory, 0 means no adjustment
# (unlimited).
#
SOFTRESIDENTLIMIT=85

## Type:	integer(0:99)
## Default:	0
#
# Limit the size of the stack that a single process may allocate.
# Normally, it should be enough to limit virtual and resident size.
# Note that with NPTL, the stack limit determines the stack SIZE
# of multithreaded programs and should thus better not be set.
# Hard limit: Can not be increased by non-root.
# This value corresponds to ulimit -Hs
# Parameter is in percent of physical memory, 0 means no adjustment
# (unlimited).
#
HARDSTACKLIMIT=0

## Type:	integer(0:99)
## Default:	0
#
# Limit the size of the stack that a single process may allocate.
# Normally, it should be enough to limit virtual and resident size.
# Note that with NPTL, the stack limit determines the stack SIZE
# of multithreaded programs and should thus better not be set.
# Soft limit: Can be increased by non-root up to the hard limit.
# This value corresponds to ulimit -Ss
# Parameter is in percent of physical memory, 0 means no adjustment
# (unlimited).
#
SOFTSTACKLIMIT=0

## Type:	integer(0:99)
## Default:	0
#
# Limit the size of the data segment that a single process may allocate.
# Normally, it should be enough to limit virtual and resident size.
# Hard limit: Can not be increased by non-root.
# This value corresponds to ulimit -Hd
# Parameter is in percent of physical memory, 0 means no adjustment
# (unlimited).
#
HARDDATALIMIT=0

## Type:	integer(0:99)
## Default:	0
#
# Limit the size of the data segment that a single process may allocate.
# Normally, it should be enough to limit virtual and resident size.
# Soft limit: Can be increased by non-root up to the hard limit.
# This value corresponds to ulimit -Sd
# Parameter is in percent of physical memory, 0 means no adjustment
# (unlimited).
#
SOFTDATALIMIT=0

## Type:	integer(0:99)
## Default:	42
#
# Limit the size of the memory that a single process may lock in
# physical memory (thus preventing it to be swapped out).
# Hard limit: Can not be increased by non-root.
# This value corresponds to ulimit -Hl
# Parameter is in percent of physical memory, 0 means no adjustment
# (unlimited).
#
HARDLOCKLIMIT=0

## Type:	integer(0:99)
## Default:	42
#
# Limit the size of the memory that a single process may lock in
# physical memory (thus preventing it to be swapped out).
# Soft limit: Can be increased by non-root up to the hard limit.
# This value corresponds to ulimit -Sl
# Parameter is in percent of physical memory, 0 means no adjustment
# (unlimited).
#
SOFTLOCKLIMIT=0

## Type:	integer
## Default:	0
#
# Limit the amount of CPU time for a single process.
# Should not normally be set to non-zero values.
# Hard limit: Process will be killed.
# Corresponds to ulimit -Ht.
# Parameter is in seconds, 0 means no adjustment (unlimited).
# 
HARDCPULIMIT=0

## Type:	integer
## Default:	0
#
# Limit the amount of CPU time for a single process.
# Should not normally be set to non-zero values.
# Soft limit: Process will be sent SIGXCPU.
# Corresponds to ulimit -St.
# Parameter is in seconds, 0 means no adjustment (unlimited).
# 
SOFTCPULIMIT=0

## Type:	integer
## Default:	8192
#
# Limit the amount of file descriptors that a process 
# may have open at any time. Linux default is 1024.
# Hard limit: Can not be increased by non-root.
# Corresponds to ulimit -Hn.
# 0 means no adjustment (system default: 1024).
# 
HARDFDLIMIT=8192

## Type:	integer
## Default:	1024
#
# Limit the amount of file descriptors that a process 
# may have open at any time. Linux default is 1024.
# Soft limit: Can be increased by non-root up to the hard limit.
# Corresponds to ulimit -Sn.
# 0 means no adjustment (system default: 1024).
# 
SOFTFDLIMIT=1024

## Type:	string
## Default:	"unlimited"
#
# Limit the size of core dump files. 0 turns them off.
# Hard limit: Can not be increased by non-root.
# Corresponds to ulimit -Hc.
# Parameter is in blocks (1k), 0 means turning core files off.
# 
HARDCORELIMIT="unlimited"

## Type:	string
## Default:	"0"
#
# Limit the size of core dump files. 0 turns them off.
# Soft limit: Can be increased by non-root up to the hard limit.
# Corresponds to ulimit -Sc.
# Parameter is in blocks (1k), 0 means turning core files off.
# 
SOFTCORELIMIT="0"

## Type:	string
## Default:	"unlimited"
#
# Limit the size of files a user may create.
# Hard limit: Can not be increased by non-root.
# Corresponds to ulimit -Hf.
# Parameter is in blocks (1k), 0 means no adjustment (unlimited).
# 
HARDFILESZLIMIT="unlimited"

## Type:	string
## Default:	"unlimited"
#
# Limit the size of files a user may create.
# Soft limit: Can be increased by non-root up to the hard limit.
# Corresponds to ulimit -Sf.
# Parameter is in blocks (1k), 0 means no adjustment (unlimited).
# 
SOFTFILESZLIMIT="unlimited"

## Type:	string
## Default:	"0"
#
# Limit the number of processes that a single user may have at the
# same time.
# Hard limit: Can not be increased by non-root.
# Corresponds to ulimit -Hu.
# 0 means no adjustment (system default is a few thousands, exact 
# value depends on the architecture).
# 
HARDPROCESSLIMIT="0"

## Type:	string
## Default:	"0"
#
# Limit the number of processes that a single user may have at the
# same time.
# Soft limit: Can be increased by non-root up to the hard limit.
# Corresponds to ulimit -Su.
# 0 means no adjustment (system default is a few thousands, exact 
# value depends on the architecture).
# 
SOFTPROCESSLIMIT="0"