Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2459054pxu; Mon, 7 Dec 2020 07:11:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwTcbGQxV2Yd3F4JEbuCC2HymXCSUIHrQqjPZdM9he4ycDcrXd0P6YD/QhmgIgpMV/S8ZGh X-Received: by 2002:a50:8a8b:: with SMTP id j11mr21044293edj.19.1607353868174; Mon, 07 Dec 2020 07:11:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607353868; cv=none; d=google.com; s=arc-20160816; b=tPLJDmO57sJ8YmcpHQH6ar13bBL0ROiQPsCjvE6oxlIr5kcXHqlBNBXjcPNFf4+eSX +RcCjzhjm7U0VDrpFDYAcMfyoN+JwTqDiHrfQfWJRwsB4hplHloAT8G9JpkeZ++r5Fxz TIoQrWJctG4tHBK1Oyag1BNY5RidPl4AOiGHFb8f6mnC2oxPsNGBcWpP834e0kXCEqnt VqQqJtjBq7jlnpAxqERIH/kCQ8FhBoB3bvVwjGxc7GZrJlYmoz03gtopZGWLTR5mIl3/ EVxtP2R+zaoAjVDOZ6jAVBPh+8/nXRq7Jd3PWo/ApJ0D/47xX9U9UPi8N9gv24AStpY0 THAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=TWae73H+3s3blnSnVqUJJlDoPyT8hFMgQJ2+7vq3as4=; b=cM7n6HvywycAeBfw+ZcCI+EFq3jKJAhzRg+98NSh5TYUpErODoQi/O2brsrh6UqsSf WBfjOuKVDFBWOa1g9eIbEslzJFNqTBggmwu57ROmSojHFDfE9wiixWTyEXe/pkhoN954 Ig82UUgLsSDmoSDjA4OYdfQYycA7ScbFN3jpg9swzHZ7zEwb7ZbLD0WWAsu8vLihdgqe y6tQlGbrYUUJfKczOr/eft941TNQDEicLEa3xW7oYuAxcfSFqtkq5m9inUbP1OLYGqEC /ZwBg6hUh5ZlTVQzE4LZco2wK1AIi9ZCDVbVET98hJT0vZqUKGZ1b9GYuuVkGL3kdLDq aiiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mOQ5X9eh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f5si6821656ejw.117.2020.12.07.07.10.41; Mon, 07 Dec 2020 07:11:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mOQ5X9eh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726355AbgLGPGo (ORCPT + 99 others); Mon, 7 Dec 2020 10:06:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726000AbgLGPGn (ORCPT ); Mon, 7 Dec 2020 10:06:43 -0500 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DA32C061749 for ; Mon, 7 Dec 2020 07:06:03 -0800 (PST) Received: by mail-lj1-x243.google.com with SMTP id y22so470092ljn.9 for ; Mon, 07 Dec 2020 07:06:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TWae73H+3s3blnSnVqUJJlDoPyT8hFMgQJ2+7vq3as4=; b=mOQ5X9eh6BIEq28BKrVdrz8GGshT2deUgE9Yb3Stfx1n3TT+G1XzhQvOugV4DbKkH4 Zgnz8jW9endVfYFhGBVGroksa4zNHC1PKQfs9yJ897gPq44FR3cMtFgtpxSq5eN2+m3a bNBUoOARFUhmlYZMX4Ii25mWkkzT4Ytj9wWcFm9mZOGbKRoZmBEJQ5HXj2TPHQDxAOHt TCobHTbHQp1ju5ec+xg8wK0EgEWdCUqGuvcDiTFY7m42Ff1Ys03gA+hUaHmXgEYK2F2t AlEkRGXQHxk1gGz3c3x+eYnZ/ck15IUb0Z/JS5XeIl8qh/L0Hakj5B2rj531bHfia0dv IFVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TWae73H+3s3blnSnVqUJJlDoPyT8hFMgQJ2+7vq3as4=; b=IulgdT81oyN8Syiqk25TfhhDaJq3xfpNZEhm3ojzvaXFeMavdP2xfln3ZzQJrHCox9 pRiPYmsUIRiIYBEAjIBWCjz/c+MNFH5el1192dtR5tJUwYP01gtSEXEmxfeyfNcKVLGK WrdQbOM70Cw1B/DiMRc6DfvVL7OkszPINtEp7Unapd9t+A4d16ZwMjNQb6qzxOy3qnwF +B08jBFm+P8pIpxuqUkuqWwGbnuazc4VFOUr5NE4OyRQy2xs4oEz5YLJbvKRmaFcRrop 5HByz8ILwnw0lyIvYkZQGJ4yInrqCKlREMuHXAMceHUm7TnNj3UuGte4mmd85/MQZdwR ySJA== X-Gm-Message-State: AOAM5338Yxi7UAOEJJXQnibrIfsQFaWHibz/e6/9Q3GPoKTbsM9R8059 qaOE/6H17I4iBNbLbePvtP9YGQEvfzcg+FBf5l3uTQ== X-Received: by 2002:a2e:918a:: with SMTP id f10mr8427358ljg.156.1607353561759; Mon, 07 Dec 2020 07:06:01 -0800 (PST) MIME-Version: 1.0 References: <20201207091516.24683-1-mgorman@techsingularity.net> <20201207091516.24683-2-mgorman@techsingularity.net> In-Reply-To: <20201207091516.24683-2-mgorman@techsingularity.net> From: Vincent Guittot Date: Mon, 7 Dec 2020 16:05:50 +0100 Message-ID: Subject: Re: [PATCH 1/4] sched/fair: Remove SIS_AVG_CPU To: Mel Gorman Cc: LKML , Aubrey Li , Barry Song , Ingo Molnar , Peter Ziljstra , Juri Lelli , Valentin Schneider , Linux-ARM Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 7 Dec 2020 at 10:15, Mel Gorman wrote: > > SIS_AVG_CPU was introduced as a means of avoiding a search when the > average search cost indicated that the search would likely fail. It > was a blunt instrument and disabled by 4c77b18cf8b7 ("sched/fair: Make > select_idle_cpu() more aggressive") and later replaced with a proportional > search depth by 1ad3aaf3fcd2 ("sched/core: Implement new approach to > scale select_idle_cpu()"). > > While there are corner cases where SIS_AVG_CPU is better, it has now been > disabled for almost three years. As the intent of SIS_PROP is to reduce > the time complexity of select_idle_cpu(), lets drop SIS_AVG_CPU and focus > on SIS_PROP as a throttling mechanism. > > Signed-off-by: Mel Gorman Let see if someone complains but looks reasonable > --- > kernel/sched/fair.c | 3 --- > kernel/sched/features.h | 1 - > 2 files changed, 4 deletions(-) > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index 98075f9ea9a8..23934dbac635 100644 > --- a/kernel/sched/fair.c > +++ b/kernel/sched/fair.c > @@ -6161,9 +6161,6 @@ static int select_idle_cpu(struct task_struct *p, struct sched_domain *sd, int t > avg_idle = this_rq()->avg_idle / 512; > avg_cost = this_sd->avg_scan_cost + 1; > > - if (sched_feat(SIS_AVG_CPU) && avg_idle < avg_cost) > - return -1; > - > if (sched_feat(SIS_PROP)) { > u64 span_avg = sd->span_weight * avg_idle; > if (span_avg > 4*avg_cost) > diff --git a/kernel/sched/features.h b/kernel/sched/features.h > index 68d369cba9e4..e875eabb6600 100644 > --- a/kernel/sched/features.h > +++ b/kernel/sched/features.h > @@ -54,7 +54,6 @@ SCHED_FEAT(TTWU_QUEUE, true) > /* > * When doing wakeups, attempt to limit superfluous scans of the LLC domain. > */ > -SCHED_FEAT(SIS_AVG_CPU, false) > SCHED_FEAT(SIS_PROP, true) > > /* > -- > 2.26.2 >