Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp787351ybm; Tue, 21 May 2019 03:36:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9qSFLuW3AF+ojCryJGljtkvFCNshfpRFnPoor9CpopKtevuXj1WmSKOOn4xP75sDKmb4t X-Received: by 2002:a17:902:9691:: with SMTP id n17mr19492298plp.283.1558435015972; Tue, 21 May 2019 03:36:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558435015; cv=none; d=google.com; s=arc-20160816; b=WJzwMOmJQm6fDx+ceY4SSerVMPoy6atbnxz6YtQJBHSHd37yp3Y2AapCtqEtAdsb9+ OVk4gvflAvFfCdpqQW2qyO+Uxe+QHV2skVWupu/cU33AI+uTwuwXdHVtQQDHDXzk04le pJx06CTgio3BwMgHXe/ro1f4g6SEV1IokXgv+x9DjDwmpyQ7Jj63bDaBmb9YzxbitKuK XSIAFgdxaypuUitWQKii1YLLAMRhjjzeqTnvcIY/jQ1samUAjo70dZZL/+qJgewyAVAf E0SkdidVaaAtJj1hN+BEl+rygwZrv5UnQxC2Vmf5yIwH790/Aa6MAF2brEgOFnS8iT8t 09rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=YSgFLgCYEjIvYc9W0kfB21LvPOuwu8HHpfJojGnh07A=; b=dzNWBhkQzfOtltahFDzM1IlKR29MOjPEAPn2H7bAXqrmS8GJKlr3ssrI2c5+ihGZlk eXuBoRr+t0dYfB2cMDeZyaPowM21TR8A4MS1Hg6oSqvhBVrILagUV9Atkm1rzEKU1+oR KJ5meYnI6BBf+3J4Y/FiKoNZYGvkWIdIAZSunAG3D+xyE1Kk87qtqN+1vhKhrt79LR83 77zNIvIIsn098iRkkreLjiT8BfMPRFH/yuT6JVxn1nM6wy9E02WNkmCtcyeotUVUSJKY 0PQe6RHCE6ZyZ/5t8EZZ2KMFX5CEmlFT+G5Te7HdPpPClaLAAkKlo3VMW1V/xEJCpASt R49Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q4si19834140pll.127.2019.05.21.03.36.40; Tue, 21 May 2019 03:36:55 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727605AbfEUKeg (ORCPT + 99 others); Tue, 21 May 2019 06:34:36 -0400 Received: from mx2.suse.de ([195.135.220.15]:36586 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726138AbfEUKeg (ORCPT ); Tue, 21 May 2019 06:34:36 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 7D287ABF4; Tue, 21 May 2019 10:34:34 +0000 (UTC) Date: Tue, 21 May 2019 12:34:33 +0200 From: Michal Hocko To: Anshuman Khandual Cc: Tim Murray , Minchan Kim , Andrew Morton , LKML , linux-mm , Johannes Weiner , Joel Fernandes , Suren Baghdasaryan , Daniel Colascione , Shakeel Butt , Sonny Rao , Brian Geffon Subject: Re: [RFC 0/7] introduce memory hinting API for external process Message-ID: <20190521103433.GL32329@dhcp22.suse.cz> References: <20190520035254.57579-1-minchan@kernel.org> <1754d0ef-6756-d88b-f728-17b1fe5d5b07@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1754d0ef-6756-d88b-f728-17b1fe5d5b07@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Michal Hocko SUSE Labs