From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pb0-f49.google.com (mail-pb0-f49.google.com [209.85.160.49]) by kanga.kvack.org (Postfix) with ESMTP id B47516B0039 for ; Mon, 3 Mar 2014 21:48:22 -0500 (EST) Received: by mail-pb0-f49.google.com with SMTP id jt11so4556407pbb.22 for ; Mon, 03 Mar 2014 18:48:22 -0800 (PST) Received: from mail-pd0-x230.google.com (mail-pd0-x230.google.com [2607:f8b0:400e:c02::230]) by mx.google.com with ESMTPS id tg2si12557487pbc.23.2014.03.03.18.48.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Mar 2014 18:48:21 -0800 (PST) Received: by mail-pd0-f176.google.com with SMTP id r10so4499036pdi.7 for ; Mon, 03 Mar 2014 18:48:21 -0800 (PST) From: Pradeep Sawlani Subject: [PATCH RFC 0/1] ksm: check and skip page, if it is already scanned Date: Mon, 3 Mar 2014 18:48:08 -0800 Message-Id: <1393901289-5508-1-git-send-email-pradeep.sawlani@gmail.com> Sender: owner-linux-mm@kvack.org List-ID: To: Hugh Dickins , Izik Eidus , Andrea Arcangeli , Chris Wright Cc: LKML , MEMORY MANAGEMENT , Dave Hansen , Arjan van de Ven , Maddhula Suri , Matt Wilson , Anthony Liguori , Pradeep Sawlani From: Pradeep Sawlani Patch uses two bits to detect if page is scanned, one bit for odd cycle and other for even cycle. This adds one more bit in page flags and overloads existing bit (PG_owner_priv_1). Changes are based of 3.4.79 kernel, since I have used that for verification. Detail discussion can be found at https://lkml.org/lkml/2014/2/13/624 Suggestion(s) are welcome for alternative solution in order to avoid one more bit in page flags. Pradeep Sawlani (1): ksm: check and skip page, if it is already scanned include/linux/page-flags.h | 11 +++++++++++ mm/Kconfig | 10 ++++++++++ mm/ksm.c | 33 +++++++++++++++++++++++++++++++-- 3 files changed, 52 insertions(+), 2 deletions(-) -- 1.7.9.5 -- 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