Re: [PATCH NG] alloc_pages_limit & pages_min
From: Roger Larsson <hidden>
Date: 2001-08-23 18:45:31
From: Roger Larsson <hidden>
Date: 2001-08-23 18:45:31
On Thursdayen den 23 August 2001 02:40, Rik van Riel wrote:
On Thu, 23 Aug 2001, Roger Larsson wrote:quoted
+ if (page) { + while (z->free_pages < z->pages_low) { + struct page *extra = reclaim_page(z); + if (!extra) + break; + __free_page(extra); + } + }This is a surprise ;) Why did you introduce this piece of code? What is it supposed to achieve ?
A lighter alternative would be to reclaim just one extra page... Then it will move in the right direction but not more, quite nice actually! /RogerL -- Roger Larsson Skelleftea Sweden -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/