{"id":141645,"date":"2022-11-28T07:16:02","date_gmt":"2022-11-28T07:16:02","guid":{"rendered":"https:\/\/harchi90.com\/readfile-system-call-patches-revisited-for-efficiently-reading-small-files\/"},"modified":"2022-11-28T07:16:02","modified_gmt":"2022-11-28T07:16:02","slug":"readfile-system-call-patches-revisited-for-efficiently-reading-small-files","status":"publish","type":"post","link":"https:\/\/harchi90.com\/readfile-system-call-patches-revisited-for-efficiently-reading-small-files\/","title":{"rendered":"Readfile System Call Patches Revisited For Efficiently Reading Small Files"},"content":{"rendered":"

Black Friday \/ Cyber \u200b\u200bMonday Deal – Show Your Support For Phoronix –<\/strong> the Phoronix Premium holiday special<\/strong> 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 offset the unfortunate impact of ad-blocking so that Phoronix can continue providing daily open-source news and Linux hardware reviews.<\/p>\n

\n
<\/div>\n

Talked about for over two years now has been a “readfile” system call to efficiently read small files. This should be a win when dealing with small files like those exposed via sysfs while it’s taken time to come together and stalled out several times. This week Greg Kroah-Hartman has updated the readfile patches leading to hope that this new syscall might finally be on a path for mainlining.<\/p>\n

The readfile system call is rather simple and intended to simply open the given file, read it into the buffer, and close the file — all within that single call rather than handling each of those steps separately. The intent is to use the readfile system call if frequently reading “tiny” to “small” files like those exposed under sysfs, procfs, etc.\n<\/p>\n

The single system call approach should be more efficient with less syscall overhead, particularly if frequently reading to many small files.
\n<\/p>\n

<\/p>\n

As of Friday, Greg KH has re-based the readfile syscall patch, self tests, and related documentation on his driver-core.git’s “readfile” branch.<\/p>\n

As of writing the patches haven’t yet worked their way to Greg’s driver-core-next branch, but seeing the freshly updated readfile branch gives hope once again this simple system call may finally land after 2+ years of talk.<\/p>\n<\/div>\n

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

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 offset the unfortunate impact of …<\/p>\n

Readfile System Call Patches Revisited For Efficiently Reading Small Files<\/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":"\nReadfile System Call Patches Revisited For Efficiently Reading Small Files - 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\/CBMiO2h0dHBzOi8vd3d3LnBob3Jvbml4LmNvbS9uZXdzL3JlYWRmaWxlLXN5c3RlbS1jYWxsLU5vdi0yMDIy0gEA?oc=5\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Readfile System Call Patches Revisited For Efficiently Reading Small Files - harchi90\" \/>\n<meta property=\"og:description\" content=\"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 offset the unfortunate impact of … Readfile System Call Patches Revisited For Efficiently Reading Small Files Read More »\" \/>\n<meta property=\"og:url\" content=\"https:\/\/news.google.com\/__i\/rss\/rd\/articles\/CBMiO2h0dHBzOi8vd3d3LnBob3Jvbml4LmNvbS9uZXdzL3JlYWRmaWxlLXN5c3RlbS1jYWxsLU5vdi0yMDIy0gEA?oc=5\" \/>\n<meta property=\"og:site_name\" content=\"harchi90\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-28T07:16:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.phoronix.net\/image.php?id=2022&image=readfile_nov_2022\" \/>\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=readfile_nov_2022\" \/>\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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/harchi90.com\/readfile-system-call-patches-revisited-for-efficiently-reading-small-files\/\",\"url\":\"https:\/\/news.google.com\/__i\/rss\/rd\/articles\/CBMiO2h0dHBzOi8vd3d3LnBob3Jvbml4LmNvbS9uZXdzL3JlYWRmaWxlLXN5c3RlbS1jYWxsLU5vdi0yMDIy0gEA?oc=5\",\"name\":\"Readfile System Call Patches Revisited For Efficiently Reading Small Files - harchi90\",\"isPartOf\":{\"@id\":\"https:\/\/harchi90.com\/#website\"},\"datePublished\":\"2022-11-28T07:16:02+00:00\",\"dateModified\":\"2022-11-28T07:16:02+00:00\",\"author\":{\"@id\":\"https:\/\/harchi90.com\/#\/schema\/person\/0689156e87fbe869f0e5efdeef200d5b\"},\"breadcrumb\":{\"@id\":\"https:\/\/news.google.com\/__i\/rss\/rd\/articles\/CBMiO2h0dHBzOi8vd3d3LnBob3Jvbml4LmNvbS9uZXdzL3JlYWRmaWxlLXN5c3RlbS1jYWxsLU5vdi0yMDIy0gEA?oc=5#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/news.google.com\/__i\/rss\/rd\/articles\/CBMiO2h0dHBzOi8vd3d3LnBob3Jvbml4LmNvbS9uZXdzL3JlYWRmaWxlLXN5c3RlbS1jYWxsLU5vdi0yMDIy0gEA?oc=5\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/news.google.com\/__i\/rss\/rd\/articles\/CBMiO2h0dHBzOi8vd3d3LnBob3Jvbml4LmNvbS9uZXdzL3JlYWRmaWxlLXN5c3RlbS1jYWxsLU5vdi0yMDIy0gEA?oc=5#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/harchi90.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Readfile System Call Patches Revisited For Efficiently Reading Small Files\"}]},{\"@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":"Readfile System Call Patches Revisited For Efficiently Reading Small Files - 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\/CBMiO2h0dHBzOi8vd3d3LnBob3Jvbml4LmNvbS9uZXdzL3JlYWRmaWxlLXN5c3RlbS1jYWxsLU5vdi0yMDIy0gEA?oc=5","og_locale":"en_US","og_type":"article","og_title":"Readfile System Call Patches Revisited For Efficiently Reading Small Files - harchi90","og_description":"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 offset the unfortunate impact of … Readfile System Call Patches Revisited For Efficiently Reading Small Files Read More »","og_url":"https:\/\/news.google.com\/__i\/rss\/rd\/articles\/CBMiO2h0dHBzOi8vd3d3LnBob3Jvbml4LmNvbS9uZXdzL3JlYWRmaWxlLXN5c3RlbS1jYWxsLU5vdi0yMDIy0gEA?oc=5","og_site_name":"harchi90","article_published_time":"2022-11-28T07:16:02+00:00","og_image":[{"url":"https:\/\/www.phoronix.net\/image.php?id=2022&image=readfile_nov_2022"}],"author":"islamlacoste58","twitter_card":"summary_large_image","twitter_image":"https:\/\/www.phoronix.net\/image.php?id=2022&image=readfile_nov_2022","twitter_misc":{"Written by":"islamlacoste58","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/harchi90.com\/readfile-system-call-patches-revisited-for-efficiently-reading-small-files\/","url":"https:\/\/news.google.com\/__i\/rss\/rd\/articles\/CBMiO2h0dHBzOi8vd3d3LnBob3Jvbml4LmNvbS9uZXdzL3JlYWRmaWxlLXN5c3RlbS1jYWxsLU5vdi0yMDIy0gEA?oc=5","name":"Readfile System Call Patches Revisited For Efficiently Reading Small Files - harchi90","isPartOf":{"@id":"https:\/\/harchi90.com\/#website"},"datePublished":"2022-11-28T07:16:02+00:00","dateModified":"2022-11-28T07:16:02+00:00","author":{"@id":"https:\/\/harchi90.com\/#\/schema\/person\/0689156e87fbe869f0e5efdeef200d5b"},"breadcrumb":{"@id":"https:\/\/news.google.com\/__i\/rss\/rd\/articles\/CBMiO2h0dHBzOi8vd3d3LnBob3Jvbml4LmNvbS9uZXdzL3JlYWRmaWxlLXN5c3RlbS1jYWxsLU5vdi0yMDIy0gEA?oc=5#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/news.google.com\/__i\/rss\/rd\/articles\/CBMiO2h0dHBzOi8vd3d3LnBob3Jvbml4LmNvbS9uZXdzL3JlYWRmaWxlLXN5c3RlbS1jYWxsLU5vdi0yMDIy0gEA?oc=5"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/news.google.com\/__i\/rss\/rd\/articles\/CBMiO2h0dHBzOi8vd3d3LnBob3Jvbml4LmNvbS9uZXdzL3JlYWRmaWxlLXN5c3RlbS1jYWxsLU5vdi0yMDIy0gEA?oc=5#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/harchi90.com\/"},{"@type":"ListItem","position":2,"name":"Readfile System Call Patches Revisited For Efficiently Reading Small Files"}]},{"@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":142703,"url":"https:\/\/harchi90.com\/the-intel-core-i9-13900k-raptor-lake-performance-from-linux-5-15-to-linux-6-1\/","url_meta":{"origin":141645,"position":0},"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":144011,"url":"https:\/\/harchi90.com\/sdl-tries-again-to-prefer-wayland-over-x11\/","url_meta":{"origin":141645,"position":1},"title":"SDL Tries Again To Prefer Wayland Over X11","date":"November 30, 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":141237,"url":"https:\/\/harchi90.com\/sway-1-8-rc1-wayland-compositor-brings-more-secure-screen-lockers-improved-vulkan-code\/","url_meta":{"origin":141645,"position":2},"title":"Sway 1.8-rc1 Wayland Compositor Brings More Secure Screen Lockers, Improved Vulkan Code","date":"November 27, 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":140741,"url":"https:\/\/harchi90.com\/kde-ending-out-november-with-ui-improvements-more-plasma-wayland-fixes\/","url_meta":{"origin":141645,"position":3},"title":"KDE Ending Out November With UI Improvements, More Plasma Wayland Fixes","date":"November 27, 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":145726,"url":"https:\/\/harchi90.com\/steam-on-linux-usage-climbs-higher-thanks-to-the-steam-deck\/","url_meta":{"origin":141645,"position":4},"title":"Steam On Linux Usage Climbs Higher Thanks To The Steam Deck","date":"December 2, 2022","format":false,"excerpt":"Show Your Support: Did you know that the hundreds of articles written on Phoronix each month are mostly authored by one individual? Phoronix.com doesn't have a whole news room with unlimited resources and relies upon people reading our content without blocking ads and alternatively by people subscribing to Phoronix Premium\u2026","rel":"","context":"In "Technology"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":136793,"url":"https:\/\/harchi90.com\/microsoft-promotes-windows-subsystem-for-linux-wsl-to-ga-status\/","url_meta":{"origin":141645,"position":5},"title":"Microsoft Promotes Windows Subsystem For Linux “WSL” To GA Status","date":"November 23, 2022","format":false,"excerpt":"We Need 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\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=readfile_nov_2022","_links":{"self":[{"href":"https:\/\/harchi90.com\/wp-json\/wp\/v2\/posts\/141645"}],"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=141645"}],"version-history":[{"count":0,"href":"https:\/\/harchi90.com\/wp-json\/wp\/v2\/posts\/141645\/revisions"}],"wp:attachment":[{"href":"https:\/\/harchi90.com\/wp-json\/wp\/v2\/media?parent=141645"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/harchi90.com\/wp-json\/wp\/v2\/categories?post=141645"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/harchi90.com\/wp-json\/wp\/v2\/tags?post=141645"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}