Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2615646rwl; Thu, 13 Apr 2023 08:40:36 -0700 (PDT) X-Google-Smtp-Source: AKy350Y7bL56SYgqZJLA2mAwViBnItl64Q7tIBOdZ4rDxglT4hbGcFwwi+s+ha+E3i2dWF4QOYLm X-Received: by 2002:a17:902:ecc1:b0:1a5:2ba5:95c1 with SMTP id a1-20020a170902ecc100b001a52ba595c1mr3547313plh.3.1681400435720; Thu, 13 Apr 2023 08:40:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681400435; cv=none; d=google.com; s=arc-20160816; b=uB8w9FAnDf/vT5uYlvwrGxigYgDIkU53BMBCWdH1zva/q0HfhiY1AWF2rcb82L7fVo tMAAjMEeQqBAXEoJvZhdjp9ZjC7T7jtuhc1PHa30xjUHViRbzrRFjNSc9QqLEFJejGEm pm0hp2faVUuvOwy9Z1+1MB1ASYBwXQugmQ56TdR7lGhlNWCLp7C9rpj3KNON0cEdZLsS kvEnv11jNH4i+7lbrKc9xVWdLxENj2VFI5HGANLs9t4g5JJRluJrJDfayPHcwRXnfP+E 3V3GXaaOY2FcJCAIT1wwZP72Vkx4R01pC1vHPraoh8Yp60ZEvcgmpqYBrakVY4lJqWJK K3gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dnRAYqvrD1PmMuBt3nn+tHPRfmulmbMbex6mnUU2ySE=; b=qhRF2wa2m6e0SzO52nQ45Z8NuVVAhUHmqsSb20hjQXfOG4O6PbRECoNF4x7yuDoZYl lAQC5rNUL1BBsWc50nKjylIr2wAMWvzwFOoT45boKyzj2QWSzCbGztpBnvSmYrqQA7ls nRHNeLNIs3oWWJM+BkXc2rbvDA7OTDfzRNvDhwOK8gNvAGIZbXlHORujD5sjlfoHit7v VNaYF1qK4LhV4NvjNskTootFHG/hutu27DFOElaiCpQnSafTpPOHj3VTAmmai0+QpszF lmUVaLrFfSIDsMvChfcmjmRp8hOYBaTE7zWffwZVibJQNii8wlIYLkG0dNLQG61arcIm YqHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Te5BVWW3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j15-20020a170903024f00b001a64fa4eb27si2589549plh.230.2023.04.13.08.40.21; Thu, 13 Apr 2023 08:40:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Te5BVWW3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230397AbjDMPhU (ORCPT + 99 others); Thu, 13 Apr 2023 11:37:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbjDMPhT (ORCPT ); Thu, 13 Apr 2023 11:37:19 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88D382D43 for ; Thu, 13 Apr 2023 08:36:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681400201; 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=dnRAYqvrD1PmMuBt3nn+tHPRfmulmbMbex6mnUU2ySE=; b=Te5BVWW3OWeffKyYCyWOSRr6gAUFKxWTi6SHjnHrewDYunHSuRURVx7qmtLNM7QaRgUt1O G4rLYK1N62Db/z6zMmBNI5Q1qJm/HPFoIk/U6oqOy5JFsM8W6up/rKQ8rV7w8MHYgyjPdM BgCda4tkCrc/9O5SGRhqAeYuEkRghW8= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-669-87a08EHWMSarKiiAMlsFrw-1; Thu, 13 Apr 2023 11:36:40 -0400 X-MC-Unique: 87a08EHWMSarKiiAMlsFrw-1 Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-3e948dfe9c9so2693461cf.0 for ; Thu, 13 Apr 2023 08:36:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681400200; x=1683992200; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=dnRAYqvrD1PmMuBt3nn+tHPRfmulmbMbex6mnUU2ySE=; b=MCPDL2TUFyByDz8vc26pFdJgjEUCbOB8av4xWVmdE+TUfbERswHdLlhGPbsHoeTEcs poZdYHfhScTNNvqiHg/xoIxzoUEnLAGbzZMsj3iH+3wMgTuM7cUYqWVXeusj7cER703N CwkuldCwCFlRcGM5ulFXb9pWJjjilaUJsdTBhphKfFKVP0CvzPdFfoJjM9SIGAyHgAas yDSz2coGZsTHH4g/+U0Qz5+xd1iUtX0V6i4x21qr/Bhe7RpFknr52Iscpbf/TpW2NWNp CHJWfD/zA0KQhc3WC1NoIAaLl3tlZpA23aAMzpUr+YrUkVNyRn/SQwPn1aERhnfDioO+ DFxQ== X-Gm-Message-State: AAQBX9daK1J+0wIyWOUA87d0LmdSvFjWSW5QRYpmwfM360/ipOVX8/ck 8r5R0TR3NngXI985uAY5M4sLv+Jcp5Y1BPJ9KKeBZFYsyVaOQxJVlD6e+XsUuXQoRi7S8Tnn/vr fDCP35L5y+jc4XqgB2d3E//zF X-Received: by 2002:ac8:5908:0:b0:3e3:1d31:e37 with SMTP id 8-20020ac85908000000b003e31d310e37mr3730138qty.1.1681400200141; Thu, 13 Apr 2023 08:36:40 -0700 (PDT) X-Received: by 2002:ac8:5908:0:b0:3e3:1d31:e37 with SMTP id 8-20020ac85908000000b003e31d310e37mr3730104qty.1.1681400199852; Thu, 13 Apr 2023 08:36:39 -0700 (PDT) Received: from x1n (bras-base-aurron9127w-grc-40-70-52-229-124.dsl.bell.ca. [70.52.229.124]) by smtp.gmail.com with ESMTPSA id d23-20020ac847d7000000b003e4ee0f5234sm555068qtr.87.2023.04.13.08.36.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Apr 2023 08:36:39 -0700 (PDT) Date: Thu, 13 Apr 2023 11:36:37 -0400 From: Peter Xu To: David Hildenbrand Cc: Lokesh Gidra , Axel Rasmussen , Andrew Morton , "open list:MEMORY MANAGEMENT" , linux-kernel , Andrea Arcangeli , "Kirill A . Shutemov" , "Kirill A. Shutemov" , Brian Geffon , Suren Baghdasaryan , Kalesh Singh , Nicolas Geoffray , Jared Duke , android-mm , Blake Caldwell , Mike Rapoport Subject: Re: RFC for new feature to move pages from one vma to another without split Message-ID: References: <27ac2f51-e2bf-7645-7a76-0684248a5902@redhat.com> <3059388f-1604-c326-c66f-c2e0f9bb6cbf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <3059388f-1604-c326-c66f-c2e0f9bb6cbf@redhat.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 13, 2023 at 10:10:44AM +0200, David Hildenbrand wrote: > So instead, we consider the whole address space as a virtual, anon file, > starting at offset 0. The pgoff of a VMA is then simply the offset in that > virtual file (easily computed from the start of the VMA), and VMA merging is > just the same as for an ordinary file. Interesting point, thanks! -- Peter Xu