All of lore.kernel.org
 help / color / mirror / Atom feed
From: mru@kth.se (Måns Rullgård)
To: linux-kernel@vger.kernel.org
Subject: Re: 2.4.23 + tmpfs: where's my mem?!
Date: Thu, 11 Dec 2003 15:23:44 +0100	[thread overview]
Message-ID: <yw1x3cbrh1qn.fsf@kth.se> (raw)
In-Reply-To: Pine.LNX.4.44.0312111351520.1386-100000@localhost.localdomain

Hugh Dickins <hugh@veritas.com> writes:

> On Thu, 11 Dec 2003, Willy Tarreau wrote:
>
>> On Thu, Dec 11, 2003 at 10:54:28AM -0200, dual_bereta_r0x wrote:
>> > root@hquest:/tmp# cat /etc/slackware-version
>> > Slackware 9.1.0
>> > root@hquest:/tmp# uname -a
>> > Linux hquest 2.4.23 #6 Sat Nov 29 22:47:03 PST 2003 i686 unknown unknown 
>> > GNU/Linux
>> > root@hquest:/tmp# df /tmp
>> > Filesystem           1K-blocks      Used Available Use% Mounted on
>> > tmpfs                   124024    112388     11636  91% /tmp
>> > root@hquest:/tmp# du -s .
>> > 32      .
>> > root@hquest:/tmp# _
>> 
>> maybe you have a process which creates a temporary file in /tmp, and deletes
>> the entry while keeping the fd open. vmware 1.2 did that, and probably more
>> recent ones still do. It's a very clever way to automatically remove temp
>> files when the process terminates.
>
> That's right, and would explain why du may show 32 even if ls -alR
> shows nothing at all (what does ls -alR /tmp show?).
>
> But the strange thing is that df's Used does not match du: they should
> be identical, though arrived at from different directions.  I've not
> seen that, and have no idea what's going on: it's as if a subtree of
> /tmp has become detached (a non-empty directory removed).

FWIW, I've seen this behavior with vmware 4.  The space came back when
I closed vmware.

-- 
Måns Rullgård
mru@kth.se


  reply	other threads:[~2003-12-11 14:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-11 12:54 2.4.23 + tmpfs: where's my mem?! dual_bereta_r0x
2003-12-11 13:31 ` Willy Tarreau
2003-12-11 14:11   ` Hugh Dickins
2003-12-11 14:23     ` Måns Rullgård [this message]
2003-12-11 15:01       ` Mario 'BitKoenig' Holbe
2003-12-11 15:39         ` Hugh Dickins
2003-12-11 20:58       ` Maciej Zenczykowski
2003-12-11 15:31   ` William Stearns

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yw1x3cbrh1qn.fsf@kth.se \
    --to=mru@kth.se \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.