Re: missing free space



Roberto C. Sanchez wrote:
On Sun, Dec 31, 2006 at 03:09:34AM +0200, ccostin wrote:
For this moment I don't run any qemu instace. But is somenthing similar.
When I test an example from php5-imagick package
(/usr/share/doc/php5-imagick/examples/resize.php)
apache2 "eat" a lot of disk space (a bug ?) from tmp
Output from lsof

COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
apache2 10673 apache 11u REG 3,2 280080000
0 6161 /tmp/magick-XXuayBEU (deleted)

ls /tmp/magick-XXuayBEU
ls: /tmp/magick-XXuayBEU: No such file or directory


After restarting apache2 all things get back to normal, occupied
space is released.

No. This is not a bug. This is exactly the behavior I was talking
about. The temporary file is created and then immediately deleted. So,
it still takes up blocks on the file system, but du has no way of
counting those blocks since the file is "gone", but it is in fact still
there since an open file descriptor exists to it.


Good explanation.






--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Port 443?
    ... >>Can anyone tell me what listens on port 443? ... # lsof -Pi:443 ... COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME ...
    (Fedora)
  • Re: Interpreting open file descriptors
    ... openor die $!; ... On lsof I get the following: ... COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME ...
    (comp.unix.programmer)
  • Re: chkrootkit: Checking `bindshell... INFECTED (PORTS: 600)
    ... >> COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME ... CR INRIA - computer arithmetic / SPACES project at LORIA ... To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org ...
    (Debian-User)
  • Re: lsof and the FD column
    ... lsof -p 15231 ... COMMAND PID USER FD TYPE DEVICE SIZE NODE ... so it might make sense to open a single file multiple times. ...
    (comp.unix.solaris)
  • Re: lsof and the FD column
    ... lsof -p 15231 ... COMMAND PID USER FD TYPE DEVICE SIZE NODE ... So it makes perfectly sense to open a single file multiple times. ...
    (comp.unix.solaris)