linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Minchan Kim <minchan@kernel.org>
To: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Cc: linux-mm@kvack.org, mgorman@suse.de,
	Kyungmin Park <kyungmin.park@samsung.com>
Subject: Re: [PATCH 1/2] mm: compaction: try harder to isolate free pages
Date: Fri, 6 Apr 2012 17:51:30 +0900	[thread overview]
Message-ID: <CAEwNFnDuPX5a59YrFO1FGHoQSj4j=hNRd45vgjDTzCKTh9wugg@mail.gmail.com> (raw)
In-Reply-To: <201204061021.39656.b.zolnierkie@samsung.com>

On Fri, Apr 6, 2012 at 5:21 PM, Bartlomiej Zolnierkiewicz
<b.zolnierkie@samsung.com> wrote:
> On Friday 06 April 2012 08:40:56 Minchan Kim wrote:
>> On Fri, Apr 6, 2012 at 1:32 AM, Bartlomiej Zolnierkiewicz <
>> b.zolnierkie@samsung.com> wrote:
>>
>> > In isolate_freepages() check each page in a pageblock
>> > instead of checking only first pages of pageblock_nr_pages
>> > intervals (suitable_migration_target(page) is called before
>> > isolate_freepages_block() so if page is "unsuitable" whole
>> > pageblock_nr_pages pages will be ommited from the check).
>> > It greatly improves possibility of finding free pages to
>> > isolate during compaction_alloc() phase.
>> >
>>
>> I doubt how this can help keeping free pages.
>> Now, compaction works by pageblock_nr_pages unit so although you work by
>> per page, all pages in a block would have same block type.
>> It means we can't pass suitable_migration_target. No?
>
> suitable_migration_target() only checks first page of pageblock_nr_pages
> block (1024 normal 4KiB pages in my test case cause there is no hugepage
> support on ARM) and pages in pageblock_nr_pages block can have different
> types otherwise I would not see improvement from this patch.

How?
pages in a block should be same type.


-- 
Kind regards,
Minchan Kim

--
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/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2012-04-06  8:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-05 16:32 [PATCH 0/2] mm: compaction: improve free pages selection Bartlomiej Zolnierkiewicz
2012-04-05 16:32 ` [PATCH 1/2] mm: compaction: try harder to isolate free pages Bartlomiej Zolnierkiewicz
2012-04-06  6:40   ` Minchan Kim
2012-04-06  8:21     ` Bartlomiej Zolnierkiewicz
2012-04-06  8:51       ` Minchan Kim [this message]
2012-04-10 10:38   ` Mel Gorman
2012-04-12  5:42     ` Mel Gorman
2012-04-05 16:32 ` [PATCH 2/2] mm: compaction: allow isolation of lower order buddy pages Bartlomiej Zolnierkiewicz
2012-04-05 21:46   ` David Rientjes
2012-04-06  8:38     ` Bartlomiej Zolnierkiewicz
2012-04-06  6:45   ` Minchan Kim
2012-04-10 10:40   ` Mel Gorman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAEwNFnDuPX5a59YrFO1FGHoQSj4j=hNRd45vgjDTzCKTh9wugg@mail.gmail.com' \
    --to=minchan@kernel.org \
    --cc=b.zolnierkie@samsung.com \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-mm@kvack.org \
    --cc=mgorman@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox