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.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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 4223AC33CB6 for ; Wed, 22 Jan 2020 10:44:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 14D8524688 for ; Wed, 22 Jan 2020 10:44:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="OxbO5SJR" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729308AbgAVKoc (ORCPT ); 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-Google-Smtp-Source: APXvYqzf4N7NDysvCU8k0EDfB9CCu9AGjs9RwppVG9KvmCJKfdHbDr0hbTUL7DfxuEinfHmAaQFORQ== 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