[comp.unix.aix] Changing default ulimit on AIX PS/2

bob@obiwan.UUCP (Bob Willcox) (02/05/90)

I am trying to increase the ulimit on my AIX PS/2 above the default
value of 8192.  Is their some configuration file that can be changed to
allow this?  I changed the ulim_file value in /etc/master and rebuilt
the kernel...but to no avail.  Did not seem to make any difference at
all.

Thanks for any help you can give,
-- 
Bob Willcox                 ...!{rutgers|ames}!cs.utexas.edu!romp!obiwan!bob
Phone: 512 258-4224 (home)
       512 823-3585 (work)

s33966r@kaira.hut.fi (Juha Hulkkonen) (02/07/90)

In article <264@obiwan.UUCP> bob@obiwan.UUCP (Bob Willcox) writes:

   I am trying to increase the ulimit on my AIX PS/2 above the default
   value of 8192.  Is their some configuration file that can be changed to
   allow this?  I changed the ulim_file value in /etc/master and rebuilt
   the kernel...but to no avail.  Did not seem to make any difference at
   all.

Log in as 'root' or run 'su' shell and use 'users' command to change
the file_size (I can't verify the parameter name now but you'll find
it) parameter for each user you want to. Usually reading manuals will
help too ;-)

   -- 
   Bob Willcox                 ...!{rutgers|ames}!cs.utexas.edu!romp!obiwan!bob
   Phone: 512 258-4224 (home)
	  512 823-3585 (work)


--
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+  Juha Hulkkonen                  s33966r@kaira.hut.fi            +
+                                  hogan  @otax.tky.hut.fi         +
+  tel.                            +358-0-794899                   +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

johno@dduck.ctt.bellcore.com (John OBrien) (02/08/90)

>In article <264@obiwan.UUCP> bob@obiwan.UUCP (Bob Willcox) writes:
>
>   I am trying to increase the ulimit on my AIX PS/2 above the default
>   value of 8192.  Is their some configuration file that can be changed to
>   allow this?  I changed the ulim_file value in /etc/master and rebuilt
>   the kernel...but to no avail.  Did not seem to make any difference at
>   all.
>

Change the ulimit (and all other modifiable kernel parameters) in /etc/system,
not /etc/master.  Under the sysparms label put  ulim_file = (whatever)

Example:

sysparms:
	ulim_file = 64000
	buffers = 400

Look at the documentation for /etc/master and /etc/system to get a listing
of modifiable kernel parameters.


John O'Brien                           | "And you run and you run to catch up
..!bellcore!ctt!johno or johno@ctt    |  to the sun but it's sinking."
(201) 699-8788

webb@bass.tcspa.ibm.com (Bill Webb) (02/14/90)

> I am trying to increase the ulimit on my AIX PS/2 above the default
> value of 8192.  Is their some configuration file that can be changed to
> allow this?  I changed the ulim_file value in /etc/master and rebuilt
> the kernel...but to no avail.  Did not seem to make any difference at
> all. ...
> Bob Willcox                 ...!{rutgers|ames}!cs.utexas.edu!romp!obiwan!bob

The simplest way around this problem is to put the following line 
(or one with whatever maximum you prefer - the units are in blocks)
I tend to want to get rid of the limit entirely which is essentially what

filesize=1000000

You will need to reboot after making the change to have it take effect
(sorry about that).

You can also make a per user limit in the appropriate field in the
/etc/passwd file - we don't use that method since we share passwd files
amoung a number of different machines running different versions of
Unix and AIX. According to the Technical Reference manual the format
for the additional data entry (other systems call this the comment or
gecos field) is:
	fill_name/file_limit;site_info;site_exec_perm

For more information see page 3-122 and 3-123 of the AIX Operating System 
Technical Reference manual. You can probably also use the adduser command
to make the change as well.

----------------------------------------------------------------
The above views are my own, not those of my employer.
Bill Webb (IBM AWD Palo Alto), (415) 855-4457.
UUCP: ...!uunet!ibmsupt!webb