4 ms·
OpenBSD 7.1: fan noise and high temperature solution
- alberth 4y agoPower Management has always been tricky in how you approach it from a defaults perspective. For example, in ... Servers - you most likely want to prioritize always having max performance (in lieu of power/heat). Laptops, you probably want to dynamically adjust performance since you're in physical contact with the device that's producing the heat. Desktops, it's a bit unknown what the user might wants to prioritize (is it power efficiency, is it max perform, or a hybrid). Microsoft got this right decades ago and just made it a togglable OS option for the user to decide.
- anthk 4y agoGNU/Linux too since Cpufreq. It's the DE's task to set that graphically to the user. Nothing difficult, at all. Under OpenBSD, apmd(8) handled that until now. https://man.openbsd.org/apmd https://man.openbsd.org/apmd
- mey 4y agoKinda drives me nuts when OEMs in windows decide they don't want to integrate with the Window power manager and instead want to offer their own take. Granted that seems to have mostly gone away in Win 10 and 11.
- buildbot 4y agoIMO servers are bit more tricky, these days there is a big advantage in operating in the best power/perf/watt window - the limits are in DC power and cooling
- daneel_w 4y agoThis change, made seemingly entirely on Theo's whim, has rightfully caused quite some criticism on the mailing lists and on IRC. I'm not sure if it ever crossed his mind exactly how much more fan noise, and how many more megawatt-hours of wasted power (and money spent on electricity bills), this will cause globally for the collective user base. Very poor choice of anti-ecology. It offsets the benefits and the work that has gone into making computers and operating systems power-efficient.
- j_not_j 4y agoecho hw.perfpolicy="auto" >> /etc/sysctl.conf What's the big deal, there are often changes, sometimes inconvenient, sometimes breaking changes, requiring a configuration file change or software update. This is true of any operating system update or upgrade.
- Macha 4y agoThird line of the article: > As the usual "automatic" frequency scheduling mode is no longer available, I wrote a simple utility to manage the frequency when the system is plugged to the wall, I took the opportunity to improve it, giving better performance than the previous automatic mode, but also giving more battery life when using on a laptop on battery.
- KronisLV 4y ago> What's the big deal, there are often changes, sometimes inconvenient, sometimes breaking changes, requiring a configuration file change or software update. I think some might suggest that the defaults matter a lot. > However, it may doesn't throttle well for some users, resulting in huge power usage even when idle, heat from the CPU and also fan noise. While the crowd that uses OpenBSD might be crafty enough to look up and apply solutions, this happening in any mainstream OS would be unacceptable, since many simply wouldn't know how to change the setting, or wouldn't even be aware that there's a setting to change in the first place. And what would the consequences be if tens to hundreds of millions of devices out there suddenly started wasting lots of electricity and ran in a mode that could cause the CPUs to fail more quickly? Here's a nice article on the topic of defaults: https://www.jason.af/defaults-matter/ https://www.jason.af/defaults-matter/
- discardedrefuse 4y ago> this happening in any mainstream OS would be unacceptable, since many simply wouldn't know how to change the setting, or wouldn't even be aware that there's a setting to change in the first place. Last year I tried to run FreeBSD on a HP DL380 G7 (old-ish enterprise server). After install, all the fans were spinning at ludicrous speeds. Funny thing about these HP servers; the fans will spin like this if you put non-HP hardware components in them. I don't have non-HP components, so I never had the fan issue prior to FreeBSD. But because the issue was so common, searching the web kept turning up crazy solutions using resistors and such. I gave up and put Alpine Linux on there instead. Alpine worked great. Months later, I went back and tried FreeBSD again. This time I had stumbled across a FreeBSD specific fix for the fan: sysctl hw.acpi.cpu.cx_lowest=C3 That was it; a C state setting. I had to learn about C states, powerd and Intel SpeedStep before I could do anything with FreeBSD on that server. No power management. But... we get a mail server? Yeah, I would say defaults do matter.