Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1559111ybh; Fri, 13 Mar 2020 03:27:40 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtB4/p6OAkcBEqqpArAOG1CWMLyn9AkXNcMnReLybPWZytqjCqEWT+nvb/9JAPjQotfaI6R X-Received: by 2002:a9d:18f:: with SMTP id e15mr9723007ote.42.1584095260416; Fri, 13 Mar 2020 03:27:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584095260; cv=none; d=google.com; s=arc-20160816; b=DItAVeJwbZN9FfqFJBqGBYih7riuEIL7yAPSs+9+vtSbgZpKFOiQPRNYlprrzUWr7g VN+/JpoHW6CSnABVGYnuLArj2VLSf8gOa7QKFoJG2HrVevyz+nc5EkJhMyztaB9tEIbA qo3vESZYB4rI+ujHNh4FXkj1B17SyMV8vTTTl/PhMqlTzXCL4sMGin4WDI11PdwH0p4Q zpnInROG1VPB9V7QNm6yAtTpeyCk3ccm3S54qca2tNMpc3+J/StU3p2pyKsxfhAg861L SMOxiquTnIM5E1U55e5qgYaaRPcXyK+AnWxWJiUDZGCX/GKA/6+SkCrnGlUF+BzcxDOx QNjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=w0wh3Bo/E+yd8WLbN+yv3HuUw/Fwj4zAqX3kGWsq99k=; b=bcrxh0IYnN+FyIkOgwop8Rr0ddNw3WW6+SQz51l+y3IpPC7/imPYZ1b5vCDOe94z4a +5Kes5yE8V4rHZRlenWy2mZ5W3p0JsEGkl4AA2DsuSjHNn9y4Iggt+G8uyVqYRbzvMiQ pUmfP5emDi0/wVLS28hW/g3qvSoOahbhEhuJVgI3ZXx/YH3XKfEm5B7Jh7nvQNgzOjJ+ Rip8Xl5BttZRsGMcCCugwVPx6854dvXCxB5g/xT9+U0h/cSfFsPh7C/X3v28vUAT8H6G UB6bivdS/oKwc79bK30cBQD/P6RIf77Goo0+7VW+gWK13rxrc2FWhKHNTCqJxWaVyoO/ cHuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ffp0mdh2; 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 p13si4507004otk.75.2020.03.13.03.27.28; Fri, 13 Mar 2020 03:27:40 -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=ffp0mdh2; 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 S1726605AbgCMK0j (ORCPT + 99 others); Fri, 13 Mar 2020 06:26:39 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:35204 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726364AbgCMK0j (ORCPT ); Fri, 13 Mar 2020 06:26:39 -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; bh=w0wh3Bo/E+yd8WLbN+yv3HuUw/Fwj4zAqX3kGWsq99k=; b=ffp0mdh20NmxHjh2w/JzrVfCQI mu3bjvWBkQPZQXWLzqkoqKY7m6Qj7J52aXZVzMkS00trEJ6UBIkV8TuIMkGSgyBEfEKiGnWnlQ6NY Od6OOHdBPZ/blRIwjrgOnzRxCwfPJQydWH6Eyyik6yeMJTMfv5nfTueGHwIWv8kku4auV5xPrIr2K ZjVarp6wWK/7GFhQXBn1/jvLkLqJ8PD7wHQR97eUDEgIOsQgaHEhasMs7iw2ew6bEWxdnJITTa2DC uWcxpvtJUSOsu6j74Q0XIIpn311k6OAVsRdZC1iLsZFFyVWzBrms9lornLP24UkfkhYQzRohGhLzi TcdlVcQQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jChWP-0001OU-Bf; Fri, 13 Mar 2020 10:26:29 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 490D1305F2E; Fri, 13 Mar 2020 11:26:27 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id E8430214344F4; Fri, 13 Mar 2020 11:26:26 +0100 (CET) Date: Fri, 13 Mar 2020 11:26:26 +0100 From: Peter Zijlstra To: Vincent Guittot Cc: mingo@redhat.com, juri.lelli@redhat.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sched/fair: improve spreading of utilization Message-ID: <20200313102626.GY12561@hirez.programming.kicks-ass.net> References: <20200312165429.990-1-vincent.guittot@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200312165429.990-1-vincent.guittot@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 12, 2020 at 05:54:29PM +0100, Vincent Guittot wrote: > During load_balancing, a group with spare capacity will try to pull some > utilizations from an overloaded group. In such case, the load balance > looks for the runqueue with the highest utilization. Nevertheless, it > should also ensure that there are some pending tasks to pull otherwise > the load balance will fail to pull a task and the spread of the load will > be delayed. > > This situation is quite transient but it's possible to highlight the > effect with a short run of sysbench test so the time to spread task impacts > the global result significantly. > > Below are the average results for 15 iterations on an arm64 octo core: > sysbench --test=cpu --num-threads=8 --max-requests=1000 run > > tip/sched/core +patchset > total time: 172ms 158ms > per-request statistics: > avg: 1.337ms 1.244ms > max: 21.191ms 10.753ms > > The average max doesn't fully reflect the wide spread of the value which > ranges from 1.350ms to more than 41ms for the tip/sched/core and from > 1.350ms to 21ms with the patch. > > Other factors like waiting for an idle load balance or cache hotness > can delay the spreading of the tasks which explains why we can still > have up to 21ms with the patch. Thanks!