linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* freepage accounting bug with CMA/migrate isolation
@ 2018-07-24  4:24 Mike Kravetz
  2018-07-24 22:38 ` Laura Abbott
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Mike Kravetz @ 2018-07-24  4:24 UTC (permalink / raw)
  To: linux-mm; +Cc: Vlastimil Babka, 'Joonsoo Kim', Laura Abbott

With v4.17, I can see an issue like those addressed in commits 3c605096d315
("mm/page_alloc: restrict max order of merging on isolated pageblock")
and d9dddbf55667 ("mm/page_alloc: prevent merging between isolated and
other pageblocks").  After running a CMA stress test for a while, I see:
  MemTotal:        8168384 kB
  MemFree:         8457232 kB
  MemAvailable:    9204844 kB
If I let the test run, MemFree and MemAvailable will continue to grow.

I am certain the issue is with pageblocks of migratetype ISOLATED.  If
I disable all special 'is_migrate_isolate' checks in freepage accounting,
the issue goes away.  Further, I am pretty sure the issue has to do with
pageblock merging and or page orders spanning pageblocks.  If I make
pageblock_order equal MAX_ORDER-1, the issue also goes away.

Just looking for suggesting in where/how to debug.  I've been hacking on
this without much success.
--
Mike Kravetz

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

end of thread, other threads:[~2018-07-26 21:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-24  4:24 freepage accounting bug with CMA/migrate isolation Mike Kravetz
2018-07-24 22:38 ` Laura Abbott
2018-07-25  0:46   ` Mike Kravetz
2018-07-26 12:28 ` Vlastimil Babka
2018-07-26 16:50   ` Mike Kravetz
2018-07-26 21:26     ` Vlastimil Babka
2018-07-26 13:30 ` Vlastimil Babka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox