WeSearch

[$] In search of faster this_cpu operations

·4 min read · 0 reactions · 0 comments · 13 views
#linux#performance#kernel#architecture#Yang Shi#Linus Torvalds#Jason Gunthorpe#Brendan Jackman#Ryan Roberts#Peter Zijlstra
⚡ TL;DR · AI summary

A proposal to improve the performance of this_cpu operations in the Linux kernel was discussed at the 2026 Linux Storage, Filesystem, Memory Management, and BPF Summit. Yang Shi suggested reimplementing per-CPU variables to use the same address across all CPUs, which could enhance performance on various architectures. However, concerns about managing translation lookaside buffer entries and the potential impact on existing macros were raised during the discussion.

Key facts
Original article
LWN.net (Linux Weekly News)
Read full at LWN.net (Linux Weekly News) →
Opening excerpt (first ~120 words) tap to expand

Please consider subscribing to LWN Subscriptions are the lifeblood of LWN.net. If you appreciate this content and would like to see more of it, your subscription will help to ensure that LWN continues to thrive. Please visit this page to join up and keep LWN on the net. By Jonathan CorbetMay 19, 2026 LSFMM+BPF The kernel's this_cpu operations are meant to speed access to per-CPU variables. They are more optimal on some CPUs than others, though. During a memory-management-track session at the 2026 Linux Storage, Filesystem, Memory Management, and BPF Summit, Yang Shi proposed a fundamental, and somewhat controversial, change to how these operations work in order to provide better performance on a wider range of architectures.

Excerpt limited to ~120 words for fair-use compliance. The full article is at LWN.net (Linux Weekly News).

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments