linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [REGRESSION][BISECTED] Unexpected OOM instead of reclaiming inactive file pages
@ 2025-08-11 15:48 Oleksandr Natalenko
  2025-08-11 16:06 ` David Rientjes
  0 siblings, 1 reply; 5+ messages in thread
From: Oleksandr Natalenko @ 2025-08-11 15:48 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-block, Jens Axboe, Damien Le Moal, John Garry,
	Christoph Hellwig, Martin K. Petersen, linux-mm, Lorenzo Stoakes,
	Shakeel Butt, Qi Zheng, Michal Hocko, David Hildenbrand,
	Johannes Weiner, Andrew Morton

[-- Attachment #1: Type: text/plain, Size: 969 bytes --]

Hello Damien.

I'm fairly confident that the following commit

459779d04ae8d block: Improve read ahead size for rotational devices

caused a regression in my test bench.

I'm running v6.17-rc1 in a small QEMU VM with virtio-scsi disk. It has got 1 GiB of RAM, so I can saturate it easily causing reclaiming mechanism to kick in.

If MGLRU is enabled:

$ echo 1000 | sudo tee /sys/kernel/mm/lru_gen/min_ttl_ms

then, once page cache builds up, an OOM happens without reclaiming inactive file pages: [1]. Note that inactive_file:506952kB, I'd expect these to be reclaimed instead, like how it happens with v6.16.

If MGLRU is disabled:

$ echo 0 | sudo tee /sys/kernel/mm/lru_gen/min_ttl_ms

then OOM doesn't occur, and things seem to work as usual.

If MGLRU is enabled, and 459779d04ae8d is reverted on top of v6.17-rc1, the OOM doesn't happen either.

Could you please check this?

Thank you.

-- 
Oleksandr Natalenko, MSE

[1]: https://paste.voidband.net/TG5OiZ29.log

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-08-12  7:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-11 15:48 [REGRESSION][BISECTED] Unexpected OOM instead of reclaiming inactive file pages Oleksandr Natalenko
2025-08-11 16:06 ` David Rientjes
2025-08-11 20:42   ` Oleksandr Natalenko
2025-08-12  0:45     ` Damien Le Moal
2025-08-12  7:37       ` Oleksandr Natalenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).