Re: Processes with open handles to unlinked files




James Wilkinson wrote:
Arun wrote:
Is there anyway in Linux to list all the processes with open handles to
unlinked files? I need this because sometimes filesystems get filled up
and when I add the size of each file in the whole FS, it's far less
than the FS size. I need to find those processes and kill them if
necessary. Any pointer to a relevant link is highly appreciated.

Tony Lawrence replied:
But what process is so sloppy as to do this kind of thing regularly?

Some programs will deliberately create temporary files and unlink them
immediately, to ensure that if anything is killed or crashes, the

Yes, of course: I do that myself. But what I meant was what process is
so sloppy that it matters?

I might have a couple of files hanging about for a few minutes, but not
enough that I'm concerned about disk space (certainly not nowadays
anyway!). And those processes WILL end, and the space will be
reclaimed - this sounds like he's got some runaway rogue..

--
Tony Lawrence
Unix/Linux/Mac OS X Resources
http://aplawrence.com

.



Relevant Pages