Re: limits.conf problem
Hello Patrick Hsieh <pahud@pahud.net>,
Have to use ulimit -aH to read the hard limit. ^_^
My problems:
1. What's the difference btween soft and hard limit?
What will happen if I exceed the soft limit but in the hard limit?
2. How to tune the stack size, max locked memory and max memory size?
My Debian GNU/Linux server has 1G RAM as a productive web server.
On Thu, 04 Apr 2002 20:33:40 +0800
Patrick Hsieh <pahud@pahud.net> wrote:
> Hello list,
> This is my limits.conf for testing Debian GNU/Linux server:
>
> * hard core 0
> * hard nofile 1024
> * hard rss 10000
> * hard nproc 100
> * hard stack 102400
> root hard core 0
> root hard nofile 65536
> #root hard rss 400000
> root hard nproc 65536
>
>
>
> Please notice that I set 102400 KB of stack size for individual user.
> However, when I ssh login and ulimit -a, I get
>
>
> core file size (blocks, -c) 0
> data seg size (kbytes, -d) unlimited
> file size (blocks, -f) unlimited
> max locked memory (kbytes, -l) unlimited
> max memory size (kbytes, -m) 10000
> open files (-n) 1024
> pipe size (512 bytes, -p) 8
> stack size (kbytes, -s) 8192
> cpu time (seconds, -t) unlimited
> max user processes (-u) 100
> virtual memory (kbytes, -v) unlimited
>
>
> The stack size become 8192 only. Is there any configuration that make
> the limit above limits.conf?
>
>
> --
> Patrick Hsieh <pahud@pahud.net>
>
> GPG public key http://pahud.net/pubkeys/pahudatpahud.gpg
>
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
--
Patrick Hsieh <pahud@pahud.net>
GPG public key http://pahud.net/pubkeys/pahudatpahud.gpg
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: