{"id":170548,"date":"2022-12-28T09:36:57","date_gmt":"2022-12-28T09:36:57","guid":{"rendered":"https:\/\/harchi90.com\/new-patches-aim-to-reduce-memory-use-while-compiling-the-linux-kernel\/"},"modified":"2022-12-28T09:36:57","modified_gmt":"2022-12-28T09:36:57","slug":"new-patches-aim-to-reduce-memory-use-while-compiling-the-linux-kernel","status":"publish","type":"post","link":"https:\/\/harchi90.com\/new-patches-aim-to-reduce-memory-use-while-compiling-the-linux-kernel\/","title":{"rendered":"New Patches Aim To Reduce Memory Use While Compiling The Linux Kernel"},"content":{"rendered":"

Happy Holidays<\/strong> If you have enjoyed reading the new and original content on Phoronix each and every day this year, consider showing your support by the end of year \/ holiday deal on Phoronix Premium. Phoronix Premium helps make operations possible while you get to enjoy ad-free viewing and multi-page articles on a single page. There have been more than 2,800 news articles and 185+ Linux hardware reviews written this year by your’s truly, but unfortunately, operations remain difficult driven by extreme ad-block use.<\/p>\n

\n
<\/div>\n

Updated patches were sent out today that aim to reduce the maximum memory usage while compiling the Linux kernel. In turn for memory constrained systems that attempt to compile the kernel this should lead to less swapping and faster build times.<\/p>\n

Thomas Wei\u00dfschuh sent out his latest patches aiming to reduce the maximum memory use while compiling the Linux kernel. In particular, he’s taking aim at the memory use of processing the vmlinux.o object with objtool, which is the most memory intensive step for the kernel build process.
\n<\/p>\n

<\/p>\n

The set of eight patches make adjustments to the objtool code to reduce memory use. In particular, switching from malloc() in a loop to calloc() out of a loop in objtool code yielded a reduction of 3.7% in peak memory use while processing vmlinux.o. Reducing the memory usage of the struct reloc lowered the memory use by another 3.8% in another kernel build by Thomas. Optimizing the layout of the struct symbol lowered memory use by 0.5% and then a few other optimizations without noted improvements.<\/p>\n

Long story short, this patch series undergoing review should help in reducing peak memory use while compiling the Linux kernel and in turn help out with builds particularly for systems with limited amounts of RAM that may otherwise hit swapping during the build process that in turn will cause the build speed to suffer.<\/p>\n<\/div>\n

.<\/p>\n","protected":false},"excerpt":{"rendered":"

Happy Holidays If you have enjoyed reading the new and original content on Phoronix each and every day this year, consider showing your support by the end of year \/ holiday deal on Phoronix Premium. Phoronix Premium helps make operations possible while you get to enjoy ad-free viewing and multi-page articles on a single page. …<\/p>\n

New Patches Aim To Reduce Memory Use While Compiling The Linux Kernel<\/span> Read More »<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[4],"tags":[1111,1110,1108,1107,1114,1112,1109,1113,1106,1117,1115,1116],"jetpack_publicize_connections":[],"yoast_head":"\nNew Patches Aim To Reduce Memory Use While Compiling The Linux Kernel - harchi90<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/news.google.com\/__i\/rss\/rd\/articles\/CBMiOWh0dHBzOi8vd3d3LnBob3Jvbml4LmNvbS9uZXdzL0xpbnV4LUtlcm5lbC1CdWlsZC1MZXNzLVJBTdIBAA?oc=5\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"New Patches Aim To Reduce Memory Use While Compiling The Linux Kernel - harchi90\" \/>\n<meta property=\"og:description\" content=\"Happy Holidays If you have enjoyed reading the new and original content on Phoronix each and every day this year, consider showing your support by the end of year \/ holiday deal on Phoronix Premium. Phoronix Premium helps make operations possible while you get to enjoy ad-free viewing and multi-page articles on a single page. … New Patches Aim To Reduce Memory Use While Compiling The Linux Kernel Read More »\" \/>\n<meta property=\"og:url\" content=\"https:\/\/news.google.com\/__i\/rss\/rd\/articles\/CBMiOWh0dHBzOi8vd3d3LnBob3Jvbml4LmNvbS9uZXdzL0xpbnV4LUtlcm5lbC1CdWlsZC1MZXNzLVJBTdIBAA?oc=5\" \/>\n<meta property=\"og:site_name\" content=\"harchi90\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-28T09:36:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.phoronix.net\/image.php?id=2022&image=linux_build_ram\" \/>\n<meta name=\"author\" content=\"islamlacoste58\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.phoronix.net\/image.php?id=2022&image=linux_build_ram\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"islamlacoste58\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/harchi90.com\/new-patches-aim-to-reduce-memory-use-while-compiling-the-linux-kernel\/\",\"url\":\"https:\/\/news.google.com\/__i\/rss\/rd\/articles\/CBMiOWh0dHBzOi8vd3d3LnBob3Jvbml4LmNvbS9uZXdzL0xpbnV4LUtlcm5lbC1CdWlsZC1MZXNzLVJBTdIBAA?oc=5\",\"name\":\"New Patches Aim To Reduce Memory Use While Compiling The Linux Kernel - harchi90\",\"isPartOf\":{\"@id\":\"https:\/\/harchi90.com\/#website\"},\"datePublished\":\"2022-12-28T09:36:57+00:00\",\"dateModified\":\"2022-12-28T09:36:57+00:00\",\"author\":{\"@id\":\"https:\/\/harchi90.com\/#\/schema\/person\/0689156e87fbe869f0e5efdeef200d5b\"},\"breadcrumb\":{\"@id\":\"https:\/\/news.google.com\/__i\/rss\/rd\/articles\/CBMiOWh0dHBzOi8vd3d3LnBob3Jvbml4LmNvbS9uZXdzL0xpbnV4LUtlcm5lbC1CdWlsZC1MZXNzLVJBTdIBAA?oc=5#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/news.google.com\/__i\/rss\/rd\/articles\/CBMiOWh0dHBzOi8vd3d3LnBob3Jvbml4LmNvbS9uZXdzL0xpbnV4LUtlcm5lbC1CdWlsZC1MZXNzLVJBTdIBAA?oc=5\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/news.google.com\/__i\/rss\/rd\/articles\/CBMiOWh0dHBzOi8vd3d3LnBob3Jvbml4LmNvbS9uZXdzL0xpbnV4LUtlcm5lbC1CdWlsZC1MZXNzLVJBTdIBAA?oc=5#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/harchi90.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"New Patches Aim To Reduce Memory Use While Compiling The Linux Kernel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/harchi90.com\/#website\",\"url\":\"https:\/\/harchi90.com\/\",\"name\":\"harchi90\",\"description\":\"Just another WordPress site\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/harchi90.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/harchi90.com\/#\/schema\/person\/0689156e87fbe869f0e5efdeef200d5b\",\"name\":\"islamlacoste58\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/harchi90.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5bf7491076e3822b8e0de7b1f9364d75?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5bf7491076e3822b8e0de7b1f9364d75?s=96&d=mm&r=g\",\"caption\":\"islamlacoste58\"},\"sameAs\":[\"http:\/\/harchi90.com\"],\"url\":\"https:\/\/harchi90.com\/author\/islamlacoste58\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"New Patches Aim To Reduce Memory Use While Compiling The Linux Kernel - harchi90","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/news.google.com\/__i\/rss\/rd\/articles\/CBMiOWh0dHBzOi8vd3d3LnBob3Jvbml4LmNvbS9uZXdzL0xpbnV4LUtlcm5lbC1CdWlsZC1MZXNzLVJBTdIBAA?oc=5","og_locale":"en_US","og_type":"article","og_title":"New Patches Aim To Reduce Memory Use While Compiling The Linux Kernel - harchi90","og_description":"Happy Holidays If you have enjoyed reading the new and original content on Phoronix each and every day this year, consider showing your support by the end of year \/ holiday deal on Phoronix Premium. Phoronix Premium helps make operations possible while you get to enjoy ad-free viewing and multi-page articles on a single page. … New Patches Aim To Reduce Memory Use While Compiling The Linux Kernel Read More »","og_url":"https:\/\/news.google.com\/__i\/rss\/rd\/articles\/CBMiOWh0dHBzOi8vd3d3LnBob3Jvbml4LmNvbS9uZXdzL0xpbnV4LUtlcm5lbC1CdWlsZC1MZXNzLVJBTdIBAA?oc=5","og_site_name":"harchi90","article_published_time":"2022-12-28T09:36:57+00:00","og_image":[{"url":"https:\/\/www.phoronix.net\/image.php?id=2022&image=linux_build_ram"}],"author":"islamlacoste58","twitter_card":"summary_large_image","twitter_image":"https:\/\/www.phoronix.net\/image.php?id=2022&image=linux_build_ram","twitter_misc":{"Written by":"islamlacoste58","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/harchi90.com\/new-patches-aim-to-reduce-memory-use-while-compiling-the-linux-kernel\/","url":"https:\/\/news.google.com\/__i\/rss\/rd\/articles\/CBMiOWh0dHBzOi8vd3d3LnBob3Jvbml4LmNvbS9uZXdzL0xpbnV4LUtlcm5lbC1CdWlsZC1MZXNzLVJBTdIBAA?oc=5","name":"New Patches Aim To Reduce Memory Use While Compiling The Linux Kernel - harchi90","isPartOf":{"@id":"https:\/\/harchi90.com\/#website"},"datePublished":"2022-12-28T09:36:57+00:00","dateModified":"2022-12-28T09:36:57+00:00","author":{"@id":"https:\/\/harchi90.com\/#\/schema\/person\/0689156e87fbe869f0e5efdeef200d5b"},"breadcrumb":{"@id":"https:\/\/news.google.com\/__i\/rss\/rd\/articles\/CBMiOWh0dHBzOi8vd3d3LnBob3Jvbml4LmNvbS9uZXdzL0xpbnV4LUtlcm5lbC1CdWlsZC1MZXNzLVJBTdIBAA?oc=5#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/news.google.com\/__i\/rss\/rd\/articles\/CBMiOWh0dHBzOi8vd3d3LnBob3Jvbml4LmNvbS9uZXdzL0xpbnV4LUtlcm5lbC1CdWlsZC1MZXNzLVJBTdIBAA?oc=5"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/news.google.com\/__i\/rss\/rd\/articles\/CBMiOWh0dHBzOi8vd3d3LnBob3Jvbml4LmNvbS9uZXdzL0xpbnV4LUtlcm5lbC1CdWlsZC1MZXNzLVJBTdIBAA?oc=5#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/harchi90.com\/"},{"@type":"ListItem","position":2,"name":"New Patches Aim To Reduce Memory Use While Compiling The Linux Kernel"}]},{"@type":"WebSite","@id":"https:\/\/harchi90.com\/#website","url":"https:\/\/harchi90.com\/","name":"harchi90","description":"Just another WordPress site","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/harchi90.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/harchi90.com\/#\/schema\/person\/0689156e87fbe869f0e5efdeef200d5b","name":"islamlacoste58","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/harchi90.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5bf7491076e3822b8e0de7b1f9364d75?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5bf7491076e3822b8e0de7b1f9364d75?s=96&d=mm&r=g","caption":"islamlacoste58"},"sameAs":["http:\/\/harchi90.com"],"url":"https:\/\/harchi90.com\/author\/islamlacoste58\/"}]}},"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":162679,"url":"https:\/\/harchi90.com\/new-patches-aim-to-boost-linux-9p-performance-by-10x\/","url_meta":{"origin":170548,"position":0},"title":"New Patches Aim To Boost Linux 9p Performance By ~10x","date":"December 19, 2022","format":false,"excerpt":"Show Your Support: This site is primarily supported by advertisements. Ads are what have allowed this site to be maintained on a daily basis for the past 18+ years. We do our best to ensure only clean, relevant ads are shown, when any nasty ads are detected, we work to\u2026","rel":"","context":"In "Technology"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":167899,"url":"https:\/\/harchi90.com\/amd-working-on-rdna3-user-mode-graphics-queue-for-their-linux-gpu-driver\/","url_meta":{"origin":170548,"position":1},"title":"AMD Working On RDNA3 User-Mode Graphics Queue For Their Linux GPU Driver","date":"December 25, 2022","format":false,"excerpt":"Happy Holidays If you have enjoyed reading the new and original content on Phoronix each and every day this year, consider showing your support by the end of year \/ holiday deal on Phoronix Premium. Phoronix Premium helps make operations possible while you get to enjoy ad-free viewing and multi-page\u2026","rel":"","context":"In "Technology"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":141645,"url":"https:\/\/harchi90.com\/readfile-system-call-patches-revisited-for-efficiently-reading-small-files\/","url_meta":{"origin":170548,"position":2},"title":"Readfile System Call Patches Revisited For Efficiently Reading Small Files","date":"November 28, 2022","format":false,"excerpt":"Black Friday \/ Cyber \u200b\u200bMonday Deal - Show Your Support For Phoronix - the Phoronix Premium holiday special is running now through the end of November. Phoronix Premium allows you to enjoy the site ad-free, multi-page articles on a single page, and other benefits. Your support is needed to help\u2026","rel":"","context":"In "Technology"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":142703,"url":"https:\/\/harchi90.com\/the-intel-core-i9-13900k-raptor-lake-performance-from-linux-5-15-to-linux-6-1\/","url_meta":{"origin":170548,"position":3},"title":"The Intel Core i9 13900K “Raptor Lake” Performance From Linux 5.15 To Linux 6.1","date":"November 29, 2022","format":false,"excerpt":"Black Friday \/ Cyber \u200b\u200bMonday Deal - Show Your Support For Phoronix - the Phoronix Premium holiday special is running now through the end of November. Phoronix Premium allows you to enjoy the site ad-free, multi-page articles on a single page, and other benefits. Your support is needed to help\u2026","rel":"","context":"In "Technology"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":171838,"url":"https:\/\/harchi90.com\/radeon-gaming-graphics-performance-windows-11-vs-linux-gpu-benchmarks\/","url_meta":{"origin":170548,"position":4},"title":"Radeon Gaming\/Graphics Performance: Windows 11 vs. Linux GPU Benchmarks","date":"December 29, 2022","format":false,"excerpt":"Happy Holidays If you have enjoyed reading the new and original content on Phoronix each and every day this year, consider showing your support by the end of year \/ holiday deal on Phoronix Premium. Phoronix Premium helps make operations possible while you get to enjoy ad-free viewing and multi-page\u2026","rel":"","context":"In "Technology"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":167357,"url":"https:\/\/harchi90.com\/ikey-dohertys-serpent-os-spins-its-first-iso\/","url_meta":{"origin":170548,"position":5},"title":"Ikey Doherty’s Serpent OS Spins Its First ISO","date":"December 24, 2022","format":false,"excerpt":"Happy Holidays If you have enjoyed reading the new and original content on Phoronix each and every day this year, consider showing your support by the end of year \/ holiday deal on Phoronix Premium. Phoronix Premium helps make operations possible while you get to enjoy ad-free viewing and multi-page\u2026","rel":"","context":"In "Technology"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"fifu_image_url":"https:\/\/www.phoronix.net\/image.php?id=2022&image=linux_build_ram","_links":{"self":[{"href":"https:\/\/harchi90.com\/wp-json\/wp\/v2\/posts\/170548"}],"collection":[{"href":"https:\/\/harchi90.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/harchi90.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/harchi90.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/harchi90.com\/wp-json\/wp\/v2\/comments?post=170548"}],"version-history":[{"count":0,"href":"https:\/\/harchi90.com\/wp-json\/wp\/v2\/posts\/170548\/revisions"}],"wp:attachment":[{"href":"https:\/\/harchi90.com\/wp-json\/wp\/v2\/media?parent=170548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/harchi90.com\/wp-json\/wp\/v2\/categories?post=170548"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/harchi90.com\/wp-json\/wp\/v2\/tags?post=170548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}