Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 have a script that's calculating different combinations for my website for a project I'm working on. It's writing 5 bytes to one file and then erasing it and writing to it again over and over. It does this 111,000+ times a minute and will be doing for 7 hours straight. Will this put a strain on my hard drive or is this okay to do?

The CPU is at avg 12%.

share|improve this question

closed as off topic by Shane Madden, womble, EEAA, Ward, Khaled Apr 20 '12 at 5:32

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Why not do this in RAM? – Shane Madden Apr 20 '12 at 0:57
No particular reason I didn't chose RAM I just didn't. – Noah Brainey Apr 20 '12 at 1:00
Sounds like you should be using mmap instead. – Ignacio Vazquez-Abrams Apr 20 '12 at 1:08
Writing data to a drive is ordinary use. – David Schwartz Apr 20 '12 at 1:20
What filesystem? You're probably not actually writing to the disk that often and you may even be writing to a new disk block when it does flush out of cache. – JOTN Apr 20 '12 at 1:45
up vote 2 down vote accepted

Your drive can take the wear & tear. I suspect a fair amount of this is cache activity anyway, unless you did something to prevent it from caching.

share|improve this answer
I don't think I did, and if I did it was unintentional. – Noah Brainey Apr 20 '12 at 1:01

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