6 ms·
The 6.1 kernel is out
- zackees 4y ago
- remexre 4y agoLLVM-based CFI is interesting; does this mean that distros are going to start building kernels with Clang instead of GCC?
- deleted 4y ago[deleted]
- klooney 4y agoIirc Android is already there, but a lot of distros are also pretty deep into GCC, so probably only on the fringes
- azinman2 4y agoI worry about a compiler monoculture if so. GCC will take a big blow if it gets replaced for the kernel.
- MaxBarraclough 4y agoThat sounds backward, there's already a monoculture: only GCC. Official support for Clang would break that monoculture. edit You probably meant more broadly in the FOSS ecosystem. Personally I'm not worried about that as GCC seems to be doing ok competing with Clang on technical grounds. For instance, last I heard GCC was ahead of Clang in support for new C++ features.
- moloch-hai 4y agoGcc generates faster code, too, often, though far from always. Clang is suffering because Google is off on a chase for "Carbon", which hasn't been abandoned yet, so neglects all but LLVM. This doesn't affect the kernel much, because the C parser needs little attention. The Clang project needs someone not Google to step up.
- MaxBarraclough 4y agoCarbon will use LLVM for its backend, right? I presume Google are still invested in LLVM itself, for that reason. I was going to mention Apple but they're famously prone to adopting non-mainstream languages like Swift. I don't think they have much interested in modern C++ features.
- zahllos 4y agoAcademic research for security purposes is almost exclusively done with llvm. Why? It is a compiler framework that is (relatively) easy to work with compared to GCC. So there is already a monoculture in some circles. However there's plenty of custom gcc toolchains for embedded systems. It isn't going anywhere for a while yet.
- mkipper 4y agoThe illusion of a monoculture disappears if you zoom out a bit. Even if clang was a "first-class citizen" compiler for the kernel and was picked up by some big distros, there's an absolutely gigantic market of companies designing and building embedded systems around GCC. There already is a LLVM/Clang monoculture in some areas (e.g. research, "modern" C++ shops), but while I don't have the numbers or anything, I'd imagine that those fields make up a very small percentage of worldwide C/C++ developers. A lot of those boring embedded systems companies have low margins and don't think particularly highly of software developers, so they'd never consider refactoring all of their tooling and projects to use clang unless they absolutely had to. If the kernel _dropped_ support for GCC, you might see an actual monoculture develop. But I don't see the kernel _supporting_ GCC, or particular distros choosing to build their kernel with it, making any real dent in the huge market share (for lack of a better term) that GCC has built up. It might seem that way if you read HN and talk to people working in SV, but GCC is still pretty ubiquitous.
- azinman2 4y agoAll of Apple's toolchain is LLVM, which also means all 3rd party apps running on Apple devices are (almost?) all LLVM. Google Chrome is now built with LLVM, Android is getting there with Clang, and who knows what else inside of Google is built with Clang. These aren't tiny percentages.
- mkipper 4y agoI guess it depends on how you look at the the percentages. Lots of people _use_ Apple’s developer tools, Google Chrome and other Google products. But in each of those cases, I believe the actual group of people directly dealing with C++ and Clang are small relative to the global C/C++ developer population. Android has a strong argument since Google can force the hands of OEMs. I don’t see how the size of Chrome’s user base will bring about an LLVM monoculture if 99.999% of C++ developers on earth never build Chrome themselves. The majority of electronic devices on earth have (non-Android) firmware or software written in C/C++, written by people all over the world who don’t work for Google, Apple or anyone you’d even consider a tech company. You will never hear about these projects on HN because they’re closed-source, proprietary and (frankly) boring. But almost all of those projects use whatever toolchain their vendor provides, and more often than not (in my experience), thats GCC. Like I said, I don’t have any numbers to back this up. I’m not claiming that GCC reigns supreme and that LLVM is irrelevant outside of academia. I’m just saying that if you’re really concerned about LLVM _support_ in the kernel leading to an LLVM monoculture, you might not understand how widely used GCC is in “boring” tech. [edit] Adding to this, I guess it also depends on how you view a “monoculture” w.r.t compilers. I could imagine a not-too-distant future where LLVM gets the vast majority of research effort, and you see cool new optimizations brought into it while GCC stagnates. We’re arguably already there. But I don’t see that driving thousands of low-margin hardware OEMs to switch over from GCC to LLVM. Maybe that will happen one day, but I think we’re pretty far away from that.
- akoster 4y agoExciting, but I can’t wait for the further updated floppy driver in the upcoming 6.2 release! https://www.phoronix.com/news/Linux-6.2-Floppy https://www.phoronix.com/news/Linux-6.2-Floppy
- sedatk 4y agoFinally we can enjoy floppy RAIDs on Linux: https://www.youtube.com/watch?v=1hc52_PWeU8 https://www.youtube.com/watch?v=1hc52_PWeU8
- pantalaimon 4y agoI think you can already do that - this just fixed a memory leak on init failure.
- sedatk 4y agoYeah my comment was mostly tongue-in-cheek. USB floppies don't need a floppy driver anyway, and a NEC 765 controller probably supports only a few drives. It probably can't even access floppies simulatenously.
- sph 4y agoPretty slow, but I wonder if you could optimise a floppy RAID setup by pairing it with an NVMe cache. Please someone try this, I find the concept absurdly funny.
- lucioperca 4y agoPeople laugh at this till they learn that such things exist as hardware manifestation: https://news.ycombinator.com/item?id=22428321 https://news.ycombinator.com/item?id=22428321
- chungy 4y agoBetter link: https://lkml.org/lkml/2022/12/4/120 https://lkml.org/lkml/2022/12/4/120
- rektide 4y agoReally glad this got out & will with hope be the end of year LTS release. Some other favs: power management fixes for AMD big BTRFS perf boosts ton of embedded controller/fan speed updates faster retbleed mitigation usb4 host-to-host improvements lots of gpu + hid improvements
- encryptluks2 4y agoI keep seeing Btrfs improvements in each new kernel release but never anything about them fixing RAID 5/6. I was able to pickup multiple 20TB hard drives over Black Friday but now I've got to figure out how to configure redundancy with Btrfs optimally or try out FreeNAS, or go the easy route with Synology. I'm leaning towards FreeNAS.
- adql 4y agoI live with 6 disk NAS(+ some VMs and services like Grafana) with part-RAID6 (6 drives, bulk storage) part-RAID10 (5+1, VMs and other stuff needing a bit more bw) and it has been entirely fine. But FreeNAS is perfect alternative if you don't want to fuck with penguin stuff and just have a blob of storage
- shaicoleman 4y ago"The 'write hole' bug, only affects metadata not data. Thus if you don't make metadata RAID 5/6, you avoid that problem. Fortunately BTRFS allows you to have different RAID levels for data and metadata so you could run RAID 1 for metadata and RAID 5/6 for data." https://www.reddit.com/r/linux/comments/yrlljv/comment/ivvopaj/ https://www.reddit.com/r/linux/comments/yrlljv/comment/ivvop...
- encryptluks2 4y agoThanks... I'm going to look more into this and see if it is an option.
- flas9sd 4y agothere's ongoing work on fixing this by Johannes Thumshirn, see https://old.reddit.com/r/btrfs/comments/wcxfqs/btrfs_declustered_parity_raid_for_zoned_devices/ https://old.reddit.com/r/btrfs/comments/wcxfqs/btrfs_declust...
- shmerl 4y agoWhat's the story with power usage sensors in k10temp? Can AMD contribute proper documentation or actual code for to support it?
- jeffbee 4y agoI wonder when 6.anything is going to land in Ubuntu Lunar. Perhaps they were waiting to skip 6.0 and go directly to 6.1?
- shaicoleman 4y agoIf you want a newer kernel on Ubuntu, consider installing a third party one. XanMod Kernel works great for me. https://xanmod.org/ https://xanmod.org/
- gavinray 4y agoThere's also a nice bash script you can use that will patch your kernel to a newer version on Ubuntu I've used https://github.com/pimlie/ubuntu-mainline-kernel.sh https://github.com/pimlie/ubuntu-mainline-kernel.sh
- jeffbee 4y agoThe mainline PPA does not include Linux-tools, so using it means you lose access to many tools: perf, turbostat, cpupower, powertop, …
- jdfedgon 4y agoGreat. For Ubuntu it technically already landed on https://kernel.ubuntu.com/~kernel-ppa/mainline/ https://kernel.ubuntu.com/~kernel-ppa/mainline/ However, I say technically because the latest kernel build failed. As do many other versions there. I wonder why ...
- avhception 4y agoWhile I have no idea if this is another case, Ubuntu seems to have a tendency to carry Ubuntu-specific patches that may cause unforeseen consequences. I've had an Ubuntu patch cause squid to crash when the config had an empty line at the end of the file or something like that. And Ubuntu's "openbsd-netcat" requires an EOF marker at the end of input, otherwise it won't terminate the connection. The original "openbsd-netcat" does that. Ubuntu even patched in a parameter to make their "openbsd-netcat" behave like the original. Maybe they should have called it "ubuntu-netcat" instead. These antics, combined with the mess that is the "snaps" system, made me swear off Ubuntu and leave for RockyLinux.
- tlamponi 4y agoThis is their mainline channel delivered over a Personal Package Archives (ppa) channel (a repo that's just slightly simple to add/enable on Ubuntu); there are no patches on top of those.
- JonChesterfield 4y agoDon't need to go that far afield, Debian is good.
- WastingMyTime89 4y agoIf your issue with Ubuntu is Ubuntu-specific patches, I don't think Debian is a solution. They patch a lot. I personnaly think it's too much mostly because I don't value most of the reasons Debian patches (I don't care about exotic architectures - I value conformance to upstream more than the ability to have modular and small packages - I don't care about having some non-free parts in my package).
- deleted 4y ago[deleted]
- billfruit 4y agoIs the PremptRT features fully merged in, in the current mainline kernels?
- infinet 4y agoVery excited! I have used the MGLRU patch on a 13 years old iMac with 8GB ram in last 6 months. Have chrome with lots of tabs and heavy use of gimp/ImageJ/libreoffice. MGLRU is such a great improvement, without it the machine frequently ran out of memory.
- cyanydeez 4y agoOn that note, anyone have a status page of frequently updated distros showing what kernel versions they're running? Want an easy path to use new snapdragon arm chips.