Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: "Mark & Suzanne (remove the dot to reply)" <gc.s@s054.aone.net.au>
Subject: Re: Setting default ulimits
Date: 1998/03/27	[thread overview]
Message-ID: <351AEE66.2781@s054.aone.net.au> (raw)
In-Reply-To: 351A8A78.69E28EF2@llnl.gov


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



      parent reply	other threads:[~1998-03-27  5:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]
read-only archive

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