By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Linux Lands Fix For Early 6.17 Regression Causing 37~43% Performance Hit
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > Linux Lands Fix For Early 6.17 Regression Causing 37~43% Performance Hit
Computing

Linux Lands Fix For Early 6.17 Regression Causing 37~43% Performance Hit

News Room
Last updated: 2025/08/13 at 6:58 PM
News Room Published 13 August 2025
Share
SHARE

Back during the Linux 6.17 merge window was an optimization geared for ARM64 that could have a “16x reduction” in the number of calls. Unfortunately that commit ended up causing a rather significant regression for some systems that has now been addressed.

Last week Intel’s kernel test robot began reporting a 37% regression in one of the stress-ng kernel micro-benchmarks. Oracle engineer Lorenzo Stoakes was able to reproduce and from an Intel Raptor Lake system observed a 43% regression with the Linux 6.17 Git kernel.

Stoakes tracked down the issue and managed to land a fix that is now merged today to Linux Git for avoiding expensive folio lookups on mremap folio PTE batch. Stoakes summarizes:

“It was discovered in the attached report that commit f822a9a81a31 (“mm: optimize mremap() by PTE batching”) introduced a significant performance regression on a number of metrics on x86-64, most notably stress-ng.bigheap.realloc_calls_per_sec – indicating a 37.3% regression in number of mremap() calls per second.

I was able to reproduce this locally on an intel x86-64 raptor lake system, noting an average of 143,857 realloc calls/sec (with a stddev of 4,531 or 3.1%) prior to this patch being applied, and 81,503 afterwards (stddev of 2,131 or 2.6%) – a 43.3% regression.

During testing I was able to determine that there was no meaningful difference in efforts to optimise the folio_pte_batch() operation, nor checking folio_test_large().

This is within expectation, as a regression this large is likely to indicate we are accessing memory that is not yet in a cache line (and perhaps may even cause a main memory fetch).

The expectation by those discussing this from the start was that vm_normal_folio() (invoked by mremap_folio_pte_batch()) would likely be the culprit due to having to retrieve memory from the vmemmap (which mremap() page table moves does not otherwise do, meaning this is inevitably cold memory).

I was able to definitively determine that this theory is indeed correct and the cause of the issue.

The solution is to restore part of an approach previously discarded on review, that is to invoke pte_batch_hint() which explicitly determines, through reference to the PTE alone (thus no vmemmap lookup), what the PTE batch size may be.

On platforms other than arm64 this is currently hardcoded to return 1, so this naturally resolves the issue for x86-64, and for arm64 introduces little to no overhead as the pte cache line will be hot.

With this patch applied, we move from 81,503 realloc calls/sec to 138,701 (stddev of 496.1 or 0.4%), which is a -3.6% regression, however accounting for the variance in the original result, this is broadly restoring performance to its prior state.”

So a big regression now under control just days after the Linux 6.17-rc1 release. Just a two-line patch to avoid the expensive folio lookup when it’s unlikely to provide any benefit.

I will see if it ends up helping any of the mixed benchmark results I saw on Linux 6.17 during early testing while more benchmarking will be getting underway in the days ahead.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Survey Ends Sunday: Rate Your Robot Vacuum, Mop, or Combo Bot
Next Article ChatGPT-5 Gives You Real Choices After All. Here's a Quick Breakdown
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Cardano (ADA) Can Wait; Ruvi AI’s (RUVI) New CoinMarketCap Listing Sparks Presale Frenzy, Phase 2 Hits 80% in No Time
Gadget
Funko names Netflix vet as new CEO a week after pop culture collectibles maker reported $41M loss
Computing
You can score the M3 iPad Air for its lowest price yet
News
Intel ISPC 1.28 Adds Optimized Support For AMD Zen 4 & Zen 5 CPUs
Computing

You Might also Like

Computing

Funko names Netflix vet as new CEO a week after pop culture collectibles maker reported $41M loss

3 Min Read
Computing

Intel ISPC 1.28 Adds Optimized Support For AMD Zen 4 & Zen 5 CPUs

2 Min Read
Computing

SAIC’s ride-hailing unit announced $181 million investment round in push for robotaxis · TechNode

1 Min Read
Computing

10+ Best Social Media Scheduling Tools in 2025 (Comparison)

2 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?