Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3335925ioa; Tue, 26 Apr 2022 01:22:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyXezh/la9WeOhjqA0WUUpnX69M2J0XW+81LpykSDWhox6ZymK7XIzSCcvYtjo0E+QAznD X-Received: by 2002:a05:6402:3551:b0:423:f051:a9b5 with SMTP id f17-20020a056402355100b00423f051a9b5mr23774766edd.375.1650961349866; Tue, 26 Apr 2022 01:22:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650961349; cv=none; d=google.com; s=arc-20160816; b=khLtz6ov5jPtDz3OvoLiP/+ogaHgYgGZQNTwjbubWZ62G8aQdaAvruwxDaNyAJTTgN WI0OyESGvmzqJS42uQ1xHTBb21OWmnt8GQewlb195naS4ywPd0GH9hb/4eeBzoXhaT8i ItE1WqsY9oydTS78kCD7anEw3IQqSIihGeFqrcGs4CAV0LE1b+M8WAZcPU3qBvpqUngD 8FOps7P3FLvRbf4/SMpRd2k2/dJJ/rmHjCvAMGNoy1ZfxFvqilpnclYGeZcsd2VZRIEu MMDuYk+aGqNVA8ovT3XYLVPLi/2wKiOwW6+qO7Or25yTMuAnjJLFWUlY6l9VUDN0qiH0 sGBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=K+taKdBFLx5cZ5SugVQxFqem6wj8AV8SjBwOuuKVIh4=; b=o8PpQnjVNE8gcf/8L6NFMO4TZbMVkC4SbSATX0MIdbbufHui+z4Ne8byV04vGfOyTa XFjIJ39kpF55bJXe0ilO5eowte+YcoeBEyJc85qJsNCzY23YLt6yAhOakMK25hZABEGR W6CpVhEJDH0VOTgisOw3J94vxi5YT5VaYvAUsXAlFSetRbT8Q/xxWCndVpnbYBMcDqDY iRBXmMYrAwODQOsED1Ej4/1lndek0nMHnmpxppBZN+Rt7wo+vdmiK0Gjgl3W8aQ5e/ci 0iO5XNYplf2qxMeWTbYfha2K2d7MZf2LMg6s+OvxNHD3P0iMR8dQ68tzJvsI/YsDOQl3 Sv2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="np40/NjU"; 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 r14-20020a1709067fce00b006f393e65547si4524995ejs.183.2022.04.26.01.22.06; Tue, 26 Apr 2022 01:22:29 -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="np40/NjU"; 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 S1343897AbiDZHaQ (ORCPT + 99 others); Tue, 26 Apr 2022 03:30:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343908AbiDZHaN (ORCPT ); Tue, 26 Apr 2022 03:30:13 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54A09B8985 for ; Tue, 26 Apr 2022 00:27:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650958026; x=1682494026; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=jaNEaOZHZW4ArX88xjysMT3Bv8oI1VDPlRS5BXJ1sXs=; b=np40/NjUVbG3zWeFqo+SKnRaOBQjtTcmdXwR4xKtKc87tZktZ7E9bV6/ 11NJ/AvMH4li6dib6bFHoTnBmX9hFwByj52zxUsYIqyVVlqFutln/geIv uGjFqbHD7FIWQBrtzf5KUSZaoyqODJJushOmlxcPYomOk0zEHTUbUsXXd 0rao/OxBCoJJFqVCthoiaIwsFIPqg0uHmBxnrUI/YwCI73CQV/1aR93t+ 6iTaqPLQ/yMsYlTQCKTCieYUMpJPhl/A7Ik4rN3aLlJOPRTLvrPDI5SCi wcNycBH7x+FOEePneFVlCgu+PqZ/OIlBj4pgH+dpdpUmSB3+w+lUBCNZB Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10328"; a="351927270" X-IronPort-AV: E=Sophos;i="5.90,290,1643702400"; d="scan'208";a="351927270" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2022 00:27:02 -0700 X-IronPort-AV: E=Sophos;i="5.90,290,1643702400"; d="scan'208";a="558161318" Received: from yyu16-mobl.ccr.corp.intel.com ([10.254.212.128]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2022 00:26:59 -0700 Message-ID: <9581e4acc5392fd3f173189f7bd3ed11c372883e.camel@intel.com> Subject: Re: [PATCH v3 1/7] mm: demotion: Fix demotion targets sharing among sources From: "ying.huang@intel.com" To: Jagdish Gediya Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, baolin.wang@linux.alibaba.com, dave.hansen@linux.intel.com, aneesh.kumar@linux.ibm.com, shy828301@gmail.com, weixugc@google.com, gthelen@google.com, dan.j.williams@intel.com Date: Tue, 26 Apr 2022 15:26:56 +0800 In-Reply-To: References: <20220422195516.10769-1-jvgediya@linux.ibm.com> <20220422195516.10769-2-jvgediya@linux.ibm.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 On Mon, 2022-04-25 at 15:02 +0530, Jagdish Gediya wrote: > On Sun, Apr 24, 2022 at 11:25:50AM +0800, ying.huang@intel.com wrote: > > > Subject: [PATCH v3 1/7] mm: demotion: Fix demotion targets sharing among sources > > > > IMHO, this patch doesn't fix some bugs in the original code. Instead, > > it just enhances the original code. For example, the subject could be, > > I think it is fixing a bug, there is a comment in the code which > mentions that 'used_targets will become unavailable in future passes. > This limits some opportunities for multiple source nodes to share a > destination'. As per this comment, it was intended to share a node as > demotion targets with some limits but the code limits not some but all > such opportunities as no common node can be demotion targets for > multiple source node as per current code. IMHO, the original code is just to keep as simple as possible to address the issue for the real machines at that time. That provides a base line for future improvement like you have done. If the original code wouldn't work well for the target machines, then we fixed a bug. But if that doen't work well for some new kind of machines, then we need to improve the code, add more feature, not to fix a bug. Best Regards, Huang, Ying > >   mm: demotion: support to share demotion targets among sources > > > > Best Regards, > > Huang, Ying > > > > [snip] > > > > > >