Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4863546ybi; Tue, 28 May 2019 03:53:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwg/JQQT2lg9PUuQNHSLui4MdD67QTL3hIyu//FFCM50P+aCgGRu28zmVOG90N+FTUkN9FN X-Received: by 2002:a17:902:7581:: with SMTP id j1mr50375381pll.23.1559040784969; Tue, 28 May 2019 03:53:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559040784; cv=none; d=google.com; s=arc-20160816; b=oF5LJaqzPWce7enodR7IPa3um0xqai+r3KlYmzabdwgIK8qJymbRxqGt4dUqCtJq7C qkxNMfwPx68N1/ldWWD5TKU6A8S1OUqsgquGHXeyrVUiS//82bjLbdFHjLvyEKh8T8tm ddDF49eaveVDg/ZQZTe8lf6c0zezlFwJiNQsMsRUthUn07/w7O+g4FhG3NZcakMPbJeI QPZbEL4nweZZD//CIr+YS4EasMwgMc4g7wX8b+UkiI+gg3B9GUb5z8aDbsHxe10t1a3r 3kCq2jTwlgq/t3xHytk++/xR+i+T4X6A5ai0uX3SKxoDJR9+UQRRlIieswGrVuryhMpQ bQcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=QsqFaGaz1HGsf63u50aDNMgF3AaFfbAtnyMKn5jou+I=; b=ayjDz6fY3jjQqlP+wOyLQBIz4abcz6KIOesU3WgOMANKceNTkQYEbQS8FTx+zwG+BU YuIboAt8ixpHTsfI9xcJI2Nl60tWQuzT9Ntrd4sq0X8yKjDlihmeeRdNdYjYSQUpD9t5 AVfiryLFEtwHPTTm1Q4+HqCUK0uFNV5095CVW5La66KIvBATQ4x51mFDJ7xIFF2uA5nu DybEqlTkv5S7ZFlFpZSclvNrbP8zcQ6uKTxDqrIXRemXiS+w8dyh1q7WIIaCgpFf9HMA fESI/F0gPja6NY5hw9hMMBHULswFD6VfXf5BR9nhRB+MzJ2NC89szfx/eVHOGXpfkdll l+Mw== 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 o24si20434530pgh.375.2019.05.28.03.52.49; Tue, 28 May 2019 03:53:04 -0700 (PDT) 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 S1726560AbfE1Ku0 (ORCPT + 99 others); Tue, 28 May 2019 06:50:26 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:54988 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726282AbfE1Ku0 (ORCPT ); Tue, 28 May 2019 06:50:26 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 090F8341; Tue, 28 May 2019 03:50:26 -0700 (PDT) Received: from [10.162.40.141] (p8cg001049571a15.blr.arm.com [10.162.40.141]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AC2493F59C; Tue, 28 May 2019 03:50:21 -0700 (PDT) Subject: Re: [RFC 0/7] introduce memory hinting API for external process To: Michal Hocko Cc: Tim Murray , Minchan Kim , Andrew Morton , LKML , linux-mm , Johannes Weiner , Joel Fernandes , Suren Baghdasaryan , Daniel Colascione , Shakeel Butt , Sonny Rao , Brian Geffon References: <20190520035254.57579-1-minchan@kernel.org> <1754d0ef-6756-d88b-f728-17b1fe5d5b07@arm.com> <20190521103433.GL32329@dhcp22.suse.cz> From: Anshuman Khandual Message-ID: <719d3ebf-c6c2-2468-4f04-0ba54b74b054@arm.com> Date: Tue, 28 May 2019 16:20:33 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20190521103433.GL32329@dhcp22.suse.cz> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/21/2019 04:04 PM, Michal Hocko wrote: > On Tue 21-05-19 08:25:55, Anshuman Khandual wrote: >> On 05/20/2019 10:29 PM, Tim Murray wrote: > [...] >>> not seem to introduce a noticeable hot start penalty, not does it >>> cause an increase in performance problems later in the app's >>> lifecycle. I've measured with and without process_madvise, and the >>> differences are within our noise bounds. Second, because we're not >> >> That is assuming that post process_madvise() working set for the application is >> always smaller. There is another challenge. The external process should ideally >> have the knowledge of active areas of the working set for an application in >> question for it to invoke process_madvise() correctly to prevent such scenarios. > > But that doesn't really seem relevant for the API itself, right? The > higher level logic the monitor's business. Right. I was just wondering how the monitor would even decide what areas of the target application is active or inactive. The target application is still just an opaque entity for the monitor unless there is some sort of communication. But you are right, this not relevant to the API itself.