Linux 7.2 finally cuts off ancient x86 fallback code

18 hours ago by TheIPW to c/linux

As Linux 7.2 makes the Time Stamp Counter mandatory, we look at why dropping legacy x86 fallback timing code is long overdue.

Linux 7.2 has landed, dragging x86 timing clean out of the nineties by making the Time Stamp Counter mandatory.

I wrote up a quick article on why ditching those ancient legacy fallbacks is good housekeeping, plus a few other bits like cache-aware scheduling and memory tweaks worth noting.

Is anyone still using legacy hardware? If so, what do you use it for?

HieroProtagonist 12 points 13 hours ago

Just a quick reminder: NetBSD still has it and will very likely in the foreseeable future

path: 0 25379511, hotness: undefined, score: 12, children: 1
provectus 7 points 7 hours ago

I mean what can't run NetBSD? I feel like we should start writing drivers in rumpkernels instead of writing drivers for our OS's.

path: 0 25379511 25384257, hotness: undefined, score: 7, children: 0
Mio 9 points 7 hours ago

I wonder when x86 will be completely removed.

path: 0 25384263, hotness: undefined, score: 9, children: 1
somegeek 8 points 6 hours ago

when all x86 production stops, we can give it 20-30 years from then.

path: 0 25384263 25385332, hotness: undefined, score: 8, children: 0
geneva_convenience 5 points 15 hours ago

It makes more sense to do this in a major upgrade like from kernel 6 to 7 but some cleanup is good.

path: 0 25377282, hotness: undefined, score: 5, children: 1
ferric_carcinization 50 points 15 hours ago

major upgrade like from kernel 6 to 7

What do you mean? The Linux kernel doesn't follow SemVer.

The 6.19 -> 7.0 version bump didn't have any more inherent meaning than 7.0 -> 7.1 or 7.1 -> 7.2.

path: 0 25377282 25377341, hotness: undefined, score: 50, children: 0
db2 -31 points 17 hours ago

Yay, reduced functionality 🥳

path: 0 25375612, hotness: undefined, score: -31, children: 70
Canadian_Cabinet 48 points 17 hours ago

Virtually nobody is going to run kernel 7.2 on a 90s CPU without a time stamp chip. Its good practice to prune old and largely unused features once and a while

path: 0 25375612 25375790, hotness: undefined, score: 48, children: 3
SteveTech 15 points 8 hours ago

Also kernel 6.12 has support until 2035, so it's not like anyone running these CPUs would be missing out on security updates for a while.

path: 0 25375612 25375790 25383342, hotness: undefined, score: 15, children: 0
corsicanguppy -1 points 13 hours ago

With an ifdef.

path: 0 25375612 25375790 25379542, hotness: undefined, score: -1, children: 1
DacoTaco 9 points 11 hours ago

No, cause that means keeping that code maintained when things change too. So basically, no difference

path: 0 25375612 25375790 25379542 25381035, hotness: undefined, score: 9, children: 0
ISolox 21 points 13 hours ago

My man were talking about hardware from like the 90s lol. Linux is amazing on keeping old hardware going, but even it has to move on at some point.

path: 0 25375612 25379053, hotness: undefined, score: 21, children: 0
atzanteol 20 points 15 hours ago

I'm sure you'll be devastated to learn that Linux stopped supporting the i386 in 2012.

path: 0 25375612 25377447, hotness: undefined, score: 20, children: 3
Crozekiel 9 points 8 hours ago

And this change basically just drops support for the i486. In 2026. 13 years after they dropped support for the i386. Those processors came out in 1985 and 1989 respectively. If this keeps up, we might lose support for the first Pentium CPUs (released in 1993) around 2040...

I couldn't imagine running a modern OS on those chips, or even how I would go about installing it. We are talking about computers pre-USB and CD-ROM drives. Average hard disks were under 100MB, average ram was under 10MB. The rare specialty distros that can fit on a floppy are likely heavily modifying their kernals to work / fit anyway. I don't understand why people are outraged by this.

path: 0 25375612 25377447 25383269, hotness: undefined, score: 9, children: 2
notgold 3 points 6 hours ago

There's just a few vocals not the majority. I know we still have a few i486 running and even 1 i386 running. There not connected to anything and just perform the same simple task they have for decades so updates are virtually meaningless. Not uncommon in power, water, rail, and other utilities.

path: 0 25375612 25377447 25383269 25384918, hotness: undefined, score: 3, children: 0
Holytimes 2 points 38 minutes ago

It's easy to understand. They are objectively fucking stupid and like to be outraged for the sake of it. That or they are literally trolls

These people are literally not worth any amount of effort to pay attention to if they are the former and if they are the latter then remember rule 1. Don't feed the trolls.

path: 0 25375612 25377447 25383269 25388382, hotness: undefined, score: 2, children: 0
pastermil 8 points 14 hours ago

You know, Windows98 is still available

on archive.org

path: 0 25375612 25378434, hotness: undefined, score: 8, children: 3
corsicanguppy 7 points 13 hours ago

