Wednesday, July 03, 2024

Re: OpenBSD runs hotter than Linux with same laptop, draws more electricity?

On Tue, 2 Jul 2024 08:54:09 Stuart Henderson wrote:
> On 2024-07-01, A B <bndele@outlook.com> wrote:
> > I just wonder why OpenBSD requires more CPU load for the same kind of activity (web browsing), and also appears to draw more electricity from the power supply when measured, compared to Linux, when using the same laptop?
>
> This is not unexpected.
>
> > Perhaps more Assembly instructions to complete the same task? But why? Memory protection kinds of checks?
> >
> > Note this is also when using the integrated (Intel) GPU.
>
> A lot of this is down to Linux having spent more time on optimising
> things for power consumption. Things like choices made in the scheduler
> (deciding which cpu to run a process on) have an effect, especially on
> certain cpu types, as well as code selecting cpu frequencies etc.

Or, it's some issue affecting that laptop in particular (I guess it's
the Macbook Pro the OP mentions in the other thread.)

I remember many years ago I asked about the same thing here. I had
bought a Thinkpad t410 purely to run OpenBSD on it, but I didn't get
honest answers like yours. Someone, just to make me shut up, sent me a
private message telling me that my battery was screwed. :-)

Thanks to the work of the developers (I'm pretty sure those improvements
didn't come from the guy who blamed my battery) support for this laptop
improved along the years, currently I don't notice apparent difference
between running Linux or OpenBSD on this machine.


Walter

No comments:

Post a Comment