Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp511064imm; Fri, 27 Jul 2018 00:50:15 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdBq2sWdONnfXS3uWX67Km6lOhjzI9m4zPsIhCkqW6d3buro9K57XWHbCVDJpsl4DO2rggH X-Received: by 2002:a62:4083:: with SMTP id f3-v6mr5485692pfd.229.1532677815552; Fri, 27 Jul 2018 00:50:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532677815; cv=none; d=google.com; s=arc-20160816; b=j5tif8z4js89SsAbOK0koLjhYWJK6SLW5vYqeqD5u/SQw3d95W8LONKW3IzQEj2cDO VzXzJ4Oq6Lt+p8gVSIvJCLeMyfEZ9IjyxSuJqHm92Gk/D80ojeT5BAKzS+1Gk2eIWDKx PqPINYwkp0NFekfy1glvL03MnLZ2JDmlDnc7lyAVX6MCfdhcdXf4fgxFb2vLEhS+gLxS WP4UWtc/ZFIaDSuFXK9XM8bvn0aOC4UxrEdAgvT09rpR1a2gyJOTn9ZWo7BOD8d/9Y1j up2Ni5uQJENq0A9VxSHz2WdsWbpXYORiUsvanRjWfZIvpxWUQ6dUbvALl2sAFGN+cXMu fFjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=uqwPEn1GMINOJ8+Zw1ofTtI8q0YhWIQUUUhEr32Y/UA=; b=OA/Xi9PEd7up6v3H71IRWHUD+hoR2eIP0WFpnPMcJEMDM2iuAUsaDLWwi8bxaoUFd0 Cz4qpDAG3dSN9C4PrspiTt9nqzlm85bzWL/2dTFUCzK17BAba1j/4jIk60MHdCKYaP2n Fr3Flo6roJaUc4M+TLiRWipaP0I7gXwoTvhudXJDT27K8ohZVGnzx94oZca7c0RRwuYn XtcHYpzIHzi6wZvTSkleEq6ScQI5fD74uLsDyrdvtTXp5/GiLQGmnleT/k8jreeDa+tx 6EmKsdSaQCwJLWf4R8uW3HFFooa3kDedt2dNiU9ZBxSdMmLcxnco31O3tA8+NDPe4zke v2Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Ei1300xP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si2973791plw.519.2018.07.27.00.50.00; Fri, 27 Jul 2018 00:50:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Ei1300xP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729577AbeG0JJd (ORCPT + 99 others); Fri, 27 Jul 2018 05:09:33 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:46014 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729442AbeG0JJd (ORCPT ); Fri, 27 Jul 2018 05:09:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=uqwPEn1GMINOJ8+Zw1ofTtI8q0YhWIQUUUhEr32Y/UA=; b=Ei1300xPC+dq5EyfR932a9fof 3bkK42GjQRxttvhjsyJTUgYTr8v8vXWXgwwTL1NUqVYQZepd3TEWQDKlAui9JUSImC6jDIO+OsyMs NiHKeEwr5z+TLIJqVSX8Jv78y8fOZOh+FYxPw4xt9is3qdjvqf5hp/PC6ByZvsQdDK/j4HLKP7mm5 8Jsgirw0Uaj36pNLu4Uj2rvRYoV3OkRQRxm6yuQ0mITSJpKD6EYa44+AGjpXRiVl1jIM1YUbxNEcR ObRioWwzvKH4DoAopaP2wE9C48/2y7bokr0VEwu+txfewbKQutuMNW+0ITz5jR8BctjqzW4coYPkS rYLKJgeYQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fixUb-0004PS-Jy; Fri, 27 Jul 2018 07:48:53 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 442A42040AE9C; Fri, 27 Jul 2018 09:48:51 +0200 (CEST) Date: Fri, 27 Jul 2018 09:48:51 +0200 From: Peter Zijlstra To: Cheng Lin Cc: mingo@redhat.com, linux-kernel@vger.kernel.org, jiang.biao2@zte.com.cn, zhong.weidong@zte.com.cn, tan.hu@zte.com.cn.cn Subject: Re: [PATCH v2] sched/numa: do not balance tasks onto isolated cpus Message-ID: <20180727074851.GY2494@hirez.programming.kicks-ass.net> References: <1532593148-106266-1-git-send-email-cheng.lin130@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1532593148-106266-1-git-send-email-cheng.lin130@zte.com.cn> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 26, 2018 at 04:19:08PM +0800, Cheng Lin wrote: > - if (!cpumask_test_cpu(arg.dst_cpu, &arg.src_task->cpus_allowed)) > + if ((!cpumask_test_cpu(arg.dst_cpu, &arg.src_task->cpus_allowed)) > + || !housekeeping_test_cpu(arg.dst_cpu, HK_FLAG_DOMAIN)) > goto out; You did not read the comment I provided last time. Using isolcpus (and thus it's renamed houskeeping thing) is the wrong thing to do. Load balancing should be limited to it's root domain.