Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp155085rwb; Tue, 6 Dec 2022 18:50:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf6kGRYe/EZ9yTT0Q3V/cmMS952WD47XdIdPh69l/VWqY2a1qeP5L6kgOcKriprTCGAQLqr1 X-Received: by 2002:a05:6402:505:b0:46b:aa:856a with SMTP id m5-20020a056402050500b0046b00aa856amr41177506edv.171.1670381420291; Tue, 06 Dec 2022 18:50:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670381420; cv=none; d=google.com; s=arc-20160816; b=AFijoFKRRqZvmygt+tW4joD/NpOz9LHlVnzHi9qGOZcKK0Mc9xSP+oGSaSJkojbYoQ jtCMESlkhY5m34iCTR63nsRmuH2UHiVhKFFcbXpRUcL42o/s2PM3YWFuUAKUKha9EwkS JxgkwpzTSLR/paUmNqtgIXSHB2uT+4dY59Y1Fba17QdXhRW+4Fsyll2BYz+COjs/OPA1 9eG2dC4e0oVHFm9ocMZH6JWim8/F8q9VBSRaaYGQLl1MLqVuhF9bYVt7v+rPwbtrIEUn 7RzCLCnlFZ93/FqWYHXTfv/MiDY3gPoOkcGneIFIvmHB0lRkk9cqMB/lFvVt9JMOz9Rc cV+A== 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=XlDMsRUpu/xnXct4TsOafZdLl4rYJetwGCVHmIqhWZ8=; b=OMHAxYTmGoZbMYWC4+PDMmJeQmCmwLl5Ib21xhRTtRtEpsxX2+OlDCEsQdjwd9AeVj djxuTaU0EKGGroD5HlD5qczZRjM2/TAPDlLKYToqaOO8SWPXdSPOcJzbd+H04rPZ+2LN 2RZpP51aD1Rj1twoSe648w80Bl2ypNNqKfS9yuVSsjRRDBOEK63vQoWAUwhwO3z8mPBL MfVal/oMfDi3MCjCujH6hCLySE6m5q3pQnQcQuetfcprQFlpzvZZobVemTv08D9TiwBa E1yB0p9okWFHG3rngLCTgHwnzq6tvUdEHaj4CwgcWvJsiOfKQrz+NoC/EjoG01syR+tC 26Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=rCW1VEUC; 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 f13-20020a056402354d00b0045907cec72dsi3872054edd.320.2022.12.06.18.50.02; Tue, 06 Dec 2022 18:50:20 -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=rCW1VEUC; 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 S229680AbiLGCYC (ORCPT + 77 others); Tue, 6 Dec 2022 21:24:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbiLGCYA (ORCPT ); Tue, 6 Dec 2022 21:24:00 -0500 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5388C4C25B for ; Tue, 6 Dec 2022 18:24:00 -0800 (PST) Received: by mail-pj1-x1029.google.com with SMTP id q15so15209327pja.0 for ; Tue, 06 Dec 2022 18:24:00 -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=XlDMsRUpu/xnXct4TsOafZdLl4rYJetwGCVHmIqhWZ8=; b=rCW1VEUCajjlxmW7mqr5jYelH5e3t9jK/EoauFb7m+5Z1cZAhh0LuAYIfDIC2noN+Y MZVWdFbEgczzOF9nlrBDAnAS3kswrQlD7iBS9JEPU5NXKrF+dlTlSH87+7WPivMdYm1O ia8zP+xQaLnaWTDZf4tjk2ONkDSJQa98NnnfOdbbNwG9lwBeZG/Wq4GDZy7RlCf3on98 dAbRBFedzhJazQytU+Xb3JHXoLxHacQz6wQXBDw7FjIVCM9/L2OAmag7dJDUwAWX+MzM vNldI8Udl8zSqBWWoDtIzHoab1z+ocPOGd4mrw1Q4Y10JkPnI6KIpKjv/vevMTTv1XR/ n+wA== 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=XlDMsRUpu/xnXct4TsOafZdLl4rYJetwGCVHmIqhWZ8=; b=3Rmj4is1PcPnmb+6UvgA6IwmjAkis+h0qeHzry/kE3JH33JxfIMUXdQaya9g61Z+7m OLB9La7MAx7/j/Fy7UbHL8doAdxXk19gpDWjr1XPOwuqnYwjsHjU89J7TPJWFP8fv0rs M1Xo/PMfkcVuuw8w42csPZixmBnSyFsbXOzlk0tUfHlgFMk9VSpMig4Z5/NMO+dsRlow iyzaZlKzShdoMWh1anQCYLe2+AiLQjlRGacMeuQ34dqek5zwS3e346ylSRU0NeHawJZZ 5heN6M71Kqy4Jxyln9mBnxPVjQL8adRXKp/Nz3PZa3wyZB5dECC55/Zcl7tnzDg8e514 1jFQ== X-Gm-Message-State: ANoB5pn7drmLUR6w0xvOFXg4Tik/kdgTn7vh84kB+aKtu7W1//JM9Ljy 0sX2CYFgpXqxgcR68lb9tMuEj86OB3QbPHmPnZ4wBQ== X-Received: by 2002:a17:902:e194:b0:189:56ab:ab68 with SMTP id y20-20020a170902e19400b0018956abab68mr64104314pla.144.1670379839574; Tue, 06 Dec 2022 18:23:59 -0800 (PST) MIME-Version: 1.0 References: <3A5DA66F-4330-4FC4-9229-998CF98F663E@joelfernandes.org> In-Reply-To: From: Josh Don Date: Tue, 6 Dec 2022 18:23:47 -0800 Message-ID: Subject: Re: [PATCH v3 1/2] sched/fair: Introduce short duration task check To: Vincent Guittot , Chen Yu Cc: Joel Fernandes , Honglei Wang , Peter Zijlstra , Tim Chen , Mel Gorman , Juri Lelli , Rik van Riel , Aaron Lu , Abel Wu , K Prateek Nayak , Yicong Yang , "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 > We don't want to add more dedicated knobs. So using > sysctl_sched_min_granularity as you are doing in this patch looks ok If not a knob, then maybe at least a smaller hardcoded value? Several milliseconds seems like too long for this optimization; the opportunity cost of not doing the idle search likely doesn't make sense if the waker is going to be active for several additional milliseconds. I would have guessed something on the order of 100us. Chen, what is the run duration of tasks in your ping pong example?