Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1072788rwr; Fri, 5 May 2023 08:46:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4d3U/prWxI7Vu8z2oRw6nON1dUpMffua1uEp/sFukWVSkBh6LkoLNBHflmwMIIxCR2KDuh X-Received: by 2002:a05:6a00:ac2:b0:63d:2f13:200 with SMTP id c2-20020a056a000ac200b0063d2f130200mr3225746pfl.16.1683301582354; Fri, 05 May 2023 08:46:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683301582; cv=none; d=google.com; s=arc-20160816; b=dc6+POMY493qJwM9kBfXGfS07eVzrqFSy9yt6/4GCNqhmRUxTMxj5p0WoRsKjg6KWO 3Xejie22e+IIvEGcuqtCvvbC8h1RN3WOWdesAKpsKYYYHF4EqC2qcFwEfZxuqVTVLbbY Y1LnPv5xLIvbgC79mc9wJ7j/He8ZpUGrTRGDB0vxbVSGJl7upyAfUfos+1Jvia1eakLP 7vpYTiBb8c0ui1SbSBtmLEaBkM3yltwrdEAe+VRhm7F2u/cuUD3zD6QhO6rbvmj8lZjI icJnfQS3MtSDwhd6svXjYdA1rGlRKisIOggWfwDCZv/alZIGRwuHn0sCT0Flvr/1YUpA Y8+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature:dkim-filter; bh=+lo1onitVV1iX83ZaCXEymuCSdsb0AmrMt4xe68Qc94=; b=yjNPZDOaIG4Qt4ALrkdBNH0p8dLsPvj1J9Wmvx9BxbKrZ3e96jUGrNLX+KuVhxugKv WlgdMrXvs3DYz+ZVdZXl4HW6mvUyIlkR0IQrUpPMeuX3cz+S7VUBMlUf5BNJmQWJJjuw 1KD5hnrhpvU189Q5eCIV6GQtOr/Kc+8IQPPusbDhRR08xu4BplQ3aCf+4Ynr9am9twDb Fp48RafTMBmveAweAvCkKTBz+nwni88rJphroPNQEy5PRGia+ZSlrmA14wzhXwz3RuTd XN0MMkG+XWwe3mfSvnQrg1iaO20T1vkeE1YApFc6Ba8IRy3JMw3wm5BVp1dq7ItzSYwg bmbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=BdrnCYjP; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y1-20020aa79ae1000000b0063b8f2e770esi2319500pfp.211.2023.05.05.08.46.08; Fri, 05 May 2023 08:46:22 -0700 (PDT) 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=@lwn.net header.s=20201203 header.b=BdrnCYjP; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232925AbjEEPbW (ORCPT + 99 others); Fri, 5 May 2023 11:31:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232890AbjEEPbS (ORCPT ); Fri, 5 May 2023 11:31:18 -0400 Received: from ms.lwn.net (ms.lwn.net [IPv6:2600:3c01:e000:3a1::42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49103156B0; Fri, 5 May 2023 08:30:54 -0700 (PDT) Received: from localhost (mdns.lwn.net [45.79.72.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id A9DD12E0; Fri, 5 May 2023 15:30:53 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net A9DD12E0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1683300653; bh=+lo1onitVV1iX83ZaCXEymuCSdsb0AmrMt4xe68Qc94=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=BdrnCYjP1xc1OqkJ9ctj1/yMFRBY6YZ2Zft+B8XMuVNBcP0KFH0ria7hX80aoWynX XZ4j4rMc3lpB7J0iuNRP6zMdLLA7teb4UvWD7TlR1DklgtUsHUMmdynY6m0RB5Q5vt dS6xss6rfckPr616or+kmXnyCzrUuwKse3UhtqbZR6dJdITjeU26v9TjQrjtIGGdUV Icp+7a7VIHLHI+hI8cjRIhMYMMTHYkG6gnqM0FxfCf9UZfx09x4ehLtPOJ4FprIff1 1TPkb350gxZdKKWjO67CF/e2mDR9z2EKp4oe4P9ZH+woAMb7kl9SfowxY4YON94g+M knEc4gmGF56Ag== From: Jonathan Corbet To: Hongyan Xia Cc: Hongyan Xia , Qais Yousef , Vincent Guittot , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sched/documentation: elaborate on uclamp limitations In-Reply-To: <20230505152440.142265-1-hongyan.xia2@arm.com> References: <20230505152440.142265-1-hongyan.xia2@arm.com> Date: Fri, 05 May 2023 09:30:52 -0600 Message-ID: <878re2n6c3.fsf@meer.lwn.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Hongyan Xia writes: > The story in 5.2 about util_avg abruptly jumping from 300 when > Fmax/Fmin == 3 to 1024 when Fmax/Fmin == 4 hides some details about how > clock_pelt works behind the scenes. Explicitly mention it to make it > easier for readers to follow. So this is a nit, but... > +Although running at Fmin reduces the rate of rq_clock_pelt() to 1/3 thus > +accumulates util_sum at 1/3 of the rate at Fmax, the clock period > +(rq_clock_pelt() now minus previous rq_clock_pelt()) in: > + > +:: > + > + util_sum / clock period = util_avg This can be written as: ...previous rq_clock_pelt()) in:: util_sum / clock period = util_avg reducing the markup clutter and making the document a little more readable. Thanks, jon