1 |
On Thu, 2012-08-23 at 09:37 +0100, Jorge Almeida wrote: |
2 |
> On Thu, Aug 23, 2012 at 4:34 AM, Paul Hartman |
3 |
> <paul.hartman+gentoo@×××××.com> wrote: |
4 |
> > On Wed, Aug 22, 2012 at 7:24 PM, Jorge Almeida <jjalmeida@×××××.com> wrote: |
5 |
> >> Well, I found the problem: ulimit problem. Not the first time this crap bites |
6 |
> >> me, but I always forget. I just wish this was better documented, somewhere. |
7 |
> > |
8 |
> > I tried to use ulimit to change stack size system-wide once, to reduce |
9 |
> > RAM usage on 256M box, and it resulted in strange problems like this. |
10 |
> > I changed it back to default and leave it alone since then except for |
11 |
> > specific services because I don't fully understand the magic that |
12 |
> > happens inside the box. :) |
13 |
> > |
14 |
> Last time I had a problem like this I spent a lot of time googling about |
15 |
> ulimit/setting_limits/etc and found _nothing_ worth mentioning. This time I |
16 |
> run "ulimit -v unlimited", but the question is who put the former values |
17 |
> there? Some hard-coded default? I couldn't find anything in init scripts nor |
18 |
> in bash rc files. I know that on logout the value is lost (I had to run ulimit |
19 |
> again on chrooting). What is the appropriate file to put "ulimit -v unlimited" |
20 |
> in? Perhaps ~/.bash_profile? And how can root set different hard limits for |
21 |
> different users? Maybe some bash guru will step in?:) |
22 |
> |
23 |
> J.A. |
24 |
> |
25 |
|
26 |
probably rc.conf, or maybe login.defs depending on per user/or everyone |
27 |
|
28 |
BillK |
29 |
|
30 |
|
31 |
troll ~ # grep limit /etc/* |
32 |
/etc/freetds.conf: # 'text size' to a more reasonable limit |
33 |
/etc/jwhois.conf: rwhois-limit = 10; |
34 |
/etc/login.defs:# Enable setting of ulimit, umask, and niceness from passwd gecos field. |
35 |
/etc/login.defs:# a ":" delimited list of device names. Root logins will be allowed only |
36 |
/etc/login.defs:# If defined, ":" delimited list of "message of the day" files to |
37 |
/etc/login.defs:# ULIMIT Default "ulimit" value. |
38 |
/etc/login.defs:# (now it works with setrlimit too; ulimit is in 512-byte units) |
39 |
/etc/login.defs:# It supports passwords of unlimited length and longer salt strings. |
40 |
/etc/login.defs:# with the same group ID, to avoid limitation of the line length in the |
41 |
/etc/lynx.cfg:# For instance, if SESSION_LIMIT is 250, a per-session limit of 250 entries of |
42 |
/etc/lynx.cfg:# There is no fixed limit on the number of entries which can be restored; |
43 |
/etc/lynx.cfg:# It is limited only by available memory. |
44 |
/etc/lynx.cfg:# we need to limit the charset in outgoing mail to reduce |
45 |
/etc/lynx.cfg:# The news reading facility in Lynx is quite limited. Lynx does not provide a |
46 |
/etc/lynx.cfg:# The posting facility in Lynx is quite limited. Lynx does not provide a |
47 |
/etc/lynx.cfg:# COOKIE_ACCEPT_DOMAINS and COOKIE_REJECT_DOMAINS are comma-delimited lists |
48 |
/etc/lynx.cfg:# COOKIE_QUERY_INVALID_DOMAINS are comma-delimited lists of domains. |
49 |
/etc/lynx.cfg:# MAX_COOKIES_BUFFER are limits on the total number of cookies for each domain, |
50 |
/etc/lynx.cfg:# globally, and the per-cookie buffer size. These limits are by default large |
51 |
Binary file /etc/prelink.cache matches |
52 |
/etc/rc.conf:# Pass ulimit parameters |
53 |
/etc/rc.conf:#rc_ulimit="-u 30" |
54 |
/etc/smartd.conf:# -W D,I,C Monitor Temperature D)ifference, I)nformal limit, C)ritical limit |
55 |
/etc/wgetrc:# default quota is unlimited. |
56 |
troll ~ # |