Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4682348ybl; Wed, 22 Jan 2020 02:45:54 -0800 (PST) X-Google-Smtp-Source: APXvYqyVYdrrH/VHPeHLb/W8SaY3637EetTpnnGbdvrAHcc/2S7/8sm6Qi6NxFjHzYfOd2FLG0Un X-Received: by 2002:aca:d78b:: with SMTP id o133mr6500183oig.163.1579689953908; Wed, 22 Jan 2020 02:45:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579689953; cv=none; d=google.com; s=arc-20160816; b=X10FkA7OY9EuvdgYSuSGBIoSq+vHUhZRA5QzReeOy0HrFRk6s6KvPKG0zoDG9UixOC aSDVgXRIR484DCPr4Qum5BcB0J9Xw9378jrkjcNrZRfUQN91rJokKjgelOWjbzljMgB6 PEDQcDo3BN/HHFVzmWcsZ3pcPQmf7r6gC3cwBUavBDDshS4mChA1DyCcPhw8uJX7qLVN yO/uDsRQj/Au3L+94G/LhACEMBGBB23olIp4Vg9Kr42+oSBQ6Ga+ZcNCCPDqpE8v/KB8 CF3e6gCCl1Stzs0vqDAK2L+LkKakJvXjzZL5d9ZhR13vUsfclv2u1bjN3BSJqRfEoeex Lkyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=YKd1QMlm00TztXoKQ6PyNFCO8FaCgt8+OJzIwwiLfiU=; b=v/5fiUHyPO4zW8W0eJiZnVAN15Tgl6d4pK42lUg6huYyA18LnGdaaKksHByv7569vh nGGA7eCFUu4E14yPJVw/hE+6fpAKjbmhgTCql21y+D+qv27oq/xH/qr2bhgsyKXYDuIF rRVeuA1+3foRZIJIQyfkbWRxDqwKoHlk6koO69zLncIvcL/5sbSR7wYmjAKlbPziy5wF 1/7rDM0ws+h6EYlE3PXyamiEhinjF2aY9QKJOBLO/tODfDWv8QwgrT71hgWlw5P/InEa ZYd/F5dHIamkCiJLqVWL6wpLNhQAEF2wpBY6LZ/qUPHn9PuHQnW5VB9sjS3Ae1s96dsY UWhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OxbO5SJR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k84si20780657oib.46.2020.01.22.02.45.40; Wed, 22 Jan 2020 02:45:53 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OxbO5SJR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729273AbgAVKoc (ORCPT + 99 others); Wed, 22 Jan 2020 05:44:32 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:58082 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729049AbgAVKoc (ORCPT ); Wed, 22 Jan 2020 05:44:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579689870; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YKd1QMlm00TztXoKQ6PyNFCO8FaCgt8+OJzIwwiLfiU=; b=OxbO5SJRCy0294oCIKw0yraQc6E40CefIzUsg8ryT0r4MchtT2lSsXp3vyAohwvQ34LeS+ tN3qSwETUzDD84Jjqdnln785/uPVqgik5LNiS0kwjeO0zGb1S12YVSm8K4VBmczvpDtH1g yol1KOLWwyYbj1XihKFC4VMr6dDNK00= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-194-COpRrD9qPEuGHwCq8FVpbg-1; Wed, 22 Jan 2020 05:44:28 -0500 X-MC-Unique: COpRrD9qPEuGHwCq8FVpbg-1 Received: by mail-wm1-f71.google.com with SMTP id z2so1186712wmf.5 for ; Wed, 22 Jan 2020 02:44:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=YKd1QMlm00TztXoKQ6PyNFCO8FaCgt8+OJzIwwiLfiU=; b=VddJVJPz1PpIB7BdqETN8l7uNRu4dtgk1bJEkH8u5rk0zvh1as7e9toNrgVJb5hTfH CVZbHPkHq15mW95kXLbFXgHfDRSJerqXX0NheUPMRzSRkl/NjEH/wrMoq87WugJnyFsB ssvVdwnK5XB0JW0Phtz66GS9iFsDRX2Gc1PhnWfkKqUroKEU1IbdVEtsMAUSFXcVYV9C lCmOWolyHuBPZrz7hCn4MoY9WCDWthd09PnKgyYMo3YIcwpciW0Xq6uAGzU8LuloIF26 v8y9Eb9At5Rrihsq2azsuKdytw/R2/1wN2SZzHUVTw/4q9zYcLItbunf4K6ymWoPgCol suig== X-Gm-Message-State: APjAAAUHiGlNXUrJvZDGdYVke35L/pQXB39ele+b8u7KMKVTtze9ZdhW peDcR/Dfuxop2ABTngiRNfTcafcit6jyclYi4GEuvruAdxeZbxSLWibydegxZSbImFs7Agry/px Co3+X3i1jppCHBF5YJwiB79ZD X-Received: by 2002:a1c:66d5:: with SMTP id a204mr2243084wmc.64.1579689867568; Wed, 22 Jan 2020 02:44:27 -0800 (PST) X-Received: by 2002:a1c:66d5:: with SMTP id a204mr2243066wmc.64.1579689867379; Wed, 22 Jan 2020 02:44:27 -0800 (PST) Received: from localhost (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id x10sm55168995wrv.60.2020.01.22.02.44.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jan 2020 02:44:25 -0800 (PST) Date: Wed, 22 Jan 2020 11:44:24 +0100 From: Oleksandr Natalenko To: Minchan Kim 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: <20200122104424.7gvrfivymjvdous4@butterfly.localdomain> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200121181113.GE140922@google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Best regards, Oleksandr Natalenko (post-factum) Senior Software Maintenance Engineer