[opensuse] Incrase softlimit
Dear All, Need advise how to incrase the softlimit -n. Here is my current value; ----snip---- OpenSuSE:~ # ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 7559 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) 829004 open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 7559 virtual memory (kbytes, -v) 1615600 file locks (-x) unlimited ---snip--- I want to increase it to 8192. Change the file "/etc/security/limit.conf" seems not help * soft nofile 8192 Thx & Rgds, Wong -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 14 of March 2010, Wong wrote:
Dear All,
Need advise how to incrase the softlimit -n.
Here is my current value;
----snip----
OpenSuSE:~ # ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 7559 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) 829004 open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 7559 virtual memory (kbytes, -v) 1615600 file locks (-x) unlimited
---snip---
I want to increase it to 8192.
Change the file "/etc/security/limit.conf" seems not help
* soft nofile 8192
You need to login again for the setting to take effect.
Thx & Rgds,
Wong
Kind regards, Peter -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi Peter, I even reboot the machine but no change. Is it any setting other than /etc/security/limit.conf? Wong ----- Original Message ----- From: <auxsvr@gmail.com> To: <opensuse@opensuse.org> Sent: Sunday, March 14, 2010 18:45 Subject: Re: [opensuse] Incrase softlimit
On Sunday 14 of March 2010, Wong wrote:
Dear All,
Need advise how to incrase the softlimit -n.
Here is my current value;
----snip----
OpenSuSE:~ # ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 7559 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) 829004 open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 7559 virtual memory (kbytes, -v) 1615600 file locks (-x) unlimited
---snip---
I want to increase it to 8192.
Change the file "/etc/security/limit.conf" seems not help
* soft nofile 8192
You need to login again for the setting to take effect.
Thx & Rgds,
Wong
Kind regards, Peter -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Wong wrote:
Hi Peter,
I even reboot the machine but no change.
Is it any setting other than /etc/security/limit.conf?
Yes, /etc/sysconfig/ulimit which is parsed by /etc/initscript and /etc/init.d/multipathd also sets the -n (if activated) Try find /etc -type f | xargs grep ulimit Pit -- Dr. Peter "Pit" Suetterlin http://www.astro.su.se/~pit Institute for Solar Physics Tel.: +34 922 405 590 (Spain) P.Suetterlin@royac.iac.es +46 8 5537 8507 (Sweden) Peter.Suetterlin@astro.su.se -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Wong wrote:
Hi Peter,
I even reboot the machine but no change.
Is it any setting other than /etc/security/limit.conf?
Yes, /etc/sysconfig/ulimit which is parsed by /etc/initscript and /etc/init.d/multipathd also sets the -n (if activated)
Try find /etc -type f | xargs grep ulimit
Pit
Hi Peter, Below the captured report. I run SQUID and need FILE DESCRIPTOR more than 1024. That is why I want to increase the softlimit -n to higher value. Currently I set to 16384, but Squid still reports FD 1024. Thanks. Wong ----Snip--- grep: /etc/zypp/repos.d/openSUSE: No such file or directory grep: 11.1-0.repo: No such file or directory /etc/csh.login:# ulimit package instead to set up ulimits and your PATH. /etc/sysconfig/ulimit:# This value corresponds to ulimit -Hv /etc/sysconfig/ulimit:# This value corresponds to ulimit -Sv /etc/sysconfig/ulimit:# This value corresponds to ulimit -Hm /etc/sysconfig/ulimit:# This value corresponds to ulimit -Sm /etc/sysconfig/ulimit:# This value corresponds to ulimit -Hs /etc/sysconfig/ulimit:# This value corresponds to ulimit -Ss /etc/sysconfig/ulimit:# This value corresponds to ulimit -Hd /etc/sysconfig/ulimit:# This value corresponds to ulimit -Sd /etc/sysconfig/ulimit:# This value corresponds to ulimit -Hl /etc/sysconfig/ulimit:# This value corresponds to ulimit -Sl /etc/sysconfig/ulimit:# Corresponds to ulimit -Ht. /etc/sysconfig/ulimit:# Corresponds to ulimit -St. /etc/sysconfig/ulimit:# Corresponds to ulimit -Hn. /etc/sysconfig/ulimit:# Corresponds to ulimit -Sn. /etc/sysconfig/ulimit:# Corresponds to ulimit -Hc. /etc/sysconfig/ulimit:# Corresponds to ulimit -Sc. /etc/sysconfig/ulimit:# Corresponds to ulimit -Hf. /etc/sysconfig/ulimit:# Corresponds to ulimit -Sf. /etc/sysconfig/ulimit:# Corresponds to ulimit -Hu. /etc/sysconfig/ulimit:# Corresponds to ulimit -Su. /etc/sysconfig/apache2:# Note about ulimits: /etc/sysconfig/apache2:# if you want to set ulimits, e.g. to increase the max number of open file handle, /etc/sysconfig/apache2:# simply write the ulimit commands into that file. /etc/sysconfig/apache2:# ulimit -n 16384 /etc/sysconfig/apache2:# ulimit -H -n 16384 /etc/sysconfig/apache2:# ulimit -c unlimited /etc/sysconfig/apache2:# See the output of "help ulimit" in the bash, or "man 1 ulimit". /etc/initscript:# Set ulimits from sysconfig /etc/initscript:# Set umask to safe level, and set ulimits /etc/initscript:if test -r /etc/sysconfig/ulimit; then /etc/initscript: . /etc/sysconfig/ulimit /etc/initscript: test -z "$SARGS" || ulimit $SARGS /etc/initscript: test -z "$HARGS" || ulimit $HARGS /etc/initscript: #test -z "$SARGS2" || ulimit $SARGS2 /etc/initscript: test -z "$SARGS" || ulimit $SARGS /etc/initscript: test -z "$HARGS" || ulimit $HARGS /etc/initscript: test -z "$SARGS2" || ulimit $SARGS2 /etc/init.d/boot: #ulimit -c unlimited /etc/init.d/multipathd: ulimit -n $MAX_OPEN_FDS /etc/init.d/boot.multipath: ulimit -n $MAX_OPEN_FDS /etc/init.d/apache2:# Note about ulimits: /etc/init.d/apache2:# if you want to set ulimits, e.g. to increase the max number of open file handle, /etc/init.d/apache2:# simply write the ulimit commands into that file. /etc/init.d/apache2:# ulimit -n 16384 /etc/init.d/apache2:# ulimit -H -n 16384 /etc/init.d/apache2:# ulimit -c unlimited /etc/init.d/apache2:# See the output of "help ulimit" in the bash, or "man 1 ulimit". /etc/profile:# ulimit package instead to set up ulimits and your PATH. /etc/profile:# ulimit -Sc 0 # don't create core files /etc/profile:# ulimit -Sd $(ulimit -Hd) /etc/profile:# ulimit -Ss $(ulimit -Hs) /etc/profile:# ulimit -Sm $(ulimit -Hm) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
"Wong" <wongsuse@telkom.net> writes:
I even reboot the machine but no change.
Is it any setting other than /etc/security/limit.conf?
/etc/sysconfig/ulimit Charles -- A Linux machine! because a 486 is a terrible thing to waste! (By jjs@wintermute.ucr.edu, Joe Sloan)
participants (4)
-
auxsvr@gmail.com
-
Charles Philip Chan
-
Peter Suetterlin
-
Wong