Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Setting default ulimits
@ 1998-03-26  5:00 Jim Reus
  1998-03-26  5:00 ` Hans Schwengeler
  1998-03-27  5:00 ` Mark & Suzanne (remove the dot to reply)
  0 siblings, 2 replies; 4+ messages in thread
From: Jim Reus @ 1998-03-26  5:00 UTC (permalink / raw)



How do I set the default ulimits?  In particular I need larger memory
limits. Currently the limits are:

>ulimit -a
time(seconds)        unlimited
file(blocks)         unlimited
data(kbytes)         131072		<---+
stack(kbytes)        2048               <---+--- I'd like to increase
these
memory(kbytes)       150672             <---+
coredump(blocks)     unlimited
nofiles(descriptors) 4096
vmemory(kbytes)      1048576

I know that the (csh) command ulimit may be used to reduce the limits
but not increase them (as per man page) is there some rc file somewhere
that sets the max size?

-- jim

-----------------------------------------------------------------------
  Jim Reus                                 | Internet: reus@llnl.gov
  Lawrence Livermore Nat'l Laboratory      | Phone:    (510) 424-3172
  P.O. Box 808 - Mail Stop L-170           | FAX:      (510) 422-3389
  Livermore, CA 94550                      | Location: B132, Room 1038
-----------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Setting default ulimits
  1998-03-26  5:00 Setting default ulimits Jim Reus
@ 1998-03-26  5:00 ` Hans Schwengeler
  1998-03-27  5:00   ` Mark & Suzanne (remove the dot to reply)
  1998-03-27  5:00 ` Mark & Suzanne (remove the dot to reply)
  1 sibling, 1 reply; 4+ messages in thread
From: Hans Schwengeler @ 1998-03-26  5:00 UTC (permalink / raw)



In article <351A8A78.69E28EF2@llnl.gov>,
	Jim Reus <reus@llnl.gov> writes:
> How do I set the default ulimits?  In particular I need larger memory
> limits. Currently the limits are:
> 
>>ulimit -a
> time(seconds)        unlimited
> file(blocks)         unlimited
> data(kbytes)         131072		<---+
> stack(kbytes)        2048               <---+--- I'd like to increase
> these
> memory(kbytes)       150672             <---+
> coredump(blocks)     unlimited
> nofiles(descriptors) 4096
> vmemory(kbytes)      1048576
> 
> I know that the (csh) command ulimit may be used to reduce the limits
> but not increase them (as per man page) is there some rc file somewhere
> that sets the max size?
> 
> -- jim
> 
> -----------------------------------------------------------------------
>   Jim Reus                                 | Internet: reus@llnl.gov
>   Lawrence Livermore Nat'l Laboratory      | Phone:    (510) 424-3172
>   P.O. Box 808 - Mail Stop L-170           | FAX:      (510) 422-3389
>   Livermore, CA 94550                      | Location: B132, Room 1038
> -----------------------------------------------------------------------

Dear Jim,

	on my dUnix 4.0D system 'limit stacksize 8096 kb' works
(for example). 'ulimit' seems to be broken.

Yours, Hans.
-- 
===============================================================================
Hans Schwengeler                DECNET/SPAN:	20579::48130::SCHWENGELER
Astronomical Institute		INTERNET:	schweng@astro.unibas.ch
University of Basel                             schwengeler@urz.unibas.ch
Venusstrasse 7
CH-4102 Binningen               PHONE:    +41 61 20 55 422
Switzerland                     FAX:      +41 61 20 55 455
===============================================================================



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Setting default ulimits
  1998-03-26  5:00 ` Hans Schwengeler
@ 1998-03-27  5:00   ` Mark & Suzanne (remove the dot to reply)
  0 siblings, 0 replies; 4+ messages in thread
From: Mark & Suzanne (remove the dot to reply) @ 1998-03-27  5:00 UTC (permalink / raw)



Hans Schwengeler wrote:
> 
> In article <351A8A78.69E28EF2@llnl.gov>,
>         Jim Reus <reus@llnl.gov> writes:
> > How do I set the default ulimits?  In particular I need larger memory
> > limits. Currently the limits are:
> >
> >>ulimit -a
> > time(seconds)        unlimited
> > file(blocks)         unlimited
> > data(kbytes)         131072           <---+
> > stack(kbytes)        2048               <---+--- I'd like to increase
> > these
> > memory(kbytes)       150672             <---+
> > coredump(blocks)     unlimited
> > nofiles(descriptors) 4096
> > vmemory(kbytes)      1048576
> >
> > I know that the (csh) command ulimit may be used to reduce the limits
> > but not increase them (as per man page) is there some rc file somewhere
> > that sets the max size?
> >
> > -- jim
> >
> > -----------------------------------------------------------------------
> >   Jim Reus                                 | Internet: reus@llnl.gov
> >   Lawrence Livermore Nat'l Laboratory      | Phone:    (510) 424-3172
> >   P.O. Box 808 - Mail Stop L-170           | FAX:      (510) 422-3389
> >   Livermore, CA 94550                      | Location: B132, Room 1038
> > -----------------------------------------------------------------------
> 
> Dear Jim,
> 
>         on my dUnix 4.0D system 'limit stacksize 8096 kb' works
> (for example). 'ulimit' seems to be broken.


limit is part of csh. and csh seems to ignore ulimit. In sh or ksh
ulimit works just fine and of course limit is undefined as its 
build into csh.

	Cheers
		Mark :)



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Setting default ulimits
  1998-03-26  5:00 Setting default ulimits Jim Reus
  1998-03-26  5:00 ` Hans Schwengeler
