Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp685816rwb; Wed, 14 Dec 2022 01:13:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf4bard9FjDSSbW8Fh1iTptjmrv5Th1BwbuOMXRdxJBIZVxED994Y+WuV2ZuupS6s/l6VQ6+ X-Received: by 2002:a05:6a20:699b:b0:a3:22f3:27ca with SMTP id t27-20020a056a20699b00b000a322f327camr34220459pzk.56.1671009211030; Wed, 14 Dec 2022 01:13:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671009211; cv=none; d=google.com; s=arc-20160816; b=oGpg5YjCm3vQ05tYdp8M8c/c90c+czsePHGLQK7O+mVW4xP91xONA+oehPsnYnoCqh oSJ5Z2iBn2LjzDUOlDP/FGfkLNqZ7F8ZzgKxMxIK2CnEWQsdSlRZPIcV19/kI1MtxaEg nwDJKfgtm7dUp1jgSaUGKB1Jyo5+uIf6S0iggmNoWS0q6hsNk8mtMMQ2NAdSBWghUtcT PKJIUwIFRkqgQVsuA4zmk376wbjilKmWgJk/RRexYA5lXZ0ObLUBxLjICn7R9bc7Sb6I peiYeLYwadzeiXRavt5kpMr+D6kJQgSp2w9H838X97J7b+4vkYvxua+PkUSiEuxwII/t AyIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4qLs78eGQyGNi4vbKjmNfC+O4t106kpYiQycgssyLgg=; b=ty6CfOIJUAL1u+x1s8kAk/DbM9MEWNnbK6l3kJ0bNQeW5/PVfXNlfz39HVYWH0Rp1h syds0RylABkU4Hqs88b3SdYJh/tu+5VUMTbM3o41qQz9xPJWUO9wCgWBrCus4hOwsWk6 sM+6PbOIL5ZCh4AjS6Qn0ZUPRJXTcvmzUwHrSNYmbNWayXgh4xzi3VKtbjoGacLUuGHa 2IjAwXBbsvha2qQOHa1GlrM7MGZbHeWudF+90dZiee9GZZNeXKZEb6pwWeTjajYlXRRO DWtJqqjvpoMZ6WRdzIBnIXVOqYv5V+T7t22mTy2OMIC+0owmPw8O+eWdFqzQ3tTGdayY NVhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=AlMdipXW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d14-20020a056a00198e00b005786897552esi9208036pfl.33.2022.12.14.01.13.22; Wed, 14 Dec 2022 01:13:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=AlMdipXW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237832AbiLNI4M (ORCPT + 70 others); Wed, 14 Dec 2022 03:56:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237818AbiLNI4L (ORCPT ); Wed, 14 Dec 2022 03:56:11 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FD53193E5; Wed, 14 Dec 2022 00:56:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=4qLs78eGQyGNi4vbKjmNfC+O4t106kpYiQycgssyLgg=; b=AlMdipXWKjoZvGLLYhBVQtp7cU ++3Di3oxtUj/+FTTQjM/dMkIw7Kr6garFQt0pvSM/zVv0rb8RggX1BiJgX/lQw8HpxczpcUvDDLEB gjTa7HJrbWQh69l2hIQ25pJ2G9Tm9dvKs+/qv7U/RGoxnNW2loI/6P7z3ydQ8FWq433dfEMxQ1glm D0Atos5fdgQ/nV85bKV0BODWhpaUvb7lLK/3iHtjxjkP6zbgTSRODjsC0UGIXVDWOHD/BfbySyNO7 60EbEj87UfnkCy8T+pQaQi1O7u2acmmGT0rYV3Ur29WnWo2OytMKZ4ASxaV3yTL//v+DKgouR9X+Z Eqrd+4Qw==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1p5NYL-00D3P5-5R; Wed, 14 Dec 2022 08:55:49 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 8003830030B; Wed, 14 Dec 2022 09:55:38 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 51696202344B3; Wed, 14 Dec 2022 09:55:38 +0100 (CET) Date: Wed, 14 Dec 2022 09:55:38 +0100 From: Peter Zijlstra To: Josh Don Cc: Tejun Heo , torvalds@linux-foundation.org, mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@kernel.org, brho@google.com, pjt@google.com, derkling@google.com, haoluo@google.com, dvernet@meta.com, dschatzberg@meta.com, dskarlat@cs.cmu.edu, riel@surriel.com, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, kernel-team@meta.com Subject: Re: [PATCHSET RFC] sched: Implement BPF extensible scheduler class Message-ID: References: <20221130082313.3241517-1-tj@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 13, 2022 at 06:11:38PM -0800, Josh Don wrote: > Improving scheduling performance requires rapid iteration to explore > new policies and tune parameters, especially as hardware becomes more > heterogeneous, and applications become more complex. Waiting months > between evaluating scheduler policy changes is simply not scalable, > but this is the reality with large fleets that require time for > testing, qualification, and progressive rollout. The security angle > should be clear from how involved it was to integrate core scheduling, > for example. Surely you can evaluate stuff on a small subset of machines -- I'm fairly sure I've had google and facebook people tell me they do just that, roll out the test kernel on tens to hundreds of thousand of machines instead of the stupid number and see how it behaves there. Statistics has something here I think, you can get a reliable representation of stuff without having to sample *everyone*. I was given to believe this was a fairly rapid process. Just because you guys have more machines than is reasonable, doesn't mean we have to put BPF everywhere. Additionally, we don't merge and ship everybodies random debug patch either -- you're free to do whatever you need to iterate on your own and then send the patches that result from this experiment upstream. This is how development works, no?