Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp441622ybi; Fri, 26 Jul 2019 12:24:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2Y0NB3jMx4Uj0mSUsC8BzQhYDSzHMKwqiFJ+dM5szsGhty7i47tm2ATmVXmbRjEPMcXMk X-Received: by 2002:a17:90a:2ec1:: with SMTP id h1mr100372811pjs.119.1564169061730; Fri, 26 Jul 2019 12:24:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564169061; cv=none; d=google.com; s=arc-20160816; b=Ykk/Cv1DaKwacRLpsFMdMByD5OTwMzHHBUlCXqsaL3Ck3aFAmoDdqVQTu2ZvZJKjeM mD6LcFTDmSp4sUoQZCNgCXZkN53YjFD9TZYkRJThIhvUFCAD9Su0fYIEY22hJ6ZivLHW Bn2gTMJGQcZhda1yzWyQvzqopFSrhMHuIQ+8/KChfapizlEX9+mf5TUcfzX63DvpXkrH cAehVKmtulW6Q8sX3HDS4bjfHSD7sgnzqTEjRuWIJdjI/Mw1/IItJQoA7JYBA2uc8san 7oV/V5gmEjrsDORxEILuT9H9SwuBkkKwRMNNBnWgL8zXW4y+GGhiigocyYgs+5pu7poX 6mIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:cc:to:from:date:user-agent :message-id:dkim-signature; bh=vs0plZoW9YBvgEuWj8ZX0N8sgCZZcP+k7Xdkb3rZzxY=; b=c+Ru0b97x1Dafjd38nL4j5rgVBQKjjStSZ+ukuR5rnqRl2RAQxL0Sx+ECyow3JxXat Ht5jN8LXbKwUbeeeJgDJBKZk+rGQWYLIr3/dq2zAgh3hBckbNb187pgV+8cIcqvoeWyF V4tbIZzyAaQTJWCfsTLhfs6GMvMqcfJwE3l1wkBpQa7M7A/lvNJI0ZbR3H7d1wj70PZX OWuLBnRCbjMemUXzO2dwnQdIJiGG0i3IsF+4Cyxics5OZIP0cx8J8nAuNTHkMYD4MuAQ G0PdYrB6Gv50UZnVVURIcgPVIx4bheCU7nf62os2/0NtTyk29QuDP2qqnOeICAroN4cf Vg/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=GGSBKs0a; 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 o3si23837222pld.102.2019.07.26.12.24.06; Fri, 26 Jul 2019 12:24:21 -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=@infradead.org header.s=bombadil.20170209 header.b=GGSBKs0a; 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 S1728514AbfGZQU1 (ORCPT + 99 others); Fri, 26 Jul 2019 12:20:27 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:52114 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726007AbfGZQU1 (ORCPT ); Fri, 26 Jul 2019 12:20:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Subject:Cc:To:From:Date:Message-Id: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=vs0plZoW9YBvgEuWj8ZX0N8sgCZZcP+k7Xdkb3rZzxY=; b=GGSBKs0aM1sFhRvTPD/9SIfpm OPjMZ6gVew/Qy+h66ThbHSRf2pVqFDUsbgQCyvTg/kU6XXUNQSrHq33ViVNMxtdzzzAsvLUYxKBxW RhsI+scary6Fi6zHsQr+Hn5Q/qbjXo35i+UU5oW4l1A8ytiat4Hc+HCnwzZZmU7UuqfscmtS611Bf nCY5DbXA03HjOXKJWOTaCTxkgY+4IDPByaqTVU9cQeOdA3UxLJ0UvGKtGAXIxHw2vB8bnTqSuZFQC fLR17cwB9agPYNKXAt7OYgy05Z/JbMsIdmfDlikd0soqPyIEhIRn/xzkb6rb1tQEh8SnCI53AnQHU WLm2THeGA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hr2wx-0006Zl-Fm; Fri, 26 Jul 2019 16:20:07 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id 3BA2B2022974C; Fri, 26 Jul 2019 18:20:05 +0200 (CEST) Message-Id: <20190726145409.947503076@infradead.org> User-Agent: quilt/0.65 Date: Fri, 26 Jul 2019 16:54:09 +0200 From: Peter Zijlstra To: mingo@kernel.org, juri.lelli@redhat.com Cc: linux-kernel@vger.kernel.org, dietmar.eggemann@arm.com, luca.abeni@santannapisa.it, bristot@redhat.com, balsini@android.com, dvyukov@google.com, tglx@linutronix.de, vpillai@digitalocean.com, rostedt@goodmis.org, peterz@infradead.org Subject: [RFC][PATCH 00/13] SCHED_DEADLINE server infrastructure Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, So recently syzcaller ran into the big deadline/period issue (again), and I figured I should at least propose a patch that puts limits on that -- see Patch 1. During that discussion; SCHED_OTHER servers got mentioned (also again), and I figured I should have a poke at that too. So I took some inspiration from patches Alessio Balsini send a while back and cobbled something together for that too. Included are also a bunch of patches I did for core scheduling (2-8), which I'm probably going to just merge as they're generic cleanups. They're included here because they make pick_next_task() simpler and thereby thinking about the nested pick_next_task() logic inherent in servers was less of a head-ache. (I think it can work fine without them, but its easier with them on) Anyway; after it all compiled it booted a kvm image all the way to userspace on the first run, so clearly this code isn't to be trusted at all. There's still lots of missing bits and pieces -- like changelogs and the fair server isn't configurable or hooked into the bandwidth accounting, but the foundation is there I think. Enjoy!