Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp3238394rwi; Tue, 1 Nov 2022 18:10:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7f3acn+/8cK9w43Ioz1bdzxji3psWmYTDofDwfzSuqbG3dQTG7FY57rKWs2kmQcYbRkHY4 X-Received: by 2002:a63:235c:0:b0:459:5fef:88ab with SMTP id u28-20020a63235c000000b004595fef88abmr19902606pgm.312.1667351451989; Tue, 01 Nov 2022 18:10:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667351451; cv=none; d=google.com; s=arc-20160816; b=DFc2DKJ5Bgyp0Ttf8LvjGmmfEAbqiYbOo2LSLtdj1PUSclTYZVSSqssEUBViT1bG1P NmBFPm6huRcjbZ6cUVxnh+ixmDGuvV5g4vm2fhGDpa5Dig+inlgTekCFpFeaKSZtCvDM 59AYrDrfVMfykXu8jSwy7UaXLMf+CgSrPaDJqnRz12mnpsaABTMOxKJJN5IAVUfY7oV/ RXveqZE48ENcOxLpOx5TnZkan3aXGASpCY8nLw+jSSrqjp7um3Om29/0ZReQsE7qzs24 9e2jf7bLVos2l1jXW1Z2+u/f6RZKiUZBCR6m2pMvjZFpbFca/rupFC2gR9wD575m4dL6 X1Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=ZhjdZWvmQ+O5UXCpS8XvXDqiUKOvXcypZ0CSgIraCY4=; b=GJ1Zhi6Kvt2TZB3zjMSGH8ggwu+HC/F+rIyyNdOlm9IsVQVuVotzGG+E/e9AcT5zOk CZ8CQnPBgPW2+YF4gw+igeinddR13lpgwlGQpIi5m0a3uaI/LWVPRXXaT64sefYtK6tT aAqRw52OgxG3tnDphfbFx+hq0wNBwjU4gnENGYq3s5Ld0DuXwx/Iz4ivCbeomz7sqU6/ gwzVP7rG+WKuU9iq9KWSoT+t5V0fJMbjDT8wABexEzvYEFJdaIKMZMGL8t5JazYPsJN1 0D1Aa0Bueq1hQZluuE/U0vNOh5TxDApAqDck8gMBG+uJyQlP6xOb93jnmiPSDur6AlVT uwnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lYtSUisA; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b11-20020a056a000a8b00b0056be9c34518si14858804pfl.40.2022.11.01.18.10.36; Tue, 01 Nov 2022 18:10:51 -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=@intel.com header.s=Intel header.b=lYtSUisA; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229850AbiKBAkk (ORCPT + 96 others); Tue, 1 Nov 2022 20:40:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229795AbiKBAkj (ORCPT ); Tue, 1 Nov 2022 20:40:39 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73CCF140E4 for ; Tue, 1 Nov 2022 17:40:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667349638; x=1698885638; h=from:to:cc:subject:references:date:in-reply-to: message-id:mime-version; bh=fw+qL17DCZK+sk+sa8WqB43dA7mfh93h7iE5JgG3lx4=; b=lYtSUisAs979oBUsDpK60WJ5SOZOcsANw4WVY4B4g6VGU3zB00hiziHc Uy/znDop0ZTn451vL9r6Ih5WgGInsfZJRfq/wtr20WqgDrPhcR6EHhCLx vf5A3sQeozBv9okP407802STWHvSPhULoEP5hS8JjU3MBlRAb0d2aNcE4 OJsEtr7xxTUQpLENhqNBMikhke+Xb479KVYK7FrIkS+DHt2pIeqpHCX0F Gp6t/X9R4WCD/kER8261sRooWQt55NMB2m4SFb6FbNAp7xN65KoyCrckZ ErLmfP4DzSVeN2DG6JQDH4wSI8vVloZsqyBvH0/9Ohxwr+U/GGGxwd/PZ g==; X-IronPort-AV: E=McAfee;i="6500,9779,10518"; a="310380096" X-IronPort-AV: E=Sophos;i="5.95,232,1661842800"; d="scan'208";a="310380096" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2022 17:40:37 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10518"; a="879281950" X-IronPort-AV: E=Sophos;i="5.95,232,1661842800"; d="scan'208";a="879281950" Received: from yhuang6-desk2.sh.intel.com (HELO yhuang6-desk2.ccr.corp.intel.com) ([10.238.208.55]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2022 17:40:33 -0700 From: "Huang, Ying" To: Michal Hocko Cc: Bharata B Rao , Aneesh Kumar K V , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Alistair Popple , Dan Williams , Dave Hansen , Davidlohr Bueso , Hesham Almatary , Jagdish Gediya , Johannes Weiner , Jonathan Cameron , Tim Chen , Wei Xu , Yang Shi Subject: Re: [RFC] memory tiering: use small chunk size and more tiers References: <20221027065925.476955-1-ying.huang@intel.com> <578c9b89-10eb-1e23-8868-cdd6685d8d4e@linux.ibm.com> <877d0kk5uf.fsf@yhuang6-desk2.ccr.corp.intel.com> <59291b98-6907-0acf-df11-6d87681027cc@linux.ibm.com> <8735b8jy9k.fsf@yhuang6-desk2.ccr.corp.intel.com> <0d938c9f-c810-b10a-e489-c2b312475c52@amd.com> <87tu3oibyr.fsf@yhuang6-desk2.ccr.corp.intel.com> <07912a0d-eb91-a6ef-2b9d-74593805f29e@amd.com> <87leowepz6.fsf@yhuang6-desk2.ccr.corp.intel.com> Date: Wed, 02 Nov 2022 08:39:49 +0800 In-Reply-To: (Michal Hocko's message of "Tue, 1 Nov 2022 15:34:51 +0100") Message-ID: <878rkuchpm.fsf@yhuang6-desk2.ccr.corp.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=ascii X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 Michal Hocko writes: > On Mon 31-10-22 09:33:49, Huang, Ying wrote: > [...] >> In the upstream implementation, 4 tiers are possible below DRAM. That's >> enough for now. But in the long run, it may be better to define more. >> 100 possible tiers below DRAM may be too extreme. > > I am just curious. Is any configurations with more than couple of tiers > even manageable? I mean applications have been struggling even with > regular NUMA systems for years and vast majority of them is largerly > NUMA unaware. How are they going to configure for a more complex system > when a) there is no resource access control so whatever you aim for > might not be available and b) in which situations there is going to be a > demand only for subset of tears (GPU memory?) ? Sorry for confusing. I think that there are only several (less than 10) tiers in a system in practice. Yes, here, I suggested to define 100 (10 in the later text) POSSIBLE tiers below DRAM. My intention isn't to manage a system with tens memory tiers. Instead, my intention is to avoid to put 2 memory types into one memory tier by accident via make the abstract distance range of each memory tier as small as possible. More possible memory tiers, smaller abstract distance range of each memory tier. Best Regards, Huang, Ying