[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-400154-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-400154-en":131},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","xkernel-principled-performance-tunability-of-operating-system-kernels","Xkernel - Principled Performance Tunability of Operating System Kernels","","The Linux kernel relies on constant values, known as perf-consts, that act as magic numbers and embed hardware- and workload-specific assumptions. Existing systems lack in-situ tuning for deployed kernels, forcing recompilation and rebooting. This paper presents Xkernel, which enables safe, efficient, and programmable in-situ tuning of any perf-const on a running kernel. Xkernel uses Scoped Indirect Execution to redirect control at precise boundaries, ensuring side-effect safety and delivering significant performance gains across OS subsystems.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/xkernel-principled-performance-tunability-of-operating-system-kernels/400154/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/xkernel-principled-performance-tunability-of-operating-system-kernels/400154.png","ImageObject",300,407,{"name":42,"@type":43},"Mafia Boss","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-25","2026-09-27",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",11,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What are perf-consts in operating system kernels?","Question",{"text":63,"@type":64},"Perf-consts are performance-critical constants in the kernel, such as macros, literals, and static integers, that shape thresholds, intervals, batch sizes, and scaling behavior.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"Why can’t perf-consts typically be tuned on deployed kernels today?",{"text":68,"@type":64},"Because their values usually require recompiling and rebooting, or rely on limited runtime knobs (e.g., sysctl/sysfs) that provide insufficient safety guarantees and coverage.",{"name":70,"@type":61,"acceptedAnswer":71},"How does Xkernel enable safe in-situ tuning without recompilation or rebooting?",{"text":72,"@type":64},"Xkernel converts a perf-const into a tunable knob on demand using Scoped Indirect Execution, which captures precise execution boundaries and redirects control to synthesized instructions while guaranteeing side-effect safety.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},400154,1791470877,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,106,111,115,120,123,127],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":103,"show_sort_weight":104,"slug":105},6,"Technology",50,"technology",{"id":107,"doc_module":4,"doc_module_name":25,"category_name":108,"show_sort_weight":109,"slug":110},7,"Healthcare",40,"healthcare",{"id":112,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":113,"slug":114},8,30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":124,"doc_module":4,"doc_module_name":25,"category_name":125,"show_sort_weight":124,"slug":126},10,"Lifestyle","lifestyle",{"id":128,"doc_module":4,"doc_module_name":25,"category_name":129,"show_sort_weight":97,"slug":130},19,"General","general",{"code":4,"msg":82,"data":132},{"doc_id":79,"user_id":133,"nickname":42,"user_avatar":134,"doc_module":4,"category_id":112,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":118,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":144,"read_time":104,"preview_page_count":33,"preview_urls":145},962090760730,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","Xkernel: Principled Performance Tunability of Operating System Kernels  \nZhongjie Chen, Tsinghua University and Microsoft Research; Wentao Zhang, University of Illinois Urbana–Champaign; Yulong Tang and Ran Shu, Microsoft Research; Fengyuan Ren, Tsinghua University; Tianyin Xu, University of Illinois Urbana–Champaign; Jing Liu, Microsoft Research  \n[https://www.usenix.org/conference/osdi26/presentation/chen-zhongjie](https://www.usenix.org/conference/osdi26/presentation/chen-zhongjie)  \nThis paper is included in the Proceedings of the 20th USENIX Symposium on Operating Systems Design and Implementation .  \nJuly 13–15, 2026 • Seattle, WA, USA  \nISBN 978-1-939133-55-7  \nOpen access to the Proceedings of the 20th USENIX Symposium on Operating Systems Design and Implementation is sponsored by  \nXkernel: Principled Performance Tunability of Operating System Kernels  \nZhongjie Chen†§, Wentao Zhang‡, Yulong Tang§ , Ran Shu§, Fengyuan Ren†, Tianyin Xu‡, Jing Liu§  \n§ Microsoft Research,‡University of Illinois Urbana-Champaign,†Tsinghua University  \nAbstract  \nThe Linux kernel is permeated with constant values that are critical to system performance. Many of these constants, referred to as perf-consts, are magic numbers with brittle assumptions on hardware and workloads. Unfortunately, thereis no capability of in-situ tuning of perf-const values on deployed kernels. This paper rethinks OS performance tunability. We present Xkernel, a system that offers a safe, efficient, and programmable interface for in-situ tuning of any perfconsts directly on a running kernel. Xkernel transforms any perf-const into a tunable knob on demand using a novel approach called Scoped Indirect Execution (SIE) . SIE captures precise binary boundaries where a perf-const enters system state and redirects control to synthesized instructions that update the state as if new values were used. Xkernel goes beyond version atomicity when updating perf-consts to guarantee side-effect safety, a property notably absent in existing kernel update mechanisms. Case studies on various OS subsystems demonstrate significant performance benefits of tuning perf-consts which is made possible by Xkernel.  \n1 Introduction  \nModern operating systems like Linux are permeated with constant values that shape system performance. These constants, referred to as performance-critical constants or perfconsts, appear in various source-code forms (e.g., macros, literals, and static integers); they govern thresholds, time intervals, batch sizes, scaling factors, etc. Whether to balance latency and throughput or to match batching behavior to device parallelism, perf-consts embed design trade-offs and workload/hardware semantics directly into kernel behavior, forming the kernel’s implicit performance policy.  \nPerf-consts are not tunable in deployed systems without recompiling and rebooting the OS kernels. Unfortunately, their values are often “arbitrarily chosen [40]” by developers based on brittle heuristics, limited testing, or assumptions on dated hardware, which “just happen(ed) to work well [38].” However, static magic numbers can hardly serve dynamic workloads or diverse hardware configurations, especially emerging ones that significantly deviate from the time those values were chosen (see [14, 16, 20, 39, 56, 75, 76]) . Ideally, perf-consts should be decided at runtime, dynamically adapting to workload patterns, hardware characteristics, and service-level objectives. In practice, the benefits of tuning perf-consts are substantial. In one of our case studies  \n(§2.1), tuning a perf-const yields 50× throughput improvement. Yet such benefits are completely missed as modern OSes provide no mechanism for tuning perf-consts.  \nToday, tuning a perf-const typically involves converting it into a runtime knob via interfaces such as sysctl [77] and sysfs [54], or changing its value in kernel source and updating the deployed kernel through live patching [1,7, 10,22,23] . However, neither satisfies th","cbCaio6awXR2BKpd","https://ap.wps.com/l/cbCaio6awXR2BKpd","pdf",2986895,"English","# 1 Introduction\n## Modern performance-critical constants (perf-consts)\n## Limits of current tuning methods\n## Goal: principled OS performance tunability\n## Challenges and system requirements\n## Key idea: Scoped Indirect Execution (SIE)","[{\"question\":\"What are perf-consts in operating system kernels?\",\"answer\":\"Perf-consts are performance-critical constants in the kernel, such as macros, literals, and static integers, that shape thresholds, intervals, batch sizes, and scaling behavior.\"},{\"question\":\"Why can’t perf-consts typically be tuned on deployed kernels today?\",\"answer\":\"Because their values usually require recompiling and rebooting, or rely on limited runtime knobs (e.g., sysctl/sysfs) that provide insufficient safety guarantees and coverage.\"},{\"question\":\"How does Xkernel enable safe in-situ tuning without recompilation or rebooting?\",\"answer\":\"Xkernel converts a perf-const into a tunable knob on demand using Scoped Indirect Execution, which captures precise execution boundaries and redirects control to synthesized instructions while guaranteeing side-effect safety.\"}]","Xkernel - Principled Performance Tunability of Operating System Kernels | PDF",1790508255,[146,150,154,158],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/3e5d0763cc26826e60640d1536e03704.webp",983,1272,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/df6b35f967231e976b470e819281afc3.webp",982,1270,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/8a0880da25a5d4e1d6a8e82d3d1befcc.webp",981,1269,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/757c1a626b239c81aa337586c7f5bc10.webp",980,1268]