Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932685AbbBIJNW (ORCPT ); Mon, 9 Feb 2015 04:13:22 -0500 Received: from mail-wi0-f170.google.com ([209.85.212.170]:59192 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932495AbbBIJNK (ORCPT ); Mon, 9 Feb 2015 04:13:10 -0500 Message-ID: <54D87A23.40703@gmail.com> Date: Mon, 09 Feb 2015 10:13:07 +0100 From: "Michael Kerrisk (man-pages)" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Minchan Kim CC: mtk.manpages@gmail.com, Vlastimil Babka , "Kirill A. Shutemov" , Dave Hansen , Mel Gorman , "linux-mm@kvack.org" , Andrew Morton , lkml , Linux API , linux-man , Hugh Dickins Subject: Re: MADV_DONTNEED semantics? Was: [RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints References: <54D08483.40209@suse.cz> <20150203105301.GC14259@node.dhcp.inet.fi> <54D0B43D.8000209@suse.cz> <54D0F56A.9050003@gmail.com> <54D22298.3040504@suse.cz> <54D2508A.9030804@suse.cz> <20150205010757.GA20996@blaptop> <54D4E098.8050004@gmail.com> <20150209064600.GA32300@blaptop> In-Reply-To: <20150209064600.GA32300@blaptop> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1535 Lines: 45 Hello Minchan On 02/09/2015 07:46 AM, Minchan Kim wrote: > Hello, Michael > > On Fri, Feb 06, 2015 at 04:41:12PM +0100, Michael Kerrisk (man-pages) wrote: >> On 02/05/2015 02:07 AM, Minchan Kim wrote: >>> Hello, >>> >>> On Wed, Feb 04, 2015 at 08:24:27PM +0100, Michael Kerrisk (man-pages) wrote: >>>> On 4 February 2015 at 18:02, Vlastimil Babka wrote: >>>>> On 02/04/2015 03:00 PM, Michael Kerrisk (man-pages) wrote: [...] >>> And we should make error section, too. >>> "locked" covers mlock(2) and you said you will add hugetlb. Then, >>> VM_PFNMAP? In that case, it fails. How can we say about VM_PFNMAP? >>> special mapping for some drivers? >> >> I'm open for offers on what to add. > > I suggests from quote "LWN" http://lwn.net/Articles/162860/ > "*special mapping* which is not made up of "normal" pages. > It is usually created by device drivers which map special memory areas > into user space" Thanks. I've added mention of VM_PFNMAP in the discussion of both MADV_DONTNEED and MADV_REMOVE, and noted that both of those operations will give an error when applied to VM_PFNMAP pages. Cheers, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ -- 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/