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=-8.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 78649C3F2D8 for ; Wed, 4 Mar 2020 16:08:20 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3A12921739 for ; Wed, 4 Mar 2020 16:08:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="KPBxnELE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3A12921739 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=amazon.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id BB7966B0003; Wed, 4 Mar 2020 11:08:19 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B67646B0005; Wed, 4 Mar 2020 11:08:19 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A7D6A6B0006; Wed, 4 Mar 2020 11:08:19 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0121.hostedemail.com [216.40.44.121]) by kanga.kvack.org (Postfix) with ESMTP id 8D67B6B0003 for ; Wed, 4 Mar 2020 11:08:19 -0500 (EST) Received: from smtpin10.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 2CBC6180AD801 for ; Wed, 4 Mar 2020 16:08:19 +0000 (UTC) X-FDA: 76558161918.10.tramp96_e5cabb43d526 X-HE-Tag: tramp96_e5cabb43d526 X-Filterd-Recvd-Size: 4816 Received: from smtp-fw-4101.amazon.com (smtp-fw-4101.amazon.com [72.21.198.25]) by imf43.hostedemail.com (Postfix) with ESMTP for ; Wed, 4 Mar 2020 16:08:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1583338099; x=1614874099; h=from:to:cc:subject:date:message-id:in-reply-to: mime-version; bh=jc/5pmQb0YfPhtIbInDedgkyxcFInN57uJozqb4Q7Vc=; b=KPBxnELEWwQRxi86ZgyWeL0TS14/E+WRA4aneA2vF2YyCXJ0GJgkbrBu GRN8cST+iYuLkh9o2xxIaLQPG5v46TG6d8juXFgC4qU9jbIESzi2gdQ/k YaO0I08Wq1I5qtq8jJF0E+azl13Dt+7B0RmW0H9GI5Mbyv1WoEmY1Rv/X s=; IronPort-SDR: 2pyxj85lzSXsWPOES5aKY6zToYQjHYcLHFmoLoTVMVJEbwnzkx7WZo1br2DPd94KSzx0s4f9LR peenIz+NnxNg== X-IronPort-AV: E=Sophos;i="5.70,514,1574121600"; d="scan'208";a="19761042" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1e-97fdccfd.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-4101.iad4.amazon.com with ESMTP; 04 Mar 2020 16:08:04 +0000 Received: from EX13MTAUEA002.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan3.iad.amazon.com [10.40.159.166]) by email-inbound-relay-1e-97fdccfd.us-east-1.amazon.com (Postfix) with ESMTPS id AA8A3A20D6; Wed, 4 Mar 2020 16:07:54 +0000 (UTC) Received: from EX13D31EUA001.ant.amazon.com (10.43.165.15) by EX13MTAUEA002.ant.amazon.com (10.43.61.77) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Wed, 4 Mar 2020 16:07:54 +0000 Received: from u886c93fd17d25d.ant.amazon.com (10.43.162.115) by EX13D31EUA001.ant.amazon.com (10.43.165.15) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 4 Mar 2020 16:07:42 +0000 From: SeongJae Park To: Rik van Riel CC: SeongJae Park , , "SeongJae Park" , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: Re: [RFC v4 2/7] mm/damon: Account age of target regions Date: Wed, 4 Mar 2020 17:07:28 +0100 Message-ID: <20200304160728.19130-1-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <221dab45ed46405b707825455086855665ead7cc.camel@surriel.com> (raw) MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.162.115] X-ClientProxiedBy: EX13D19UWA001.ant.amazon.com (10.43.160.169) To EX13D31EUA001.ant.amazon.com (10.43.165.15) 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: Hello Rick, Thank you for question :) On Wed, 04 Mar 2020 10:21:29 -0500 Rik van Riel wrote: > [-- Attachment #1: Type: text/plain, Size: 558 bytes --] > > On Tue, 2020-03-03 at 13:14 +0100, SeongJae Park wrote: > > From: SeongJae Park > > > --- a/mm/damon.c > > +++ b/mm/damon.c > > @@ -87,6 +87,10 @@ static struct damon_region > > *damon_new_region(struct damon_ctx *ctx, > > ret->sampling_addr = damon_rand(ctx, vm_start, vm_end); > > INIT_LIST_HEAD(&ret->list); > > > > + ret->age = 0; > > + ret->last_vm_start = vm_start; > > + ret->last_vm_end = vm_end; > > Wait, what tree is this supposed to apply against? > > I see no mm/damon.c file in current Linus upstream. This patchset is supposed to apply against v5.5 plus DAMON patchset[1] plus a patch from Minchan. You can get the tree this patchset is applied via: $ git clone git://github.com/sjp38/linux -b damos/rfc/v4 Or, the web is also available: https://github.com/sjp38/linux/releases/tag/damos/rfc/v4 I am posting this as a seperate RFC patchset because 1) this patchset is based on the tree other than Linus or other maintainers' upstream trees, 2) I want to keep the size of original patchset small for convenience of reviewers, 3) this patchset is relatively recently made and thus might unstable compared to the DAMON patchset[1], and 4) I want to share my plan and get early feedbacks as many as possible. Sorry if this made you confused. Also, if you have some opinions regarding this seperated postings, please let me know. [1] https://lore.kernel.org/linux-mm/20200224123047.32506-1-sjpark@amazon.com Thanks, SeongJae Park > > -- > All Rights Reversed.