Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1112913pxy; Sun, 1 Aug 2021 13:08:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlcEGLhoyPDFfHo10U6Aovl63Y/QKEjBXsEx2hgCNFN0QjcOMxgvRec8++g4RoZYJKeDKa X-Received: by 2002:a17:906:4e44:: with SMTP id g4mr12472625ejw.246.1627848483556; Sun, 01 Aug 2021 13:08:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627848483; cv=none; d=google.com; s=arc-20160816; b=uKt1z6kPG3kEbTpFoAcl5nXG5uIC5MAVBUT1Rz70l6W2F2hOeuSpNk1o7e3XZGxN9t 1dMHYTlCD0gws9O1QZ+PBTbr5MUPFHE/Igw79qlAfiL6EQD15tXE/xWlOI9ShBcZN/MH qs1l7uDthq6iRwGOSZxjAcAToH4Xtl0LSPc1vj2YOdXWK5bXNpuCuI1K0h6pK7Oyiunw pW94Gv6Gw5Zy8Mq2lx0qGkM+XlYeZ3gaLKA2o617h/8cglKRksN62kCNy0ToJvxH36J1 BjhJas1+XwlcBixHBBNYeUOaLYLLpST4SuIQQGkMRdoXmPPEBgdfLD5gzNb8G5oB4JdA ELhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=azZm4s2ItKFFM6P1T/V7Z4U9NU3xhdubwb5X+bc1wpI=; b=WUylJDBy5jlrahEygJoYiq+7TDvotAQTbxbMnTZvUZ7EoIoZ/r2s5aLHdpEFKen+Qm GmE6iaBUuGHcA7nuHuKoX4RAhDQ41AQzWAmiUtGZSrwZ3uWsd53gLxN+s9kfFgMyvVs8 4MsD+0IYgjPCEUHF+z9BUauwKZ9Xhbr6f/kNv525T/0IcpU/0Ap8Ydru18z7997proLh eAinDmMoKqi6YIyskZGz1tNyigZ20zjH8rlBrI/gTLmjyZ3M3QU9d7Tf2bL/dmj1A13E FwTRqDX5gcMk+Tai5K5EUbE7NHBcSms5pZGtxD/4QfkMLNYKxclsok1FsmTx6NrrCoR/ RUtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@posk.io header.s=google header.b=KuNyqP+R; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eu9si7216704ejc.135.2021.08.01.13.07.40; Sun, 01 Aug 2021 13:08:03 -0700 (PDT) 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=@posk.io header.s=google header.b=KuNyqP+R; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230230AbhHAUGb (ORCPT + 99 others); Sun, 1 Aug 2021 16:06:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbhHAUGa (ORCPT ); Sun, 1 Aug 2021 16:06:30 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 691F1C06175F for ; Sun, 1 Aug 2021 13:06:22 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id u9-20020a17090a1f09b029017554809f35so28463830pja.5 for ; Sun, 01 Aug 2021 13:06:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posk.io; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=azZm4s2ItKFFM6P1T/V7Z4U9NU3xhdubwb5X+bc1wpI=; b=KuNyqP+Rlms7E+4zWlYj6P8Th/4KnDCAoxkX1SuRhop94eaeeFLy94V4Mvh2qcWLkn gphUC6LKNMPvYDZrVJDSuoWyAqC4i9C7iNLtNJ7eH3bBw1cwvXisWq5TTccu2hu1esVV UPGXWPloaMY2F1lELn7m3oihgQJEYFk6h7qRVk6UMdDn/Kn2Fs9ZS4CHF9EYfltm0Lhl 7I/PtQybXlEgRAaFEXYWIVh2s4dCqZ9swhFIS1h2938988jDh1h66bMloBeJzPabUSVy 4EHZdjgzIXqCS4DQYV+ig7tYNpcvKojdSVHNyYCBhK2yGmSrjYcaRN8RLuPKRIyXW13j uQlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=azZm4s2ItKFFM6P1T/V7Z4U9NU3xhdubwb5X+bc1wpI=; b=oN4u/1sjirODoZ7On8cTTEQjiGxEwCULTTnCnAoNAoJl4ZGXv/k2o0iCpYJYecBIlv gJ0zeCBZ3O3Hmi02sGuLUnFM9YgSpBIEUo6NaKvsbvm9mVoFfaJ1uJt3HWIaUOrLQNKJ ip0rMCfA6oKyIl4hkFos2YEWJ3UBWWVxKxBkAwxPEEMxF2Y0duP0e4qT/TyVBQv5WjKT BITkDG/h09EzAgH0jGeA9em0Cd1v9fC39rYxWu7/AMslQkKRXO8GTJPyYaAdBd6T2jws FkjhH39SGs87m/rHt7uG/5E/IQ7LN0K8o0wQq3JKL8Ui0HLPxj3HgzAhYVV9Pt29f0Ch bYzg== X-Gm-Message-State: AOAM530m/pMMQ3SblaklYtk8bU0PuEmrDwSSo/EbY4IMfUHvI90LLju0 s1zwulxhZAuZiAgRXEidRNA+iw== X-Received: by 2002:a63:1748:: with SMTP id 8mr2227544pgx.369.1627848381272; Sun, 01 Aug 2021 13:06:21 -0700 (PDT) Received: from posk-g1.lan (23-118-52-46.lightspeed.sntcca.sbcglobal.net. [23.118.52.46]) by smtp.gmail.com with ESMTPSA id b3sm9293714pfi.179.2021.08.01.13.06.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Aug 2021 13:06:20 -0700 (PDT) From: Peter Oskolkov X-Google-Original-From: Peter Oskolkov To: Peter Zijlstra , Ingo Molnar , Thomas Gleixner , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org Cc: Paul Turner , Ben Segall , Peter Oskolkov , Peter Oskolkov , Andrei Vagin , Jann Horn , Thierry Delisle Subject: [PATCH 0/4 v0.4] sched/umcg: RFC UMCG patchset Date: Sun, 1 Aug 2021 13:06:13 -0700 Message-Id: <20210801200617.623745-1-posk@google.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an update on v0.3: https://lore.kernel.org/patchwork/cover/1461708/ Key changes v0.3 => v0.4: - made idle workers list logic simpler - only one idle server tracking - removed two fields from struct umcg_task - added timeout handling - added worker preemption - added a doc patch that now documents the syscalls and state transitions. More details on the state of the patchset and future work are provided in the patch 4 commit message. Peter Oskolkov (4): sched: add WF_CURRENT_CPU and externise ttwu sched/umcg: RFC: add userspace atomic helpers sched/umcg: add Documentation/userspace-api/umcg.rst sched/umcg: RFC: implement UMCG syscalls Documentation/userspace-api/umcg.rst | 532 ++++++++++++++++++++++ arch/x86/entry/syscalls/syscall_64.tbl | 2 + include/linux/sched.h | 6 + include/linux/syscalls.h | 4 + include/uapi/asm-generic/unistd.h | 8 +- include/uapi/linux/umcg.h | 114 +++++ init/Kconfig | 10 + kernel/exit.c | 7 + kernel/sched/Makefile | 1 + kernel/sched/core.c | 20 +- kernel/sched/fair.c | 4 + kernel/sched/sched.h | 15 +- kernel/sched/umcg.c | 601 +++++++++++++++++++++++++ kernel/sched/umcg.h | 211 +++++++++ kernel/sys_ni.c | 4 + 15 files changed, 1528 insertions(+), 11 deletions(-) create mode 100644 Documentation/userspace-api/umcg.rst create mode 100644 include/uapi/linux/umcg.h create mode 100644 kernel/sched/umcg.c create mode 100644 kernel/sched/umcg.h -- 2.25.1