Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I m using the find command to search for modified files in a folder every minute. The folder contains a little over a thousand files. Since i m running the find command every minute , will it affect my Hard Drive , will there be any other effects on my System Resources ..?

share|improve this question

migrated from stackoverflow.com Jun 28 '12 at 10:00

This question came from our site for professional and enthusiast programmers.

    
What do you mean by "affect"? reduce it's lifetime? Are you experiencing any real performance problems? –  slhck Jun 28 '12 at 10:03
    
i don't see any problems yet, i'm testing the script now, but before i get it to production, i need to know there any effect on Hard drive, such as large reads, reducing lifetime, slowing down the disk.etc –  Manikanda raj S Jun 28 '12 at 10:06
1  
It may be better to use inotify -- example with Perl –  RedGrittyBrick Jun 28 '12 at 11:01
add comment

1 Answer

up vote 2 down vote accepted

Desktop computer systems run background processes like desktop search indexers that access far more than the metadata of 1000 files per minute. In that regard, your program does not produce a lot of additional load on the system. It's also possible that some cache or other optimization will reduce load on the actual disk. Unless you're actually experiencing performance issues, I wouldn't worry about it.

However, if you're using your find results to -exec something, e.g. fgrep, that's different and depends on how you're using the results of your search.

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.