in reply to Re^3: unlink : reclaim inodes, etc.?
in thread unlink : reclaim inodes, etc.?

A few kilobytes for 500,000+ files?

I don't think so.

# cd /var/tmp # mkdir lots-of-files # cd lots-of-files # perl -e 'for (1..500000) { { open my $f, ">poop.$_" } }' # cd /var/tmp # ls -ld lots-of-files drwxr-xr-x 2 szbrhv staff 10240000 Oct 5 10:01 lots-of-files

That is 10 meg just for the directory, which might not be a concern with the large disks available but it's still a lot more than a few kilobytes.

Replies are listed 'Best First'.
Re^5: unlink : reclaim inodes, etc.?
by johngg (Canon) on Oct 05, 2007 at 08:44 UTC
    Yes, you are right. A lot more significant than I thought. I guess what I have looking at before is 500,000+ files in a large tree structure rather than all in a single directory.

    Sorry,

    JohnGG