Xref: utzoo comp.bugs.sys5:1088 comp.unix.wizards:17644 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wasatch!helios.ee.lbl.gov!network!ucsd!orion.cf.uci.edu!uci-ics!zardoz!ccicpg!cci632!rit!tropix!moscom!ur-valhalla!uhura.cc.rochester.edu!rochester!rutgers!cs.utexas.edu!uunet!mcvax!hp4nl!ctisbv!pim From: pim@ctisbv.UUCP (Pim Zandbergen) Newsgroups: comp.bugs.sys5,comp.unix.wizards Subject: Re: ULIMIT adjustment in System V kernel creation Keywords: sysv, ulimit, filesystem, cpio Message-ID: <759@ctisbv.UUCP> Date: 22 Jul 89 23:28:21 GMT References: <252@chip.UUCP> <1989Jun9.142904.1778@eci386.uucp> <32409@apple.Apple.COM> <1989Jun16.165538.27038@eci386.uucp> Reply-To: pim@ctisbv.UUCP (Pim Zandbergen) Followup-To: comp.bugs.sys5 Organization: CTI Software BV, The Hague, The Netherlands Lines: 38 In article <1989Jun16.165538.27038@eci386.uucp> clewis@eci386.UUCP (Chris Lewis) writes: >In article <32409@apple.Apple.COM> ric@Apple.COM (Ric Urrutia) writes: > >And that the correct default ulimit is infinity (or as near to it as you >can get...). > [ description of a wrapper to set ULIMIT to 2147483647 (2^31 -1) deleted ] DON'T set your ulimit to anything higher then 2143289343 (2^31 - 2^22 - 1) if you are running System V release 3, or you will have problems with cpio(1). When restoring from a tape with, cpio will fail to write a file if the size of a file exceeds the ulimit. There is, however a bug in cpio, where it will not write any files if the ulimit is higher then 2143289343. It will fail with the message: file skipped: exceeds ulimit by n bytes where "file" is the name of the file to be written, and n = (2^31 - ulimit) * 512 + size, where "ulimit" is the current ulimit, and "size" is the size of the file to be written. As a special case, n = -(2^31) + size, if ulimit = 2143289344 (2^31 - 2^22) This bug is present in cpio in System V release 3.1.1 on the AT&T 3B2/600. I don't know if it is in any other SysVr3's. Can anybody with a source license comment on this ? -- --------------------+----------------------+----------------------------------- Pim Zandbergen | phone: +31 70 542302 | CTI Software BV pim@ctisbv.UUCP | fax : +31 70 512837 | Laan Copes van Cattenburch 70 ...!uunet!mcvax!hp4nl!ctisbv!pim | 2585 GD The Hague, The Netherlands