Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp760339pxb; Wed, 8 Sep 2021 11:39:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZg/kuRAKNZo5PLWKJal22MMKC0L2867DTazBgVK/hXyLhsVxGh9TzpT7GFtUwINJcwq0R X-Received: by 2002:a17:907:75d9:: with SMTP id jl25mr1370727ejc.4.1631126351494; Wed, 08 Sep 2021 11:39:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631126351; cv=none; d=google.com; s=arc-20160816; b=m+PRfHbv4KrcGWSQSu0Me0pdn4vwWuQt3Iyeh+uLOGTS6Ta+18+9zpTRl3tLWy6aKF 44yK3/nfAIBjp3kXZnM25ACh4e5VoeJpA2Xqq0UUPtUBvbwT5I8W9oQ30z3RKcSWqAuF pWw0IC+t24ZGJnKszpo2b3lnpVU2N0wuvoba54P0A4bih57gzf1T0ENm2g/j3mmvsPd8 nAPNTkjW6ytYxeuny598G3gYj7a52Iu5qmzjfcGeczI8l7CsEJdy7g0h3fEbeu+Q0UDo A0K/89iEY9xCM0wJQSTXJtK5jVGNlR9Ofk78vq4lHLeCcp90AZDmRSDjQ6S/zxK+aXqO 1vpw== 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=czFKAT4Di1kKVjpRX4ncrD9kt4xU5KfWJk/P6TiXJug=; b=U4IQkYBnwuUiqk0V1qR0CdqTsXNsolyWcul7c+mnB/AITnpgRhLdIOhso2UX7soR7h cBxfLO/+pBtRU9y7ir5A0KU5SXHA2Ure3Qi+l7gq0KPTWTPRHAfnbNPjPYts0ldra4gc lJ+NA8iabWcTeMH0Nhz/Qcw9gbpvKQf9pwKMpFn5czmaRzWIf9CNwHjiaNfKho1jXLVm B3DYfTNf9kuOyu9HT5BfXqKAXkiZGbJGMPOQ4TdABCZhRfXtkSLdtnwnqVm3zG6g2M9w g5Bsmy/TTU1KX73xTQ9ey1s5DK0yFymj0vIxDR8bpB478jHwDErXdr5X8f7tOpkCAKp6 +h5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=sKebpZ0G; 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 bl23si2921140ejb.497.2021.09.08.11.38.26; Wed, 08 Sep 2021 11:39:11 -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=@google.com header.s=20210112 header.b=sKebpZ0G; 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 S1350181AbhIHShl (ORCPT + 99 others); Wed, 8 Sep 2021 14:37:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345805AbhIHShk (ORCPT ); Wed, 8 Sep 2021 14:37:40 -0400 Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D504C061757 for ; Wed, 8 Sep 2021 11:36:32 -0700 (PDT) Received: by mail-yb1-xb2a.google.com with SMTP id z5so6219756ybj.2 for ; Wed, 08 Sep 2021 11:36:32 -0700 (PDT) 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=czFKAT4Di1kKVjpRX4ncrD9kt4xU5KfWJk/P6TiXJug=; b=sKebpZ0GYa3NUpk7ZZpc/alL6MeFz4PBjPfL4/wsce1NbcpH1MU5OR7O+C6x3RtRjo BzKPQWBGzZzvaHPw7iuhNoGbeI4ajWAER/D275f3+FTubd0wmhXBc6Zon/LGiRLrSVq+ j3fPelIbmY5vZ4nf4GVG/7cTQ0oKIjzZ98PsVjUuMPA2iu/vcuDOQwQeJ4bDqqnhMTVh 2MobHNH+jk4u8wySdQQziE2U2KYMWQDqV4wTEuHRWCsgOrxbTujbnQOMOnqaqeL1FOA2 4OG3bkxxD14pOm3GPrbxNxeQC1njAgBbCVXs77w+pNRYZ/z90u7tgoJmMiBz8HchZzbh /Vbw== 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=czFKAT4Di1kKVjpRX4ncrD9kt4xU5KfWJk/P6TiXJug=; b=hZfJaj6Djs9hN54IFK71VUwASFgCqZy6WjtnYPpDqvLrW03PFPfaJu0xKXqoqC0Bkf GNmZKhHAAB7yYsVN/Mu/9tCAGTCKCMH9IzkwRGpyRUXuhWraN+y8xilLIixKDS6xYiSL bJelZ4ABLy4/1W9NYUm7tcgTxqcZDG/m3yPfiQJDQjiZexiZjyIs8ad23FFTYmqUzuq0 RzpVJe/sp3cXTUl7+oX/ATNGJnOuEisOFX1NvjdIFYmu4Wat1aXisfN21Tsxeds6lT9o xylK3SccNohyFry5BZZTwnGSHjFGs5NurlJZISgsiRnY/kEuru0P6U2fU3gkjnYM6Bek NaeQ== X-Gm-Message-State: AOAM530sONtWJpKPGZy7Ic+CHpVVDv0N8lykiRTQdWCPs3AHQBsfhi+m 58/foOLtC0GFct7yPNfSXrKLkHxXZjMgdNqxZEVZ1Q== X-Received: by 2002:a25:ad45:: with SMTP id l5mr7750425ybe.228.1631126191516; Wed, 08 Sep 2021 11:36:31 -0700 (PDT) MIME-Version: 1.0 References: <20210820010403.946838-1-joshdon@google.com> <20210820010403.946838-2-joshdon@google.com> In-Reply-To: <20210820010403.946838-2-joshdon@google.com> From: Josh Don Date: Wed, 8 Sep 2021 11:36:20 -0700 Message-ID: Subject: Re: [PATCH v3 1/4] sched: cgroup SCHED_IDLE support To: alexs@kernel.org Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Paul Turner , Oleg Rombakh , Viresh Kumar , Steve Sistare , Tejun Heo , Rik van Riel , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 6, 2021 at 5:47 AM wrote: > > ... > > > For now, we maintain the existing SCHED_IDLE semantics. Future patches > > may make improvements that extend how we treat SCHED_IDLE entities. > > > > The per-task_group idle field is an integer that currently only holds > > either a 0 or a 1. This is explicitly typed as an integer to allow for > > further extensions to this API. For example, a negative value may > > indicate a highly latency-sensitive cgroup that should be preferred for > > preemption/placement/etc. > > Hi Josh, > > Sounds there is a ready solutions for colocation problem, isn't there? > I'd like to evaluate its effects if it could be sent out. > > Thanks > Alex > > Hi Alex, I don't have a patch written just yet. The basic idea is to utilize the (negative) idle values to make relative decisions about task preemption and wakeup vruntime placement. Could you describe your use case? Best, Josh