From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B5A6C432BE for ; Wed, 28 Jul 2021 12:57:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1200B60FA0 for ; Wed, 28 Jul 2021 12:57:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236108AbhG1M5E (ORCPT ); Wed, 28 Jul 2021 08:57:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234256AbhG1M5E (ORCPT ); Wed, 28 Jul 2021 08:57:04 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BD04C061757; Wed, 28 Jul 2021 05:57:02 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id jg2so4529973ejc.0; Wed, 28 Jul 2021 05:57:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Vouenykjxz8Zfu34+Mskh/eN5cURwPsT1oXHL6ep3V8=; b=cK1Gmgnuuw+nCYVW5Q13zVB3UJH26y520BJmLBSjJch2u7mVCKg7iAUUIzOH6vo45W jl1mvzzJopmYSuYrMpoP7KDZQCgXPRIGYTVrf+FdDHBFE31zzB0m4ld/9/ic/KdgkUDN W26ZXaxldpUiBqJGBILkh0CY6riJbxAt+9UVgnwITqRmsuKEo5b29hZ5Eqx0lpbnpI5z HyxQD3mtqN9KCp3nGcfPydMszaVDneoDugclGjoje3N+9pK8IKCNQf4kN/gGwwp/6btT d+swF+pJsThSEWg4aZK0aMG+d5KVfv+RGYt24ye7kTRrqt33VMEL+d/9IG+DGgFAPPDs mRvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Vouenykjxz8Zfu34+Mskh/eN5cURwPsT1oXHL6ep3V8=; b=N4ZwjgWCxB3Sripvheo9DBocOy1zTg2xXBi1bwDTGihJaPRmqj/keouFOZhaS8wDBh lpD71sc2Go+hK0lPKFD8kb2mWbaD7yB1zyB2x84hFIABiHW4b8XRESkRboeiRPFdyGo5 vLU5TdGr0L2VuIL1VDDwI+7BWneMVOA58TDGk5iF+cWOSkq2jaGAteczdJH5NoB/oHuq OaYh4EhlgnDWR5hn1qZfkzbFW8vwAFrGEEGnm72PndwcI/nP1YQvWmMqlbX/X4VyPcue MyaW3y9alf6r6XnR7h0GaclchTBkrY1wk2PD2VMlGPYS9iwqXNh7yCEplQd05qPkWwZK wqfQ== X-Gm-Message-State: AOAM533BfuQxuMzo3xn9B99qfNjkprDXSoC88im1GIy3oiuQvbUdRbAE 8hN329tbGRLGypVHCn/yg7uUeJKswjHh93rjNhxCTkHrQ83FS7rc X-Google-Smtp-Source: ABdhPJz3FrSZmkzpnRE0eweT0CjV0FaXvot2P16xijB/LDqXaEAxrMDD1HeHE6NiCthFMxQc9mp1lLA3nf9VYoXYTY0= X-Received: by 2002:a17:906:6011:: with SMTP id o17mr26316325ejj.157.1627477021019; Wed, 28 Jul 2021 05:57:01 -0700 (PDT) MIME-Version: 1.0 From: Shivank Garg Date: Wed, 28 Jul 2021 18:26:44 +0530 Message-ID: Subject: /proc/pid/sched units To: Linux Kernel Mailing List , Linux MM , util-linux@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: util-linux@vger.kernel.org Hi Everyone, I'm analyzing the cpu time taken ("se.sum_exec_runtime" in /proc/$pid/sched) by process in different configurations for my project work. But I was not able to get the time units for the values displayed in the file. I tried searching it in source code - kernel/sched/cputime.c,include/linux/sched.h etc. but it left me more confused. Can you please answer me about the measurement units (is it microseconds, nanoseconds, jiffles ...) ? Also, I was not able to find proper documentation for /proc/pid/sched. Please point to me if it's already there. If not, I would love to contribute toward documenting these variables. It would be very helpful for newbies (like me) in future. Thanks, Best Regards, Shivank Garg From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21899C4338F for ; Wed, 28 Jul 2021 12:57:04 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C842E60C41 for ; Wed, 28 Jul 2021 12:57:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C842E60C41 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 69A456B0036; Wed, 28 Jul 2021 08:57:03 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 648526B006C; Wed, 28 Jul 2021 08:57:03 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 536DE8E0001; Wed, 28 Jul 2021 08:57:03 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0036.hostedemail.com [216.40.44.36]) by kanga.kvack.org (Postfix) with ESMTP id 359F16B0036 for ; Wed, 28 Jul 2021 08:57:03 -0400 (EDT) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id DEC7718043DB4 for ; Wed, 28 Jul 2021 12:57:02 +0000 (UTC) X-FDA: 78411996684.21.7DD05FC Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) by imf04.hostedemail.com (Postfix) with ESMTP id 8D677500BC1E for ; Wed, 28 Jul 2021 12:57:02 +0000 (UTC) Received: by mail-ej1-f44.google.com with SMTP id nd39so4446043ejc.5 for ; Wed, 28 Jul 2021 05:57:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Vouenykjxz8Zfu34+Mskh/eN5cURwPsT1oXHL6ep3V8=; b=cK1Gmgnuuw+nCYVW5Q13zVB3UJH26y520BJmLBSjJch2u7mVCKg7iAUUIzOH6vo45W jl1mvzzJopmYSuYrMpoP7KDZQCgXPRIGYTVrf+FdDHBFE31zzB0m4ld/9/ic/KdgkUDN W26ZXaxldpUiBqJGBILkh0CY6riJbxAt+9UVgnwITqRmsuKEo5b29hZ5Eqx0lpbnpI5z HyxQD3mtqN9KCp3nGcfPydMszaVDneoDugclGjoje3N+9pK8IKCNQf4kN/gGwwp/6btT d+swF+pJsThSEWg4aZK0aMG+d5KVfv+RGYt24ye7kTRrqt33VMEL+d/9IG+DGgFAPPDs mRvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Vouenykjxz8Zfu34+Mskh/eN5cURwPsT1oXHL6ep3V8=; b=jiSborzyA5rYG2m6h72pdiofxRSNNV9ucCgREMN7vwlMwND/SVvWWp1VwFbKdU3TQl hUFbXYg8MBhTILdXhr2c91vpI/nFlZk/BZHEablxr5lmEsakedXUXRF2PsxZudnbkhwt AmU9R34zypdMMDv+seFwEZwrtMZ/lkZ6GHxwbDaLHV8HUFSlkiNXh8TQ8CBRrCeImR2f 8pCm5Tkk19NsSXX1Hm6m/7p1jqAUdcgNWIvgWrkyn9b+2UYmtSHgZspxf0EoJumBWOXt Gcm0HXok59KdS3cdmtj0IiM5rdDs9oadloU/L/HcxlX5rQwLJiRqBu6BYF7vU5Tm4FUI gk3A== X-Gm-Message-State: AOAM53261oHqh7yE/G2Xkym+6E/HHQln1sHdJ4BxCIZS5K14GM8/BGgN J1JpPb8JQSSnSVnN6GCKxKv3iQwNZLTOJ6/YR8M= X-Google-Smtp-Source: ABdhPJz3FrSZmkzpnRE0eweT0CjV0FaXvot2P16xijB/LDqXaEAxrMDD1HeHE6NiCthFMxQc9mp1lLA3nf9VYoXYTY0= X-Received: by 2002:a17:906:6011:: with SMTP id o17mr26316325ejj.157.1627477021019; Wed, 28 Jul 2021 05:57:01 -0700 (PDT) MIME-Version: 1.0 From: Shivank Garg Date: Wed, 28 Jul 2021 18:26:44 +0530 Message-ID: Subject: /proc/pid/sched units To: Linux Kernel Mailing List , Linux MM , util-linux@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=cK1Gmgnu; spf=pass (imf04.hostedemail.com: domain of shivankgarg98@gmail.com designates 209.85.218.44 as permitted sender) smtp.mailfrom=shivankgarg98@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Rspamd-Server: rspam02 X-Stat-Signature: kjjsxj5dme3cnajaak5ed87w5oz56nb8 X-Rspamd-Queue-Id: 8D677500BC1E X-HE-Tag: 1627477022-253344 X-Bogosity: Ham, tests=bogofilter, spamicity=0.249537, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Everyone, I'm analyzing the cpu time taken ("se.sum_exec_runtime" in /proc/$pid/sched) by process in different configurations for my project work. But I was not able to get the time units for the values displayed in the file. I tried searching it in source code - kernel/sched/cputime.c,include/linux/sched.h etc. but it left me more confused. Can you please answer me about the measurement units (is it microseconds, nanoseconds, jiffles ...) ? Also, I was not able to find proper documentation for /proc/pid/sched. Please point to me if it's already there. If not, I would love to contribute toward documenting these variables. It would be very helpful for newbies (like me) in future. Thanks, Best Regards, Shivank Garg