From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by kanga.kvack.org (Postfix) with ESMTP id BBF6F6B0035 for ; Thu, 17 Jul 2014 01:01:58 -0400 (EDT) Received: by mail-pa0-f53.google.com with SMTP id kq14so2599783pab.40 for ; Wed, 16 Jul 2014 22:01:58 -0700 (PDT) Received: from lgemrelse6q.lge.com (LGEMRELSE6Q.lge.com. [156.147.1.121]) by mx.google.com with ESMTP id xw6si1203518pac.75.2014.07.16.22.01.56 for ; Wed, 16 Jul 2014 22:01:57 -0700 (PDT) Date: Thu, 17 Jul 2014 14:02:30 +0900 From: Minchan Kim Subject: Re: [PATCH v12 0/8] MADV_FREE support Message-ID: <20140717050230.GB12333@bbox> References: <1404886949-17695-1-git-send-email-minchan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1404886949-17695-1-git-send-email-minchan@kernel.org> Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Michael Kerrisk , Linux API , Hugh Dickins , Johannes Weiner , Rik van Riel , KOSAKI Motohiro , Mel Gorman , Jason Evans , Zhang Yanfei , "Kirill A. Shutemov" Kirill, Do you have any comment? On Wed, Jul 09, 2014 at 03:22:21PM +0900, Minchan Kim wrote: > This patch enable MADV_FREE hint for madvise syscall, which have > been supported by other OSes. [PATCH 1] includes the details. > > [1] support MADVISE_FREE for !THP page so if VM encounter > THP page in syscall context, it splits THP page. > [2-7] is to preparing to call madvise syscall without THP plitting > [8] enable THP page support for MADV_FREE. > > > * From v11 > * Fix arm build - Steve > * Separate patch for arm and arm64 - Steve > * Remove unnecessary check - Kirill > * Skip non-vm_normal page - Kirill > * Add Acked-by - Zhang > * Sparc64 build fix > * Pagetable walker THP handling fix > > * From v10 > * Add Acked-by from arch stuff(x86, s390) > * Pagewalker based pagetable working - Kirill > * Fix try_to_unmap_one broken with hwpoison - Kirill > * Use VM_BUG_ON_PAGE in madvise_free_pmd - Kirill > * Fix pgtable-3level.h for arm - Steve > > * From v9 > * Add Acked-by - Rik > * Add THP page support - Kirill > > * From v8 > * Rebased-on v3.16-rc2-mmotm-2014-06-25-16-44 > > * From v7 > * Rebased-on next-20140613 > > * From v6 > * Remove page from swapcache in syscal time > * Move utility functions from memory.c to madvise.c - Johannes > * Rename untilify functtions - Johannes > * Remove unnecessary checks from vmscan.c - Johannes > * Rebased-on v3.15-rc5-mmotm-2014-05-16-16-56 > * Drop Reviewe-by because there was some changes since then. > > * From v5 > * Fix PPC problem which don't flush TLB - Rik > * Remove unnecessary lazyfree_range stub function - Rik > * Rebased on v3.15-rc5 > > * From v4 > * Add Reviewed-by: Zhang Yanfei > * Rebase on v3.15-rc1-mmotm-2014-04-15-16-14 > > * From v3 > * Add "how to work part" in description - Zhang > * Add page_discardable utility function - Zhang > * Clean up > > * From v2 > * Remove forceful dirty marking of swap-readed page - Johannes > * Remove deactivation logic of lazyfreed page > * Rebased on 3.14 > * Remove RFC tag > > * From v1 > * Use custom page table walker for madvise_free - Johannes > * Remove PG_lazypage flag - Johannes > * Do madvise_dontneed instead of madvise_freein swapless system > > Minchan Kim (8): > [1] mm: support madvise(MADV_FREE) > [2] x86: add pmd_[dirty|mkclean] for THP > [3] sparc: add pmd_[dirty|mkclean] for THP > [4] powerpc: add pmd_[dirty|mkclean] for THP > [5] s390: add pmd_[dirty|mkclean] for THP > [6] arm: add pmd_[dirty|mkclean] for THP > [7] arm64: add pmd_[dirty|mkclean] for THP > [8] mm: Don't split THP page when syscall is called > > arch/arm/include/asm/pgtable-3level.h | 3 + > arch/arm64/include/asm/pgtable.h | 2 + > arch/powerpc/include/asm/pgtable-ppc64.h | 2 + > arch/s390/include/asm/pgtable.h | 12 +++ > arch/sparc/include/asm/pgtable_64.h | 16 ++++ > arch/x86/include/asm/pgtable.h | 10 ++ > include/linux/huge_mm.h | 4 + > include/linux/rmap.h | 9 +- > include/linux/vm_event_item.h | 1 + > include/uapi/asm-generic/mman-common.h | 1 + > mm/huge_memory.c | 35 +++++++ > mm/madvise.c | 155 +++++++++++++++++++++++++++++++ > mm/rmap.c | 46 ++++++++- > mm/vmscan.c | 64 +++++++++---- > mm/vmstat.c | 1 + > 15 files changed, 341 insertions(+), 20 deletions(-) > > -- > 2.0.0 > > -- > 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/ . > Don't email: email@kvack.org -- 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/ . Don't email: email@kvack.org