Re: Setting ulimit values in files on Redhat AS 2.1

From: Jean-David Beyer (jdbeyer_at_exit109.com)
Date: 06/30/04


Date: Wed, 30 Jun 2004 07:23:05 -0400

P.T. Breuer wrote:
> Pascal Legrand <Pascal.Legrand@univ-orleans.fr> wrote:
>
>>>>I need to set a few parameters at boot time.
>>>>
>>>>They need to be:
>>>> stack size (kbytes) (ulimit -s): 32768
>>>> open files (ulimit -n): 4096
>>>> max user processes (ulimit -u): 16384
>>>
>>>$which ulimit
>>>ulimit: shell built-in command
>>>
>>>try your shell's configuration file.
>>>Assuming you use bash, try /etc/profile
>>>
>>
>> cat /proc/sys/fs/file-max
>
>
> Nothing to do with the question - those are system-wide limits, not his
> personal limits. Please use ulimit.
>
> Peter

Peter: that is really an interesting response.

You see, I inferred that he had just installed RHEL 2.1 ES and that he was
the sysadmin and wanted to set system-wide limits. It never occurred to me
that he just wanted to limit his own personal stuff. It is still not clear
to me which the O.P. is, though.

If it is just him, of course he could put ulimits into .bashrc or
.bash_profile (since default on Red Hat systems is to use bash shell). And
if he does not know the bash shell, he could read the O'Reilly book on it,
or even do man bash (although man bash is a bit too concise for a newbie).

-- 
   .~.  Jean-David Beyer           Registered Linux User 85642.
   /V\                             Registered Machine   241939.
  /( )\ Shrewsbury, New Jersey     http://counter.li.org
  ^^-^^ 07:15:00 up 2 days, 14:44, 3 users, load average: 1.16, 1.08, 0.67


Relevant Pages

  • Re: Will wget download -
    ... Bob Goodwin - W2BOD wrote: ... My isp limits me to 5G down and 17G up in a 30 day period so I hate to waste bw. ... ulimit ... If it says something that starts with a number less than 3, you may not be able to complete the download. ...
    (Fedora)
  • Re: file descriptors
    ... >> File descriptor limits are assigned per process. ... not matter what you define with ulimit. ... The default values for "cur" and "max" differs in each Solaris version. ... The value rlim_fd_cur stands for soft limits while rlim_fd_max for hard ...
    (comp.unix.solaris)
  • ulimit on RH9 now
    ... to allow users to work with a larger soft and hard limit on their number ... open files available (ulimit -nS and ulimit -nH). ... In /etc/security/limits.conf you add the higher limits for both hard and ...
    (RedHat)
  • Re: Bash builtin ulimit question
    ... Thanks everyone for the replies! ... >>all my current limits. ... is why does ulimit behave like this? ... > or to prevent naive users from consuming excessive resources. ...
    (comp.unix.shell)
  • Re: CPU/Memory limiting
    ... My goal is not to enforce these limits at compile time. ... I don't allow you to allocate more memory. ... now need a system administrator to detect when a process is being a CPU ... ulimit, it is unceremoniously terminated and expunged from the system. ...
    (comp.lang.ruby)