* limit or ulimit
@ 2000-08-07 9:58 Hanchul Kim
2000-08-08 2:11 ` Stuart Midgley
0 siblings, 1 reply; 10+ messages in thread
From: Hanchul Kim @ 2000-08-07 9:58 UTC (permalink / raw)
To: axp-list
Hi All,
I would appreicate if someone tells me how I can change the "hard limit" of
"stacksize" as superuser.
I am currently running RedHat 6.2 on Compaq DS10.
Thank you.
Hanchul Kim
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: limit or ulimit
@ 2000-08-07 13:09 Kurt Ludwig
2000-08-07 20:52 ` W Bauske
0 siblings, 1 reply; 10+ messages in thread
From: Kurt Ludwig @ 2000-08-07 13:09 UTC (permalink / raw)
To: axp-list
Depends on which shell you're using as far as limit and ulimit go.
it's limit for tcsh and csh and ulimit for bash and sh
the default settings for bash/sh are held in /etc/profile and the defaults
for csh/tcsh are in /etc/csh.cshrc
for root, it reads the environment settings exclusively from /root/.bashrc
to set the hard limit specify a -H for bash...
i.e.:
#ulimit -H -s 4096
(this hard sets the limit of the stack size to 4096k in bash/sh)
for roo it reads the env from /root/.cshrc exclusively for csh/tcsh
#limit -H stacksize 4096k
(this hard sets the limit of the stack size to 4096k in tcsh/csh)
Kurt Ludwig
Hanchul Kim <hanchul@kriss.re.kr> wrote:
>Hi All,
>
>I would appreicate if someone tells me how I can change the "hard limit"
of
>"stacksize" as superuser.
>I am currently running RedHat 6.2 on Compaq DS10.
>
>Thank you.
>
>Hanchul Kim
>
>
>
>_______________________________________________
>Axp-list mailing list
>Axp-list@redhat.com
>https://listman.redhat.com/mailman/listinfo/axp-list
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: limit or ulimit
2000-08-07 13:09 limit or ulimit Kurt Ludwig
@ 2000-08-07 20:52 ` W Bauske
2000-08-07 21:08 ` Michal Jaegermann
0 siblings, 1 reply; 10+ messages in thread
From: W Bauske @ 2000-08-07 20:52 UTC (permalink / raw)
To: axp-list
Kurt Ludwig wrote:
>
> Depends on which shell you're using as far as limit and ulimit go.
> it's limit for tcsh and csh and ulimit for bash and sh
>
> the default settings for bash/sh are held in /etc/profile and the defaults
> for csh/tcsh are in /etc/csh.cshrc
>
> for root, it reads the environment settings exclusively from /root/.bashrc
> to set the hard limit specify a -H for bash...
> i.e.:
>
> #ulimit -H -s 4096
> (this hard sets the limit of the stack size to 4096k in bash/sh)
>
> for roo it reads the env from /root/.cshrc exclusively for csh/tcsh
> #limit -H stacksize 4096k
> (this hard sets the limit of the stack size to 4096k in tcsh/csh)
>
I see there is a file called /etc/security/limits.conf.
How do the shell settings interact with what's there?
Just curious.
Wes
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: limit or ulimit
2000-08-07 20:52 ` W Bauske
@ 2000-08-07 21:08 ` Michal Jaegermann
0 siblings, 0 replies; 10+ messages in thread
From: Michal Jaegermann @ 2000-08-07 21:08 UTC (permalink / raw)
To: axp-list
W Bauske wrote:
>
> I see there is a file called /etc/security/limits.conf.
This is used by PAM libraries and is described in PAM docs.
> How do the shell settings interact with what's there?
Your 'login' program is supposed to consult that, via pam stuff,
and set assorted limits.
This is really a mechanism by which you can adjust these
values for non-root accounts. The catch is that your
/etc/pam.d/login configuration file should include a line like
session required pam_limits.so
before this will work and I am not sure if a default one from
any distribution does this.
Michal
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: limit or ulimit
@ 2000-08-07 21:24 Kurt Ludwig
0 siblings, 0 replies; 10+ messages in thread
From: Kurt Ludwig @ 2000-08-07 21:24 UTC (permalink / raw)
To: axp-list
that's an interface through PAM to be able to set the limits for specific
users / groups instead of having a global config.
it basically makes it easier to admin the limits for various users/ groups
instead of writing all the code into /etc/profile and /etc/csh.cshrc
you don't have to write search code for specific things (group membership,
username, etc. etc.) in the default config files, because PAM can handle it
for you.
I'm not sure though if the /etc/security/limits.conf or /etc/profile /
/etc/csh.cshrc takes priority (I've always used the default configs for the
respective shells because I work between different Unicies and Linucies).
Kurt
"W Bauske" <wsb@paralleldata.com> wrote:
>Kurt Ludwig wrote:
>>
>> Depends on which shell you're using as far as limit and ulimit go.
>> it's limit for tcsh and csh and ulimit for bash and sh
>>
>> the default settings for bash/sh are held in /etc/profile and the
defaults
>> for csh/tcsh are in /etc/csh.cshrc
>>
>> for root, it reads the environment settings exclusively from
/root/.bashrc
>> to set the hard limit specify a -H for bash...
>> i.e.:
>>
>> #ulimit -H -s 4096
>> (this hard sets the limit of the stack size to 4096k in bash/sh)
>>
>> for roo it reads the env from /root/.cshrc exclusively for csh/tcsh
>> #limit -H stacksize 4096k
>> (this hard sets the limit of the stack size to 4096k in tcsh/csh)
>>
>
>I see there is a file called /etc/security/limits.conf.
>How do the shell settings interact with what's there?
>
>Just curious.
>
>
>Wes
>
>
>
>_______________________________________________
>Axp-list mailing list
>Axp-list@redhat.com
>https://listman.redhat.com/mailman/listinfo/axp-list
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: limit or ulimit
2000-08-07 9:58 Hanchul Kim
@ 2000-08-08 2:11 ` Stuart Midgley
2000-08-08 2:40 ` Hanchul Kim
0 siblings, 1 reply; 10+ messages in thread
From: Stuart Midgley @ 2000-08-08 2:11 UTC (permalink / raw)
To: axp-list, hanchul
To modify the hard limits for your entire system, modify the file
/etc/initscript
cat /etc/initscript
ulimit -Hs 262144
#Execute the program.
eval exec "$4"
Bascially, when all the /etc/rc.d scripts are executed, they will be run
with stack hardlimit set to 256MB. This includes the login control
process.
This means that in your .bashrc .cshrc you can do things like
ulimit
and get a hard stack size set to 256MB.
Stu.
Hanchul Kim wrote:
>
> Hi All,
>
> I would appreicate if someone tells me how I can change the "hard limit" of
> "stacksize" as superuser.
> I am currently running RedHat 6.2 on Compaq DS10.
>
> Thank you.
>
> Hanchul Kim
--
<--------------------------------------------------------------------->
Stuart Midgley | stuart@physics.uwa.edu.au
Department of Physics | +61 8 9380 7014 Work
University of Western Australia | +61 8 9380 1014 Fax
Nedlands WA 6907 | 0413 565920 Mob
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: limit or ulimit
2000-08-08 2:11 ` Stuart Midgley
@ 2000-08-08 2:40 ` Hanchul Kim
2000-08-08 2:45 ` Stuart Midgley
2000-08-08 12:41 ` Richard June
0 siblings, 2 replies; 10+ messages in thread
From: Hanchul Kim @ 2000-08-08 2:40 UTC (permalink / raw)
To: axp-list
On Tue, 8 Aug 2000, Stuart Midgley wrote:
> To modify the hard limits for your entire system, modify the file
> /etc/initscript
>
> cat /etc/initscript
>
> ulimit -Hs 262144
> #Execute the program.
> eval exec "$4"
>
> Bascially, when all the /etc/rc.d scripts are executed, they will be run
> with stack hardlimit set to 256MB. This includes the login control
> process.
>
> This means that in your .bashrc .cshrc you can do things like
>
> ulimit
>
> and get a hard stack size set to 256MB.
>
> Stu.
>
Thanks, Stu.
What you said is what I wanted to do. However, unfortunately, there is no
file like /etc/initscript on my system. I have tried to locate initscript
to get the following only:
/usr/doc/initscripts-5.00
/usr/doc/initscripts-5.00/sysconfig.txt
/usr/doc/initscripts-5.00/sysvinitfiles
/usr/man/man5/initscript.5.gz
Is there any alternatives for the /etc/initscript ?
For your reference, I am running "RedHat6.2 for Alpha".
Thanks again.
Hanchul
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: limit or ulimit
2000-08-08 2:40 ` Hanchul Kim
@ 2000-08-08 2:45 ` Stuart Midgley
2000-08-08 6:58 ` Hanchul Kim
2000-08-08 12:41 ` Richard June
1 sibling, 1 reply; 10+ messages in thread
From: Stuart Midgley @ 2000-08-08 2:45 UTC (permalink / raw)
To: hanchul; +Cc: axp-list
Sorry I should have included this info...
Just create the file.
vi /etc/initscript
and put the text in.
Then you will need to reboot.
Stu.
Hanchul Kim wrote:
> Thanks, Stu.
> What you said is what I wanted to do. However, unfortunately, there is no
> file like /etc/initscript on my system. I have tried to locate initscript
> to get the following only:
>
> /usr/doc/initscripts-5.00
> /usr/doc/initscripts-5.00/sysconfig.txt
> /usr/doc/initscripts-5.00/sysvinitfiles
> /usr/man/man5/initscript.5.gz
>
> Is there any alternatives for the /etc/initscript ?
> For your reference, I am running "RedHat6.2 for Alpha".
>
> Thanks again.
>
> Hanchul
--
<--------------------------------------------------------------------->
Stuart Midgley | stuart@physics.uwa.edu.au
Department of Physics | +61 8 9380 7014 Work
University of Western Australia | +61 8 9380 1014 Fax
Nedlands WA 6907 | 0413 565920 Mob
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: limit or ulimit
2000-08-08 2:45 ` Stuart Midgley
@ 2000-08-08 6:58 ` Hanchul Kim
0 siblings, 0 replies; 10+ messages in thread
From: Hanchul Kim @ 2000-08-08 6:58 UTC (permalink / raw)
To: Stuart Midgley; +Cc: axp-list
On Tue, 8 Aug 2000, Stuart Midgley wrote:
> Sorry I should have included this info...
>
> Just create the file.
>
> vi /etc/initscript
>
> and put the text in.
>
> Then you will need to reboot.
>
> Stu.
>
Stu,
It works! Thanks a lot.
Hanchul
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: limit or ulimit
2000-08-08 2:40 ` Hanchul Kim
2000-08-08 2:45 ` Stuart Midgley
@ 2000-08-08 12:41 ` Richard June
1 sibling, 0 replies; 10+ messages in thread
From: Richard June @ 2000-08-08 12:41 UTC (permalink / raw)
To: axp-list
The first initscript that gets run on redhat is /etc/rc.d/rc they just
pass the runlevel to it. hope that's what you were looking for.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2000-08-08 12:19 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-08-07 13:09 limit or ulimit Kurt Ludwig
2000-08-07 20:52 ` W Bauske
2000-08-07 21:08 ` Michal Jaegermann
-- strict thread matches above, loose matches on Subject: below --
2000-08-07 21:24 Kurt Ludwig
2000-08-07 9:58 Hanchul Kim
2000-08-08 2:11 ` Stuart Midgley
2000-08-08 2:40 ` Hanchul Kim
2000-08-08 2:45 ` Stuart Midgley
2000-08-08 6:58 ` Hanchul Kim
2000-08-08 12:41 ` Richard June
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox