Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a server, which makes an incremental backup of a system every night. Now on saturdays, there is a full backup. But after the full backup has finished, a script kicks in, that deletes the incrementals.

Now, the script sometimes breaks, and it is because the incrementals are each about 10GB files, and sometimes takes too long for the script.

Now could someone explain to me, or point me in the direction of a resource, that explains why ext3 is so slow to delete files, when compared to, lets say, NTFS?

I know theses are 2 completely different file systems, but I'm really interested why is there such a big difference in deletion?

share|improve this question
    
While doing my own research, I stumbled upon batleth.sapienti-sat.org/projects/FAQs/ext3-faq.html, which indirectly explains why this is taking so long. –  Janis Peisenieks Jul 11 '12 at 8:44
    
Does ext4 has this same problem? –  hdave Nov 16 '12 at 21:59

1 Answer 1

up vote 6 down vote accepted

The ext3 filesystem makes use of an indirect block mapping scheme, which has to keep track of all block mappings. This a lot slower to delete large files than filesystems using a scheme based on extents, such as ext4.

I can't really speak to NTFS but I presume it makes use of extents.

There is another question related to this on ServerFault.

share|improve this answer
    
I did read the other question, but I can't seem to find any good resources on what indirect block mapping scheme is. –  Janis Peisenieks Jul 11 '12 at 8:12
    
I know your question is in relation to NTFS, but I've found the best resources explaining the concept of indirect block mapping are the ones explaining the difference between allocation in ext3 and ext4. For example linuxologist.com/01general/… and ext4.wiki.kernel.org/index.php/… –  Kenny Rasschaert Jul 11 '12 at 8:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.