in reply to unlinking performance
2. Remove all 100000 files with Perl (rmfile.pl):#!/usr/bin/perl use warnings; use strict; for (1..100000) { open my $file, '>', $_ or die $!; }
Now, I create and remove all 100000 file with Perl:#!/usr/bin/perl use warnings; use strict; my $tempo = time; unlink 1..100000; print time - $tempo . "\n";
I'm under a Debian GNU/Linux system and the FS is ReiserFS.leonardo@bianconiglio:~/testfile$ ./crfile.pl leonardo@bianconiglio:~/testfile$ ./rmfile.pl 12
|
|---|