Xref: utzoo comp.unix.questions:5773 comp.sys.att:2578 Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!hao!oddjob!gargoyle!ihnp4!homxb!ho7cad!wjc From: wjc@ho5cad.ATT.COM Newsgroups: comp.unix.questions,comp.sys.att Subject: Re: NO SPACE Error message Message-ID: <281@ho7cad.ATT.COM> Date: 23 Feb 88 17:27:20 GMT References: <225@mccc.UUCP> <1733@rtech.UUCP> Sender: nuucp@ho7cad.ATT.COM Lines: 34 In-reply-to: russ@llama.rtech.UUCP's message of 21 Feb 88 09:37:15 GMT In article <1733@rtech.UUCP> russ@llama.rtech.UUCP (Russ Spence) writes: >In article <225@mccc.UUCP> pjh@mccc.UUCP (Peter J. Holsberg) writes: >>I don't understand where in / these blocks are being used, and why -- >>allof a sudden, / is crowded. (My system has 3 file systems: /, /usr, >>and /usr2.) I'm guessing that things are happening in /tmp, right? > >/tmp is used by the compiler to store temporary files. When >compiling a very large file (or many small files) you run out >of space on / because of the amount of space used in /tmp for >C compilations. You should probably increase the size of >/ (or move /tmp to another file system, or its own file system). >Unfortunately, this is usually a painful process on a 3B. You > There is some luck possible here. If the only thing you're having problems with is during compile sorts of things, then it is easy to change the temporary directory used by many versions of "cc". Obviously, this won't cure all your problems if some other sorts of stuff are crowding /tmp. Assuming you have plenty of space in /usr/tmp, try TMPDIR=/usr/tmp; export TMPDIR (some "cc"'s use TEMPDIR instead). To see if this causes "cc" to use /usr/tmp, just do a medium long compile and abort it in the middle. The scratch files are usually left hanging around, so see if they show up in /usr/tmp. If so, put the above line in /etc/profile and that should unclog /tmp for you. (Some "cc"'s use /tmp by default, others /usr/tmp.) Bill Carpenter (AT&T gateways)!ho5cad!wjc HO 1L-410, (201)949-8392, OCW x4367