Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754974Ab0HQCln (ORCPT ); Mon, 16 Aug 2010 22:41:43 -0400 Received: from TYO202.gate.nec.co.jp ([202.32.8.206]:43001 "EHLO tyo202.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754744Ab0HQClm (ORCPT ); Mon, 16 Aug 2010 22:41:42 -0400 Date: Tue, 17 Aug 2010 11:37:19 +0900 From: Naoya Horiguchi To: Christoph Lameter Cc: Andi Kleen , Andrew Morton , Mel Gorman , Wu Fengguang , "Jun'ichi Nomura" , linux-mm , LKML Subject: Re: [PATCH 0/9] Hugepage migration (v2) Message-ID: <20100817023719.GC12736@spritzera.linux.bs1.fc.nec.co.jp> References: <1281432464-14833-1-git-send-email-n-horiguchi@ah.jp.nec.com> <20100812075323.GA6112@spritzera.linux.bs1.fc.nec.co.jp> <20100816091935.GB3388@spritzera.linux.bs1.fc.nec.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-12-10) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1764 Lines: 44 On Mon, Aug 16, 2010 at 07:19:58AM -0500, Christoph Lameter wrote: > On Mon, 16 Aug 2010, Naoya Horiguchi wrote: > > > In my understanding, in current code "other processors increasing refcount > > during migration" can happen both in non-hugepage direct I/O and in hugepage > > direct I/O in the similar way (i.e. get_user_pages_fast() from dio_refill_pages()). > > So I think there is no specific problem to hugepage. > > Or am I missing your point? > > With a single page there is the check of the refcount during migration > after all the references have been removed (at that point the page is no > longer mapped by any process and direct iO can no longer be > initiated without a page fault. The same checking mechanism works for hugeapge. > > I see that you are running try_to_unmap() from unmap_and_move_huge_page(). Yes, that's right. > > I dont see a patch adding huge page support to try_to_unmap though. How > does this work? I previously posted "hugetlb, rmap: add reverse mapping for hugepage" patch which enables try_to_unmap() to work on hugepage by enabling to handle anon_vma and mapcount for hugepage. For details refer to the following commit: commit 0fe6e20b9c4c53b3e97096ee73a0857f60aad43f Author: Naoya Horiguchi Date: Fri May 28 09:29:16 2010 +0900 hugetlb, rmap: add reverse mapping for hugepage (Current "Hugepage migration" patchset is based on 2.6.35-rc3. So I'll rebase it onto the latest release in the next post.) Thanks, Naoya Horiguchi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/