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.

Does hard disk drive get any damage if I open a file, append some short data to it and close it many times in a second?
A program actually does that, not me...

share|improve this question

3 Answers 3

up vote 3 down vote accepted

Hard drives have buffers which 'buffer' this type of activity. Even though your app may be telling the HDD to write data several times a second it is only actually writing as often as it wants to (which also happens to be several times a second but that'll still likely be less than you are writing).

Even though I've just said this is OK, I would also like to point out that this is a bad software design. You should really do this sort of thing in memory then write to the disk only occasionally. IO operations will block other IO operations, writing to a drive this frequently is going to cause other things running on your system to wait for their turn a lot.

share|improve this answer

Any file operation will decrease the lifespan of your HDD.

Considering if it is "harmful" is subjective, but you could easily compare it to your browser caching pages.

share|improve this answer

No, why should it? Disks are made for reading and writing. It doesn't harm more or less than any other activity on your disk.

You also won't overload your disk (or anything like that) since the controller will determine how many read/write operations it can take.

share|improve this answer

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.