Messages in this thread | | | Date | Thu, 11 Dec 2003 10:31:43 -0500 (EST) | From | William Stearns <> | Subject | Re: 2.4.23 + tmpfs: where's my mem?! |
| |
Good morning, Alexandre,
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.
Agreed - very likely. User-Mode Linux does the same for its UML memory images. To see what process is doing this, try looking at:
ls -Al /proc/[0-9]*/fd/* | grep ' /tmp/'
Which will show you all open files in /tmp, deleted or not.
lr-x------ 1 wstearns wstearns 64 Dec 11 10:23 /proc/10370/fd/6 -> /tmp/sfs8eEBBc (deleted)
The pid following /proc/ (10370 in this case) is the process holding this file open. Cheers, - Bill
--------------------------------------------------------------------------- "Any sufficiently advanced technology is indistinguishable from magic." -- Arthur C. Clark (?) -------------------------------------------------------------------------- William Stearns (wstearns@pobox.com). Mason, Buildkernel, freedups, p0f, rsync-backup, ssh-keyinstall, dns-check, more at: http://www.stearns.org Linux articles at: http://www.opensourcedigest.com --------------------------------------------------------------------------
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |