{"id":19512367,"url":"https://github.com/colinianking/powerstat","last_synced_at":"2025-04-05T06:02:10.594Z","repository":{"id":44453765,"uuid":"37714961","full_name":"ColinIanKing/powerstat","owner":"ColinIanKing","description":"Powerstat measures the power consumption of a machine using the battery stats or the Intel RAPL interface. The output is like vmstat but also shows power consumption statistics. At the end of a run, powerstat will calculate the average, standard deviation and min/max of the gathered data. ","archived":false,"fork":false,"pushed_at":"2025-02-26T13:25:59.000Z","size":434,"stargazers_count":140,"open_issues_count":0,"forks_count":17,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-28T17:27:23.101Z","etag":null,"topics":["linux","power-management","power-monitoring"],"latest_commit_sha":null,"homepage":"https://github.com/ColinIanKing/powerstat","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ColinIanKing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-06-19T09:59:04.000Z","updated_at":"2025-03-24T15:07:39.000Z","dependencies_parsed_at":"2023-02-16T09:01:21.151Z","dependency_job_id":"1464f5ed-0ec4-402c-8be1-ca9e253d62fe","html_url":"https://github.com/ColinIanKing/powerstat","commit_stats":{"total_commits":418,"total_committers":3,"mean_commits":"139.33333333333334","dds":"0.10287081339712922","last_synced_commit":"5d6f130e39156ea8a723f5bb6cd50db85b66b759"},"previous_names":[],"tags_count":78,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ColinIanKing%2Fpowerstat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ColinIanKing%2Fpowerstat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ColinIanKing%2Fpowerstat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ColinIanKing%2Fpowerstat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ColinIanKing","download_url":"https://codeload.github.com/ColinIanKing/powerstat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247294514,"owners_count":20915340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["linux","power-management","power-monitoring"],"created_at":"2024-11-10T23:25:40.344Z","updated_at":"2025-04-05T06:02:10.563Z","avatar_url":"https://github.com/ColinIanKing.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Powerstat Logo](mascot/powerstat-256x256.png)\n\n# Powerstat\n\n\u003ca href=\"https://repology.org/project/powerstat/versions\"\u003e\n    \u003cimg src=\"https://repology.org/badge/vertical-allrepos/powerstat.svg\" alt=\"Packaging status\" align=\"right\"\u003e\n\u003c/a\u003e\n\nPowerstat measures the power consumption of a laptop using the ACPI battery information. The output is like vmstat but also shows power consumption statistics. At the end of a run, powerstat will calculate the average, standard deviation and min/max of the gathered data.\n\n## Example\n\n```\npowerstat -cDHRf 2 \nRunning for 60.0 seconds (30 samples at 2.0 second intervals).\nPower measurements will start in 0 seconds time.\n\n  Time    User  Nice   Sys  Idle    IO  Run Ctxt/s  IRQ/s  Watts uncore   core  pkg-0  CPU Freq\n10:00:09   3.4   0.0   2.0  94.6   0.0    2   6236   1144   5.28   0.21   2.86   5.28  2.27 GHz  \n10:00:11   2.5   0.0   2.5  94.8   0.1    1   6171   1134   5.10   0.18   2.72   5.10  2.22 GHz  \n10:00:13   3.5   0.0   2.2  94.1   0.1    1   5988   1079   5.17   0.24   2.73   5.17  2.60 GHz  \n10:00:15   2.8   0.0   2.8  94.4   0.0    2   6028   1089   4.92   0.12   2.60   4.92  2.74 GHz  \n10:00:17   2.8   0.0   2.0  95.1   0.1    1   6344   1156   5.66   0.38   3.05   5.66  2.98 GHz  \n10:00:19   7.1   0.0   3.0  89.0   0.9    2   9686   1429   8.93   1.44   5.09   8.93  2.55 GHz  \n10:00:21  10.1   0.0   3.0  86.4   0.5    2  10406   1515   9.48   1.11   6.03   9.48  2.84 GHz  \n10:00:23   7.7   0.0   2.7  88.4   1.3    2   7892   1410  10.44   2.42   5.49  10.44  2.99 GHz  \n10:00:25   8.1   0.0   2.7  86.4   2.8    2   7788   1488  12.12   3.46   5.90  12.12  2.54 GHz  \n10:00:27   4.0   0.0   2.8  92.9   0.2    1   7206   1188   6.58   0.70   3.64   6.58  2.85 GHz  \n10:00:29   4.3   0.0   1.8  92.9   1.1    1   7788   1286   7.25   0.85   4.14   7.25  2.41 GHz  \n10:00:31   2.5   0.0   2.0  95.3   0.1    1   6296   1122   5.39   0.25   2.92   5.39  2.61 GHz  \n10:00:33   3.6   0.0   2.6  93.6   0.1    1   6548   1140   5.61   0.36   3.02   5.61  2.63 GHz  \n10:00:35   3.8   0.0   2.7  93.2   0.2    1   6896   1179   6.28   0.61   3.44   6.28  2.56 GHz  \n10:00:37   4.5   0.0   2.7  92.7   0.1    1   7340   1220   6.97   0.73   3.99   6.97  2.97 GHz  \n10:00:39   5.1   0.0   2.2  92.5   0.2    1   7337   1206   6.61   0.66   3.71   6.61  2.80 GHz  \n10:00:41  66.3   0.0  10.5  23.3   0.0   11   5880   2087  15.47   1.35  11.51  15.47  2.90 GHz  \n10:00:43  86.7   0.0  13.1   0.1   0.0    6   5542   2449  18.55   1.82  13.95  18.55  2.90 GHz  \n10:00:45  87.6   0.0  12.3   0.1   0.0    8   5664   2484  18.33   1.58  14.00  18.33  2.90 GHz  \n10:00:47  11.5   0.0   3.5  84.9   0.1    1   5984   1235   7.42   0.43   4.69   7.42  2.49 GHz  \n10:00:49   3.0   0.0   3.2  93.6   0.1    2   6034   1096   5.13   0.19   2.72   5.13  2.49 GHz  \n10:00:51   2.3   0.0   2.4  95.3   0.0    2   6020   1084   5.02   0.16   2.64   5.02  2.52 GHz  \n10:00:53   3.0   0.0   3.0  94.0   0.0    1   6004   1082   4.88   0.12   2.55   4.88  2.39 GHz  \n10:00:55   2.8   0.0   2.9  94.1   0.3    1   6052   1133   5.35   0.24   2.90   5.35  2.57 GHz  \n10:00:57   3.6   0.0   2.4  93.9   0.1    3   6858   1216   5.71   0.27   3.19   5.71  2.51 GHz  \n10:00:59   2.5   0.0   2.8  94.7   0.0    2   5910   1076   5.17   0.26   2.70   5.17  2.65 GHz  \n10:01:01   2.5   0.0   2.4  94.9   0.1    1   6115   1103   5.37   0.28   2.87   5.37  2.47 GHz  \n10:01:03   4.8   0.0   2.9  92.1   0.3    2   6410   1182   5.98   0.32   3.42   5.98  2.59 GHz  \n10:01:05   2.0   0.0   2.3  95.7   0.0    1   6070   1070   5.27   0.31   2.74   5.27  2.58 GHz  \n10:01:07   9.6   0.0   3.2  87.0   0.1    1   5922   1168   7.45   0.35   4.83   7.45  2.55 GHz  \n-------- ----- ----- ----- ----- ----- ---- ------ ------ ------ ------ ------ ------ ---------\n Average  12.1   0.0   3.6  84.0   0.3  2.1 6680.4 1308.3   7.56   0.71   4.53   7.56  2.64 GHz  \n  StdDev  23.0   0.0   2.9  25.8   0.6  2.2 1107.5  368.0   3.74   0.76   3.06   3.74  0.20 GHz  \n-------- ----- ----- ----- ----- ----- ---- ------ ------ ------ ------ ------ ------ ---------\n Minimum   2.0   0.0   1.8   0.1   0.0  1.0 5542.0 1070.0   4.88   0.12   2.55   4.88  2.22 GHz  \n Maximum  87.6   0.0  13.1  95.7   2.8 11.0 10406.5 2484.0  18.55   3.46  14.00  18.55  2.99 GHz  \n-------- ----- ----- ----- ----- ----- ---- ------ ------ ------ ------ ------ ------ ---------\nSummary:\n  7.56 Watts on average with standard deviation 3.74  \nNote: power read from RAPL domains: uncore, core, package-0.\nThese readings do not cover all the hardware in this device.\n\nC-State    Resident      Count Latency \nC7-IVB      80.109%     155253      87\nC6-IVB       0.015%         63      80\nC3-IVB       1.847%      10962      59\nC1E-IVB      1.141%      11068      10\nC1-IVB       0.511%       3339       1\nPOLL         0.000%         30       0\nC0          16.376%\n\nHistogram (of 30 power measurements)\n\n Range (Watts)  Count\n 4.878 -  6.244    16 ########################################\n 6.245 -  7.611     7 #################\n 7.612 -  8.978     1 ##\n 8.979 - 10.345     1 ##\n10.346 - 11.712     1 ##\n11.713 - 13.079     1 ##\n13.080 - 14.446     0 \n14.447 - 15.813     1 ##\n15.814 - 17.180     0 \n17.181 - 18.548     2 #####\n\nHistogram (of 30 CPU utilization measurements)\n\n  Range (%CPU)    Count\n  4.309 -  13.865    26 ########################################\n 13.866 -  23.421     1 #\n 23.422 -  32.978     0 \n 32.979 -  42.535     0 \n 42.536 -  52.091     0 \n 52.092 -  61.648     0 \n 61.649 -  71.204     0 \n 71.205 -  80.761     1 #\n 80.762 -  90.317     0 \n 90.318 -  99.874     2 ###\n\nHistogram (of 30 CPU average frequencies)\n\nRange (GHz)   Count\n2.217 - 2.293     2 ##########\n2.294 - 2.369     0 \n2.370 - 2.446     2 ##########\n2.447 - 2.523     5 #########################\n2.524 - 2.600     8 ########################################\n2.601 - 2.677     3 ###############\n2.678 - 2.754     1 #####\n2.755 - 2.831     1 #####\n2.832 - 2.907     5 #########################\n2.908 - 2.984     3 ###############\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolinianking%2Fpowerstat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcolinianking%2Fpowerstat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolinianking%2Fpowerstat/lists"}