From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f70.google.com (mail-wm0-f70.google.com [74.125.82.70]) by kanga.kvack.org (Postfix) with ESMTP id 72C816B0005 for ; Sat, 9 Jul 2016 20:07:29 -0400 (EDT) Received: by mail-wm0-f70.google.com with SMTP id o80so3794793wme.1 for ; Sat, 09 Jul 2016 17:07:29 -0700 (PDT) Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com. [2a00:1450:400c:c09::229]) by mx.google.com with ESMTPS id e132si5184781wme.59.2016.07.09.17.07.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Jul 2016 17:07:28 -0700 (PDT) Received: by mail-wm0-x229.google.com with SMTP id o80so7823123wme.1 for ; Sat, 09 Jul 2016 17:07:28 -0700 (PDT) From: Ebru Akagunduz Subject: [RFC PATCH v3 0/2] mm, thp: convert from optimistic swapin collapsing to conservative Date: Sun, 10 Jul 2016 03:07:04 +0300 Message-Id: <1468109224-29912-1-git-send-email-ebru.akagunduz@gmail.com> Sender: owner-linux-mm@kvack.org List-ID: To: linux-mm@kvack.org Cc: hughd@google.com, riel@redhat.com, akpm@linux-foundation.org, kirill.shutemov@linux.intel.com, n-horiguchi@ah.jp.nec.com, aarcange@redhat.com, iamjoonsoo.kim@lge.com, gorcunov@openvz.org, linux-kernel@vger.kernel.org, mgorman@suse.de, rientjes@google.com, vbabka@suse.cz, aneesh.kumar@linux.vnet.ibm.com, hannes@cmpxchg.org, mhocko@suse.cz, boaz@plexistor.com, Ebru Akagunduz This patch series fixes comment inconsistency and supplies to decide to swapin looking the amount of young pages. Changes in v2: - Don't change thp design, notice young pages if needs to swapin - Add comment line fixing patch Changes in v3: - Remove revert patch (allocstall), the patch automatically dropped - Set comment line fixing patch as first part of the series - Move changes from huge_memory.c to khugepaged.c Ebru Akagunduz (2): mm, thp: fix comment inconsistency for swapin readahead functions mm, thp: convert from optimistic swapin collapsing to conservative include/trace/events/huge_memory.h | 19 +++++++++------- mm/khugepaged.c | 45 +++++++++++++++++++++++--------------- 2 files changed, 38 insertions(+), 26 deletions(-) -- 1.9.1 -- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f69.google.com (mail-lf0-f69.google.com [209.85.215.69]) by kanga.kvack.org (Postfix) with ESMTP id 98EE66B0005 for ; Sat, 9 Jul 2016 20:09:20 -0400 (EDT) Received: by mail-lf0-f69.google.com with SMTP id a2so49770707lfe.0 for ; Sat, 09 Jul 2016 17:09:20 -0700 (PDT) Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com. [2a00:1450:400c:c09::244]) by mx.google.com with ESMTPS id m18si232758wmc.95.2016.07.09.17.09.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Jul 2016 17:09:19 -0700 (PDT) Received: by mail-wm0-x244.google.com with SMTP id k123so12205460wme.2 for ; Sat, 09 Jul 2016 17:09:19 -0700 (PDT) From: Ebru Akagunduz Subject: [PATCH v3 1/2] mm, thp: fix comment inconsistency for swapin readahead functions Date: Sun, 10 Jul 2016 03:09:05 +0300 Message-Id: <1468109345-32258-1-git-send-email-ebru.akagunduz@gmail.com> In-Reply-To: <1468109224-29912-1-git-send-email-ebru.akagunduz@gmail.com> References: <1468109224-29912-1-git-send-email-ebru.akagunduz@gmail.com> Sender: owner-linux-mm@kvack.org List-ID: To: linux-mm@kvack.org Cc: hughd@google.com, riel@redhat.com, akpm@linux-foundation.org, kirill.shutemov@linux.intel.com, n-horiguchi@ah.jp.nec.com, aarcange@redhat.com, iamjoonsoo.kim@lge.com, gorcunov@openvz.org, linux-kernel@vger.kernel.org, mgorman@suse.de, rientjes@google.com, vbabka@suse.cz, aneesh.kumar@linux.vnet.ibm.com, hannes@cmpxchg.org, mhocko@suse.cz, boaz@plexistor.com, hillf.zj@alibaba-inc.com, Ebru Akagunduz After fixing swapin issues, comment lines stayed as in old version. This patch updates the comments. Signed-off-by: Ebru Akagunduz Cc: Hillf Danton --- Changes in v2: - Newly created in this version. Changes in v3: - Replace Reported-by with Cc (Hillf Danton) - Remove RFC tag (Hillf Danton) - After khugepaged extracted from huge_memory.c, changes moved to khugepaged.c mm/khugepaged.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mm/khugepaged.c b/mm/khugepaged.c index 93d5f87..5661484 100644 --- a/mm/khugepaged.c +++ b/mm/khugepaged.c @@ -891,9 +891,10 @@ static bool __collapse_huge_page_swapin(struct mm_struct *mm, /* do_swap_page returns VM_FAULT_RETRY with released mmap_sem */ if (ret & VM_FAULT_RETRY) { down_read(&mm->mmap_sem); - /* vma is no longer available, don't continue to swapin */ - if (hugepage_vma_revalidate(mm, address)) + if (hugepage_vma_revalidate(mm, address)) { + /* vma is no longer available, don't continue to swapin */ return false; + } /* check if the pmd is still valid */ if (mm_find_pmd(mm, address) != pmd) return false; @@ -969,7 +970,7 @@ static void collapse_huge_page(struct mm_struct *mm, /* * __collapse_huge_page_swapin always returns with mmap_sem locked. - * If it fails, release mmap_sem and jump directly out. + * If it fails, we release mmap_sem and jump out_nolock. * Continuing to collapse causes inconsistency. */ if (!__collapse_huge_page_swapin(mm, vma, address, pmd)) { -- 1.9.1 -- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f71.google.com (mail-wm0-f71.google.com [74.125.82.71]) by kanga.kvack.org (Postfix) with ESMTP id 524346B0005 for ; Sat, 9 Jul 2016 20:11:06 -0400 (EDT) Received: by mail-wm0-f71.google.com with SMTP id x83so30773801wma.2 for ; Sat, 09 Jul 2016 17:11:06 -0700 (PDT) Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com. [2a00:1450:400c:c09::242]) by mx.google.com with ESMTPS id g5si3235222wje.17.2016.07.09.17.11.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Jul 2016 17:11:05 -0700 (PDT) Received: by mail-wm0-x242.google.com with SMTP id w75so12195685wmd.1 for ; Sat, 09 Jul 2016 17:11:05 -0700 (PDT) From: Ebru Akagunduz Subject: [RFC PATCH v3 2/2] mm, thp: convert from optimistic swapin collapsing to conservative Date: Sun, 10 Jul 2016 03:10:51 +0300 Message-Id: <1468109451-1615-1-git-send-email-ebru.akagunduz@gmail.com> In-Reply-To: <1468109224-29912-1-git-send-email-ebru.akagunduz@gmail.com> References: <1468109224-29912-1-git-send-email-ebru.akagunduz@gmail.com> Sender: owner-linux-mm@kvack.org List-ID: To: linux-mm@kvack.org Cc: hughd@google.com, riel@redhat.com, akpm@linux-foundation.org, kirill.shutemov@linux.intel.com, n-horiguchi@ah.jp.nec.com, aarcange@redhat.com, iamjoonsoo.kim@lge.com, gorcunov@openvz.org, linux-kernel@vger.kernel.org, mgorman@suse.de, rientjes@google.com, vbabka@suse.cz, aneesh.kumar@linux.vnet.ibm.com, hannes@cmpxchg.org, mhocko@suse.cz, boaz@plexistor.com, Ebru Akagunduz To detect whether khugepaged swapin worthwhile, this patch checks the amount of young pages. There should be at least half of HPAGE_PMD_NR to swapin. Signed-off-by: Ebru Akagunduz Suggested-by: Minchan Kim --- Changes in v2: - Don't change thp design, only notice amount of young pages, if khugepaged needs to swapin (Minchan Kim). - Print out count of referenced pages in __collapse_huge_page_swapin() (Ebru Akagunduz) Changes in v3: - After khugepaged extracted from huge_memory.c, changes moved to khugepaged.c include/trace/events/huge_memory.h | 19 +++++++++++-------- mm/khugepaged.c | 38 +++++++++++++++++++++++--------------- 2 files changed, 34 insertions(+), 23 deletions(-) diff --git a/include/trace/events/huge_memory.h b/include/trace/events/huge_memory.h index 830d47d..04f58ac 100644 --- a/include/trace/events/huge_memory.h +++ b/include/trace/events/huge_memory.h @@ -13,7 +13,7 @@ EM( SCAN_EXCEED_NONE_PTE, "exceed_none_pte") \ EM( SCAN_PTE_NON_PRESENT, "pte_non_present") \ EM( SCAN_PAGE_RO, "no_writable_page") \ - EM( SCAN_NO_REFERENCED_PAGE, "no_referenced_page") \ + EM( SCAN_LACK_REFERENCED_PAGE, "lack_referenced_page") \ EM( SCAN_PAGE_NULL, "page_null") \ EM( SCAN_SCAN_ABORT, "scan_aborted") \ EM( SCAN_PAGE_COUNT, "not_suitable_page_count") \ @@ -47,7 +47,7 @@ SCAN_STATUS TRACE_EVENT(mm_khugepaged_scan_pmd, TP_PROTO(struct mm_struct *mm, struct page *page, bool writable, - bool referenced, int none_or_zero, int status, int unmapped), + int referenced, int none_or_zero, int status, int unmapped), TP_ARGS(mm, page, writable, referenced, none_or_zero, status, unmapped), @@ -55,7 +55,7 @@ TRACE_EVENT(mm_khugepaged_scan_pmd, __field(struct mm_struct *, mm) __field(unsigned long, pfn) __field(bool, writable) - __field(bool, referenced) + __field(int, referenced) __field(int, none_or_zero) __field(int, status) __field(int, unmapped) @@ -108,14 +108,14 @@ TRACE_EVENT(mm_collapse_huge_page, TRACE_EVENT(mm_collapse_huge_page_isolate, TP_PROTO(struct page *page, int none_or_zero, - bool referenced, bool writable, int status), + int referenced, bool writable, int status), TP_ARGS(page, none_or_zero, referenced, writable, status), TP_STRUCT__entry( __field(unsigned long, pfn) __field(int, none_or_zero) - __field(bool, referenced) + __field(int, referenced) __field(bool, writable) __field(int, status) ), @@ -138,25 +138,28 @@ TRACE_EVENT(mm_collapse_huge_page_isolate, TRACE_EVENT(mm_collapse_huge_page_swapin, - TP_PROTO(struct mm_struct *mm, int swapped_in, int ret), + TP_PROTO(struct mm_struct *mm, int swapped_in, int referenced, int ret), - TP_ARGS(mm, swapped_in, ret), + TP_ARGS(mm, swapped_in, referenced, ret), TP_STRUCT__entry( __field(struct mm_struct *, mm) __field(int, swapped_in) + __field(int, referenced) __field(int, ret) ), TP_fast_assign( __entry->mm = mm; __entry->swapped_in = swapped_in; + __entry->referenced = referenced; __entry->ret = ret; ), - TP_printk("mm=%p, swapped_in=%d, ret=%d", + TP_printk("mm=%p, swapped_in=%d, referenced=%d, ret=%d", __entry->mm, __entry->swapped_in, + __entry->referenced, __entry->ret) ); diff --git a/mm/khugepaged.c b/mm/khugepaged.c index 5661484..7dbee69 100644 --- a/mm/khugepaged.c +++ b/mm/khugepaged.c @@ -27,7 +27,7 @@ enum scan_result { SCAN_EXCEED_NONE_PTE, SCAN_PTE_NON_PRESENT, SCAN_PAGE_RO, - SCAN_NO_REFERENCED_PAGE, + SCAN_LACK_REFERENCED_PAGE, SCAN_PAGE_NULL, SCAN_SCAN_ABORT, SCAN_PAGE_COUNT, @@ -500,8 +500,8 @@ static int __collapse_huge_page_isolate(struct vm_area_struct *vma, { struct page *page = NULL; pte_t *_pte; - int none_or_zero = 0, result = 0; - bool referenced = false, writable = false; + int none_or_zero = 0, result = 0, referenced = 0; + bool writable = false; for (_pte = pte; _pte < pte+HPAGE_PMD_NR; _pte++, address += PAGE_SIZE) { @@ -580,11 +580,11 @@ static int __collapse_huge_page_isolate(struct vm_area_struct *vma, VM_BUG_ON_PAGE(!PageLocked(page), page); VM_BUG_ON_PAGE(PageLRU(page), page); - /* If there is no mapped pte young don't collapse the page */ + /* There should be enough young pte to collapse the page */ if (pte_young(pteval) || page_is_young(page) || PageReferenced(page) || mmu_notifier_test_young(vma->vm_mm, address)) - referenced = true; + referenced++; } if (likely(writable)) { if (likely(referenced)) { @@ -869,7 +869,8 @@ static int hugepage_vma_revalidate(struct mm_struct *mm, unsigned long address) static bool __collapse_huge_page_swapin(struct mm_struct *mm, struct vm_area_struct *vma, - unsigned long address, pmd_t *pmd) + unsigned long address, pmd_t *pmd, + int referenced) { pte_t pteval; int swapped_in = 0, ret = 0; @@ -887,12 +888,19 @@ static bool __collapse_huge_page_swapin(struct mm_struct *mm, if (!is_swap_pte(pteval)) continue; swapped_in++; + /* we only decide to swapin, if there is enough young ptes */ + if (referenced < HPAGE_PMD_NR/2) { + trace_mm_collapse_huge_page_swapin(mm, swapped_in, referenced, 0); + return false; + } ret = do_swap_page(&fe, pteval); + /* do_swap_page returns VM_FAULT_RETRY with released mmap_sem */ if (ret & VM_FAULT_RETRY) { down_read(&mm->mmap_sem); if (hugepage_vma_revalidate(mm, address)) { /* vma is no longer available, don't continue to swapin */ + trace_mm_collapse_huge_page_swapin(mm, swapped_in, referenced, 0); return false; } /* check if the pmd is still valid */ @@ -900,7 +908,7 @@ static bool __collapse_huge_page_swapin(struct mm_struct *mm, return false; } if (ret & VM_FAULT_ERROR) { - trace_mm_collapse_huge_page_swapin(mm, swapped_in, 0); + trace_mm_collapse_huge_page_swapin(mm, swapped_in, referenced, 0); return false; } /* pte is unmapped now, we need to map it */ @@ -908,7 +916,7 @@ static bool __collapse_huge_page_swapin(struct mm_struct *mm, } fe.pte--; pte_unmap(fe.pte); - trace_mm_collapse_huge_page_swapin(mm, swapped_in, 1); + trace_mm_collapse_huge_page_swapin(mm, swapped_in, referenced, 1); return true; } @@ -916,7 +924,7 @@ static void collapse_huge_page(struct mm_struct *mm, unsigned long address, struct page **hpage, struct vm_area_struct *vma, - int node) + int node, int referenced) { pmd_t *pmd, _pmd; pte_t *pte; @@ -973,7 +981,7 @@ static void collapse_huge_page(struct mm_struct *mm, * If it fails, we release mmap_sem and jump out_nolock. * Continuing to collapse causes inconsistency. */ - if (!__collapse_huge_page_swapin(mm, vma, address, pmd)) { + if (!__collapse_huge_page_swapin(mm, vma, address, pmd, referenced)) { mem_cgroup_cancel_charge(new_page, memcg, true); up_read(&mm->mmap_sem); goto out_nolock; @@ -1084,12 +1092,12 @@ static int khugepaged_scan_pmd(struct mm_struct *mm, { pmd_t *pmd; pte_t *pte, *_pte; - int ret = 0, none_or_zero = 0, result = 0; + int ret = 0, none_or_zero = 0, result = 0, referenced = 0; struct page *page = NULL; unsigned long _address; spinlock_t *ptl; int node = NUMA_NO_NODE, unmapped = 0; - bool writable = false, referenced = false; + bool writable = false; VM_BUG_ON(address & ~HPAGE_PMD_MASK); @@ -1177,14 +1185,14 @@ static int khugepaged_scan_pmd(struct mm_struct *mm, if (pte_young(pteval) || page_is_young(page) || PageReferenced(page) || mmu_notifier_test_young(vma->vm_mm, address)) - referenced = true; + referenced++; } if (writable) { if (referenced) { result = SCAN_SUCCEED; ret = 1; } else { - result = SCAN_NO_REFERENCED_PAGE; + result = SCAN_LACK_REFERENCED_PAGE; } } else { result = SCAN_PAGE_RO; @@ -1194,7 +1202,7 @@ out_unmap: if (ret) { node = khugepaged_find_target_node(); /* collapse_huge_page will return with the mmap_sem released */ - collapse_huge_page(mm, address, hpage, vma, node); + collapse_huge_page(mm, address, hpage, vma, node, referenced); } out: trace_mm_khugepaged_scan_pmd(mm, page, writable, referenced, -- 1.9.1 -- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f72.google.com (mail-oi0-f72.google.com [209.85.218.72]) by kanga.kvack.org (Postfix) with ESMTP id 4D9F76B0005 for ; Wed, 20 Jul 2016 10:11:39 -0400 (EDT) Received: by mail-oi0-f72.google.com with SMTP id u142so82797689oia.2 for ; Wed, 20 Jul 2016 07:11:39 -0700 (PDT) Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id e5si17549353itd.85.2016.07.20.07.11.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Jul 2016 07:11:38 -0700 (PDT) Message-ID: <1469023891.30053.69.camel@redhat.com> Subject: Re: [PATCH v3 1/2] mm, thp: fix comment inconsistency for swapin readahead functions From: Rik van Riel Date: Wed, 20 Jul 2016 10:11:31 -0400 In-Reply-To: <1468109345-32258-1-git-send-email-ebru.akagunduz@gmail.com> References: <1468109224-29912-1-git-send-email-ebru.akagunduz@gmail.com> <1468109345-32258-1-git-send-email-ebru.akagunduz@gmail.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-Ga9s0j3UlI7jVlbWOt4m" Mime-Version: 1.0 Sender: owner-linux-mm@kvack.org List-ID: To: Ebru Akagunduz , linux-mm@kvack.org Cc: hughd@google.com, akpm@linux-foundation.org, kirill.shutemov@linux.intel.com, n-horiguchi@ah.jp.nec.com, aarcange@redhat.com, iamjoonsoo.kim@lge.com, gorcunov@openvz.org, linux-kernel@vger.kernel.org, mgorman@suse.de, rientjes@google.com, vbabka@suse.cz, aneesh.kumar@linux.vnet.ibm.com, hannes@cmpxchg.org, mhocko@suse.cz, boaz@plexistor.com, hillf.zj@alibaba-inc.com --=-Ga9s0j3UlI7jVlbWOt4m Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, 2016-07-10 at 03:09 +0300, Ebru Akagunduz wrote: > After fixing swapin issues, comment lines stayed as in old version. > This patch updates the comments. >=20 > Signed-off-by: Ebru Akagunduz > Cc: Hillf Danton >=20 Acked-by: Rik van Riel --=20 All Rights Reversed. --=-Ga9s0j3UlI7jVlbWOt4m Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJXj4aUAAoJEM553pKExN6DdGgH/2qH0jngvTq6UusPIeOJoDqN QtaX9U27VThrzBws3n5ow06l9R7aGY4ChzLr8kD9AFB/lbig7iFp2CaE6DFRqi87 4si4NUFnyexdfiF6UEDx+dSU0qiyKMlUDQWtsJf7AF7hk+q9uRndEciYhnBl6pam jKrwKR8netoP1gQm2oBPJhSNj/a8/hx5DRLVi7VHxsQbDgZKLxgLG4HXPChYngMv tiRdvDhuw3xAWs5P6RgBhhl0EpXyQy2zX64NfmardXjq4JuoFgs9tW8k0hBRYcNc mLwXJ4bvo3Ysd4gAixxPEL3Y1wsZG/G0HrmlweNCcHJ0wyj9LsEV6Ym+vBuflT4= =OsYK -----END PGP SIGNATURE----- --=-Ga9s0j3UlI7jVlbWOt4m-- -- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f70.google.com (mail-oi0-f70.google.com [209.85.218.70]) by kanga.kvack.org (Postfix) with ESMTP id 5D61E6B0005 for ; Wed, 20 Jul 2016 10:14:19 -0400 (EDT) Received: by mail-oi0-f70.google.com with SMTP id u142so82898163oia.2 for ; Wed, 20 Jul 2016 07:14:19 -0700 (PDT) Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id g72si17652886itg.53.2016.07.20.07.14.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Jul 2016 07:14:18 -0700 (PDT) Message-ID: <1469024054.30053.70.camel@redhat.com> Subject: Re: [RFC PATCH v3 2/2] mm, thp: convert from optimistic swapin collapsing to conservative From: Rik van Riel Date: Wed, 20 Jul 2016 10:14:14 -0400 In-Reply-To: <1468109451-1615-1-git-send-email-ebru.akagunduz@gmail.com> References: <1468109224-29912-1-git-send-email-ebru.akagunduz@gmail.com> <1468109451-1615-1-git-send-email-ebru.akagunduz@gmail.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-FH0g54KZlRchV+LwO9L5" Mime-Version: 1.0 Sender: owner-linux-mm@kvack.org List-ID: To: Ebru Akagunduz , linux-mm@kvack.org Cc: hughd@google.com, akpm@linux-foundation.org, kirill.shutemov@linux.intel.com, n-horiguchi@ah.jp.nec.com, aarcange@redhat.com, iamjoonsoo.kim@lge.com, gorcunov@openvz.org, linux-kernel@vger.kernel.org, mgorman@suse.de, rientjes@google.com, vbabka@suse.cz, aneesh.kumar@linux.vnet.ibm.com, hannes@cmpxchg.org, mhocko@suse.cz, boaz@plexistor.com --=-FH0g54KZlRchV+LwO9L5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, 2016-07-10 at 03:10 +0300, Ebru Akagunduz wrote: > To detect whether khugepaged swapin worthwhile, this patch checks > the amount of young pages. There should be at least half of > HPAGE_PMD_NR to swapin. >=20 > Signed-off-by: Ebru Akagunduz > Suggested-by: Minchan Kim >=20 Acked-by: Rik van Riel --=20 All Rights Reversed. --=-FH0g54KZlRchV+LwO9L5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJXj4c2AAoJEM553pKExN6DVx0IAJyoOc7CsMPv17u/p+oiP1+V T7vIlm26TZIJjDFiyHQSgjOdPX1HBAkegiNOfzO116+JgbOQqF3nMzg1VYM4p/Qz Zsspzz/SA5HVT1dpU/Bwrk078n/eguJezN9b7elFpN4+39KZ3so/kXqdL+ygja2V oTLXJHHo7cZPoDKPlt0nqYDGol9lXfBEr2eAN91ZvewiR+DZIif4aAI5bWl3w8QQ CtumVRohxCL4wyuds1BNh8H1KuZIqc4/IFN2i1++o83eq+odSc9uPfQASycBMnrQ ww2P+MlQ25KLgoRnoycXQJstLDBEixdJ/rDBgTwS4V+6BhGKRMrHaSIMU2tFkFA= =Qtqg -----END PGP SIGNATURE----- --=-FH0g54KZlRchV+LwO9L5-- -- 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