Yes, building the world sucks, and that’s why I’m still not running v3 binaries today after trying many times to get it working. After spending a day and a half compiling software just to find that there are packages that simply will not compile for v3, it’s really hard to debug.
Having at least a minimal core of packages/compilers built by hydra (or community ci) would be a massive help to get v3 up and stabilized.
For your X220, you can always cross-compile down from a more powerful machine, or take advantage of some nixbuild.net free credits to build v0 binaries.
I’m more concerned about the benefits that we get in exchange for killing older HW (and dealing with other issues from it). My TL;DR is that more broad benchmarks show very underwhelming numbers, like
Lots of improvements can be had by using libraries that do dynamic dispatch in runtime. glibc does this, zlib-ng does this too and has handrolled vectorized deflate/inflate which has some much nicer performance and is basically a drop-in for zlib. Compilers are not great at autovectorisation so most benefits would come from handrolled code and which point people seem to prefer to do dynamic dispatch with stuff like function versioining and whatnot.
If you are running hardware older than that, you also don’t have hardware that can mitigate against specter/meltdown.
…
low-cost CPUs, but people running that hardware aren’t using NixOS
Wrong!
I have a GPD MicroPC with Intel Celeron N4120. Released in late 2019 (both processor and PC), purchased in mid 2023 and working great till today. N4120 does NOT support x86_64-v3, yet it DOES have specter and meltdown mitigations in place (according to Google).
The little machine runs full NixOS with KDE, I browse modern web on it, use Emacs, the whole deal! I’m sure I’m not alone with such devices, with lots of NUCs also having similar CPUs.
Before making such grand claims in the name of performance and security, please, provide some numbers on tradeoffs and why the positives outweigh negatives instead of raw vibes.
disclaimer: im not a full time programmer, but the way i see it is like this: nixos cache natively supports “x86_64-linux” “aarch64-linux” “armv6l-linux” “armv7l-linux” etc.. instead of treating v2 as its own specific cpulevel, we should treat it like “x86_64-linux-v2“. if system not support, we can hard code it to fallback to default “x86_64-linux”
But of course an internal nixpkgs library had to be modified as well, but it opens a gradual transition for per-package supported “forAllSystems“ to newer cpulevel.
No, it does not get native 32-bit ARM builds (v6, v7). And yes, it technically is possible, but doubling the costs in CPU + AWS for x86* would be quite expensive.
Considering very modest performance gains, doubling the build CPU minutes will probably make it a poor investment, even on pure minute-for-minute comparison.
Cost wise, I just don’t see it. We’re already pretty bad at optimising both CPU and AWS. At least until contents addressed store lands and is deemed stable, this one ought to be a non-goal.
If we double the storage size for x86 by building for two variants, the foundation will have to keep paying lots of money to Amazon (or consider some mitigations). The ramp-up would be gradual, of course. After we introduce some (better) garbage-collection for cache.nixos.org etc. this aspect might be fine. (but still the CPU build costs…)
Could be, but how to achieve it technically? The problem is packages depending on this selected subset. The simple ways won’t work AFAIK, or you’d need grafting (e.g. system.replaceDependencies in NixOS config).
Keep v1 and selectively build performance-sensitive packages for v3
[…]
That could include things like compilers, compression tools, crypto libraries, multimedia codecs, numerical/scientific software, databases, and other packages where AVX2/FMA/BMI actually produce measurable gains.
Even if AVX2 provides benefits, note that many projects already will be using AVX2 in NixOS:
JIT compilers such as Hotspot also do a similar thing.
One of nixpkgs’s strengths is its portability: used for devices of many sizes/ages, and from other distributions. I worry that raising the baseline weakens that story, especially when the benefits are unclear, as the biggest beneficiaries of recent instructions already use them.
Somewhat related: If I understand correctly, CERN is moving some of their computers to debian precisely because of a similar change from v1 to v2 in CentOS
(I am really fuzzy on the details however, so hopefully someone more knowledgeable can fill in the blanks)
Additionally: current hardware prices mean plenty of people are being scrappy with older hardware. And that just as Microsoft decided to make their platform incompatible with older hardware like a year or so ago.
While I understand the desire, changing this right now is a little tone deaf.
For your knowledge Linux itself does not support anything before intel pentium because of lack of tsc.
It appears that pentium 4 was one of the first processors using x86-64 arch, and Intel Core 2 series being the last ones to support it (not including embedded devices running intel Atom, but those are rare), and last supported cpus from AMD are probably Athlons.
I don’t think you would be so scrappy to use those for your main setups given that most of them would be very limited, since a lot of setups from that time would support at most 8 gigs of ram (and get lucky to find motherboard with that socket anyways). There’s no real problem switching to v2 since that what majority of user hardware was before windows introduced that lockup.
Not related to topic but Core 2 Extreme QX9775 was drawing 150 watts of power oh my god that was so inefficient.
I would prefer all my routers to continue to be able to run off the official binary cache. For what it’s worth, I’m hearing of a nearby mini PC manufacturer “downgrading” to DDR3 for their router SKUs too, because DDR4 is overkill given component shortages, and the smaller Celerons certainly won’t be using all that memory bandwidth.