News for hackers. Stuff that matters.
Re:Windows 11 vs. Ubuntu 24.10 Performance For Intel Core Ul... by eknkc on Wednesday October 09, 2024 @11:13AM (#41788762)
So, this got me curious. Assuming a cpu heavy benchmark with no syscalls (calculate primes or something like that) I’d not really expect a major difference between OSs. I guess you have the scheduler possibly fucking things up and the memory management. Maybe?

What else could contribute to a raw cpu benchmark difference?

Re:Windows 11 vs. Ubuntu 24.10 Performance For Intel Core Ul... by llm_nerd on Wednesday October 09, 2024 @11:39AM (#41789112)
There are such an enormous array of possible influences on this, most likely being the power profile.

By default Windows on a laptop (in this case a Zenbook S 14 with Core Ultra 7 256V) uses a reduced power mode where it limits the max frequency and is less aggressive in scaling up core frequency because of the greatly reduced return per unit of power (which can destroy battery life and make heat profiles unacceptable).

This comparison makes no mention of the power profile, nor does it observe battery usage if applicable.

This looks like a misleading if not completely useless clickbait comparison. Others mentioned schedulers, and while schedulers can account account for a percent or two difference across this sort of wide workload, instead a huge disparity is seen.

Re:Windows 11 vs. Ubuntu 24.10 Performance For Intel Core Ul... by mallets on Wednesday October 09, 2024 @11:55AM (#41789335)
Or the more obvious answer: newer binaries/libraries/kernel for Linux. Is it still hard to believe Windows leaves a lot performance on the table? And it does mention powersave governer for Ubuntu.
Re:Windows 11 vs. Ubuntu 24.10 Performance For Intel Core Ul... by albertopv on Wednesday October 09, 2024 @02:39PM (#41791198)
Coworkers switched from Win11 to Ubuntu, our main Spring Boot project compiled time was cut in half. I guess ntfs is a factor in this specific use case, it's a medium sized project with a few thousands files and classes.
Re:Windows 11 vs. Ubuntu 24.10 Performance For Intel Core Ul... by consteval on Wednesday October 09, 2024 @04:53PM (#41792484)
NTFS is 100% the problem here. It really struggles with many small files type use cases. In pretty much all my projects, I notice a huge compile time cut in Linux and Mac as opposed to Windows.

Also a lot of typical Linux pipelines become unbearably slow if you try to replicate them in Windows.

Re:Windows 11 vs. Ubuntu 24.10 Performance For Intel Core Ul... by EasyMark on Thursday October 10, 2024 @12:56AM (#41795649)
Have you thought about using ccache since you have so many files to compile? Although I assume after the initial compile it’s not that big of a deal.
Re:Windows 11 vs. Ubuntu 24.10 Performance For Intel Core Ul... by albertopv on Friday October 11, 2024 @01:09AM (#41806366)
Of course. Mine is just an example to explain that there are many ways to improve Windows performance
Re:Windows 11 vs. Ubuntu 24.10 Performance For Intel Core Ul... by xxs on Wednesday October 09, 2024 @11:26AM (#41788895)
the scheduler has been an issue for windows for quite some time... along with the built-in anti-virus (and ads).
Re:Windows 11 vs. Ubuntu 24.10 Performance For Intel Core Ul... by LeifCarrotson on Wednesday October 09, 2024 @11:24AM (#41788876)
It's almost certainly the scheduler, IMO.

> On average the Ubuntu 24.10 release was about 14% faster than Microsoft Windows 11 out-of-the-box on this Lunar Lake powered ASUS Zenbook S 14 laptop.

What else was the "Out-of-the-box" Windows installation trying to do while they were running the benchmark? Sitting here on my Windows 10 installation with nothing but Firefox and Task Manager open, there are dozens of things clamoring for the attention of the scheduler and using CPU:

https://i.imgur.com/NxBOBXm.png

Yeah, I've installed several of these services on purpose, but I've also uninstalled or inhibited a bunch of things that I didn't need.

Re:Windows 11 vs. Ubuntu 24.10 Performance For Intel Core Ul... by llm_nerd on Wednesday October 09, 2024 @11:46AM (#41789196)
>What else was the "Out-of-the-box" Windows installation trying to do while they were running the benchmark?

It's trying to maximize the performance to power usage ratio out of the box. The default power profile is very conservative, which on a laptop means better battery life and reduced heat. Given that this comparison didn't do even rudimentary power consumption, heat, or CPU frequency scaling measures, it is overwhelmingly likely as the difference.

> there are dozens of things clamoring for the attention of the scheduler and using CPU

Linux machines have hundreds of processes too. It simply doesn't matter in 2024. That isn't a factor and isn't relevant, nor is the scheduler to blame.

This is a silly misleading benchmark that is de facto clickbait. Pretty surprisedto see it doing well here.

Re:Windows 11 vs. Ubuntu 24.10 Performance For Intel Core Ul... by sumtechguy on Wednesday October 09, 2024 @11:41AM (#41789139)
Wonder if it is putting things onto p-cores more aggressively. Would need to the power graphs at the same time to see that.
Re:Windows 11 vs. Ubuntu 24.10 Performance For Intel Core Ul... by high_na_euv on Wednesday October 09, 2024 @11:51AM (#41789263)
You have shitton of custom soft there
Re:Windows 11 vs. Ubuntu 24.10 Performance For Intel Core Ul... by HPsquared on Wednesday October 09, 2024 @11:15AM (#41788785)
Power management maybe.
Re:Windows 11 vs. Ubuntu 24.10 Performance For Intel Core Ul... by jeffbee on Wednesday October 09, 2024 @11:15AM (#41788782)
Power government seems like a likely candidate.
Re:Windows 11 vs. Ubuntu 24.10 Performance For Intel Core Ul... by riskable on Wednesday October 09, 2024 @12:03PM (#41789472)
If it hasn't changed since 24.04 the default power governor in Ubuntu 24.10 is "powersave". I'd be curious to see how performance improved if Phoronix tested with the "performance" governor.
Re:Windows 11 vs. Ubuntu 24.10 Performance For Intel Core Ul... by jeffbee on Wednesday October 09, 2024 @01:01PM (#41790120)
It could go either way honestly. The "performance" governor tries to max out the CPU clock rate all the time but because of transient thermal capacity this is not always optimal. The CPU will rip as hard as possible even under powersave, and it might hit a higher transient peak because it starts out cold.