bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FYI: a 256,000,000-byte file name


From: James Youngman
Subject: Re: FYI: a 256,000,000-byte file name
Date: Mon, 5 Dec 2005 08:34:38 +0000
User-agent: Mutt/1.5.9i

On Sun, Dec 04, 2005 at 08:02:16PM +0100, Jim Meyering wrote:
> Just to prove I could do it, I constructed a hierarchy 1 million
> (and one) levels deep, with each directory name being 255 bytes long.
> Then I made sure that GNU rm could remove it.  Since I didn't
> want to wait forever, I created it on a Linux/tmpfs file system.
> It took a little over 2 minutes, with a little thrashing.
> I vaguely recall seeing that rm's working set was around 400MB.

Congratulations.  I remember doing the exervises from W. Richard
Stevens book and writing a program to find out how deep a directory
hierarchy my system could manage (naturally, the answer is that the
real limit is the number of free inodes).  I then tried removing the
monster directory hierarchy with rm, with no success.  I ended up
writing a second program to delete the directory hierarchy.

I wonder if 'ftsfind . -depth -delete' would work for this purpose also.

Thanks,
James.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]