Received: by 10.223.148.5 with SMTP id 5csp6182132wrq; Wed, 17 Jan 2018 10:24:51 -0800 (PST) X-Google-Smtp-Source: ACJfBotLkNIhkSBmmj/9zicH2SI6VTX1HwWOB4PucRtTQ2XIJrwnkuabkpCmpsJMb/lOnrPjWDB8 X-Received: by 10.99.99.199 with SMTP id x190mr29519474pgb.193.1516213491040; Wed, 17 Jan 2018 10:24:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516213490; cv=none; d=google.com; s=arc-20160816; b=YcpRs6TvXygh7Z1uxu2uZMVx5Zbq3U3OMhKYgDV8N+mpSyqTLZdvbJL8bHwjSqCxJ8 oItmvYMmjlCegOgD8PmKEsoH7QMRTDhGovKMOMM5U6VP7/WjSPlbgRxsVKZU/ge4186s ghjZbjkTkdnbeX3WcuQ+3bC2Dv4xqLjpiVHmAbWVJTLj4I/a7vdVdwDPM93WQnFcHO1v aCX6CrZmY8BnspykMuYBF5IcGAHFa+9jAA//syuPAvbvzAiywFEmgUVeE/PMLbstxBQj 7HX0OhPwThIeThITuwnF2ZsMZW65Y34mCVAk57VRZUUkGdAeiQ73/ribK9Ul2NrTvA5z Clfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=jFV4lSv/8WK9vo+ZSnjCGnLHL59y9L4aRv5+HfmP1XY=; b=DjzCD2dcRbvboM0BhIedadB4BEBTA3E1lHRUg5xdUG/0Pi56NNT1j7ifJl85UCD7ET 1833pYX8MsGSMoNBYb/+9XPYuuZ6RTtUc4w5Y9C7B92V2r/yfL1Ff91QMHUYSTiHQrUm c/Bn9EIpsOmphGgA/d+ByE33x4M/LkOs6BsSa4DJd9QH0I+x3rUqrQBUUwBoTSsTzgyH gmujFwgPy1OoZJrNldgcHxd5rtyu0qn1QNx+nm6JTtM2mOqzKsztW+pED5e0J863LYt0 B1oQBV2g5JoLId43hu8BGIzvdRX3HpD1Z8aidhe7lI/hKFdG4f57KJGipRCjKNgfCLdK FGKg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i72si1528853pfe.310.2018.01.17.10.24.36; Wed, 17 Jan 2018 10:24:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754514AbeAQSXH (ORCPT + 99 others); Wed, 17 Jan 2018 13:23:07 -0500 Received: from resqmta-ch2-02v.sys.comcast.net ([69.252.207.34]:44300 "EHLO resqmta-ch2-02v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754055AbeAQSXG (ORCPT ); Wed, 17 Jan 2018 13:23:06 -0500 Received: from resomta-ch2-11v.sys.comcast.net ([69.252.207.107]) by resqmta-ch2-02v.sys.comcast.net with ESMTP id bsKreIueQ4RCdbsMbezbzC; Wed, 17 Jan 2018 18:23:05 +0000 Received: from gentwo.org ([98.222.162.64]) by resomta-ch2-11v.sys.comcast.net with SMTP id bsMaeRjJ3HXdcbsMaeMN61; Wed, 17 Jan 2018 18:23:05 +0000 Received: by gentwo.org (Postfix, from userid 1001) id 6EC511160139; Wed, 17 Jan 2018 12:23:04 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id 6B9711160057; Wed, 17 Jan 2018 12:23:04 -0600 (CST) Date: Wed, 17 Jan 2018 12:23:04 -0600 (CST) From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Mel Gorman cc: Henry Willard , akpm@linux-foundation.org, kstewart@linuxfoundation.org, zi.yan@cs.rutgers.edu, pombredanne@nexb.com, aarcange@redhat.com, gregkh@linuxfoundation.org, aneesh.kumar@linux.vnet.ibm.com, kirill.shutemov@linux.intel.com, jglisse@redhat.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: numa: Do not trap faults on shared data section pages. In-Reply-To: <20180116212614.gudglzw7kwzd3get@suse.de> Message-ID: References: <1516130924-3545-1-git-send-email-henry.willard@oracle.com> <1516130924-3545-2-git-send-email-henry.willard@oracle.com> <20180116212614.gudglzw7kwzd3get@suse.de> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfL6BDpuTKQ6DVnk21D2PEpUiozCvwWKCf5qLxdPwSc7N6UHXxZ7HsLtIGuFJa4FeRVlLdciKzeOEJIBT+4bBg/wi7WBuugLCywCr9I62XAII8BMjoPQ8 65LCAlweo9xuXQzActL9a1QnqVWCfAKITSpr6clP8FUcYxADBLOw2pDqvnVACKFPyQs2ir/cSnTIFiRQjrFG9bo2tFLyUHUWVdlNAYWFZJb5Vvh81iFsG6+5 V92XLzAd7Jxqb5/x9FS+w8KDPAAiujdCxPVzbZNGQ7ofi7mpO3SIVE8JdxozKFsyApJMrFQ8dUldtblZvy0ecTtl7RFjyAa5P767LxaqaYlyjkflsI2juID0 oWxeAbo/kPt/hL2BV+Q86UFBdnBWq0bvk/LxzUgVYAdRvptW9l2PCE5UCJgB2m2QFaYa+8mlMrZQKswhy3usJxI6pnL8zNbkjQnSHY3SXZN0ah5J4P5L0rCG Zwh+5C7zYCSlWrru2JkB9Rr7yumWg4UWJM9VfCtLOydS83/MryX/33dcRvFsCR9dzGosVmp03ALruw5HTHFs3F+jLnulttn1WIlgeo0BahWrvtAuVP6NQlJH TrbnBfv7lDWU3LRIpmwZcj79 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 16 Jan 2018, Mel Gorman wrote: > My main source of discomfort is the fact that this is permanent as two > processes perfectly isolated but with a suitably shared COW mapping > will never migrate the data. A potential improvement to get the reported > bandwidth up in the test program would be to skip the rest of the VMA if > page_mapcount != 1 in a COW mapping as it would be reasonable to assume > the remaining pages in the VMA are also affected and the scan is wasteful. > There are counter-examples to this but I suspect that the full VMA being > shared is the common case. Whether you do that or not; Same concern here. Typically CAP_SYS_NICE will bypass the check that the page is only mapped to a single process and the check looks exactly like the ones for manual migration. Using CAP_SYS_NICE would be surprising here since autonuma is not triggered by the currently running process. Can we configure this somehow via sysfs?