Re: [PATCH] mm: cma: Discard clean pages during contiguous allocation instead of migration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/11/12, Michal Nazarewicz <mina86@xxxxxxxxxx> wrote:
>
> On Tue, Sep 11 2012, Minchan Kim wrote:
>> This patch drops clean cache pages instead of migration during
>> alloc_contig_range() to minimise allocation latency by reducing the
>> amount
>> of migration is necessary. It's useful for CMA because latency of
>> migration
>> is more important than evicting the background processes working set.
>> In addition, as pages are reclaimed then fewer free pages for migration
>> targets are required so it avoids memory reclaiming to get free pages,
>> which is a contributory factor to increased latency.
>>
>> * from v1
>>   * drop migrate_mode_t
>>   * add reclaim_clean_pages_from_list instad of MIGRATE_DISCARD support -
>> Mel
>>
>> I measured elapsed time of __alloc_contig_migrate_range which migrates
>> 10M in 40M movable zone in QEMU machine.
>>
>> Before - 146ms, After - 7ms
>>
>> Cc: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>
>> Cc: Michal Nazarewicz <mina86@xxxxxxxxxx>
>
> Acked-by: Michal Nazarewicz <mina86@xxxxxxxxxx>
Tested-by: Kyungmin Park <kyungmin.park@xxxxxxxxxxx>
>
> Thanks!
>
> --
> Best regards,                                         _     _
> .o. | Liege of Serenely Enlightened Majesty of      o' \,=./ `o
> ..o | Computer Science,  Michał “mina86” Nazarewicz    (o o)
> ooo +----<email/xmpp: mpn@xxxxxxxxxx>--------------ooO--(_)--Ooo--

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]