-2

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%.

5
  • 1
    Why not do this in RAM? Apr 20, 2012 at 0:57
  • No particular reason I didn't chose RAM I just didn't. Apr 20, 2012 at 1:00
  • 1
    Sounds like you should be using mmap instead. Apr 20, 2012 at 1:08
  • 1
    Writing data to a drive is ordinary use. Apr 20, 2012 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, 2012 at 1:45

1 Answer 1

2

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.

1
  • I don't think I did, and if I did it was unintentional. Apr 20, 2012 at 1:01

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