A post merge-window change that landed in Linux Git overnight ahead of tomorrow's Linux 7.2-rc2 release is bumping the default limit on the number of supported CPU cores for RISC-V 64-bit. Now by default Linux will support up to 256 cores with RISC-V 64-bit kernel builds...

A post merge-window change that landed in Linux Git overnight ahead of tomorrow's Linux 7.2-rc2 release is bumping the default limit on the number of supported CPU cores for RISC-V 64-bit. Now by default Linux will support up to 256 cores with RISC-V 64-bit kernel builds.
Up to now RISC-V 64-bit has maintained a NR_CPUS value of 64 for the number of CPU cores to be supported. But merged to Git for Linux 7.2 that default threshold has been bumped to 256 cores/threads. The NR_CPUS value in turn impacts the size of various static memory allocations and as that number goes higher does slightly increase kernel memory consumption. Meanwhile over on Linux x86_64, most distribution vendor kernels with MAXSMP enabled see NR_CPUS up at 8192 to deal with today's high core count AMD and Intel server processors. AArch64 (ARM64) even has 512 for its NR_CPUS value or 2048 for LoongArch.
Raising the NR_CPUS for RISC-V came at the request of SpacemiT. The commit bumping the limit explained:
"SpacemiT has already produced a 80-core RVA23 RISC-V server, and going further back, the dual-socket SG2042-based Sophgo Pisces has 128 cores (although that had some issues achieving mainline support). Therefore, an NR_CPUS of 64 is not enough.Raise default NR_CPUS to 256 for 64BIT (when !RISCV_SBI_V01, since very old firmware can't support more than 64 cores). The number was picked as a power of two that is at least double the known max. I believe this should be the right balance between not wasting too much memory and not having to touch this too often.
Ubuntu has already been shipping NR_CPUS=512 for riscv64. We have also been testing NR_CPUS=256 internally at ISCAS and found negligible performance impact and no ill effects."
The only surprising bit is that it was accepted post-merge-window by Linus Torvalds, granted, it shouldn't have any real regression risk.
That NR_CPUS increase was merged to Linux Git as part of this week's RISC-V fixes.
| # | Наименование новости | Тональность | Информативность | Дата публикации |
|---|---|---|---|---|
| 1 | Linux 7.2-rc2 合入 RISC-V 关键调整:默认 CPU 核心数从 64 提升至 256 | 0 | 7 | 04-07-2026 |
| 2 | Linux 7.2-rc2 BPF Code Being Hardened Against JIT Spraying Attacks | 0 | 5 | 03-07-2026 |
| 3 | More AMD Zen 6 Prepping, Many ASUS / Lenovo / HP Laptop Improvements For Linux 7.2 | 0 | 5 | 26-06-2026 |
| 4 | Linux 7.2 Fixes Where PCIe Devices Could Be Inadvertently Restricted To 2.5 GT/s | 0 | 5 | 26-06-2026 |
| 5 | Линус Торвальдс выпустил Linux 7.2-rc3 с патчами для Dreamcast и RISC-V | 0 | 7 | 13-07-2026 |
| 6 | Linux 7.2-rc4 drops with critical fixes for gaming handhelds, Wi-Fi, and car systems | 0 | 7 | 20-07-2026 |
| 7 | Linux Preparing To Retire Its 32-bit MSR Interfaces | 0 | 7 | 03-07-2026 |
| 8 | MGLRU Improvement Yielding Nice Gains On Linux 7.2: MongoDB 30~100% Higher Throughput | 5 | 7 | 24-06-2026 |
| 9 | Intel Prepares More Nova Lake Graphics/Display Enablement For Linux 7.3 | 0 | 7 | 03-07-2026 |
| 10 | Linux 7.3 Adding More Graphics PCI IDs For Intel Nova Lake S | 0 | 5 | 04-07-2026 |