Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Oct 2001 17:00:00 +0300 (MSK)
From:      Dmitry Yakovlev <yakovlev@ns.nonel.pu.ru>
To:        Jan.Grant@bristol.ac.uk (Jan Grant)
Cc:        questions@freebsd.org, Jon.Molin@resfeber.se
Subject:   Re: /tmp space - new facts
Message-ID:  <200110311400.RAA09506@ns.nonel.pu.ru>
In-Reply-To: <Pine.GSO.4.31.0110311216330.17249-100000@mail.ilrt.bris.ac.uk> from "Jan Grant" at "Oct 31, 2001 12:18:50 pm"

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110311400.RAA09506>