deleting file takes longer than creating it

Michael Tiernan mtiernan at mit.edu
Wed May 5 08:59:25 CDT 2010


On 5/4/10 6:25 PM, John G. Heim wrote:
> It took 12 seconds to create the file and 33 seconds to rm it. Why would
> that be?
>    
Because you took 12 seconds to fill a 1Kx1E6 file with bytes in the 
first instance and 33 seconds to mark the file as deleted and free all 
the blocks it took on the file system.

Filling it requires moving 1Kx1E6 bytes and deleting it requires 
changing < ~1K bytes.

No surprise here.

-- 
   <<  MCT>>    Michael C Tiernan.   xmpp:mtiernan at mit.edu
   MIT - Laboratory for Nuclear Science - http://www.lns.mit.edu
   High Perf Research Computing Facility at The Bates Linear Accelerator
   "Bit-smashing your bits better than anyone can!"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5507 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.us.dell.com/pipermail/linux-poweredge/attachments/20100505/324a963a/attachment-0001.p7s 


More information about the Linux-PowerEdge mailing list