You spell ReactOS so weird.

path: 0 25375612 25378434 25379530, hotness: undefined, score: 7, children: 1
pastermil 1 point 3 hours ago

Perhaps my grandchildren would spell it correctly.

path: 0 25375612 25378434 25379530 25387298, hotness: undefined, score: 1, children: 0
ThomasWilliams 1 point an hour ago
path: 0 25375612 25378434 25388038, hotness: undefined, score: 1, children: 0
mabeledo 6 points 8 hours ago

How dare they. We should also demand that they bring back support for i386 and SUN-4.

path: 0 25375612 25383960, hotness: undefined, score: 6, children: 1
rmuk 7 points 6 hours ago

MOS 6502 support when?

path: 0 25375612 25383960 25384899, hotness: undefined, score: 7, children: 0
GustavoM 4 points 15 hours ago

Why on earth you are still relying on 30+ year old CPU's? Are you a supermarket owner on a third world country?

path: 0 25375612 25377446, hotness: undefined, score: 4, children: 16
Calfpupa 12 points 15 hours ago

Some people are.

path: 0 25375612 25377446 25377540, hotness: undefined, score: 12, children: 13
atzanteol 2 points 4 hours ago

No - nobody is still using one that would be running a modern distro. Anyone relying on hardware this old is already managing their own ecosystem of software.

We're talking about computers that have clock speeds in the megahertz range FFS. They're slower than an ESP32 and take a lot more power.

Nothing of value was lost.

path: 0 25375612 25377446 25377540 25386212, hotness: undefined, score: 2, children: 0
gian 2 points 11 hours ago

Maybe, but I think that they will not upgrade the system, even without this change there is no reason to use a 7.x kernel on a 30+ Yeats old hardware

path: 0 25375612 25377446 25377540 25381259, hotness: undefined, score: 2, children: 0
Horsey 1 point 11 hours ago

I’m pretty sure any Rpi is more powerful, smaller, and more efficient than any computer hardware from 30 years ago lol.

path: 0 25375612 25377446 25377540 25381286, hotness: undefined, score: 1, children: 3
Calfpupa 3 points 10 hours ago

True, but imagine the cost of having to set that up as a third world market owner

path: 0 25375612 25377446 25377540 25381286 25382267, hotness: undefined, score: 3, children: 2
HouseWolf -2 points 14 hours ago

Yeah God forbid the poor still use a secure and updated OS...

path: 0 25375612 25377446 25377540 25377786, hotness: undefined, score: -2, children: 6
brucethemoose 4 points 8 hours ago

i486 is an antique now. It’s an artifact more expensive than less-ancient PCs.

It would require quite an expert to setup with a 7.X kernel, especially with network access.

I’m all for old hardware support, but there’s basically no scenario where this hurts anyone struggling to get by.

path: 0 25375612 25377446 25377540 25377786 25383498, hotness: undefined, score: 4, children: 0
DacoTaco 4 points 11 hours ago

Like they would run on a i368 or i468 cpu. They run pentium 2, at least. And guess what, those are still supported ( basically pentium 1 and up )

path: 0 25375612 25377446 25377540 25377786 25381075, hotness: undefined, score: 4, children: 0
atzanteol 3 points 4 hours ago

Omg. You people are ridiculous. 🤣

path: 0 25375612 25377446 25377540 25377786 25386171, hotness: undefined, score: 3, children: 0
Lettuceeatlettuce 3 points 7 hours ago

If you're using a 30+ year old computer in the modern day, you've already sacrificed security.

The price and availability of a 15 year old computer is almost the same as a 30 year old computer, you can get a fully functional 1st gen i5 PC that will sprint circles around the highest end 90's PC for $40. Honestly, most people are just e-wasting computers that old, I'm sure you could easily get them for free, hell, lots of people would pay you to take them off their hands.

path: 0 25375612 25377446 25377540 25377786 25384547, hotness: undefined, score: 3, children: 0
atzanteol 3 points 4 hours ago

