Xref: utzoo comp.unix.sysv386:7212 comp.bugs.sys5:1517 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnews!cbnewsl!urban From: urban@cbnewsl.att.com (john.urban) Newsgroups: comp.unix.sysv386,comp.bugs.sys5 Subject: Re: Unix 5.4 and ulimit Message-ID: <1991Apr23.145702.28945@cbnewsl.att.com> Date: 23 Apr 91 14:57:02 GMT References: <1991Apr21.140740.6766@gold.sub.org> <1186@applix.com> Organization: AT&T Bell Laboratories Lines: 67 In article <1186@applix.com> scotte@applix.UUCP (Scott Evernden) writes: >In article <1991Apr21.140740.6766@gold.sub.org> root@gold.sub.org (Christian Seyb) writes: >>Hello, >> >>I am using Unix 5.4 (4.0.2) and have a problem with ulimit. > >Upping your ulimit is described in the FAQ for this group. I quote: " > > 1. If your desired limit is > 12288(6MB): > > Edit /etc/conf/cf.d/mtune to change the following line: > ULIMIT 3072 2048 12288 > to: > ULIMIT 3072 2048 xxxxx > > where xxxxx is the limit you desire. > > 2. Edit /etc/conf/cf.d/stune to add/change the following line: > > ULIMIT xxxxx > > where xxxxx is the limit you desire. Note that this step can > be performed in the kernel configuration software (i.e.: kconfig > for 386/ix). > > 3. Edit /etc/default/login to delete the ULIMIT line. > > 4. Rebuild the kernel and reboot. > The FAQ answer for ulimit is not correct for UNIX System V Release 4.0. In 4.0, ULIMIT has been replaced by [SH]FSZLIM. SFSZLIM - Soft File SiZe LIMit and HFSZLIM - Hard File SiZe LIMit. In the mtune file, SFSZLIM and HFSZLIM are in hex. The currect values (for UNIX System V/386 Release 4.0) are: 0x200000 -> 2097152. So therefore these "rule" above change to ... 1) If your desired limit is > 12288(6MB -> 6291456) There is no need to modify your mtune file, since the maximum file size is 0x7FFFFFFF (2147483647 bytes or 4194303 512 byte blocks) As we recall the layout in the mtune file is: Kernel VariableCurrent ValueLowest ValueHighest Value The values for SFSZLIM/HFSZLIM are: SFSZLIM 0x200000 0x100000 0x7FFFFFFF HFSZLIM 0x200000 0x100000 0x7FFFFFFF 2) Run idtune(1M) (or edit /etc/conf/cf.d/stune directly) /etc/conf/bin/idtune SFSZLIM /etc/conf/bin/idtune HFSZLIM e.g. to be able to make 10 Meg files ... /etc/conf/bin/idtune SFSZLIM 0xA00000 /etc/conf/bin/idtune HFSZLIM 0xA00000 3) Edit /etc/default/login to delete the ULIMIT line 4) Rebuild the kernel and reboot cd / /etc/conf/bin/idbuild && /etc/conf/bin/idreboot Sincerely, John Urban