@ 1998-03-27  5:00 ` Mark & Suzanne (remove the dot to reply)
  1 sibling, 0 replies; 4+ messages in thread
From: Mark & Suzanne (remove the dot to reply) @ 1998-03-27  5:00 UTC (permalink / raw)



Jim Reus wrote:
> 
> How do I set the default ulimits?  In particular I need larger memory
> limits. Currently the limits are:
> 
> >ulimit -a
> time(seconds)        unlimited
> file(blocks)         unlimited
> data(kbytes)         131072             <---+
> stack(kbytes)        2048               <---+--- I'd like to increase
> these
> memory(kbytes)       150672             <---+
> coredump(blocks)     unlimited
> nofiles(descriptors) 4096
> vmemory(kbytes)      1048576
> 
> I know that the (csh) command ulimit may be used to reduce the limits
> but not increase them (as per man page) is there some rc file somewhere

That not strickly true, ulimit won't work with csh use limit

> that sets the max size?

	The good old original kernel build thing still works
ie. /sys/conf/HOSTNAME  however that is now nolonger the only or
best way to configure parameters.

	Easiest thing is to use /usr/bin/X11/dxkernetuner
or if your careful use your faviour editor to update or add to 
/etc/sysconfigtab the stanza that you need to add or modify is proc
to Check the current values use sysconfig -q proc
proc:
max-proc-per-user = 2059
max-threads-per-user = 2059
per-proc-stack-size = 33554432
max-per-proc-stack-size = 33554432
per-proc-data-size = 134217728
max-per-proc-data-size = 1073741824
max-per-proc-address-space = 1073741824
per-proc-address-space = 1073741824
autonice = 0
autonice-time = 600
autonice-penalty = 4
open-max-soft = 4096
open-max-hard = 4096
ncallout_alloc_size = 8192
round-robin-switch-rate = 0
round_robin_switch_rate = 0
sched-min-idle = 0
sched_min_idle = 0
give-boost = 1
give_boost = 1
maxusers = 256
task-max = 2069
thread-max = 4136
num-wait-queues = 256
num-timeout-hash-queues = 256
enable_extended_uids = 1
enhanced-core-name = 1
enhanced-core-max-versions = 16

You can see the max stack and data sizes as well as the per proc
defaults. Probably the new recomended way to make changes to this
would be :-

# sysconfig -q proc > /tmp/proc.db
# vi /tmp/proc.db
make changes remove any thing that you don't want to change
# cat /tmp/proc.db
proc:
        per-proc-stack-size = 33554432
        max-per-proc-stack-size = 33554432

        per-proc-data-size = 134217728
        max-per-proc-data-size = 1073741824
# sysconfigdb -m -f /tmp/proc.db

Then reboot since these are not dynamic parameters

Also with the new enhanced security management you can 
change defaults on  a per-user basis have a look at the GUI
tool /usr/bin/X11/dxaccounts open a user and have a look under
security (bad choice) then pull down the button to login resources
the rest should be obvious. Just tried it on a user and sure enough
they get the new defaults :)

	Cheers
		Mark :)

ps.
If you like to manually edit your auth this is what an edauth looks
like after changes to data a stack looks like :-

# edauth -g suzanne
suzanne:u_name=suzanne:u_id#200:u_pwd=XXXXXXXXXXXXX:u_succhg#890741899:\
        :u_pwchanger=mark:u_pwdict=*:u_oldcrypt#0:u_suclog#873985648:\ 		
:u_suctty=INET#ned.syd.:u_unsuctty=LAT#SAM/PORT_:u_unsuclog#874126936:u_numunsuclog#2:\
        :u_lock@:u_rlimit_data#67108864:u_rlimit_stack#8192:chkent:
#

Notice the new entries   u_rlimit_data u_rlimit_stack



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-03-27  5:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-03-26  5:00 Setting default ulimits Jim Reus
1998-03-26  5:00 ` Hans Schwengeler
1998-03-27  5:00   ` Mark & Suzanne (remove the dot to reply)
1998-03-27  5:00 ` Mark & Suzanne (remove the dot to reply)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox