Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
Operating Systems Linux

Linux 6.16 Brings Faster File Systems, Improved Confidential Memory Support, and More Rust Support (zdnet.com) 42

ZDNet's Steven Vaughan-Nichols shares his list of "what's new and improved" in the latest Linux 6.16 kernel. An anonymous reader shares an excerpt from the report: First, the Rust language is continuing to become more well-integrated into the kernel. At the top of my list is that the kernel now boasts Rust bindings for the driver core and PCI device subsystem. This approach will make it easier to add new Rust-based hardware drivers to Linux. Additionally, new Rust abstractions have been integrated into the Direct Rendering Manager (DRM), particularly for ioctl handling, file/GEM memory management, and driver/device infrastructure for major GPU vendors, such as AMD, Nvidia, and Intel. These changes should reduce vulnerabilities and optimize graphics performance. This will make gamers and AI/ML developers happier.

Linux 6.16 also brings general improvements to Rust crate support. Crate is Rust's packaging format. This will make it easier to build, maintain, and integrate Rust kernel modules into the kernel. For those of you who still love C, don't worry. The vast majority of kernel code remains in C, and Rust is unlikely to replace C soon. In a decade, we may be telling another story. Beyond Rust, this latest release also comes with several major file system improvements. For starters, the XFS filesystem now supports large atomic writes. This capability means that large multi-block write operations are 'atomic,' meaning all blocks are updated or none. This enhances data integrity and prevents data write errors. This move is significant for companies that use XFS for databases and large-scale storage.

Perhaps the most popular Linux file system, Ext4, is also getting many improvements. These boosts include faster commit paths, large folio support, and atomic multi-fsblock writes for bigalloc filesystems. What these improvements mean, if you're not a file-system nerd, is that we should see speedups of up to 37% for sequential I/O workloads. If your Linux laptop doubles as a music player, another nice new feature is that you can now stream your audio over USB even while the rest of your system is asleep. That capability's been available in Android for a while, but now it's part of mainline Linux.

If security is a top priority for you, the 6.16 kernel now supports Intel Trusted Execution Technology (TXT) and Intel Trusted Domain Extensions (TDX). This addition, along with Linux's improved support for AMD Secure Encrypted Virtualization and Secure Memory Encryption (SEV-SNP), enables you to encrypt your software's memory in what's known as confidential computing. This feature improves cloud security by encrypting a user's virtual machine memory, meaning someone who cracks a cloud can't access your data.
Linux 6.16 also delivers several chip-related upgrades. It introduces support for Intel's Advanced Performance Extensions (APX), doubling x86 general-purpose registers from 16 to 32 and boosting performance on next-gen CPUs like Lunar Lake and Granite Rapids Xeon. Additionally, the new CONFIG_X86_NATIVE_CPU option allows users to build processor-optimized kernels for greater efficiency.

Support for Nvidia's AI-focused Blackwell GPUs has also been improved, and updates to TCP/IP with DMABUF help offload networking tasks to GPUs and accelerators. While these changes may go unnoticed by everyday users, high-performance systems will see gains and OpenVPN users may finally experience speeds that challenge WireGuard.

Linux 6.16 Brings Faster File Systems, Improved Confidential Memory Support, and More Rust Support

Comments Filter:
  • Alegedly, is faster than RUST and also memory safe.

    We can let both duke it out in Linux KLM/Driver land. Outside enough of the kernel to not interfere, inside enough of the kernel to properly evaluate.

    May the best meory safe language win.

    • Zig is not memory safe.
      It includes some memory safety features, but so does C++. We don't call C++ memory safe for them.
      I'm not sure it's worth it to add another language to the kernel if the benefits are dubious.
      Not to mention Zig's allocator system would be the 9th fucking circle of hell in the kernel.
      • by Uecker ( 1842596 )

        Rust is also not memory safe. Safe Rust is memory safe. The main difference is that the safe subset of Rust is much clearer demarcated than in in C++, but the importance of this is massively oversold.

        • I don't recall saying anything about Rust, but yes, Safe Rust is memory safe. Unsafe Rust is not.

          However, no Zig is memory safe. No C++ is memory safe.
          It's true that they can be used in memory safe fashions, but that's up to the programmer. The language itself makes no guarantees.
  • Crate is Rusts packaging format? Why does a language have anything to do with packages?

    • by bjoast ( 1310293 )

      Why does a language have anything to do with packages?

      While I do agree that cargo is bloat, I would like to point out that neither cargo nor crates are integrated parts of the Rust language and compiler. It is very much possible to build Rust programs without them. I've used only make and rustc for some projects.

    • by caseih ( 160668 )

      Well we have to do something enable all those supply-chain attacks. Now we can have them in the kernel!

      • Basically. I'm pro-Rust-in-kernel, but very much anti-crates-in-kernel.
        • I think you mean external dependencies. As far as I understand all the code needed to build Linux is in the tree. Only the rust standard library is "external". That the rust builds into several crates doesn't seem a worry to me.

          • I think you mean external dependencies

            I do. Which are crates.

            As far as I understand all the code needed to build Linux is in the tree.

            It's true. The crates are pulled into the tree. That is not code that was written for the kernel, though. It does not, and cannot, go through the normal audit process.

            Only the rust standard library is "external".

            Rust in kernel is no_std. It does pull in core, and alloc, though. However- they are also not external. They're in-tree.

            That the rust builds into several crates doesn't seem a worry to me.

            The policy allows for the pulling of entire new crates into the tree. That should absolutely be a worry to you. This is how supply-side attacks happen.
            People do not pull in libraries to the kernel in C

    • In languages which do not have a defined packaging systems, many alternatives have appeared. Java and Python are good examples, where it has historically been a bit of a mess. C has no defined packaging system also. This can make it challenging to work out which libraries will actually be used when C is compiled or run, short of just running the compiler.

      Cargo is a really nice feature of rust. Easy to develop against, easy to compile against.

    • by kertaamo ( 16100 )

      It does not. Cargo and crates are one thing, the Rust compiler is another. You can build Rust with make files if you want to. You can write everything you need yourself if you want to. Just like C devs are rightly proud of doing. Rust does not stop you.

      However thank God for cargo. So much nicer build system than anything in C/C++ world.

  • Also improved snapdragon 8cx gen 3 support. My thinkpad X13S works mostly right on this kernel. (ARM64 is still a 2nd class citizen though)
  • So, this implies that cloud providers can sniff your data out of RAM then ?

    What about TXT? Who watches the watchers if it is proprietary?

"The pyramid is opening!" "Which one?" "The one with the ever-widening hole in it!" -- The Firesign Theatre

Working...