Skip to content

mm/page_alloc: fix iomap buffered write regression from 5d8edfb900d5

Salvatore Dipietro linux-mm stable 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 3/32 patches 0 repliesNew
  2. v2 posting 2/32 patches 0 repliesSuperseded
  3. v2 posting 1/32 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches1 replySuperseded

Changes in v2 from the cover letter

- Dropped 6ee3d87b9408, now queued from Sasha's backport [2].
- Added my Signed-off-by to both patches.

Patches in v2 posting 3/3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm: page_alloc: remove ALLOC_NON_BLOCK from ALLOC_RESERVESmm/internal.h+5 -60 replies
2/2mm/page_alloc: avoid direct reclaim and compaction for costly __GFP_NORETRY allocationsmm/page_alloc.c+11 -10 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchBalbir SinghVlastimil Babka (SUSE)Zi YanJohannes WeinerChristoph Hellwig
1/2A-b R-b
2/2A-b A-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v2 thread

Cover letter [PATCH 6.6.y v2 0/2] mm/page_alloc: fix iomap buffered write regression from 5d8edfb900d5

Backport of 0e05a469c294 ("mm/page_alloc: avoid direct reclaim and compaction for costly __GFP_NORETRY allocations") to 6.6.y. It fixes a regression from 5d8edfb900d5 ("iomap: Copy larger chunks from userspace", v6.6), which slows buffered writes under memory fragmentation. Andrew and Vlastimil agreed it should go to stable [1].

The series applies on top of Sasha's backport of 6ee3d87b9408 ("mm:
page_alloc: do not give all non-blocking requests reserve access") [2]. Patch 1 is the other prerequisite, fe21f930d1e6, only moved from mm/page_alloc.h to mm/internal.h. Patch 2 is adjusted for this tree, see its changelog. Acks from Vlastimil and Johannes on these adjustments would be appreciated.

Patch 2 keeps the mainline behaviour, including the THP defrag=always case raised in the Sashiko review of v1 [3].

Built, booted and tested with pgbench simple-update (PostgreSQL 18.6, 1024 clients, 96 threads, 1200s) on m8g.24xlarge (96 vCPU arm64), 12x io2 RAID0 XFS, mean of 3 runs:

v6.6.162 93,808 TPS
v6.6.162 + series 159,670 TPS (+70.2%)

Changes in v2:
- Dropped 6ee3d87b9408, now queued from Sasha's backport [2].
- Added my Signed-off-by to both patches.

v1: https://lore.kernel.org/all/[email protected]/

[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/
[3] https://lore.kernel.org/all/[email protected]/

Johannes Weiner (1):
mm: page_alloc: remove ALLOC_NON_BLOCK from ALLOC_RESERVES

Salvatore Dipietro (1):
mm/page_alloc: avoid direct reclaim and compaction for costly
__GFP_NORETRY allocations

 mm/internal.h   | 11 +++++------
 mm/page_alloc.c | 12 +++++++++++-
 2 files changed, 16 insertions(+), 7 deletions(-)
Signature · 6 lines
2.50.1




AMAZON DEVELOPMENT CENTER ITALY SRL, viale Monte Grappa 3/5, 20124 Milano, Italia, Registro delle Imprese di Milano Monza Brianza Lodi REA n. 2504859, Capitale Sociale: 10.000 EUR i.v., Cod. Fisc. e P.IVA 10100050961, Societa con Socio Unico