Silent hang up caused by pages being not scanned?
Subsystems (2)
Quoted 6 lines
Quoted 6 lines
In particular, I think that you'll find that you will have to change the heuristics in
__alloc_pages_slowpath()where we currently doif ((did_some_progress && order <= PAGE_ALLOC_COSTLY_ORDER) || ..
Quoted 9 lines
Quoted 2 lines
when the "
did_some_progress" logic changes that radically.Yes. But we can't simply do
if (order <= PAGE_ALLOC_COSTLY_ORDER || ..because we won't be able to call
out_of_memory(), can we?
Can you please try a simplified retry logic?
thanks
Hillf
mm/page_alloc.c +1 -2
@@ -3154,8 +3154,7 @@ retry:/* Keep reclaiming pages as long as there is reasonable progress */ pages_reclaimed += did_some_progress; -if ((did_some_progress && order <=PAGE_ALLOC_COSTLY_ORDER ) || - ((gfp_mask & __GFP_REPEAT) && pages_reclaimed < (1 << order))) { +if (did_some_progress) {/* Wait for some write requests to complete then retry */ wait_iff_congested (ac->preferred_zone,BLK_RW_ASYNC ,HZ /50 ); goto retry;
--
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>