From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756151AbaCDCsW (ORCPT ); Mon, 3 Mar 2014 21:48:22 -0500 Received: from mail-pd0-f173.google.com ([209.85.192.173]:46399 "EHLO mail-pd0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755980AbaCDCsV (ORCPT ); Mon, 3 Mar 2014 21:48:21 -0500 From: Pradeep Sawlani 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 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> X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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