Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp442660yba; Fri, 26 Apr 2019 02:53:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqyj2e92XEsfgYtg7XB1ahMnq3d1llityH5wHMOedZ2YYf4q7XO3UbIU71s0TArToTFSMF3y X-Received: by 2002:a17:902:aa83:: with SMTP id d3mr2556014plr.108.1556272428580; Fri, 26 Apr 2019 02:53:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556272428; cv=none; d=google.com; s=arc-20160816; b=EuuBIslI8BfMEJ8RrERzHVJMCGZXMzP1JCAKiXIlv5/PMv9x41eb/GMV5kOUaJD29k IzdeG5SBNjS5bG2s9DTmbg1FbRKftuf53QosmvFqoHcDAfwXltYyKmvFjJlPbXDSKibF kpzIeIXvewCHgbxidUvZun7x3SUsUFyu7aNUkxcwgMmnKdMOUmdjJfwIVlv7/Y+blZ6l 6/wdgj9H4pg7/2is8MViKvaRerGG7xwSLZ07bJXyD8ELWbqEvltv7c0NUxGZqyKRB9Cn rViPHi7/DEmlWAhUfIc8RrGo+ivhaFQoYXmeSOiU5TxTYpNZSig8qf2woD58bREgsKFF GOxg== 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:dkim-signature; bh=eIBUFNukdDQCSXCFAOGIysYD96g9fxkE9hYS/NQtUbQ=; b=yNHNuBtqzTPIKV6LF+B52fTSBqA4tVzgGVkOFYRovuEh5cbBEqJ1C+rRsQUI40OrMA vaS+cZ2eHbCnMM3auuervWT+HOXetUOVPEq0+TPCyhCkgn0vRqidAwm5x+qn6xPg7ZaQ CP2jPR438+fTFQmtJEMtdPQ3PIKKjIp6XO6FZyOb1kMazr/4d8HPTtKPATyjpSTVNLNb k8ed2cGXlqzmMeBTtTwjvmRbMyzeVPd44QVJukrQvY202Ss8JetA6H4LntKm17dnVAtl DhfC8kRTHraQMvFy+YnHKtoB2pGq8imOz8CEY8K4HGMuLBDOr9OCnDs9IgoqY8+dhcQ+ uSxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Mub1JIm+; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g12si25263887plp.340.2019.04.26.02.53.32; Fri, 26 Apr 2019 02:53:48 -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=@gmail.com header.s=20161025 header.b=Mub1JIm+; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726303AbfDZJv2 (ORCPT + 99 others); Fri, 26 Apr 2019 05:51:28 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:52442 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726025AbfDZJv2 (ORCPT ); Fri, 26 Apr 2019 05:51:28 -0400 Received: by mail-wm1-f68.google.com with SMTP id j13so3057871wmh.2 for ; Fri, 26 Apr 2019 02:51:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=eIBUFNukdDQCSXCFAOGIysYD96g9fxkE9hYS/NQtUbQ=; b=Mub1JIm+6yGSpxTJNCw09BR55aYZEz/mdljtny3p9Kl3Sxic8HLWMO8ek+qIG8eEza cCcSmCIqV4QKy0e5G6qtI6GW6KrHIpJ050qDWAkSYgtRF1QAMMQpKbgTW+wvN4E1PoDh 04NnQ+9XpWxen2MAs1BV8gdi1E9vsBWgYnEjTVWp7uz263b9V98prHsR+LqmLzU1fKh5 JSXTkEuYSEK6Agao9yYdik0e2P8jXpLWHDEy15jyP+xI54NZj2p7fmc6a+rB8ja+idAM VC3sXXxkkLHGNr0biiAuL0/EFYtp6WLLCe63YIHIzIpi5gp8OPyR94PeIuvMoMcuMCS3 dn8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=eIBUFNukdDQCSXCFAOGIysYD96g9fxkE9hYS/NQtUbQ=; b=nGzUVoBRI5yX+jcg8DFtA7Www6Iwy1Wcbjr4ex1AwfryahRcc+DombbPsrJ4KlBzEI /5EoZ962hwCi+G59KLag5kq91qMa2GjHSR1mbGiOfx04a6Yohc5q1/R8IdxDCvdQLVg/ +Esa+kGNpXEK8IbHXeDWqX6Z2owEE4wem+XMmF9WfRcQtH0Usz4l6Dxt5rv05gHgNNcF gbyxnmJO+YkY1/tfEcQP6QIIQ0nwU6+cwVJpsrd0cgABVkDv9ma7/O03XRZtq7ro4hIV 35bgTpiVbeF7HYaq+3vgvzb0rXujKADWf8AE/ztllF89ez32h/yTLCiRQYKUfe3xjV4S 3OYQ== X-Gm-Message-State: APjAAAWD28UJzTQFU3ZFpseafmixXJLsthJKsMUdqMNSpc7oeUt8fm+6 EmZBCfuvo8rxqEO27mi8GY4= X-Received: by 2002:a1c:6342:: with SMTP id x63mr7149854wmb.58.1556272286920; Fri, 26 Apr 2019 02:51:26 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id y125sm36631305wmc.39.2019.04.26.02.51.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Apr 2019 02:51:26 -0700 (PDT) Date: Fri, 26 Apr 2019 11:51:23 +0200 From: Ingo Molnar To: Mel Gorman Cc: Aubrey Li , Julien Desfossez , Vineeth Remanan Pillai , Nishanth Aravamudan , Peter Zijlstra , Tim Chen , Thomas Gleixner , Paul Turner , Linus Torvalds , Linux List Kernel Mailing , Subhra Mazumdar , Fr?d?ric Weisbecker , Kees Cook , Greg Kerr , Phil Auld , Aaron Lu , Valentin Schneider , Pawan Gupta , Paolo Bonzini , Jiri Kosina Subject: Re: [RFC PATCH v2 00/17] Core scheduling v2 Message-ID: <20190426095123.GE126896@gmail.com> References: <20190424140013.GA14594@sinkpad> <20190425095508.GA8387@gmail.com> <20190425144619.GX18914@techsingularity.net> <20190425185343.GA122353@gmail.com> <20190425213145.GY18914@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190425213145.GY18914@techsingularity.net> 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 * Mel Gorman wrote: > > Interesting. > > > > Here too I'm wondering whether the scheduler could do something to > > improve the saturated case: which *is* an important workload, as kernel > > hackers tend to over-load their systems a bit when building kernel, to > > make sure the system is at least 100% utilized. ;-) > > > > Every so often I try but I never managed to settle on a heuristic that > helped this case without breaking others. The biggest hurdle is that > typically things are better if migrations are low but it's hard to do > that in a way that does not also stack tasks on the same CPUs > prematurely. So instead of using a heuristic (which are fragile and most of them are also annoyingly non-deterministic and increase overall noise and make measurements harder) I'd suggest using SCHED_BATCH just as a hardcore toggle to maximize for CPU-bound throughput. It's not used very much, but the kernel build could use it by default (i.e. we could use a "chrt -b" call within the main Makefile), so it would be the perfect guinea pig and wouldn't affect anything else. I.e. we could use SCHED_BATCH to maximize kernel build speed, with no no regard to latency (within SCHED_BATCH workloads). I suspect this will also maximize bandwidth of a lot of other real-world, highly parallel but interacting processing workloads. [ I'd even be willing to rename it to SCHED_KBUILD, internally. ;-) ] Thanks, Ingo