Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753324AbcKRW1W (ORCPT ); Fri, 18 Nov 2016 17:27:22 -0500 Received: from mail-pg0-f44.google.com ([74.125.83.44]:36155 "EHLO mail-pg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751971AbcKRW1U (ORCPT ); Fri, 18 Nov 2016 17:27:20 -0500 Date: Fri, 18 Nov 2016 14:27:12 -0800 (PST) From: Hugh Dickins X-X-Sender: hugh@eggly.anvils To: Boris Ostrovsky cc: Hugh Dickins , Mel Gorman , david.vrabel@citrix.com, jgross@suse.com, xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, olaf@aepfle.de Subject: Re: [PATCH v3 (re-send)] xen/gntdev: Use mempolicy instead of VM_IO flag to avoid NUMA balancing In-Reply-To: <2bf041f3-8918-3c6f-8afb-c9edcc03dcd9@oracle.com> Message-ID: References: <1479413404-27332-1-git-send-email-boris.ostrovsky@oracle.com> <2bf041f3-8918-3c6f-8afb-c9edcc03dcd9@oracle.com> User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 833 Lines: 18 On Fri, 18 Nov 2016, Boris Ostrovsky wrote: > On 11/18/2016 04:51 PM, Hugh Dickins wrote: > > Hmm, sorry, but this seems overcomplicated to me: ingenious, but an > > unusual use of the ->get_policy method, which is a little worrying, > > since it has only been used for shmem (+ shm and kernfs) until now. > > > > Maybe I'm wrong, but wouldn't substituting VM_MIXEDMAP for VM_IO > > solve the problem more simply? > > It would indeed. I didn't want to use it because it has specific meaning > ("Can contain "struct page" and pure PFN pages") and that didn't seem > like the right flag to describe this vma. It is okay if it contains 0 pure PFN pages; and no worse than VM_IO was. A comment on why VM_MIXEDMAP is being used there would certainly be good. But I do find its use preferable to enlisting an unusual ->get_policy. Hugh