Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1271757pxb; Sat, 16 Apr 2022 03:52:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1ISnwEJiD1cKULk8MLAfeXJVaoTlBZrSeUhUywCJIID4EjL9f9MuOzudlGZ7B4hu/Q3ih X-Received: by 2002:a17:902:d506:b0:158:da72:2671 with SMTP id b6-20020a170902d50600b00158da722671mr3032446plg.138.1650106335849; Sat, 16 Apr 2022 03:52:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650106335; cv=none; d=google.com; s=arc-20160816; b=Aq0Nsx9DAlIi1lk7UoyM8RgJQfV67tcJ4FT+kR/vVp5DCl+SRyQZyIWg+2wNKYsnyh mjFqhs+CAS30TIvLFO2lRq5h8FILiY4ozF+IUByQwjjKG9MaXFYtMGJbNHV12TEVHjDf WEBr3LTnb1o8XmclAmuLvggxvs59iK8Vt6lvOppkHSz3Kic2FJ1kvA9dDIl/DRJg7Dr9 PLP1OYF6ofNn5Gh656dEbOLcwjBmLVQLszuRG+i3mqAww0m8XCxqfA17CjKldPJrTlI0 6UDL4mB+fJFYp2qtDz9Z9jMgg9trAl0aWQzJG7p1MXmAhltExjV044eJXKA/aiI4IVlW Z20w== 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=kyGKxhjj+jW2MN2KpzeSLbx1pVTnpoKfNHzINimjN/8=; b=iAc32lkLauqfyatBA7P7YKNvWTQwUOXlugdk8zOWvLbeZyWJ6BEbIatTh+Q7P5Xm7h hsK5lNHHyA06E6fqxKPEL/rt86e1JyMolL2EarS/IHD/Q8WNY0K3GabuLZgoOQY38DIY 1Nh3Yd5C6TfjoeKU0GZsly7i/M5lZstWk2CdOQmKxg2k7ulg+K+6gptysvEERA2GdHM3 0t46xyxgNP/G8hejS42dUCa4rgYzH/gH+PWXEa+zW8KKyjmFPMtMFZBjYH6auE8zQ6v6 tS8J7X1ic9ph9Q2h0karDloiC7i7vJM9aTEQeh4/I+J7VXACFY+Ax+ixPV+3T/yVWYZx hl6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=YhiPHvoY; 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 q22-20020a635c16000000b003821f8bcbb9si3840438pgb.94.2022.04.16.03.51.50; Sat, 16 Apr 2022 03:52:15 -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=YhiPHvoY; 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 S230469AbiDPI5y (ORCPT + 99 others); Sat, 16 Apr 2022 04:57:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229704AbiDPI5w (ORCPT ); Sat, 16 Apr 2022 04:57:52 -0400 Received: from ms.lwn.net (ms.lwn.net [IPv6:2600:3c01:e000:3a1::42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3975A24BF4; Sat, 16 Apr 2022 01:55:21 -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 18B6060C; Sat, 16 Apr 2022 08:55:19 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 18B6060C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1650099321; bh=kyGKxhjj+jW2MN2KpzeSLbx1pVTnpoKfNHzINimjN/8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=YhiPHvoYgKWUh9AlA0wGRMxBMlGl9W8RwYA93nc2lwv5uSlBaYBofQEECPqp4bAwP sawOCAn63EKkprQOw0D8L5AbmP32Kv8y7bHnDESH8rquBIkizSrBp5fH5hOcQYHoc5 3sDXW2ioD7uqvkuPP3vggzK7EPIYZOAfTeYKti0JkiI6hFkXvuZ3jrQ7MaQW9XwJxI F2SMgjk+h9y2zi6lmo7o6OKa1iE2acSAdkxBK8IKW79pj7aNZT4BoSMcWqoKrVzrSC QBxvjQi0qz1azLAJ+LHCUViP4rlip9723xXAk8GC1q5cgdFddrEGMEo1AhJBjv1bWQ SgQibI7K9bFqA== From: Jonathan Corbet To: Jui-Tse Huang , Peter Zijlstra , Valentin Schneider , Mauro Carvalho Chehab , Huaixin Chang , Beata Michalska , Chun-Hung Tseng , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jui-Tse Huang , Ching-Chun Huang Subject: Re: [PATCH] docs/scheduler: fix unit error In-Reply-To: <20220415033618.15655-1-juitse.huang@gmail.com> References: <20220415033618.15655-1-juitse.huang@gmail.com> Date: Sat, 16 Apr 2022 02:55:16 -0600 Message-ID: <87ilr92yrv.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 Jui-Tse Huang writes: > The unit mentioned in the documentation of scheduler statistics is > outdated which may mislead the readers. > > The unit of statistics that is reported by /proc/schedstat is modified > to nanosecond, and the unit of statistics that is reported by > /proc/PID/schedstat is provided as well to make the context consistent. > > The rq_cpu_time and the rq_sched_info.run_delay of a run queue, and the > sched_info.run_delay of a task are all updated based on the clock of the > run queue, while the se.sum_exec_runtime of a task is updated based on > the clock_task of the run queue of the task. Both the clock and > clock_task are relied on the return value of the function sched_clock() > which is in the unit of nanosecond. > > Signed-off-by: Jui-Tse Huang > --- > Documentation/scheduler/sched-stats.rst | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) Part of this had already been fixed by a previous patch, but git was able to figure it out...this one's applied as well, thanks. jon