Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752227AbZGTPKS (ORCPT ); Mon, 20 Jul 2009 11:10:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752121AbZGTPKS (ORCPT ); Mon, 20 Jul 2009 11:10:18 -0400 Received: from mx2.redhat.com ([66.187.237.31]:53647 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751757AbZGTPKQ (ORCPT ); Mon, 20 Jul 2009 11:10:16 -0400 Message-ID: <4A6488A1.4050800@redhat.com> Date: Mon, 20 Jul 2009 11:09:21 -0400 From: Rik van Riel Organization: Red Hat, Inc User-Agent: Thunderbird 2.0.0.17 (X11/20080915) MIME-Version: 1.0 To: Izik Eidus CC: akpm@linux-foundation.org, hugh.dickins@tiscali.co.uk, aarcange@redhat.com, chrisw@redhat.com, avi@redhat.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, nickpiggin@yahoo.com.au, Michael Kerrisk , Richard Henderson , Ivan Kokshaysky , Ralf Baechle , Kyle McMartin , Helge Deller , Chris Zankel Subject: Re: [PATCH 03/10] ksm: define MADV_MERGEABLE and MADV_UNMERGEABLE References: <1247851850-4298-1-git-send-email-ieidus@redhat.com> <1247851850-4298-2-git-send-email-ieidus@redhat.com> <1247851850-4298-3-git-send-email-ieidus@redhat.com> <1247851850-4298-4-git-send-email-ieidus@redhat.com> In-Reply-To: <1247851850-4298-4-git-send-email-ieidus@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1155 Lines: 29 Izik Eidus wrote: > From: Hugh Dickins > > The out-of-tree KSM used ioctls on fds cloned from /dev/ksm to register > a memory area for merging: we prefer now to use an madvise(2) interface. > > This patch just defines MADV_MERGEABLE (to tell KSM it may merge pages > in this area found identical to pages in other mergeable areas) and > MADV_UNMERGEABLE (to undo that). > > Most architectures use asm-generic, but alpha, mips, parisc, xtensa > need their own definitions: included here for mmotm convenience, but > we'll probably want to split this and feed pieces to arch maintainers. > > Based upon earlier patches by Chris Wright and Izik Eidus. > > Signed-off-by: Hugh Dickins > Signed-off-by: Chris Wright > Signed-off-by: Izik Eidus Acked-by: Rik van Riel -- All rights reversed. -- 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/