From owner-freebsd-questions Wed Oct 31 6: 0:11 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ns.nonel.pu.ru (nonel.chem.spbu.ru [195.19.244.97]) by hub.freebsd.org (Postfix) with ESMTP id 7828E37B407 for ; Wed, 31 Oct 2001 06:00:00 -0800 (PST) Received: (from yakovlev@localhost) by ns.nonel.pu.ru (8.9.2/8.9.2) id RAA09506; Wed, 31 Oct 2001 17:00:00 +0300 (MSK) (envelope-from yakovlev) From: Dmitry Yakovlev Message-Id: <200110311400.RAA09506@ns.nonel.pu.ru> Subject: Re: /tmp space - new facts In-Reply-To: from "Jan Grant" at "Oct 31, 2001 12:18:50 pm" To: Jan.Grant@bristol.ac.uk (Jan Grant) Date: Wed, 31 Oct 2001 17:00:00 +0300 (MSK) Cc: questions@freebsd.org, Jon.Molin@resfeber.se X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Questions are: 1) Does files withot name (only with inode) can exist in FreeBSD? 2) If can, by what way I may create it? Here the results of test during writing of data ------------------------------------------------------- fstat get some information: USER CMD PID FD MOUNT INUM MODE SZ|DV R/W yakovlev gms.x 28184 11 /tmp 3 -rw------- 652689408 rw But ls -la and du can't see nothing: ------------------------------------------------------- df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/da0s2a 194579 36208 142805 20% / /dev/da0s4g 4961725 856187 3708600 19% /heap /dev/da0s4a 2883854 1190771 1462375 45% /home /dev/da0s4f 992239 818993 93867 90% /tmp /dev/da0s4h 2977230 1326302 1412750 48% /usr /dev/da0s4e 496111 7416 449007 2% /var procfs 4 4 0 100% /proc total 2 ------------------------------------------------------- ls -lai /tmp 2 drwxrwxrwt 2 root wheel 512 31 ΟΛΤ 15:23 . 2 drwxr-xr-x 18 root wheel 512 28 ΑΧΗ 10:11 .. ------------------------------------------------------- du -sch /tmp 1.0K /tmp 1.0K total ------------------------------------------------------- Here series of snapshots of 'df' command and 'pstat -f' command. 'LOC' of writed file separated Offset in this file proportional to 'df' size of /tmp. df: /dev/da0s4f 992239 143209 769651 16% /tmp /dev/da0s4f 992239 178681 734179 20% /tmp /dev/da0s4f 992239 209865 702995 23% /tmp /dev/da0s4f 992239 265257 647603 29% /tmp /dev/da0s4f 992239 483153 429707 53% /tmp /dev/da0s4f 992239 560441 352419 61% /tmp /dev/da0s4f 992239 659209 253651 72% /tmp /dev/da0s4f 992239 784545 128315 86% /tmp pstat -f: LOC TYPE FLG CNT MSG DATA OFFSET c13014c0 inode RW 1 0 d13be380 148135936 c13014c0 inode RW 1 0 d13be380 183001088 c13014c0 inode RW 1 0 d13be380 215048192 c13014c0 inode RW 1 0 d13be380 271736832 c13014c0 inode RW 1 0 d13be380 496918528 c13014c0 inode RW 1 0 d13be380 573857792 c13014c0 inode RW 1 0 d13be380 675897344 c13014c0 inode RW 1 0 d13be380 803168256 Notes about partitions: / 200 Mb /var 500 Mb /tmp 1000 Mb swap 1400 Mb /heap 5000 Mb /usr 3000 Mb /home 3000 Mb Total physycal memory 384Mb, when data writing 'top' show that swap not in use. > > Where pipes stored - in memory or in disk? > memory > > What is your /tmp? Possibilities: > > 1. swap-backed /tmp (useful). Use of swap hits free space in /tmp > 2. a fairly traditional practice of creating a /tmp file, and unlinking > it immediately (while holding a file open on it). temp files are thus > cleaned up automatically when the program exits. > > fstat /tmp to find the latter. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message