Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp939506ybx; Thu, 31 Oct 2019 03:21:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwnIJwZuWX/m/lZIk5wdkq0p+ted5iVa/4D26jQlAje817zWjB56Pt5qw68lYZ5Ksug13ow X-Received: by 2002:a05:6402:1292:: with SMTP id w18mr5022065edv.151.1572517291708; Thu, 31 Oct 2019 03:21:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572517291; cv=none; d=google.com; s=arc-20160816; b=zZHaWzeMoiTpUpESJpfc0gzevbhbBDAWp8MaYl+p81/AK1abHB8r/5CmRo3AW0rrmu G8cl1nPkuI/KMITkObNWp9DkGdpx0+vNnRhEIKyNMOmy62WQPX1oacFndX+mxFi0C0vZ EcycAu9tZxUancj1/EtL4nr9bz51LCioKYsYQmulEyqLLIuFzOc7zNMLLrN/qJ+Ivsr9 6+ZX55oydCmqif6Un3Cicl2vVBSfa5ckdIH8RXYn6GFQN+8mOPAwVjzFXH27iMNERa5J O4+bD4brwW6mpxvcS6DzLODjdpG8k6LCHqFZSljA8lXBX81w5YDOyXyD2BnBS8LJQ68L /pGg== 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=b3eA6XrkhN2pTDHCGvCLser2d7Aic4S5M5K7aSj0tvQ=; b=q3HBp3YkC0k8UDSoGmz9zAadxX0PvC1wOcQxhc2RPzURjGjswsVeQKQdYcij1Dg9GS sLSYlQxhl1hP0n6YqC2Pi7+Cg/FD9fKU1PWLU6OhDLCY9nCCVvF6AuVwbETdmlv72Vx/ /Yeyi+LgUzEJduCWNTH49lJSPlq+VRHDlgar6jOR/ISLhLU6TwWIeN35v6o3h46K/uWU uUjT8OhpsgDYsFxgdjACTSs0C/laRJu6hLpKkw3KxiK4ssbmAqHG1JrWXH+EA4s1MM5z tGSTsSk1U9P561aveKlECl8RYdx3Sm0zrr/E3WsSvsxuTr37YaqCaDe0J7xxniPrnIfj S9bQ== 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 g11si3038567ejj.11.2019.10.31.03.21.07; Thu, 31 Oct 2019 03:21:31 -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; 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 S1726937AbfJaKTK (ORCPT + 99 others); Thu, 31 Oct 2019 06:19:10 -0400 Received: from mx2.suse.de ([195.135.220.15]:46124 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726864AbfJaKTK (ORCPT ); Thu, 31 Oct 2019 06:19:10 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id D9028B12E; Thu, 31 Oct 2019 10:19:08 +0000 (UTC) Date: Thu, 31 Oct 2019 10:19:04 +0000 From: Mel Gorman To: Viresh Kumar Cc: Ingo Molnar , Peter Zijlstra , Vincent Guittot , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Ben Segall , Linux Kernel Mailing List Subject: Re: [PATCH] sched/fair: Make sched-idle cpu selection consistent throughout Message-ID: <20191031101904.GI28938@suse.de> References: <5eba2fb4af9ebc7396101bb9bd6c8aa9c8af0710.1571899508.git.viresh.kumar@linaro.org> <20191030164714.GH28938@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 Thu, Oct 31, 2019 at 02:42:03PM +0530, Viresh Kumar wrote: > On Wed, 30 Oct 2019 at 22:17, Mel Gorman wrote: > > > As the patch stands, I think a fork-intensive workload where each > > process is doing small amounts of work will suffer from overloading > > domains and have variable performance depending on how quickly the load > > balancer reacts. > > Just wanted to clarify this slightly in case it is confusing. Once a > newly forked > (non SCHED_IDLE) task gets placed on a sched-idle CPU, it won't remain > sched-idle anymore and we will again start looking for a fully idle CPU. So, > we won't put everything on a small set of CPUs, but just one SCHED_NORMAL > task on a CPU unless we are out of idle CPUs. > > Do you have some specific test in mind which I can run to test this ? > Nothing in particular. git test suite for the basic fork-intensive case (mmtests config workload-shellscripts), something fork-intensive but relatively short-lived like a kernel build scaling the number of build jobs (mmtests config config-workload-kerndevel), something fairly basic that scales number of running jobs and relatively long-lived like tbench (mmtests config config-network-tbench). The ideal of course is that you wrote the patch based on an observed problem that you decided to fix. -- Mel Gorman SUSE Labs