Received: by 10.223.176.5 with SMTP id f5csp2542519wra; Mon, 5 Feb 2018 05:57:48 -0800 (PST) X-Google-Smtp-Source: AH8x227FBoHNfR9I8BYEYILCutoHWk8c/BYbbdCQWIgmTzHT2M9txwqCuokhed8mVQtU3XZvB7Wa X-Received: by 2002:a17:902:2f03:: with SMTP id s3-v6mr43100732plb.112.1517839067896; Mon, 05 Feb 2018 05:57:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517839067; cv=none; d=google.com; s=arc-20160816; b=vfgqHP4LNHmxZeDsxcuz/NV8uRalWTCtlrBWlQr1Iz2lshOMg4czbROHJtmPmg0lpN 3SLdaeO4x3AqEmUFFRFS7MxtAj1tjrAl0jV3fbDejMgjfYb1IzL20le3pAINNjBm4BP1 K9TKiFZm1Y8QsjHwmvumQI2Ngs07rAzzhaYz1zV/JCM5qU6k7XLQ+e0UOcvkXFi1BZi8 pcZXM2QRGOF82KV5QayjJobZ4/vviSYqo8v7L4h6BJKUeY6v4YMIL8i36l05D5tLeQNk RNvZdCkL6Iku1vi9SHMqYSsqV/u8njOqGaOcmvmN2rRJAQCEP1PSd2jgmVQ8l07ctRPE PR8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=fay5gqH1i00L8lIWUNqUBPpPPDXAvE3wNUi6nCmbqvE=; b=ANLvJcA7n3s4erSS2bvfIhAmOZBofBP3xEJNwFE6xYwLCUsTZkWYch/mrYLEO0z1Xq Nk/Uw5JK1vfN2SxPOML8HpNe846MCnmpFAJmglT1iwFm+c7a0bJMskiQhkf08XxE7/XR hSiOKdCN+uI2NLrzpCFuXZw6BYau7kQjxO/tOpT7ZiHJDkXJn7T5AO/1hLX2GEs63zGf kVPML3pxS0ztHjUWCLuLA3MirDKmUhhiAsHGZubgfXtlsE9m/xtsZgd6el+7qoeux6Wd IrZxOYE7LiLrBBmPSH5xjdoT1NAmi+U2jW70nMor5a8G2GdENtTSKCZf2UCHWH62AjyU eOkA== ARC-Authentication-Results: i=1; mx.google.com; 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 g6-v6si2677843pll.488.2018.02.05.05.57.33; Mon, 05 Feb 2018 05:57:47 -0800 (PST) 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; 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 S1752934AbeBENzT convert rfc822-to-8bit (ORCPT + 99 others); Mon, 5 Feb 2018 08:55:19 -0500 Received: from mout.gmx.net ([212.227.15.19]:59574 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752980AbeBENzN (ORCPT ); Mon, 5 Feb 2018 08:55:13 -0500 Received: from homer.simpson.net ([185.191.217.115]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MX1hk-1eEuty1BDg-00W0d0; Mon, 05 Feb 2018 14:54:50 +0100 Message-ID: <1517838889.6939.16.camel@gmx.de> Subject: Re: [RESEND RFC PATCH V3] sched: Improve scalability of select_idle_sibling using SMT balance From: Mike Galbraith To: Peter Zijlstra , Steven Sistare Cc: subhra mazumdar , linux-kernel@vger.kernel.org, mingo@redhat.com, dhaval.giani@oracle.com Date: Mon, 05 Feb 2018 14:54:49 +0100 In-Reply-To: <20180205124854.GX2269@hirez.programming.kicks-ass.net> References: <20180129233102.19018-1-subhra.mazumdar@oracle.com> <20180201123335.GV2249@hirez.programming.kicks-ass.net> <911d42cf-54c7-4776-c13e-7c11f8ebfd31@oracle.com> <20180202195943.GR2269@hirez.programming.kicks-ass.net> <25d67bd2-cbe7-2c2a-e89a-13a7ca5adc10@oracle.com> <20180205124854.GX2269@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset="ISO-8859-15" X-Mailer: Evolution 3.20.5 Mime-Version: 1.0 Content-Transfer-Encoding: 8BIT X-Provags-ID: V03:K0:QH7MUatEa7EuIps694DwZiy3a570eH18EHRP9fhLBrZ+EvIvy87 DUGj+XoNdCyNegDD9WoKZev8F+tKBMnU3C3/lDaX+W2n7v8s5bUNVM0B3wuwSFoJRH9hOAV IJTApFVI1JkmCJGOn1p3GzMG1j0T+1QKQQ9rd3cxEZzNh81zdhjdb+4Bja/xInz+ZK9RunA BQV4QqwM9EnXoA9ZR06Jw== X-UI-Out-Filterresults: notjunk:1;V01:K0:2PGz5mBiB/0=:fGY79HNuEx6f+HMIiXIes5 0QmJpOpYJre8qkVCf2UKZNvx1iWUwrBXeo4kvY6zN4dn6QAuPLnf+31q3AwPIrmPEVIe5jKjP a5icQDFVBLlj8pz54pCbE+Z0Kf6Ew7Ykcw2rz2q4gCg5UI667EY4G7Le51zU253wG8Izc75NE NzcdGH6GeOic8u1RMhHdiHYgzlKhl9APUCq/JEK0WDaXAfYWwXX/8wOvAE7btkzVd53DhP1/i XZGL2zkA/TuMlSy7c9bsUmdK4jm0JonKBJvrtmGus/icA++nHj0vZ6v+VyIYH27QyHrq5hSpM 9hj23YmqwBbY0Fuet6Yqe4IOUnQeEKGpGIc/jvZw678ocMAQfdI0ExkHlMGyuJMQw0Iey8V/z UjuQVJHG4RvTxNXFugUyF3xr8To3zJHjsb3HTFAIYcbgdwWvBz594TuNFHMmLKe50KJa9NiXU XqsrUiZaZdjBl2rwDOQ+ISPf0dHQXOH3f2mJqgxdYbk8TieIxnqqgeuwwFS6Zr9XG0DwRDYSP CtcEbbuLCGM/12wrdEgUG5bRDnF9s0xlmCstc5M64PybGs/cuparnQUj0Dl0N7oDKFUGusr38 IibQxU9a9c+iY6HPAD2jKp9i9yV9cOCRyngddD7KnmIttgHhWIQwois4bv9TZ1h+mxsmsZ/OH efe2KMblVQKj94h/cmQEZJ8bzlkZ/zMcjL1y3wXutuYwZ9egus6lbGTEzZi0/8XophvFEY5Zv DPQX8vjePVBU/wySYJ7A8Sq3PUpEI6os06Dlz8DVmV1fdjt5YlFoGjvrOSYwLyMNI/KYViAb8 nE4ZgRXkH2tDLMyW3fSCIwUslpZ1slLh5mZF8ML4AQOLKL9XTk= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-02-05 at 13:48 +0100, Peter Zijlstra wrote: > On Fri, Feb 02, 2018 at 04:06:32PM -0500, Steven Sistare wrote: > > On 2/2/2018 2:59 PM, Peter Zijlstra wrote: > > > > But then you get that atomic crud to contend on the cluster level, which > > > is even worse than it contending on the core level. > > > > True, but it can still be a net win if we make better scheduling decisions. > > A saving grace is that the atomic counter is only updated if the cpu > > makes a transition from idle to busy or vice versa. > > Which can still be a very high rate for some workloads. I always forget > which, but there are plenty workloads that have very frequenct very > short idle times. Mike, do you remember what comes apart when we take > out the sysctl_sched_migration_cost test in idle_balance()? Used to be anything scheduling cross-core heftily suffered, ie pretty much any localhost communication heavy load. ?I just tried disabling it in 4.13 though (pre pti cliff), tried tbench, and it made zip squat difference. ?I presume that's due to the meanwhile added this_rq->rd- >overload and/or?curr_cost checks. ?I don't recall the original cost details beyond it having been "a sh*tload". -Mike