From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Google-Smtp-Source: ACJfBotdsnVGs9QtYTccj+tbVOURB7kOQadOxAlW9zllrxug8UKszEYXHMIAUgyXmFgsb7pxbrIt ARC-Seal: i=1; a=rsa-sha256; t=1516213386; cv=none; d=google.com; s=arc-20160816; b=X/RJtZqugpIs4uf3iXhS9lw+tIU9VjjzoWwA1ofVS5Fw2TMQaQmZSqVxhHI7ZpGtuA vVwVg646Vp8Hv6ahMWxRs6QCpCX19fVosnTwUPMp5hVLctOMb57BTiQ6fQvNrLDgDtJm rLplQyqLgvDRfRWCLM1YWnxJ5vSlZhrdfg6dKI7xSf0jZ2L/MWqEL8Shodjx97ccncax RRUFDLMHBHWG4sTAENlv34sGkYZSnEAxGxYAmNwXAhJV2Y+l/zYoJYKNP1me6O8+zONq J5ohTbmgXEUQl4Wo2CxbNrlh8J/mLAvL6e1Ci/Up6jvh0Aq/4la+ANX1v6fAz7jx4ybS 6ncA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:references:message-id:in-reply-to:subject :cc:to:from:date:arc-authentication-results; bh=jFV4lSv/8WK9vo+ZSnjCGnLHL59y9L4aRv5+HfmP1XY=; b=W9IYtdafiacXkcSNQMAdLeTWDJ06wqQDgyjQ1LFIKvxOfHGLd0kdAW8LZlYN75gdnJ wUdphyegRxGMXANVw6XdEB4F51WyUvGclYRy+BjJnWhLc8dIWYcfDYy0Z2fEbUDC3mkl dS3D8Kq2ZIejudXynNpbTb4fV0vYDNH8xznMm835/wbxfyTFGvxBrRmAXeeFPynuWcFj 3DHm2OT0BrnMN+ncGKjPe0sFi9Z+fKhG0f2eTcfYbsZ8M+fjXH3ZdUonKiqVuKkmYka0 /QDDVLYYeWYDFfOhFpiYzGdk++o0CFPlzLy8Q3Jo6RjeOaUyhkKDmxI4LyhWsaAO1waZ xD2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of cl@linux.com designates 2001:558:fe21:29:69:252:207:42 as permitted sender) smtp.mailfrom=cl@linux.com Authentication-Results: mx.google.com; spf=pass (google.com: domain of cl@linux.com designates 2001:558:fe21:29:69:252:207:42 as permitted sender) smtp.mailfrom=cl@linux.com 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1589778616343155985?= X-GMAIL-MSGID: =?utf-8?q?1589864967160231056?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: 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?