Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 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
It may be better to use inotify -- example with Perl – RedGrittyBrick Jun 28 '12 at 11:01
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .