Results 1 to 7 of 7

Thread: Weird power outage, what just happened?

  1. #1
    Join Date
    May 2007
    Location
    Philadelphia
    Beans
    Hidden!
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Weird power outage, what just happened?

    My house suddenly lost power for just a second, and then it came back on (there's a thunderstorm passing through, I assume that's why). When that happened my computer and monitor of course turned off, but when the power came back on a second later everything was still running fine - all the windows I had open before were still up, and everything seemed fine.

    The only thing that was odd was MPD was running, but mpc and ncmpcpp couldn't connect to whatever port it normally ran on. What happened when the power went out to cause this?

  2. #2
    Join Date
    Apr 2007
    Location
    NorCal
    Beans
    1,149
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Weird power outage, what just happened?

    RAM doesn't clear instantly when it loses power. It may retain its contents for a second or two before clearing. How long was the power out? Was it just a flicker?
    Posting code? Use the [code] or [php] tags.
    I don't care, I'm still free. You can't take the sky from me.

  3. #3
    Join Date
    Oct 2007
    Location
    UK
    Beans
    484
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Weird power outage, what just happened?

    Most PSUs are rated for around 10-30 ms drop-out: they can keep a computer stable for that long if AC is lost. Your monitor probably switched off because it is less rated (5 ms probably). You could also get lucky if you have a good motherboard as the caps around the CPU and RAM could keep them running for longer (The HDD & CD-ROM isn't really a problem and those can keep running on momentum and aren't required to keep a computer stable). We had an old DVR/Freeview box which would run for two whole seconds without AC: Not sure if this was a designer decision (so brief power outages don't cancel recordings) or just a good PSU... but it was interesting.

    These brief outages in the UK aren't really outages, but they tend to be 'undervolts'. The lights dim briefly occasionally, especially on stormy days. The reason, as I was told, at a power station, is because when a lightning bolt strikes a line, the power is switched to reduce the output to compensate. It also occurs in ground faults, because a ground fault puts a lot of load on the line it causes a brief reduction in voltage.

    Also, some motherboards power the RAM from the clock battery if power is lost. On resume the computer behaves as if nothing happened.
    Last edited by tom66; August 19th, 2009 at 03:04 AM.
    Lucid Beta 2 powered Studio 15 (Core 2 Duo 2.0GHz, 3 GB RAM, HD 3450) & Windows XP powered Scaleo E (Celeron D 3.06GHz, 1.5GB RAM, Intel GMA 915G). Please see Ubuntu Tutorials (my YouTube channel).

  4. #4
    Join Date
    May 2007
    Location
    Philadelphia
    Beans
    Hidden!
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Weird power outage, what just happened?

    It was only a second. I'm more wondering why MPD got screwed up. I guess when the RAM started clearing it got messed up?

  5. #5
    Join Date
    Oct 2007
    Location
    UK
    Beans
    484
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Weird power outage, what just happened?

    Partially corrupted RAM would cause a kernel panic, instantly, especially on a modern OS with tons of pointers and simultaneously operating processes, unless it hit an area not in use. But corruption is usually random and will hit important areas.

    RAM takes about 10-20 seconds before it's useless at storing data without power (the data is still readable but it does get significantly corrupted). But you have to remember that you still have the CPU's state (registers, execution), along with the PCI and AGP card states (their internal RAM and processors need to be considred as well) attached which would have been lost without power. Internal cards like network cards could reset, but a graphics card could not without a complete reboot.
    Last edited by tom66; August 19th, 2009 at 03:19 AM.
    Lucid Beta 2 powered Studio 15 (Core 2 Duo 2.0GHz, 3 GB RAM, HD 3450) & Windows XP powered Scaleo E (Celeron D 3.06GHz, 1.5GB RAM, Intel GMA 915G). Please see Ubuntu Tutorials (my YouTube channel).

  6. #6
    Join Date
    Dec 2007
    Location
    The last place I look
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Weird power outage, what just happened?

    The PSU makes all the difference. your circuit was likely reclosed inside a few hundred ms, so the caps in the PSU and the mobo were able to keep it going. seems like if your only drawing 300w off your 750w psu, then your caps should be full up most of the time.

    I've had boxes that are both more and less suceptible to this effect. with 4 PCs running 2 will get rebooted.

  7. #7
    Join Date
    Oct 2007
    Location
    UK
    Beans
    484
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Weird power outage, what just happened?

    Capacitors are never full (it's technically impossible - it's also impossible for them to be completely empty). But they can be at a low capacity and still power a PC if the switch-mode PSU is designed well.
    Lucid Beta 2 powered Studio 15 (Core 2 Duo 2.0GHz, 3 GB RAM, HD 3450) & Windows XP powered Scaleo E (Celeron D 3.06GHz, 1.5GB RAM, Intel GMA 915G). Please see Ubuntu Tutorials (my YouTube channel).

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •