Live data from Hacker News

Saving Energy: Home Server That Automatically Suspends to RAM and Wakes Up Again

maximiliangolla.com

81–90 of 230 posts

Re: Saving Energy: Home Server That Automatically Suspends to RAM and Wakes Up Again

#81
post #3

>Why isn't this build into every major operating system by now? Because no desktop OS besides MacOS can handle Sleep with any semblance of competency. >Why isn't this the default See above.

My usual comment: out of windows, macos and Linux only the Linux on laptop and on steamdeck can sleep and wake up reliably without draining all the battery for me. I know others have a different experience, but I'd just go with "none of the systems handle it reliably" if we're generalising.

[dead]

Re: Saving Energy: Home Server That Automatically Suspends to RAM and Wakes Up Again

#82
post #75
post #3

>Why isn't this build into every major operating system by now? Because no desktop OS besides MacOS can handle Sleep with any semblance of competency. >Why isn't this the default See above.

> Because no desktop OS besides MacOS can handle Sleep with any semblance of competency. The Chromebook I'm using right now handles sleep perfectly, and always has.

I said desktop OS. :V

Re: Saving Energy: Home Server That Automatically Suspends to RAM and Wakes Up Again

#83
post #7

Earlier quoted context omitted.

I've never had any issues with stand-by on Windows.

Windows in particular is notorious as of late for brutally draining the battery while Sleeping[1]. [1]: https://www.youtube.com/watch?v=OHKKcd3sx2c

I've had MacBooks running MacOS do excatly what you describe on a regular basis.

Re: Saving Energy: Home Server That Automatically Suspends to RAM and Wakes Up Again

#84

Smartphones can be connected for days on the internal battery, using well under a watt, and they can be ready to respond instantly, and they have an app container system that makes everything just work. I really think we need to start making Android servers a thing, at least for self hosting, maybe for everything. Judging by how WearOS seems to be able to run on 35mA or less, I think there's a good case for just maki…

Raspberry Pis (and similar devices) already work great as low-power servers.

The big issue is the home server community being overly focused on creating "battle stations" that look cool and run 40 different Docker containers rather than simple low-power solutions.

Re: Saving Energy: Home Server That Automatically Suspends to RAM and Wakes Up Again

#85

You don't even need magic packets from a dedicated machine for wake on lan for some NIC's. For example on linux using `ethtool -s enp3s0 wol pug` will wake the system on p (PHY activity), u (unicast activity) and g (magic packet activity). Of course this is entirely dependent on how "noisy" your network is. This is something I've been thinking about for some time as I'm working on re-building my homelab for a more po…

I've been shutting off my hard drives but found that anything short of unmounting them caused them to be awoken frequently by random processes with timer-based disk access.

My solution was to move all my online use-cases to a separate SSD and mount the HDDs only when I need them for a manual process. E.g. when I want to watch a movie I have downloaded, I'll mount the disk pool and copy it to the SSD (although my internet is fast enough that just downloading it again is usually faster than the manual process).

Re: Saving Energy: Home Server That Automatically Suspends to RAM and Wakes Up Again

#86
I use an Odroid HC4 (two SATA 3 slots) powered by a Shelly smart plug. My backup script powers the plug with a HTTP call. Waits for the server to be online by repeated ssh attempts. Unlocks the backup disk by asking me the LUKS password. Starts the backup. Sshs to the server to shut it down. Polls the plug over HTTP until the power meter shows a less than one Watt consumption for a while. Eventually powers off the plug, HTTP again. The backup procedure includes a remote encrypted mirror. Power consumed between backups: zero plus the smart plug.

Re: Saving Energy: Home Server That Automatically Suspends to RAM and Wakes Up Again

#87

Earlier quoted context omitted.

>Does Time Machine run on a schedule? Add a cron job (whatever the Mac equivalent is) to send a WoL ~1min beforehand? I believe on x86 the BIOS supports setting a timer for self-wakeup. The OS can tell the BIOS "I'm going to sleep. Pull me out of sleep if the RTC passes this datetime."

Of all the x86 type BIOS and EFI, I've never seen one that didn't support that. Even thinclients and things you'd expect to leave that feature out.

I see BIOS not supporting it back in the 90's

Re: Saving Energy: Home Server That Automatically Suspends to RAM and Wakes Up Again

#88

Smartphones can be connected for days on the internal battery, using well under a watt, and they can be ready to respond instantly, and they have an app container system that makes everything just work. I really think we need to start making Android servers a thing, at least for self hosting, maybe for everything. Judging by how WearOS seems to be able to run on 35mA or less, I think there's a good case for just maki…

Android servers - I've heard this idea before and I'm genuinely curious what it would take to make Android less painful for self-hosting.

Currently automatic updates are an issue and remote management needs work.

What else am I missing?

Re: Saving Energy: Home Server That Automatically Suspends to RAM and Wakes Up Again

#89

Smartphones can be connected for days on the internal battery, using well under a watt, and they can be ready to respond instantly, and they have an app container system that makes everything just work. I really think we need to start making Android servers a thing, at least for self hosting, maybe for everything. Judging by how WearOS seems to be able to run on 35mA or less, I think there's a good case for just maki…

The power saving is not because of Android it is because of the ARM arch being used under the hood. And ARM servers for power saving purposes are very much a thing already.

Re: Saving Energy: Home Server That Automatically Suspends to RAM and Wakes Up Again

#90
If you're penny pinching also have a look at your network equipment. As a test I set all switch ports on my 24 port HP from 1Gbps to 100Mbps and the power usage dropped by 10W. About half the ports on the switch are occupied. But then again, with the current prices it might make more sense just to replace the hardware with a newer more efficient model and it will pay itself back in a year instead of 5.
Post reply on HN