Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp520992pxh; Tue, 9 Nov 2021 14:37:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPOKcRn4JERkL1rA0GcflkrreFzfE3LOcNuNCaM9sqsP7WSfGyuqWPWwN+6wdauVuZ3Nzj X-Received: by 2002:a17:906:2844:: with SMTP id s4mr7002298ejc.66.1636497439900; Tue, 09 Nov 2021 14:37:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636497439; cv=none; d=google.com; s=arc-20160816; b=qPIxwh9sHW2kIH2b8UyNL2MyGWxBcD1EXjraImTEwRxjtOlHwA+Xo7a2MRbhCEudxa X/PjK0MliBD71ttwYlj47oA1LdsDsTXK/UdfogOvl2ovrzxUGFL0VgGsKzlqpZVYutUJ UHdIHp9clse71UCOybBxJJTUROKUKqdAjkV3uvJmk5qXD724ftKfa6PDRcHGIC36jIKg 1XVOBtk2FeHCDViGk0l4OZuSFOZPyr3yjF+f7vVo8HoEAyf/HmEzR9TO2gzpTSc/LbcG xIxdQjUXx5FFL5frvBucnVNrtGoSNSwzme1KCt+AiXtQKDR5qARh6NFsJuWlC7a7vFHX SmXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=M/8dhRfwJVa4DbGul2wXDZMaW1G+0u9Zho02c+0fbvg=; b=iipngAkykS6D+rSJis48eXSw1harRtEHVPFdQAWswClxS82TPgqrDYnplAWxUboDHw W50JGP7Kn4Ltjpw69/alrNer7z/OPLCnQaIq531AwSN0IJVbW9PetNMThH7isZxUhKRn UpV9eUIWsE2ESWrJn000RvdQqfM0E19mOo7hHYf92baonzB4W2L5QkcOOHNnkGxWurcQ UerebW9YKCSiHIdn27i32GKbGn2N47ANM8c6xUnYndBmK2eXTNykGDphUonQ9Ht0Oo63 mMLhVZZoaJP7gMuHPmwEn5Mlpikor+giDTdXwdwH1e9Kfbb0bMCpoW1HnSv2w3ko78Pm bCzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=i1zsHWva; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l10si2197571edb.287.2021.11.09.14.36.49; Tue, 09 Nov 2021 14:37:19 -0800 (PST) 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=@google.com header.s=20210112 header.b=i1zsHWva; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235424AbhKIQey (ORCPT + 99 others); Tue, 9 Nov 2021 11:34:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235770AbhKIQex (ORCPT ); Tue, 9 Nov 2021 11:34:53 -0500 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD430C061766 for ; Tue, 9 Nov 2021 08:32:06 -0800 (PST) Received: by mail-lj1-x234.google.com with SMTP id m5so19118584ljp.4 for ; Tue, 09 Nov 2021 08:32:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=M/8dhRfwJVa4DbGul2wXDZMaW1G+0u9Zho02c+0fbvg=; b=i1zsHWvak0Z48bvXbSLAUT9qTUMXTZ/9dt4BWp0/Q5HLRsomYkzEeQm2ZeJhdLWGCv Gs9JaLDadSe+Zj5Jy3m5Y12u+A80/Qko0FnXeWbpwqvcxei2dfio3K6a0wLJi9PLR+MD tPFd57zm+C6gXyXBKIxRFhG6NL7YkBV+JXggQGswjgXIuhL0iMK82zv6Fa+lvA5iDu3d bJrm67+kGoOb7M0RqYvkhRgXePsjif9FZhUzQ0Tc34ssVGmWyMDFg+vPoG1ZWZETxPjj rX5ke2p7xfpXQDLbQyYyNXn7fR5Wwn6Gs8A9vp2kO1C/C0caI4YqRTvYHSQ7Qwt6ZoFL eH/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=M/8dhRfwJVa4DbGul2wXDZMaW1G+0u9Zho02c+0fbvg=; b=1gXQTZxTcJZBX3om+30dNXlNrPUp48NdHd6ykr8wlr/+JdFFrln1rQ/6BlatnmRwzX ygswq6iNYA+i0ghv5GUwRPungIJ+wGIn6aaIgrdOyPiN8T8m58ZaG0b4j98bZu4Np+Yv U/Ow36C/AHij6MJvGfrwOdAdBs/F0JQ2Uu2Vq58n0v9jI5Gfe3KUE6YtJrrLWA+YrobG y7BSgDMmBEqFgHULBIMksM5Zevh//oAG5QgmZ3oyg+0dDq/9jkxa8rG5K9q+b02R9WER nyI+YKpf5op5FIb80xiwTtRBCwx7DP9SIFCGg5kOntuiBQJr40WKtJ+WEoQpu1soOQxu lx0A== X-Gm-Message-State: AOAM5309jxOwpHefgnAaT2wTvKHkDp5bsgt90c9Jh+nCqUgSDaw9aSHq 5VU8/1eDIv+1ZKCNTBuigTBnXd2RbpSv5UCcEgJitA== X-Received: by 2002:a05:651c:1101:: with SMTP id d1mr9135458ljo.373.1636475524928; Tue, 09 Nov 2021 08:32:04 -0800 (PST) MIME-Version: 1.0 References: <20211104195804.83240-1-posk@google.com> In-Reply-To: From: Peter Oskolkov Date: Tue, 9 Nov 2021 08:31:53 -0800 Message-ID: Subject: Re: [PATCH v0.8 0/6] sched,mm,x86/uaccess: implement User Managed Concurrency Groups To: Barry Song <21cnbao@gmail.com> Cc: posk@posk.io, Peter Zijlstra , Ingo Molnar , Thomas Gleixner , Andrew Morton , Dave Hansen , Andy Lutomirski , Linux-MM , LKML , linux-api@vger.kernel.org, Paul Turner , Ben Segall , Andrei Vagin , Jann Horn , Thierry Delisle Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Barry, [...] > > Do you have a real workload or an example application using UMCG? > [...] A google-internal variant of UMCG kernel patches is used extensively to enable user-space scheduling of heterogeneous work items. The main use case is services that need to ensure user isolation; in addition, latency vs throughput workloads served by the same service are also well addressed by user-space schedulers. For example, a DBMS needs to ensure that one "hungry" user does not adversely affect other well-behaved users; but at the same time if the overall load is relatively low, users are allowed to go ahead and consume as much CPU as possible, as long as this does not affect other users negatively. Services that treat their work uniformly, and care only about raw throughput, usually do not benefit from custom user-space scheduling that UMCG, or similar, enables. Thanks, Peter