From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, FSL_HELO_FAKE,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 282E1C33CB6 for ; Thu, 23 Jan 2020 01:43:22 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id DDDC124673 for ; Thu, 23 Jan 2020 01:43:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BhHdW1DP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DDDC124673 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 7027D6B0006; Wed, 22 Jan 2020 20:43:21 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6B26D6B0007; Wed, 22 Jan 2020 20:43:21 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5C8C06B0008; Wed, 22 Jan 2020 20:43:21 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0186.hostedemail.com [216.40.44.186]) by kanga.kvack.org (Postfix) with ESMTP id 46CAC6B0006 for ; Wed, 22 Jan 2020 20:43:21 -0500 (EST) Received: from smtpin03.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with SMTP id EA68C8248D52 for ; Thu, 23 Jan 2020 01:43:20 +0000 (UTC) X-FDA: 76407201360.03.voice72_747b5412bd745 X-HE-Tag: voice72_747b5412bd745 X-Filterd-Recvd-Size: 4730 Received: from mail-pj1-f66.google.com (mail-pj1-f66.google.com [209.85.216.66]) by imf41.hostedemail.com (Postfix) with ESMTP for ; Thu, 23 Jan 2020 01:43:20 +0000 (UTC) Received: by mail-pj1-f66.google.com with SMTP id a6so424485pjh.2 for ; Wed, 22 Jan 2020 17:43:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=nA4RMqX5haJ1ua8Yhgc4HIMDyOGoyPdaKIKHYrYlVmk=; b=BhHdW1DPSWyzW2/+yWG5oEft9hG4f7HTQrTpV1jtz96GioQx6Jnb4tHm5qGNgoDSVH uYpR1N7Tc+PiZNplBbA1oCeZ0OiTJK0J++qRoXnOg3SricR9U9+ZE73Cd3IIYhGdpWF6 8Bl7Z0CXf2tb0hOow02SnKKKEOloD270mzLEUYrs6LLI1PELah9c9bWMUSDtOMUVF97R NsUjuCSfOjnthdeM3+o2NzmzpRSBq+8qaxwXf/HhrFmrE89nm+btgUWZWPRfjWX5M2ZF /9O3yUQ/8jVHBXLs9vG+yYqki6/hf1T1Q3ilAel8jdza6GzUuCdtx7fWp/To/d+2veBK uKOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=nA4RMqX5haJ1ua8Yhgc4HIMDyOGoyPdaKIKHYrYlVmk=; b=F/3kEQ8zmfZcLAW/bVnyAD/77JXXDdgVngTXhI+9DFcmLJawgKC7MKcRKqhI+xAlUF fKzyA197Cfnyc5Rv6kJe0mRdK+wOdRJG6Dhvtgcnmi8ts1HIdtjUiYtLIGOI+1k1ZUSt egQRz43fTRI0toQj2pfBrHfkm4z16vlCnoXdzrk7I4zjNtL1MewolvllUh+fqNllXktq DArmGVSh7JMTimICjutXWleHZ9Q6LBMNijUn+W0hVgQvNQZKEoPThs0eLfqjNofpF1um oK8Xo3v4VyHGFArlt+5duI8Mf1c4yLhywD/hslQ/5EAYE3HPgI0+xusUic26H/IGhvKM 1lLw== X-Gm-Message-State: APjAAAWhNaEDGT/UeAc9QkxrI5ayV8ISoBmmkBaDzxiGOk0X9JB4U3Qp lcD1FQAcYeQhKhWVnGzPTOk= X-Google-Smtp-Source: APXvYqzq1S4H4X9XLJt3DcWAS97wjkB2xs3kqJ7LItoh0aaUXnndPh+1V3NJYWlsEx82aRhUkp6bBw== X-Received: by 2002:a17:90a:300b:: with SMTP id g11mr1583571pjb.123.1579743799340; Wed, 22 Jan 2020 17:43:19 -0800 (PST) Received: from google.com ([2620:15c:211:1:3e01:2939:5992:52da]) by smtp.gmail.com with ESMTPSA id j17sm199787pfa.28.2020.01.22.17.43.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jan 2020 17:43:18 -0800 (PST) Date: Wed, 22 Jan 2020 17:43:16 -0800 From: Minchan Kim To: Oleksandr Natalenko Cc: "Kirill A. Shutemov" , Michal Hocko , Andrew Morton , LKML , linux-mm , linux-api@vger.kernel.org, Suren Baghdasaryan , Tim Murray , Daniel Colascione , Sandeep Patil , Sonny Rao , Brian Geffon , Johannes Weiner , Shakeel Butt , John Dias , ktkhai@virtuozzo.com, christian.brauner@ubuntu.com, sjpark@amazon.de Subject: Re: [PATCH v2 2/5] mm: introduce external memory hinting API Message-ID: <20200123014316.GB249784@google.com> References: <20200116235953.163318-1-minchan@kernel.org> <20200116235953.163318-3-minchan@kernel.org> <20200117115225.GV19428@dhcp22.suse.cz> <20200117155837.bowyjpndfiym6cgs@box> <20200117173239.GB140922@google.com> <20200117212653.7uftw3lk35oykkmb@box> <20200121181113.GE140922@google.com> <20200122104424.7gvrfivymjvdous4@butterfly.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200122104424.7gvrfivymjvdous4@butterfly.localdomain> User-Agent: Mutt/1.10.1 (2018-07-13) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, Jan 22, 2020 at 11:44:24AM +0100, Oleksandr Natalenko wrote: > Hello. > > On Tue, Jan 21, 2020 at 10:11:13AM -0800, Minchan Kim wrote: > > > > I also think people don't want to give an KSM hint to non-mergeable area. > > > > > > And how the manager knows which data is mergable? > > > > Oleksandr, could you say your thought why you need address range based > > API? > > It seems I've overlooked an important piece of this submission: one > cannot apply the hint to all the anonymous mapping regardless of address > range. For KSM I'd rather either have a possibility to hint all the > anonymous mappings, or, as it was suggested previously, be able to iterate > over existing mappings using some (fd-based?) API. Thing is how you could identify a certan range is better for KSM than others from external process?