Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3296416pxv; Mon, 26 Jul 2021 00:16:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0i0yyiF60crWY1EFazP9jxEcMxDjwQEkyqqU7g4LDUdjai2Jw+7V3M+mieJF4kWftp1MV X-Received: by 2002:a5e:c803:: with SMTP id y3mr13708068iol.107.1627283760365; Mon, 26 Jul 2021 00:16:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627283760; cv=none; d=google.com; s=arc-20160816; b=i28BrP7t9TNEwxkQl3pgfTeKi5uJb2lfM0p7h3gqfcRbT7U3Fd+4Bq3FhEMxYbt7iE f2x9aVRQgxocFnDjTLNpwSxcrfHOKIFN8Fwz037Ap/65D6fi8Jf/p7Az7iFTsGGUFO1K lxUrdYgM0CajI509X131+u94hoMQi2I4VLbXq+jgjGmMBxOF6omtNQau6R/uF4mIjurt pmdR8Dkkwq3AoS4D7xR3bbjIhFGliF5hWUfRjPITLMJhIbWcrKIK1wSZY7ifDxN+Kqz7 QiBotcdQJ7LBy+65XOcufO0NlKlfSInA2y3/YpOc7zj5zdz6Fu0alggBWBEo+AzMOiVL uDHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:to:subject:dkim-signature; bh=um4df6F+Tcs1NedbhaEs9ICFL4JEkb2ohkfDmaRpXVs=; b=kvI0QWzag97LKYlA4l5jWAb83WW7N+Crt2T88aT1PCUuDZvUqimxk810fSuU9YVw94 4KySRO75N+WtPGc7lcGii/8bgL5gl88pQNQhaf4xnVyyd/WVBW7qW4AfmKBV/5APynyv 92xwOJc+KJeqsXBfKgjgQzePfH2Kwy4zPBRdMnWZTpZ5ewRgOwlwbkG7dXRKUQOyfmex wS4svWdGic15IwXBcS+hG15edyu6BaBF1PhnZmW/xgFMYYXuuPFF+U88HYaHmTQwCLvU 2byQpbJqC4Sj7PJUYT0zkpuYPzCwt77KV3xYBLjwQnZU/kuYZv6r8SuMRTRdlIIfnGFw lUuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UVNLO4qZ; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y8si27000521iov.46.2021.07.26.00.15.49; Mon, 26 Jul 2021 00:16:00 -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=@redhat.com header.s=mimecast20190719 header.b=UVNLO4qZ; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232254AbhGZGeD (ORCPT + 99 others); Mon, 26 Jul 2021 02:34:03 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:52655 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232182AbhGZGeB (ORCPT ); Mon, 26 Jul 2021 02:34:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1627283670; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=um4df6F+Tcs1NedbhaEs9ICFL4JEkb2ohkfDmaRpXVs=; b=UVNLO4qZoV+KdEa+HALsYM9tc/LQlIYyOtHj+0NxPzuRUvX9RD7LArv4mqWT2EF5YaKPp4 ZwWvcxpP7AGJWLmDy3zS/KQkmgRqcJEyTC/Z1+Ew0CsqSRAouGGrAVHWVI/5KgZnBTpxmv hdDDYfuhUskmB/7EXKXcIafs8MnfK8g= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-135-GRfmmmzjO6ie0eckAlsISg-1; Mon, 26 Jul 2021 03:14:28 -0400 X-MC-Unique: GRfmmmzjO6ie0eckAlsISg-1 Received: by mail-wr1-f72.google.com with SMTP id o11-20020a5d474b0000b02901533f8ed22cso2870940wrs.22 for ; Mon, 26 Jul 2021 00:14:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=um4df6F+Tcs1NedbhaEs9ICFL4JEkb2ohkfDmaRpXVs=; b=uYJNPply7fDF3jYoA9N7X6aJUmYpr0awOfGmz3pk2A3u8NHXryu/owIlck4+w+2ZMn jfjB/rmpjkfy2JKAXcTO/aKUeeX2l1yYPmhb+0C0zV0CFv3LFvALKJa6UwDvFPb6aNC5 kYWaucAQkapPGqF8DT53EWS24UKVv02RX5zfiY/VR5UYg+DqP1xfrIdhtC1ndhcvqPHS g+WHvyiJQaFZkNvG+1lKPOOMIi4KuW6DwHcw7AWFS7iHfudIHOcwQMOjPGYL9Kufx8+O hWH+/muuqvixn7QrI7FsHXSMfrq6k/efs5LusWKb+6IYodovghUOU0J6fpjWpLkYPrfD XBQg== X-Gm-Message-State: AOAM530ypm7fEYS6KGAuPC8eq+JSK1YixH1jKpnqkH2WRidA6R3wEaUJ tGk/PUuTq1w2qPlPZJqKTBpm+mJkPIfPSSp7XPBVTDYQEPh29XY6DGDBPv7LzfCSHpvPHOCoKet EvpuxdhTmA9lvnyX98OiEInT0 X-Received: by 2002:a05:600c:a08:: with SMTP id z8mr11306682wmp.52.1627283667217; Mon, 26 Jul 2021 00:14:27 -0700 (PDT) X-Received: by 2002:a05:600c:a08:: with SMTP id z8mr11306664wmp.52.1627283667006; Mon, 26 Jul 2021 00:14:27 -0700 (PDT) Received: from [192.168.3.132] (p4ff23b33.dip0.t-ipconnect.de. [79.242.59.51]) by smtp.gmail.com with ESMTPSA id d203sm7830431wmd.38.2021.07.26.00.14.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Jul 2021 00:14:26 -0700 (PDT) Subject: Re: mmotm 2021-07-23-15-03 uploaded (mm/memory_hotplug.c) To: Randy Dunlap , akpm@linux-foundation.org, broonie@kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-next@vger.kernel.org, mhocko@suse.cz, mm-commits@vger.kernel.org, sfr@canb.auug.org.au References: <20210723220400.w5iKInKaC%akpm@linux-foundation.org> <5966f6a2-bdba-3a54-c6cb-d21aaeb8f534@infradead.org> From: David Hildenbrand Organization: Red Hat Message-ID: <5394da5e-29f0-ff7d-e614-e2805400a8bb@redhat.com> Date: Mon, 26 Jul 2021 09:14:25 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <5966f6a2-bdba-3a54-c6cb-d21aaeb8f534@infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24.07.21 20:49, Randy Dunlap wrote: > On 7/23/21 3:04 PM, akpm@linux-foundation.org wrote: >> The mm-of-the-moment snapshot 2021-07-23-15-03 has been uploaded to >> >> https://www.ozlabs.org/~akpm/mmotm/ >> >> mmotm-readme.txt says >> >> README for mm-of-the-moment: >> >> https://www.ozlabs.org/~akpm/mmotm/ >> >> This is a snapshot of my -mm patch queue. Uploaded at random hopefully >> more than once a week. >> >> You will need quilt to apply these patches to the latest Linus release (5.x >> or 5.x-rcY). The series file is in broken-out.tar.gz and is duplicated in >> https://ozlabs.org/~akpm/mmotm/series >> >> The file broken-out.tar.gz contains two datestamp files: .DATE and >> .DATE-yyyy-mm-dd-hh-mm-ss. Both contain the string yyyy-mm-dd-hh-mm-ss, >> followed by the base kernel version against which this patch series is to >> be applied. >> > > on x86_64: > # CONFIG_CMA is not set > > mm-memory_hotplug-memory-group-aware-auto-movable-online-policy.patch > > > > ../mm/memory_hotplug.c: In function ‘auto_movable_stats_account_zone’: > ../mm/memory_hotplug.c:748:33: error: ‘struct zone’ has no member named ‘cma_pages’; did you mean ‘managed_pages’? > stats->movable_pages += zone->cma_pages; > ^~~~~~~~~ > managed_pages > ../mm/memory_hotplug.c:750:38: error: ‘struct zone’ has no member named ‘cma_pages’; did you mean ‘managed_pages’? > stats->kernel_early_pages -= zone->cma_pages; > ^~~~~~~~~ > managed_pages > > Thanks Randy, the following on top should make it fly: diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index bfdaa28eb86f..fa1a0afd32ba 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -741,13 +741,15 @@ static void auto_movable_stats_account_zone(struct auto_movable_stats *stats, if (zone_idx(zone) == ZONE_MOVABLE) { stats->movable_pages += zone->present_pages; } else { + stats->kernel_early_pages += zone->present_early_pages; +#ifdef CONFIG_CMA /* * CMA pages (never on hotplugged memory) behave like * ZONE_MOVABLE. */ stats->movable_pages += zone->cma_pages; - stats->kernel_early_pages += zone->present_early_pages; stats->kernel_early_pages -= zone->cma_pages; +#endif /* CONFIG_CMA */ } } struct auto_movable_group_stats { -- Thanks, David / dhildenb