Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7158152rwb; Mon, 12 Dec 2022 10:47:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf7/KPWfndrXj3cAtgA+2/HPBeZk9a+zmIyFRR04crPIDpL+x4xsYrB/sbgPuQ/kNluE6EEW X-Received: by 2002:a17:902:d3d3:b0:189:cc58:77a8 with SMTP id w19-20020a170902d3d300b00189cc5877a8mr16956004plb.46.1670870820109; Mon, 12 Dec 2022 10:47:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670870820; cv=none; d=google.com; s=arc-20160816; b=ZNLwLsz1IAi9SVCTvQHRV4OsWUyWZ7V8i00v1Xl5uDrVlkDll8WUKsbs2iKnaJhHps FMAvf11JiE6QotduuLqGJrIfCnOi2Cn/i4Nuc323CTQz1bwvwq2bsBhXFBGePN61+JLo 97OX5Do3Dht1qPG5O//im9J6poMKHWXbF0nl/WZ3+EyqjnvSVJZeBdbjdyrS4ehEFpoz DsAHqGjKvoG/GRCXsidvN8qS+lw9mLNyWi2Zl2xDviCVfGR6hYULWd9A5SBED6Ig4XO7 ZPLr8fhK1m38932XQ8kVp+ofr6nct29zJZOC030HKrWWJyZzFpSr1uojsXGA82NwMzu/ cuCw== 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=+XfBCuHWgnrIe/5OMSe2eafxHk9m0+iUqWGzU1q4pcw=; b=IBgmLD5FsmzJLpEV25a2hzglrp6elh3GHkhc0hZxP2akL8dtVI8ul8bjeSxfeXqJbb KI9YoKjCKhuXlzCsv/ddevOtGGjYaMWUn0e605caXrMgsB451sC/w9/mPq2/7byg7ePD ouHQ0Shf5OC3qh3Z2gTfQE8DKF4+emp7e7izIV2/QHTnSm4TPKfa78n74Fdv1A8eN0n7 0HIjPn3M4mIN75GAMGeDwFbrWLL9icdK/Z6QdcTY9VG/R2tFNd3j2aKRb2zf3OBu0x+z +VYQZJronuWKCrV5DEm/RP8oaqZeLfvRA/dt2i3r681qblu4dcHfwyoSySj5pXZro/aQ B1xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=tRLnMlGN; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 12-20020a170902c10c00b001869de4a7d2si9545144pli.187.2022.12.12.10.46.50; Mon, 12 Dec 2022 10:47:00 -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=@google.com header.s=20210112 header.b=tRLnMlGN; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233046AbiLLSTE (ORCPT + 74 others); Mon, 12 Dec 2022 13:19:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232603AbiLLSSc (ORCPT ); Mon, 12 Dec 2022 13:18:32 -0500 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA54564FA for ; Mon, 12 Dec 2022 10:17:48 -0800 (PST) Received: by mail-pj1-x1031.google.com with SMTP id k88-20020a17090a4ce100b00219d0b857bcso776067pjh.1 for ; Mon, 12 Dec 2022 10:17:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+XfBCuHWgnrIe/5OMSe2eafxHk9m0+iUqWGzU1q4pcw=; b=tRLnMlGNbWqak0IhpZeIcaT92eR/QSxIDiaqE7ut2xpn8x9+vjHmhT0arBBvb3owLE XLFb8uyJ5gcIHd62g5lqR1vStvTJ/8APasZq12//rN5aAo8OHi0kKzbHnDkI9ZW7Br8q /KY1oyvtGX9i5qkqfLYm0fsPYxgZwaG7UIvUoivMeGYgnew+3BVWI3bJ/rQl8U70ooKu FN7+/1ixBRhws5N8Jmoqdxdp10SpKHL1pUg72pDYNz5vsIdQGDN+4vyOhYGGLc7ZaKpV uaPkzgdgXgIEM6pwS0pDiAj1RnE4PXoVhKRVb7uMWWP2IZD3s6+nfw7/bVJA/pFVeqOt HQfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+XfBCuHWgnrIe/5OMSe2eafxHk9m0+iUqWGzU1q4pcw=; b=tJg8Zj5ei63kuBSDA3cY7pEtNOAClGRR7uYsxmlAtYn3oyw3Cbx0gdECcX8sxyZ+P6 7miCW68kx7ljDYJPHAAQZpLr+Sh72y3YzWYJTteKGvFTgZ1b6XPVKLf9MKT5dBUlsTyI LltY7W/m4+fyicbPlc3RdAKMjmv+ErWVkxDwXP8aXK6CeY5vA0pzV4CDUFxgnvS9+/r2 hDiHzQPsU2GRysy/0btBt0RTzCfGLKvLuBDR2f4czRhe0OsaktcMnCUxy3zrBqpnELc2 9TA1nukSjSFGWoQehHgnEgO/6Ci7qtAKimwvZZGv+oP0Ij4YjojfLS4oxsg6QMDq4nRN Q/hQ== X-Gm-Message-State: ANoB5plQgpZcI/zcCIv7aaZ3P065VRqCCScY40Fnya9jQZSbnxFeEM4G 8bruhhiUDTJxEApYRLezwTjOKM0q2fhDrvolT1CmXw== X-Received: by 2002:a17:90b:118e:b0:219:d5a6:400 with SMTP id gk14-20020a17090b118e00b00219d5a60400mr20573025pjb.44.1670869067972; Mon, 12 Dec 2022 10:17:47 -0800 (PST) MIME-Version: 1.0 References: <3A5DA66F-4330-4FC4-9229-998CF98F663E@joelfernandes.org> In-Reply-To: From: Josh Don Date: Mon, 12 Dec 2022 10:17:35 -0800 Message-ID: Subject: Re: [PATCH v3 1/2] sched/fair: Introduce short duration task check To: Chen Yu Cc: Yicong Yang , yangyicong@hisilicon.com, Vincent Guittot , Joel Fernandes , Honglei Wang , Peter Zijlstra , Tim Chen , Mel Gorman , Juri Lelli , Rik van Riel , Aaron Lu , Abel Wu , K Prateek Nayak , "Gautham R . Shenoy" , Ingo Molnar , Dietmar Eggemann , Steven Rostedt , Ben Segall , Daniel Bristot de Oliveira , Valentin Schneider , Hillf Danton , Len Brown , Chen Yu , Tianchen Ding , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 > BTW, I've changed the threshold to (sysctl_sched_min_granularity / 8) in my next > version, as this is the value that fit my previous test case and also not to break > the case Josh mentioned. Do you mean a hardcoded value of some number of micros, or literally sched_min_granularity / 8? I don't think the latter is necessary, and indeed can lead to weirdness if min_gran is too small or too large. I don't think the concept of what a short duration task is should expand/contract with min_gran. Best, Josh