Power Failure

A power failure is an un-announced cessation of power. Typically we care when this happens to a computer of some kind.

This means any data not saved to media (flash ram, disk, battery backed ram) is lost. Any unsaved indexing information to saved information is also lost, which can make finding the saved information difficult.

It has nasty effects in buffered-IO operating systems, like every flavor of Unix. Unix wants to read and write stuff to and from the hard disk when IT has time to do so, and supplies to the user information from its buffers. This means that when the power goes down, there can be a lot of stuff in buffers that never gets written to the disk.

Defensive programming suggests that you flush your output frequently, and that you don't hold files open for long periods of time. This can have a performance penalty (your program may run a little slower when flushing) but lowers the risk.

Power failures can often damage computers, as can a PowerSurge?, or DirtyPower? with spikes and dropouts. A decent PowerConditioner? with BatteryBackup? can minimize both physical damage and the data loss described above. Power problems are the number one cause of disk drive failures, too. I can't believe that businesses don't get them routinely, as many areas, such as CaliforniaState?, routinely experience power failures.


It was recently suggested to me that our fault tolerant product could be made simpler, and brought to market sooner, if we defined away power failures. Ie, your environment must provide 1) so many inches of rack space, 2) air conditioning capable of cooling the equipment, and 3) power which simply never goes away. This struck me as taking a lot of guts.


 matthew@gellum:~$ uptime
 11:37PM  up 8 days,  5:28, 2 users, load averages: 0.47, 0.43, 0.34
 matthew@gellum:~$ cat /etc/motd | grep 2000
        |   At the mercy of Northern Electric since 2000 A.D.    |

-- MatthewTheobalds

See AbuseCase, TechnicalFailure (last prior edit May 29, 2001)


EditText of this page (last edited January 15, 2005) or FindPage with title or text search