Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I maintain more than 20 million files in my trash without cleaning.

Can it slow down my Mac OS X?

share|improve this question
    
What's a crore file? –  NReilingh Aug 2 '11 at 4:50
    
Wait. Do you seriously mean "more than 20,000,000 individual files"? As this is an English language website, most users will not understand the word 'crore'. –  NReilingh Aug 2 '11 at 4:51
    
Why??? (I´m curious) –  Asmus Aug 2 '11 at 7:34
    
It's just a word that's not used outside of South Asia. We use short scale value names. –  NReilingh Aug 2 '11 at 21:47
add comment

4 Answers

I was thinking about whether or not the Trash is just like any other folder from a file system's point of view. Let's assume that it is for a second, then another way to look at this would be "what's the worse that can happen to the performance of my Mac if I keep thousands of files in any folder? Mac OS X probably does some sort of memory swapping using the hard drive, so that would be the first problem of an increase in used hard drive space. But this may be the case of any folder, not only the Trash.

That reminded me of my Windows days and how running utilities to defragment a hard drive made my system feel faster after frequent defragmentation. However, unlike Windows, Apple claims that due to its design, their OS does not need defragmenting. Take a look at this interesting article. On it, Apple claims that it can handle thousands of files. However, Apple here is talking only about the file system itself.

John Siracusa, on his Ars Technica review of Lion mentions that performance does in fact decrease with thousands of files. However, the way I read his article is that the performance decrease is on the Finder UI itself rather than on the file system as a whole (i.e., the Finder is not the file system). It makes sense that if there is more information to prepare graphically and your computer was running multiple apps to the point of your system being very taxed for RAM; then the Finder will probably have a harder time rendering a simple Finder window to show thousands of files in the Trash.

Coming back to your original question, it seems to me that a user who never empties the Trash and only accesses its contents occasionally would not seen any noticeable performance decrease on the rest of his system--other than perhaps the Finder struggling to render the contents of the Trash every now and then. I would consider any performance hits on the system the same as with any other growing folder. Hope this helps.

share|improve this answer
add comment

No, unless you're using up so much space on your hard drive that the system doesn't have any room left for VM swap space.

share|improve this answer
add comment

I once deleted some video files (i.e large files) after emptying the trash the amount of inactive memory decreased & the amount of free memory increased. It was a slight difference but apparently it does the trash does affect your system.

share|improve this answer
    
you mean , lot of file will affect system. –  please delete me. Aug 2 '11 at 5:37
    
a small file won't affect your system even if it was in use lol >.< –  Samantha Catania Aug 2 '11 at 6:21
    
lol >.< means,pls tell clearly –  please delete me. Aug 3 '11 at 3:43
    
It's not the amount its the size; if your trash is very large i.e. its contents amount to a couple of gb or more they will affect your system. If you want to keep a lot of files out of the way I do not recommend the trash can it's better to archive them & put them in an external drive –  Samantha Catania Aug 3 '11 at 4:52
add comment

You could take the "wooden stick" approach to weather reporting.

If the stick is wet, it's raining.

Do you see huge bursts of IO in Activity monitor related to trash icon browsing or drawing?

Your mac is storing hundreds of thousands of files in a modern file system. Unless some app has poor IO skills and is looking in that folder, you shouldn't notice a thing.

Finder is the only app that routinely checks on the various trash directories. As long as it's not using too much RAM for your comfort or using too much CPU - you've got your answer.

share|improve this answer
add comment

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.