No "poors" are running a 486. You would take the best part of and hour to boot a modern distro on a 66MHz (that's 0.066GHz for you kids) 486. That's if it would boot at all - which it likely wouldn't.

path: 0 25375612 25377446 25377540 25377786 25386265, hotness: undefined, score: 3, children: 0
ThomasWilliams 1 point an hour ago
path: 0 25375612 25377446 25377540 25377786 25388010, hotness: undefined, score: 1, children: 0
notgold 2 points 6 hours ago

Utilities still use them. If it's not broke, why fix it.

path: 0 25375612 25377446 25384989, hotness: undefined, score: 2, children: 1
Holytimes 1 point 35 minutes ago

Those devices also don't get updated, touched or fucked with. So any changes to newer kernels matter as much as as the answer to what fucking dirt taste like.

It literally doesn't. So being mad at the removal is fucking retarded.

path: 0 25375612 25377446 25384989 25388402, hotness: undefined, score: 1, children: 0
SocialistVibes01 -20 points 16 hours ago

Yup. Linux isn't what it used to be anymore.

path: 0 25375612 25376176, hotness: undefined, score: -20, children: 37
Lettuceeatlettuce 12 points 13 hours ago

You're right, it's way better.

path: 0 25375612 25376176 25379553, hotness: undefined, score: 12, children: 0
SMillerNL 4 points 11 hours ago

Time to ask for a refund of the 0 money you paid to use it.

path: 0 25375612 25376176 25381536, hotness: undefined, score: 4, children: 16
SocialistVibes01 -12 points 10 hours ago

That's not an individual problem, but you liberals only work in an individual and monetary logic. The Evil Empire's propaganda is efficient.

path: 0 25375612 25376176 25381536 25381919, hotness: undefined, score: -12, children: 15
brucethemoose 8 points 8 hours ago

This is so lemmy.ml it hurts. I’m bookmarking this comment, thank you.

path: 0 25375612 25376176 25381536 25381919 25383538, hotness: undefined, score: 8, children: 12
db2 1 point 3 hours ago

Dude. I gave you the benefit of the doubt in spite of your instance. You actually succeeded only in being disappointing. Do better.

path: 0 25375612 25376176 25381536 25381919 25386886, hotness: undefined, score: 1, children: 1
Grass 2 points 13 hours ago

I'm not what I used to be

path: 0 25375612 25376176 25378903, hotness: undefined, score: 2, children: 0
non_burglar 2 points 13 hours ago

You make it sound like no one can just go keep the older hardware alive by forking.

path: 0 25375612 25376176 25379387, hotness: undefined, score: 2, children: 3
corsicanguppy -1 points 13 hours ago

I love the "just fork it" argument.

Look, Elon, maybe we can't solo a project like that if we're still using old hardware, okay?

Sorry if that made you frown behind your shades. Ask the poolside waiter for a other cocktail.

path: 0 25375612 25376176 25379387 25379584, hotness: undefined, score: -1, children: 1
non_burglar 1 point 8 hours ago

I mean, most of the success of Linux comes from the freedom to solve local issues the way you want.

There have come lots of issues solved with a departure from the project from a need that drove the change. Want Debian without systemd? Devuan.

So yes, literally, if it's important to you, you can fork it. Whether that takes a big lift or not doesn't mean you're any less free to do so.

path: 0 25375612 25376176 25379387 25379584 25383383, hotness: undefined, score: 1, children: 0
SocialistVibes01 -3 points 13 hours ago

The fairy tale of fork freedom, just like the fairy tale of market freedom.

Y'all are really pathetic.

path: 0 25375612 25376176 25379387 25379757, hotness: undefined, score: -3, children: 0
NotSteve_ 1 point 10 hours ago

What are you using the old x86 timing functionality for, or rather what would it be needed for?

edit: I'm not trying to be a dick or be interrogative, I'm genuinely asking.

path: 0 25375612 25376176 25382333, hotness: undefined, score: 1, children: 0
SocialistVibes01 -12 points 15 hours ago

"downvotes won't change the reality, corpo boot lickers

path: 0 25375612 25376176 25377057, hotness: undefined, score: -12, children: 12
mabeledo 2 points 8 hours ago

You are wrong and incapable of admitting it. Downvoting your comment is an efficient way of signaling that.

path: 0 25375612 25376176 25377057 25383897, hotness: undefined, score: 2, children: 0
db2 -1 points 14 hours ago

This happens every time I point put that losing these "old" kernel capabilities is in fact a loss.

Let them be stupid about it, all the code still exists to undo these bad decisions one day. It'll just be more work than it would otherwise be to fix what they broke.

I put them in the same category as AI sycophants, they can't see three feet beyond their own nose.

path: 0 25375612 25376176 25377057 25378378, hotness: undefined, score: -1, children: 10
corsicanguppy 4 points 13 hours ago

Short-sighted kids are a little more common after we fired the mentors and documenters in our field: they don't know how or why we did such dumb things before and thus can't avoid them. It's like how America fired all its inspectors and now suffer en masse from salmonella and explosive diarrhea from tainted food: causal.

path: 0 25375612 25376176 25377057 25378378 25379627, hotness: undefined, score: 4, children: 0
CrypticCoffee 2 points 7 hours ago

Why don't you support a Linux distro that runs on prehistoric hardware?

It's very easy to spend other peoples time than offer your own for something you clearly don't care enough about.

If you missed the comment. Previous kernel version is supported until 2035. That's 9 more years. You need any longer than that?

path: 0 25375612 25376176 25377057 25378378 25384412, hotness: undefined, score: 2, children: 0
brucethemoose 1 point 8 hours ago

What exactly is the utility of the code, though? Is it so these really ancient machines stay up-to-date/secure in societal collapse or something?

I’d be sympathetic to that, but the chips this depreciates are so rare that you won’t find many to use, in that scenario… and in the rare exceptions, using an older kernel version would be fine.

path: 0 25375612 25376176 25377057 25378378 25383599, hotness: undefined, score: 1, children: 7
linux
linux

@lemmy.ml

login for more options
67083
9205
4151

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

go to feed...