Speed up suspend/resume for FreeBSD

(eugene-andrienko.com)

21 points | by speckx 4 days ago

1 comments

  • jeffbee 1 day ago
    Isn't this form of suspend really just a crutch for poor sleep management? A sleeping, but running, system should run that way for a week or so.
    • toast0 1 day ago
      Suspend (to disk) is valuable in itself, separate from sleep.

      Everybody has preferences, but if I put a laptop in a bag, I want it suspended. Everything should be as it was when I left. Not doing whatever wakeups I might be happy with if it's sleeping on my desk.

      Also immensely valuable for desktops on UPS. Run for a while, then suspend until power comes back. The UPS battery will not run for very many minutes, even if there is very little load.

      • cnst 19 hours ago
        > The UPS battery will not run for very many minutes, even if there is very little load.

        I thought the conversion from 12V to 120V isn't all that inefficient?

        The ratings provided by UPS vendors only specify the full load and half-load runtimes, yet the runtimes for quarter-load and lower, are actually quite decent, although sometimes hard to find officially.

        I think the only problem with a very low load might be that the UPS might simply turn itself off if it thinks that it's actually unloaded (if the suspend-to-memory were to consume way too little power).

        • toast0 3 hours ago
          Well, the post I was responding to was asking for a week. And electric outages in my area tend to either be seconds or several hours to a day or two. I don't think my UPSes would stay up for an hour with a 2-5w load and almost certainly not for 4 hours. If the power is out, and my generator doesn't kick on, sleep isn't going to do it, suspend (or shutdown) is needed.