Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp603516rwi; Wed, 26 Oct 2022 05:09:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM72O4ZXuOUCC3qadJySxgOhppH3/4bZbtpB7HtQ3/ru52fI2DHb4q3pguhk76pnIjZxqcvA X-Received: by 2002:a17:907:94ce:b0:79c:d3c5:e9f6 with SMTP id dn14-20020a17090794ce00b0079cd3c5e9f6mr22802082ejc.219.1666786158846; Wed, 26 Oct 2022 05:09:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666786158; cv=none; d=google.com; s=arc-20160816; b=LPtJbu3QaGXEQozXcIQfGr81F3slonfbzQccEm3Q1TlF2tBlWHWetjwm2vZSL9JqWj 8yVzqomDxqU5ERFCq3M1IE3oEtX9LXH2oyZ8xRm2ms7kQlGnQSEOJINeR8+VyC7dPqG8 gFxBHswCoKYT0y2zkpSOq+xJDQoo+JHg/ZgMk3XOy0PIiEVD9LwBrlKYpnWNi8572rc6 lMSXo7bK3Eoaspt7ecI/lB123wHzPdJQkKM4KTSnJihAZ47bfY7KUCxIqIKQgH9A7C/u 18iWPGhj6/MlHv6+lyrCYyLjTojh/7tUAHD0oVkfZmlUJF1UIh9YKamHdm7hhH5vndNc JdmA== 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 :dkim-signature; bh=7e4B9MbvTUT94KALkUjhjJvQIZdQ+NZ1YEAmT1iPCak=; b=q3Fo3zcjZGfrlaUZCHQ8lcDDW2a3L98ulfbGbnPvhzPlTj4sPO9ONNMXTeOYwCgvDw ujEgZfULQd/BWhOyKmLzFg8z14biCCf556wq4XXYBtrBuotJ/ZGkmWqzA/a4Oj/uC0vI GU5s0d3v27tbIkByBWwktd1AovVPvzE8Q8X0AOeockzY6tq3XJdLyYfeNi/jBfaJrceu SR6rIoNVfpd1wX6dMAVElk9pEEFqYmTxz6R3vl0x0UVgqdjp3D4HK+nkOMZeSRQ0iq+P pDXYbRyVQOXkESinQ110teXr8tTWm0N66+VvUNgJJWOWVpxhcBJnDyMZrb7z1RCSm7BR yrmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=jBTiR205; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji6-20020a170907980600b007708400bee5si6428684ejc.1003.2022.10.26.05.08.53; Wed, 26 Oct 2022 05:09:18 -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=@suse.de header.s=susede2_rsa header.b=jBTiR205; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233393AbiJZMCn (ORCPT + 99 others); Wed, 26 Oct 2022 08:02:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231628AbiJZMCl (ORCPT ); Wed, 26 Oct 2022 08:02:41 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DE9346DB4; Wed, 26 Oct 2022 05:02:39 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 5150A2207D; Wed, 26 Oct 2022 12:02:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1666785758; h=from:from:reply-to: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=7e4B9MbvTUT94KALkUjhjJvQIZdQ+NZ1YEAmT1iPCak=; b=jBTiR2056OB5RGxD9Ep8aMTeGXS5/19j7BYWZI0qf+LmCe0xtKt55xiRpgEE2go33r73uC 5eh7cB3vp1wG4kENaaylmSyX7DN1ZbZO8B3OEYEYi7EFk/0qGkY5ur7GwwdeWhPt3oBFJI gN00fCK1RtvMjhrBBXrL04kYq18Dd5A= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1666785758; h=from:from:reply-to: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=7e4B9MbvTUT94KALkUjhjJvQIZdQ+NZ1YEAmT1iPCak=; b=LCdWfDzVU66lhmR0RvgigsvxFNdO+VFt/FJY3rX/qAXyNZ6xS++brVDVFsdbKswA+qYVq9 FwdjFLb226jabWCg== Received: from suse.de (unknown [10.163.43.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 279362C141; Wed, 26 Oct 2022 12:02:34 +0000 (UTC) Date: Wed, 26 Oct 2022 13:02:32 +0100 From: Mel Gorman To: David Hildenbrand Cc: Doug Berger , Andrew Morton , Jonathan Corbet , Mike Rapoport , Borislav Petkov , "Paul E. McKenney" , Neeraj Upadhyay , Randy Dunlap , Damien Le Moal , Muchun Song , Vlastimil Babka , Johannes Weiner , Michal Hocko , KOSAKI Motohiro , Mike Kravetz , Florian Fainelli , Oscar Salvador , Joonsoo Kim , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v3 0/9] mm: introduce Designated Movable Blocks Message-ID: <20221026120232.bbhfwjm32qq4mh57@suse.de> References: <20221020215318.4193269-1-opendmb@gmail.com> <20221026105500.n6ddzqqf5ozjswsp@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED 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 Wed, Oct 26, 2022 at 01:11:40PM +0200, David Hildenbrand wrote: > > In the appliance case, it doesn't matter if the intent is that "all > > application data should use high bandwidth memory where possible and > > the application phase behaviour is predictable" and that may very well > > work fine for the users of the Broadcom platforms with multiple memory > > controllers. It does not work at all for the general where access must > > be restricted to a subset of tasks in a general system that can only be > > controlled with memory policies. > > > > The high bandwidth memory should be representated as a NUMA node, optionally > > to create that node as ZONE_MOVABLE and relying on the zonelists to select > > the movable zone as the first preference. > > ... that boils down to my remark to tiered memory and eventually using > devdax to expose this memory to the system and letting the admin decide to > online it to ZONE_MOVABLE. Of course, that's just one way of doing it. > I don't see this approach being inherently bad as such, particularly in the appliance space where it is known in advance what exactly is running and what the requirements are. It's not automagical but it's not worse than specifying something like movablecore=100M@2G,100M@3G,1G@1024G. In either case, knowledge of the address ranges needing special treatment is required with the difference being that access to the special memory can be restricted by policies in the general case. -- Mel Gorman SUSE Labs