Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6952027rdb; Tue, 2 Jan 2024 22:10:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHLBmqT2dhjd4RnuYc0EHbpf+YKHkc903DCFa99X9EIecR5ExsfQdAO5zCJ3Hzm8E/m7kh9 X-Received: by 2002:a17:906:73c7:b0:a26:97fe:b8cc with SMTP id n7-20020a17090673c700b00a2697feb8ccmr9121521ejl.66.1704262207341; Tue, 02 Jan 2024 22:10:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704262207; cv=none; d=google.com; s=arc-20160816; b=nO2DxCZgi4fuPiH/rMESd04/bmOxD4qh+m0tfij6c+BpcNea9+ckgBUQuNTNcuCLyj viLelDCp08u0A4Q63R8AkpYV6zbHig4p1pL/lsMrH5o6F3E3VcgueU6EkKu2wY4zPQ9b 1oP2rcCG6aTO0ANbuXMmzSg+ex/pv9nQBJdwwmWWE6Uwas5CV2ILHl5LHYGEextJksa1 kj9LxU3mT1unS5oPuQcmpA2hRnlL8wd212FyuOFlHWJvU3x7PKeSt00iL/fDpI6KdLYV cpdg9zETa1E7SCtfhndj7LZx+DcY0wDP15nc5iCOm1ntk02M/jAl2TLQVeJW5yVAgEct IXkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:date:references:in-reply-to:subject:cc:to :from:dkim-signature; bh=T09AGaB9RSYfQGWH/QB0rMQh1A52Vf6GX4/AfGljIqM=; fh=ZpCXZVcGICJqtDrlQXqXoJFOiLI8flsNlPt5uCGl/dY=; b=kXlfmPzXIGc1SGQPN56a4mD3BZ7KEZB+3OCNBDG2BjtGfIEHeRbEJRGvkOumtN3MUg Q+99/tWpfZVmxJmFM28huGr9hM9pGAKaoApfsMA82QZ6U4+bY/mvig9krx66O5wNEQkS lNHkytPg5pAQjSzz3hD068al9moko69kZknkWt9Jk7MD92gHkPTo2U4rDTJOLBCRRwVk Y+Wt72CzERyZaJawV1aCvkTrbCbReiJwFIya5Py6tP8yzfGAIA39wt2EFU3LxOA0x0l2 ENjcoqxAA+y5JDPoErhSKdWFZno8TrZ+WcUVRwIT7LFM3U+HMw3BWTdDQnYiHjEGxoGK T/GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TujT5M6C; spf=pass (google.com: domain of linux-kernel+bounces-15197-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15197-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id js18-20020a170906ca9200b00a27e2b27455si2404576ejb.1024.2024.01.02.22.10.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 22:10:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15197-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TujT5M6C; spf=pass (google.com: domain of linux-kernel+bounces-15197-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15197-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1C4C11F23A86 for ; Wed, 3 Jan 2024 06:10:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DB1B4179A4; Wed, 3 Jan 2024 06:09:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="TujT5M6C" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8865E1798F; Wed, 3 Jan 2024 06:09:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704262198; x=1735798198; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=SlVD6Rk0BkluSSjYPsszZ6WpuFk/Fh1OB487VtaCkVo=; b=TujT5M6C5DYdfncUqOYKwhbtUUdivG1BhH+6R6YYd+JsOiT6pSdUf69S F+Mi3ToUl1HUkqzacSn9nTzUdyjxHjq1xPTxrPA2GdXBurL7S22Okky/0 Pf7b2VKXhP5q85NF4rhco+nrFVD2ax2F6dy3q2utrg4xvJDgm0JVKHA1Q VzbRLD344/nTntxMwt4B1/nYXr+IRmI63s9tO8Fu1L7/G7tQ/DyCg+eLK YVCfxeyEWY5PWIQcwaSIYyisnhalw6vmdfcS8kjVJYuX8tCOKAHeVFsgN tifbqrWrvmFFswjl77lPXRqb6xI/fodo9utnVZVT8yKlZMfUmhP2O4Y+c w==; X-IronPort-AV: E=McAfee;i="6600,9927,10941"; a="4044339" X-IronPort-AV: E=Sophos;i="6.04,327,1695711600"; d="scan'208";a="4044339" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jan 2024 22:09:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10941"; a="903334248" X-IronPort-AV: E=Sophos;i="6.04,327,1695711600"; d="scan'208";a="903334248" Received: from yhuang6-desk2.sh.intel.com (HELO yhuang6-desk2.ccr.corp.intel.com) ([10.238.208.55]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jan 2024 22:09:52 -0800 From: "Huang, Ying" To: Srinivasulu Thanneeru Cc: gregory.price , Srinivasulu Opensrc , "linux-cxl@vger.kernel.org" , "linux-mm@kvack.org" , "aneesh.kumar@linux.ibm.com" , "dan.j.williams@intel.com" , "mhocko@suse.com" , "tj@kernel.org" , "john@jagalactic.com" , Eishan Mirakhur , Vinicius Tavares Petrucci , Ravis OpenSrc , "Jonathan.Cameron@huawei.com" , "linux-kernel@vger.kernel.org" , "Johannes Weiner" , Wei Xu Subject: Re: [EXT] Re: [RFC PATCH v2 0/2] Node migration between memory tiers In-Reply-To: (Srinivasulu Thanneeru's message of "Wed, 3 Jan 2024 05:26:32 +0000") References: <20231213175329.594-1-sthanneeru.opensrc@micron.com> <87cyv8qcqk.fsf@yhuang6-desk2.ccr.corp.intel.com> <87fs00njft.fsf@yhuang6-desk2.ccr.corp.intel.com> Date: Wed, 03 Jan 2024 14:07:54 +0800 Message-ID: <87edezc5l1.fsf@yhuang6-desk2.ccr.corp.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ascii Srinivasulu Thanneeru writes: > Micron Confidential > > Hi Huang, Ying, > > My apologies for wrong mail reply format, my mail client settings got changed on my PC. > Please find comments bellow inline. > > Regards, > Srini > > > Micron Confidential >> -----Original Message----- >> From: Huang, Ying >> Sent: Monday, December 18, 2023 11:26 AM >> To: gregory.price >> Cc: Srinivasulu Opensrc ; linux- >> cxl@vger.kernel.org; linux-mm@kvack.org; Srinivasulu Thanneeru >> ; aneesh.kumar@linux.ibm.com; >> dan.j.williams@intel.com; mhocko@suse.com; tj@kernel.org; >> john@jagalactic.com; Eishan Mirakhur ; Vinicius >> Tavares Petrucci ; Ravis OpenSrc >> ; Jonathan.Cameron@huawei.com; linux- >> kernel@vger.kernel.org; Johannes Weiner ; Wei Xu >> >> Subject: [EXT] Re: [RFC PATCH v2 0/2] Node migration between memory tiers >> >> CAUTION: EXTERNAL EMAIL. Do not click links or open attachments unless >> you recognize the sender and were expecting this message. >> >> >> Gregory Price writes: >> >> > On Fri, Dec 15, 2023 at 01:02:59PM +0800, Huang, Ying wrote: >> >> writes: >> >> >> >> > ============= >> >> > Version Notes: >> >> > >> >> > V2 : Changed interface to memtier_override from adistance_offset. >> >> > memtier_override was recommended by >> >> > 1. John Groves >> >> > 2. Ravi Shankar >> >> > 3. Brice Goglin >> >> >> >> It appears that you ignored my comments for V1 as follows ... >> >> >> >> >> https://lore.k/ >> ernel.org%2Flkml%2F87o7f62vur.fsf%40yhuang6- >> desk2.ccr.corp.intel.com%2F&data=05%7C02%7Csthanneeru%40micron.com >> %7C5e614e5f028342b6b59c08dbff8e3e37%7Cf38a5ecd28134862b11bac1d56 >> 3c806f%7C0%7C0%7C638384758666895965%7CUnknown%7CTWFpbGZsb3d >> 8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3 >> D%7C3000%7C%7C%7C&sdata=OpMkYCar%2Fv8uHb7AvXbmaNltnXeTvcNUTi >> bLhwV12Fg%3D&reserved=0 > > Thank you, Huang, Ying for pointing to this. > https://lpc.events/event/16/contributions/1209/attachments/1042/1995/Live%20In%20a%20World%20With%20Multiple%20Memory%20Types.pdf > > In the presentation above, the adistance_offsets are per memtype. > We believe that adistance_offset per node is more suitable and flexible. > since we can change it per node. If we keep adistance_offset per memtype, > then we cannot change it for a specific node of a given memtype. > >> >> >> https://lore.k/ >> ernel.org%2Flkml%2F87jzpt2ft5.fsf%40yhuang6- >> desk2.ccr.corp.intel.com%2F&data=05%7C02%7Csthanneeru%40micron.com >> %7C5e614e5f028342b6b59c08dbff8e3e37%7Cf38a5ecd28134862b11bac1d56 >> 3c806f%7C0%7C0%7C638384758666895965%7CUnknown%7CTWFpbGZsb3d >> 8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3 >> D%7C3000%7C%7C%7C&sdata=O0%2B6T%2FgU0TicCEYBac%2FAyjOLwAeouh >> D%2BcMI%2BflOsI1M%3D&reserved=0 > > Yes, memory_type would be grouping the related memories together as single tier. > We should also have a flexibility to move nodes between tiers, to address the issues. > described in use cases above. We don't pursue absolute flexibility. We add necessary flexibility only. Why do you need this kind of flexibility? Can you provide some use cases where memory_type based "adistance_offset" doesn't work? -- Best Regards, Huang, Ying