Live data from Hacker News

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

maximiliangolla.com

21–30 of 230 posts

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

#22
post #15

>Why isn't this the default (or at least a configuration option)? Because 1) you still need a second machine to wait for incoming requests, 2) in a server there's no general way to check if the server is serving requests or not. Plex happened to provide an API that specifically does what you needed, but you had to resort to a bit of a hack for Time Machine. This is unlike a desktop context, where you can check if the…

It's also worth mentioning that, by his own admission, OP only managed to save less than 2 euro cents per day (60 / 3360). Maybe he has different ideas, and that's perfectly fine, but personally I value reliability and uptime far more than 2 cents. EDIT: I failed at math. See below comments. :V

And you can have most of it with a banal sleeping/waking up by the schedule. Regular Joe sleeps at night and works at day.

EDIT: btw, this solves "if Time Machine starts a backup" completely.

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

#23
€0.49 / kWh is an insanely high price for electricity.

Here in the US in Cali, $0.32 / kWh is considered a steep price. I've heard the price in Oregon is $̶0̶.̶0̶2̶ ̶/̶ ̶k̶W̶h̶ $0.20 / kWh.

What gives.. why can't electricity be delivered less expensively / more economically in Germany?

Edit: Thanks for the corrections regarding Oregon, makes me feel a little better about the situations elsewhere. :)

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

#24
post #15

>Why isn't this the default (or at least a configuration option)? Because 1) you still need a second machine to wait for incoming requests, 2) in a server there's no general way to check if the server is serving requests or not. Plex happened to provide an API that specifically does what you needed, but you had to resort to a bit of a hack for Time Machine. This is unlike a desktop context, where you can check if the…

It's also worth mentioning that, by his own admission, OP only managed to save less than 2 euro cents per day (60 / 3360). Maybe he has different ideas, and that's perfectly fine, but personally I value reliability and uptime far more than 2 cents. EDIT: I failed at math. See below comments. :V

About 41 euro cents per day->57€/140

3360 is the number of hours in 140 days.

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

#25
post #14
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.

And because 43 watts is about $200 a year.

[deleted]

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

#26
post #23

€0.49 / kWh is an insanely high price for electricity. Here in the US in Cali, $0.32 / kWh is considered a steep price. I've heard the price in Oregon is $̶0̶.̶0̶2̶ ̶/̶ ̶k̶W̶h̶ $0.20 / kWh. What gives.. why can't electricity be delivered less expensively / more economically in Germany? Edit: Thanks for the corrections regarding Oregon, makes me feel a little better about the situations elsewhere. :)

> why can't electricity be delivered less expensively in Germany?

https://www.reuters.com/business/energy/moscows-decades-old-...

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

#27
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.

Until a few months ago I would said that Linux handles it well, but not anymore. I can't use sleep anymore because of this bug https://bugzilla.redhat.com/show_bug.cgi?id=2136971

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

#28

Interesting solution. I wonder if you could make the 'wake up' a bit more advanced. Run tcpdump or something similar on the Pi, with a filter set for inbound packets to the media server on ports that Plex or Time Machine uses. If it sees those packets, send the WoL magic packet. This might not work if your switch does proper port isolation - but you could perhaps add port mirroring or something like that.

I think you could maybe just snoop for ARP - when you see something trying to discover the IP wake the machine up. Supposedly some Intel NICs [0] already support this, though they also wake on multicast which you wouldn't want here.

[0] https://forums.unraid.net/topic/6455-how-to-wake-on-arp-unra...

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

#29
post #15

Earlier quoted context omitted.

It's also worth mentioning that, by his own admission, OP only managed to save less than 2 euro cents per day (60 / 3360). Maybe he has different ideas, and that's perfectly fine, but personally I value reliability and uptime far more than 2 cents. EDIT: I failed at math. See below comments. :V

About 41 euro cents per day->57€/140 3360 is the number of hours in 140 days.

You are, in fact, correct. I have no idea why I converted 140 days into hours...

Still, my point remains unchanged: I, at least, value reliability and uptime more than ~43 euro cents.

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

#30
post #23

€0.49 / kWh is an insanely high price for electricity. Here in the US in Cali, $0.32 / kWh is considered a steep price. I've heard the price in Oregon is $̶0̶.̶0̶2̶ ̶/̶ ̶k̶W̶h̶ $0.20 / kWh. What gives.. why can't electricity be delivered less expensively / more economically in Germany? Edit: Thanks for the corrections regarding Oregon, makes me feel a little better about the situations elsewhere. :)

Oregon is 11.9c/kWh [1] Still not bad.

[1] - https://www.eia.gov/state/print.php?sid=OR

Post reply on HN