Live data from Hacker News

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

maximiliangolla.com

221–230 of 230 posts

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

#221
I was just talking about this today. You can do it in better way by making your proxy wake the server directly, its possible with Caddy or Openresty.

https://news.ycombinator.com/item?id=34821935

All you have to care about is just auto sleeping and waking for the backups.

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

#222

Earlier quoted context omitted.

Battery will be a spicy pillow in a year or two of 24/7 usage. It’s accelerating the wear to considerably more than a heavy user or shop demo model Need a phone that works with the battery removed or a fake battery

Or a timer/smart plug on the outlet that keeps the battery from being 100% charged all the time. It'd be nice if things had logic to control their own charging -- start charging only when the battery drops below 40%, stop charging when you hit 90%. The hardware can do that already. (And then you can expect something like normal phone battery lifetime, which is still limited.)

With root its possible.

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

#223
post #159
post #79

This general concept is very similar to Apple’s Bonjour based “Sleep Proxy” service. Basically, if you have an Apple TV or something similar it will automatically wake up a sleeping device when someone requests its services. SSH or media sharing for example. While a device is sleeping the proxy will keep advertising its services via Bonjour. Low power always-on Apple devices are sleep proxies by default but you can t…

This is a nice idea, I was jsut wondering how to do that. Another approach (if it is supported by the adaptor) is to configure WoL so that it does not need a magic packet. Some adaptors can be configured to wake on any "directed packet". I have a linux server sitting downstairs that I might play around with. It would be nice if the sleep support featured a timer and integration with the system cron daemon. Then it co…

Interesting! I believe all the new Mac products also work like this. While sleeping a Mac will still stay on WiFi if it’s on a power adapter and the sleeping M1/M2 Macs stay on WiFi even while on battery. They also still respond to some mDNS traffic. When I try to access certain services on a sleeping Mac, like SSH, it’ll immediately wake up. Even port scanning with `nmap -p 22 ` will cause a wake up. That sounds like the wake on “directed packet” thing? In practice I think this mostly obviates the need for a Bonjour Sleep Proxy.

Also, fun tip: You can easily check if a Mac on the network is sleeping or not based on its ping response TTL. While awake it uses a TTL of 64 but while sleeping it uses a TTL of 32. You can use this little signal to roughly keep a log of when the Macs on your network are awake vs sleeping. (Not too much of an actual privacy concern I think)

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

#224

Something's not right. I own both a passively cooled 2016 Mini PC OLOEY Intel Core i7-7500U (as a home media center) and a 2023 Minisforum UM690 (for work and it's amazing btw), and they both use about 7 watts when idling (screen off). How op is using 43 watts for an idling media center is just beyond me, he must be using a 1978 Intel 8086, right? Anyhow, 4 watts is still far better than 7 watts and this is a great a…

3.5" HDDs are 5 watts each while idle, if you can spin them down they're much less, but that tough with multiple services constantly accessing data.

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

#225
I think just sleeping the HDDs might get about the same result.

I have a couple systems with i3-7100U CPUs, with 2 sticks of RAM and an NVMe SSD they idle at about 1-2 watts booted up into Proxmox.

HDDs suck down a lot of power relative to that, about 5W each just sitting there spun up.

Unfortunately I haven't figured out a good option for sleeping drives that are part of a ZFS pool in proxmox, there's just too much going on with constant drive activity.

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

#226
post #223
post #159

Earlier quoted context omitted.

This is a nice idea, I was jsut wondering how to do that. Another approach (if it is supported by the adaptor) is to configure WoL so that it does not need a magic packet. Some adaptors can be configured to wake on any "directed packet". I have a linux server sitting downstairs that I might play around with. It would be nice if the sleep support featured a timer and integration with the system cron daemon. Then it co…

Interesting! I believe all the new Mac products also work like this. While sleeping a Mac will still stay on WiFi if it’s on a power adapter and the sleeping M1/M2 Macs stay on WiFi even while on battery. They also still respond to some mDNS traffic. When I try to access certain services on a sleeping Mac, like SSH, it’ll immediately wake up. Even port scanning with `nmap -p 22 ` will cause a wake up. That sounds lik…

Nice. I'll have to try this. I may have ssh'd into a sleeping mac before and assumed that it had failed to sleep. I did not realise what it was doing.

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

#227

Earlier quoted context omitted.

> 256GB DDR5 uses 80W! WTF?!

If it sounds unbelievable, that's because it isn't remotely true. DDR5 is 13% more efficient than DDR4 and has 4 times the max die density. 256GB broken up into four 64GB sticks would use about 8 watts. This person make insane claims about power all the time. They claim nothing will surpass old raspberry pis and intel atoms in efficiency, that nothing will surpass 1 gb networking due to power constraints (even though…

64GB DIMM are probably brittle.

The 256GB I mentioned was industrial server memories built to last.

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

#228
post #88

Earlier quoted context omitted.

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?

Battery will be a spicy pillow in a year or two of 24/7 usage. It’s accelerating the wear to considerably more than a heavy user or shop demo model Need a phone that works with the battery removed or a fake battery

Or a dedicated server device that only uses the battery as a backup. Some of the stuff in a phone is unnecessary for a server. Some might be useful like LTE and GPS, but a full resolution AMOLED isn't, a cheap 3" screen is enough.

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

#229
post #208

Earlier quoted context omitted.

Android has the NDK now, it can run native code with only tiny headers of java to launch it, plus ART compiles the Java anyway as I understand it. Regular Linux could be tweaked, but I think it would be way easier to start on Android and add all the missing stuff you want for a server, than to start on Linux. Regular Linux still uses a bit more power, and they don't have any kind of container+sandbox that works quite…

> Regular Linux could be tweaked, but I think it would be way easier to start on Android and add all the missing stuff you want for a server, than to start on Linux. I severely doubt it.

Things still break on Linux almost every update. Android has a lot that Linux doesn't, as far as I know Linux has very little that Android doesn't other than easy support for legacy Linux apps.

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

#230
post #227

Earlier quoted context omitted.

If it sounds unbelievable, that's because it isn't remotely true. DDR5 is 13% more efficient than DDR4 and has 4 times the max die density. 256GB broken up into four 64GB sticks would use about 8 watts. This person make insane claims about power all the time. They claim nothing will surpass old raspberry pis and intel atoms in efficiency, that nothing will surpass 1 gb networking due to power constraints (even though…

64GB DIMM are probably brittle. The 256GB I mentioned was industrial server memories built to last.

None of what you are saying makes sense. Why do you think any of this is true?
Post reply on HN