Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1740059ybv; Fri, 21 Feb 2020 02:41:04 -0800 (PST) X-Google-Smtp-Source: APXvYqzuyK89YB74j7lisWqWcO6DHM8sKKJ/kxdeJzUJg0W8dsOHwpCNqvpzSLn0edCvlItC74ak X-Received: by 2002:a9d:7357:: with SMTP id l23mr26556812otk.10.1582281664304; Fri, 21 Feb 2020 02:41:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582281664; cv=none; d=google.com; s=arc-20160816; b=v22NM6dfTVNGJssC7g60Fb5SPNuYUlEnhos7UXzc2Kjvp1DHWQGKcsododUXtTDa8w cJKFh0xmaclskdZA9l3Ro5JJj+UlRnuuwQZdze/mNJPhNvL74ZY/Wnetaq3RusZ5fXjU w4uhpDfUW9Ge2cpgqY0Ds6vR8pRhFXy6rsaG13eyArpn4weYSke7eLtZMPmHPKDFMXu0 8He14R3rc0UUYC4i18mkCw+ABwETbFwnTJw28556STRs0qn2hFaSFox9CvWYspYfdaL6 DYMXYjyJE9cXNIOYX+w1+S/60c4WJWYU/sRDXZRYvU0Z89uHf8LAUl2VaF9HItwwSod2 eJxw== 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; bh=ofZHhcQ5IKhsYBzuQXY/OreHiBVRvj0wPeN9W/Ejaws=; b=XNB+7z+KaSJqlBpVpq0iW3oIUtlPxyUNyQ19n1UjskOBU9X+bsbaCoXbH4YMbIouOI 7IiNVVvIXQNu2eNZkHAAr+IOaILd3YD8ITRyiiJp2uZYh5jS+gE4CDhxm45JLDxyf9iD I8BKYst//a0z+a2lO37ef9GNFh4Ly5iyYxKN80UpvZyUXvbv1cX7PH2pkuAodCuiciZc U3mawwDBIPukAc+14EjAr9cSVaAt21+ZcoJ4UyS/WTzknEwAUQoSRg+VU0Q5k9KXGIL5 dhAot1BFleFWmTC+LjSS7j12QXGvTu5xW6/kGrE8H1XJffNFaBkuuDq7J9TqKM/GBcO8 bL7Q== 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 o18si1247299otk.80.2020.02.21.02.40.51; Fri, 21 Feb 2020 02:41:04 -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 S1727239AbgBUKkY (ORCPT + 99 others); Fri, 21 Feb 2020 05:40:24 -0500 Received: from mx2.suse.de ([195.135.220.15]:54242 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726976AbgBUKkY (ORCPT ); Fri, 21 Feb 2020 05:40:24 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 3DA21AC5C; Fri, 21 Feb 2020 10:40:22 +0000 (UTC) Date: Fri, 21 Feb 2020 10:40:18 +0000 From: Mel Gorman To: Vincent Guittot Cc: Valentin Schneider , Ingo Molnar , Peter Zijlstra , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Ben Segall , linux-kernel , Phil Auld , Parth Shah , Hillf Danton Subject: Re: [PATCH v3 4/5] sched/pelt: Add a new runnable average signal Message-ID: <20200221104018.GR3420@suse.de> References: <20200214152729.6059-5-vincent.guittot@linaro.org> <20200219125513.8953-1-vincent.guittot@linaro.org> <9fe822fc-c311-2b97-ae14-b9269dd99f1e@arm.com> <20200221090448.GQ3420@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 21, 2020 at 10:25:27AM +0100, Vincent Guittot wrote: > On Fri, 21 Feb 2020 at 10:04, Mel Gorman wrote: > > > > On Thu, Feb 20, 2020 at 04:11:18PM +0000, Valentin Schneider wrote: > > > On 20/02/2020 14:36, Vincent Guittot wrote: > > > > I agree that setting by default to SCHED_CAPACITY_SCALE is too much > > > > for little core. > > > > The problem for little core can be fixed by using the cpu capacity instead > > > > > > > > > > So that's indeed better for big.LITTLE & co. Any reason however for not > > > aligning with the initialization of util_avg ? > > > > > > With the default MC imbalance_pct (117), it takes 875 utilization to make > > > a single CPU group (with 1024 capacity) overloaded (group_is_overloaded()). > > > For a completely idle CPU, that means forking at least 3 tasks (512 + 256 + > > > 128 util_avg) > > > > > > With your change, it only takes 2 tasks. I know I'm being nitpicky here, but > > > I feel like those should be aligned, unless we have a proper argument against > > > it - in which case this should also appear in the changelog with so far only > > > mentions issues with util_avg migration, not the fork time initialization. > > > > > > > So, what is the way forward here? Should this patch be modified now, > > a patch be placed on top or go with what we have for the moment that > > works for symmetric CPUs and deal with the asym case later? > > > > I do not have any asym systems at all so I've no means of checking > > whether there is a problem or not. > > I'm going to send a new version at least for patch 4 and 5 using > cpu_scale as initial value and fixing update_sg_wakeup_stats() > No problem. FWIW, when I see them, I'll slot them in and rerun the tests as the previous results will be invalidated. Obviously the asym case will not be tested by me but I imagine you or Valentin have that covered. Thanks. -- Mel Gorman SUSE Labs