Live data from Hacker News

Making a Linux home server sleep on idle and wake on demand (2023)

dgross.ca

31–40 of 115 posts

Re: Making a Linux home server sleep on idle and wake on demand (2023)

#31

Have you measured the power consumption of your "high power consumption" server?

Mine idles at around 130W from the walls. I think it's mostly the hard drives, maybe the SAS controller. I've migrated a few services to a miniPC and started turning it off too.

The main issue for me is the heat. I've got it next to me and 130W of heat adds up in the summer.

Re: Making a Linux home server sleep on idle and wake on demand (2023)

#33
post #5

(2023), discussed at the time: https://news.ycombinator.com/item?id=35627107

Thanks! Macroexpanded:

Making a Linux home server sleep on idle and wake on demand – the simple way - https://news.ycombinator.com/item?id=35627107 - April 2023 (237 comments)

Re: Making a Linux home server sleep on idle and wake on demand (2023)

#34
post #9

Earlier quoted context omitted.

Seriously. You can get running states around 1W these days.

Running states around 1W? How?

Only put the RAM you need in the box, use peripherals with working ASPM, attach them to the northbridge PCI ports instead of the CPU's root ports, use wireless instead of wired networking, and don't attach a display.

Re: Making a Linux home server sleep on idle and wake on demand (2023)

#35
20 years ago, I used to have a Linux server running Slackware at home, that would wake up the two PCs we had at home to back up their data if they were turned off. If they were already turned on, they would send a WOL packet to the Linux server to turn it on in case the that server was off, and then start the backup routine. And the last one would tell the Linux server to turn-off itself. It used to work really great, good times.

Re: Making a Linux home server sleep on idle and wake on demand (2023)

#36

Well done. But note: you can grab an ATX control board, or configure the RPi as a USB Gadget to wake the machine via power button or keyboard.

I did this recently as I was struggling to get WoL to work with my consumer PC. It seems like this ultra low-level stuff is a total crapshoot so if you can dodge it by just wiring up the power button, that's a good option.

In in the end I just went the whole hog and set up a PiKVM, so now if I mess up the machine's networking (or even completely break the OS) I can still recover it remotely even though it doesn't have a proper BMC or anything like that.

In general this approach seems ugly in principle but I really like it in practice. It lets you retrofit solid remote capabilities onto consumer hardware. That way you have such a broader market to buy from.

Re: Making a Linux home server sleep on idle and wake on demand (2023)

#37
post #12

All this complexity to save a few bucks per year on your electricity bill? This is ridiculous, the Pi costs far more than what you can be expected to save.

In many European countries electricity is quite expensive. In the U.K. for example, running 20 watts nonstop for a year will cost you around $65 on a typical tariff. If you have more than one home server the savings can quickly add up.

Also 20W is fairly low for idle draw right? Like I think you can get proper machines down that low if you know what to look for but most stuff bigger than a mini PC is gonna be drawing 40+? I might be slightly miscalibrated though.

Anyway it's not about the money for me it's any the aesthetics. Burning power for nothing is yucky.

Edit: just been Googling around. OP is running one of these HP mini PCs. They are pretty efficient! Some go well below 10W. So yeah I would say for the specific use case it's unlikely to matter very much. But still it's a useful thing to be able to do in general.

Re: Making a Linux home server sleep on idle and wake on demand (2023)

#39
post #9

Earlier quoted context omitted.

Seriously. You can get running states around 1W these days.

What to do about this? https://forums.developer.nvidia.com/t/phantom-rtx-5090-high-...

You can use nvidia-smi to set a target maximum power draw and performance mode to bring idle power levels down. Also make sure your computer is using the server/headless mode driver to keep idle power consumption down.

Re: Making a Linux home server sleep on idle and wake on demand (2023)

#40
post #34

Earlier quoted context omitted.

Running states around 1W? How?

Only put the RAM you need in the box, use peripherals with working ASPM, attach them to the northbridge PCI ports instead of the CPU's root ports, use wireless instead of wired networking, and don't attach a display.

I do basically all of that, CPU idles around 5% but still consumes over 100W. (Minus the Wireless part)

(5800X + 64GB)

I can enable Eco Mode in the BIOS, which will bring down the CPU to about 65W max although its still at about 100W total system.

Post reply on HN