136
submitted 5 months ago by Sunshine@lemmy.ca to c/linux@programming.dev
top 16 comments
sorted by: hot top controversial new old
[-] onlinepersona@programming.dev 33 points 5 months ago* (last edited 5 months ago)

More surprising is that it's taken ~4 years for these Linux kernel patches to materialize with Zen 3 having first debuted in late 2020.

Reminder: Linux kernel funding is 2% of the Linux foundation's 200M$/year budget.

Anti Commercial-AI license

[-] grue@lemmy.world 34 points 5 months ago

the Linux kernel hasn't widely made use of INVLPGB... In part because Intel engineers typically carry out much of the new x86 instruction optimizations within the Linux kernel and Intel processors do not currently support INVLPGB.

Sounds like AMD needs to fund more kernel development.

[-] Swedneck@discuss.tchncs.de 2 points 5 months ago* (last edited 5 months ago)

especially considering how they went into the server market again; like what, are they expecting people to shove a 256 thread processor into a windows server?

[-] taaz@biglemmowski.win 10 points 5 months ago
[-] Zachariah@lemmy.world 39 points 5 months ago

$196,000,000

[-] onlinepersona@programming.dev 8 points 5 months ago

https://news.ycombinator.com/item?id=38797213

https://www.linuxfoundation.org/hubfs/Reports/2023_lf_annual_report_122123a.pdf?hsLang=en

- Cloud, Containers, & Virtualization 25%

- Networking & Edge 13%

- AI, ML, Data & Analytics 12%

- Web & Application Development 11%

- Cross-Technology 8%

- Privacy & Security 4%

- IoT & Embedded 4%

- Blockchain 4%

- DevOps, CI/CD, & Site Reliability 3%

- Open Source & Compliance Best Practices 3%

- System Administration 2%

- Linux Kernel 2%

- System Engineering 2%

- Storage 2%

- Open Hardware 1%

- Safety-Critical Systems 1%

- Visual Effects 1%

[-] sour@feddit.org 5 points 5 months ago

Without doing research, but the Linux Foundation is also the parent of the CNCF, the foundation that funds Kubernetes and many adjacent projects. I can imagine that they get a lot more money as there are probably more developers handling CNCF projects than the Linux Kernel.

[-] SteveTech@programming.dev 16 points 5 months ago

I couldn't find a hard answer to whether this supports EPYC only, or Ryzen too; so I put together this script to read the CPUID to detect for INVLPGB support according to the AMD64 Programmer’s Manual, and my 7800X3D does not support INVLPGB.

(Let me know if I've made an error though!)

Code

#include <stdio.h>
#include <stdint.h>

int main() {
    uint32_t eax, ebx, ecx, edx;

    eax = 0x80000008;

    __asm__ __volatile__ (
        "cpuid"
        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
        : "a" (eax)
    );

    printf("EBX: 0x%x\n", ebx);

    if (ebx & (1 << 3)) {
        printf("CPU supports INVLPGB\n");
    } else {
        printf("CPU does not support INVLPGB\n");
    }

    return 0;
}

[-] sxan@midwest.social 13 points 5 months ago

I can't keep up with the architecture family lines; is the Ryzen 7 5800 series on the Zen 3 line?

[-] Davel23@fedia.io 11 points 5 months ago

Assuming you're talking about the 5800x, yes.

[-] sxan@midwest.social 3 points 5 months ago

Sweet. They're laptop CPUs, right? Last year, after more than a decade of owning only laptops, I bought two of those micro-PC boxes - mine were Trigkey, but I saw nearly identical ones under other brand names. 16 cores, expandable RAM and NVME... utterly blew my latest 2y/o laptop out of the water, especially after I put 64GB of RAM in one in an orgy of entering a new market of cheap components.

And now this. I'm loving it.

[-] Davel23@fedia.io 1 points 5 months ago

No, the 5800x and x3d are desktop CPUs.

[-] sxan@midwest.social 1 points 5 months ago
[-] qaz@lemmy.world 10 points 5 months ago
[-] SteveTech@programming.dev 10 points 5 months ago

That's INVLPG which has been there since the 486. The AMD64 Programmer's Manual has some info on the differences between INVLPG, INVLPGA, and INVLPGB though.

[-] FizzyOrange@programming.dev 2 points 5 months ago

Huge speed-ups for the will-it-scale tlb_flush2_threads test - presumably not very representative!

I wonder how much effect it has on real world workloads.

this post was submitted on 22 Dec 2024
136 points (98.6% liked)

Linux

7921 readers
646 users here now

A community for everything relating to the GNU/Linux operating system

Also check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS