Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4680471pxj; Tue, 25 May 2021 13:48:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMTKxbIdja/OulTnjELE5U65+vGt2RHItXeneig72IgCXN1mprRQmUlZFdjNzlCQrZLj9E X-Received: by 2002:a05:6638:dd2:: with SMTP id m18mr34580393jaj.40.1621975734206; Tue, 25 May 2021 13:48:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621975734; cv=none; d=google.com; s=arc-20160816; b=0BxFC8yh+PUqgSilTZP5xMOR7RTQCdSRt6pN5mjSD067QxX6liC9GoK5SAgE2dMghC NIIj3rjb34sXOFu75zR2gHcCZ0/e6QKZv5REGKbPqrx/nLcONrINbkMWn0EYThsV1MRr xExu0Mh0kCMGxonwISSGpbQYh5jJ1rr9b4biCJfvXw0WCy2jxWIlW6CGF02DfcnrIhNG 6WG1wJNX3zPRux5UA3YkT3LiRq8szgS30BBi65TQDd/XJ+m5Zi5/fKRyW+Iw/auwWb1m PvTl6iFW6nV1GWn4X0AtpiudqTkkMgILwOTGTn0yxx6Ik1g0UQ3TiG4BAjWTfcGwSGTp NVwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:subject :references:cc:to:dkim-signature; bh=CSuS1/6afomgRdSmx4v4U5egysYnZihhAd5HpYugzR4=; b=th1ky6pLTiMMFEcx4AVXT9I478pZ7pqWyM6cPwkQTkOJ6xz/OvKhU7aRlv0hBey8fF cT9IHjYd691TuNfVOV0us+BPgNTNT/+W9AIhIlgGAzZFd1KoEGl0Yr5hwrYZU4bjyqQp dNZczbrPtyBBhJBm3EDPEuzjL8pGABQwlF5JvcuAHdqM3mehdIKuTF3dy0VGpVotju/Y EdJ58P4gZBKzOu8Odap74D2HFXvNskGHpQPMPy4h1AEACqsArNNp/I/GOseS4zQEBh47 df8uFESUlgEdTWFHsNk9TxHftJopvw1VYrBpUxWJ/2CvdbfJPfjyQlsYto9lfeZUr76i t6uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=Jb4pgDYP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t15si21747639ilu.79.2021.05.25.13.48.41; Tue, 25 May 2021 13:48:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=Jb4pgDYP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230428AbhEYPVS (ORCPT + 99 others); Tue, 25 May 2021 11:21:18 -0400 Received: from smtp-fw-33001.amazon.com ([207.171.190.10]:13992 "EHLO smtp-fw-33001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230517AbhEYPU6 (ORCPT ); Tue, 25 May 2021 11:20:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1621955968; x=1653491968; h=to:cc:references:subject:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=CSuS1/6afomgRdSmx4v4U5egysYnZihhAd5HpYugzR4=; b=Jb4pgDYPfDT/AHs/rFeM0O8U4KhSebAbrlcVhkGfoe149qiS2ub04KJr JcgooiES6xkakjTYTRDn+99UuSzXT5kYUU7WvShPKHlSgxl1N5tTSkC46 al8J3t0KehJID8vpxDEwAx1SqgTGzJAMZ/qJ930tuxklOMX82GTTspoBZ A=; X-IronPort-AV: E=Sophos;i="5.82,328,1613433600"; d="scan'208";a="127569130" Received: from pdx4-co-svc-p1-lb2-vlan3.amazon.com (HELO email-inbound-relay-2a-22cc717f.us-west-2.amazon.com) ([10.25.36.214]) by smtp-border-fw-33001.sea14.amazon.com with ESMTP; 25 May 2021 15:19:21 +0000 Received: from EX13D31EUB004.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-2a-22cc717f.us-west-2.amazon.com (Postfix) with ESMTPS id D372CA190A; Tue, 25 May 2021 15:19:19 +0000 (UTC) Received: from EX13MTAUEA001.ant.amazon.com (10.43.61.82) by EX13D31EUB004.ant.amazon.com (10.43.166.164) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Tue, 25 May 2021 15:19:17 +0000 Received: from u8803c614af8f5a.ant.amazon.com (172.31.190.190) by mail-relay.amazon.com (10.43.61.243) with Microsoft SMTP Server (TLS) id 15.0.1497.18 via Frontend Transport; Tue, 25 May 2021 15:19:07 +0000 To: CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , References: <20210520075629.4332-6-sj38.park@gmail.com> Subject: Re: [PATCH v29 05/13] mm/damon: Implement primitives for the virtual memory address spaces From: Message-ID: <3da2bb79-4448-4857-a9d1-698a360c51a2@amazon.com> Date: Tue, 25 May 2021 17:19:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210520075629.4332-6-sj38.park@gmail.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi SeongJae, Some questions for this patch: Why do we split the regions in 3 areas (heap, stack, mmaped)? I understand we don't want to model the whole virtual address space, but why don't we just use whatever is modeled by the VMAs to define the regions boundaries? I am not quite understanding why we both set the page idle and young (in damon_ptep_mkold). For WSS computation on our end we have used pte_clear_young_notify. Why do we touch the page idle flag at all? What flags do the reclaim logic use to track access? Kind regards, Fernand