在Linux中处理或线程级别的电力监控

时间:2021-03-21 20:57:01

I am looking for few tools that can give process or thread level power consumption for the Linux OS. I am looking for something similar to top , vmstat , mpstat , activity monitor (MAC) etc along with power usage even if approximate). I have seen a tool for Andorid, PowerTutor that does a good job for specific Andorid phones. Are there similar tools that can provide statistics for laptops/desktops etc for the linux OS? Any suggestion is appreciated.

我正在寻找一些工具,可以为Linux操作系统提供进程级或线程级的功耗。我正在寻找一些类似top, vmstat, mpstat, activity monitor (MAC)等,以及电源的使用,即使是近似的)。我曾见过Andorid的工具,它在特定的Andorid手机上做得很好。是否有类似的工具可以为笔记本电脑/台式机等提供linux操作系统的统计数据?任何建议都是感激。

2 个解决方案

#1


1  

  1. PowerPack 3.0 is a software developed by Virginia Tech for direct measurements of the power consumption of a system’s major components: http://scape.cs.vt.edu/software/powerpack-3-0/

    PowerPack 3.0是弗吉尼亚理工大学开发的一款软件,用于直接测量系统主要组件的功耗:http://scape.cs.vt.edu/software/powerpack-3-0/

  2. The PAPI Api can provide several performance counters: http://icl.cs.utk.edu/papi/overview/index.html

    PAPI Api可以提供几个性能计数器:http://icl.cs.utk.edu/papi/overview/index.html

  3. Power Analyzer for the ARM processor is a joint venture of the University of Michigan, the University of Colorado: http://web.eecs.umich.edu/~panalyzer/

    ARM处理器的功率分析仪是密歇根大学科罗拉多大学的合资企业:http://web.eecs.umich.edu/~panalyzer/

#2


1  

I couldn't see exact power values, just a lot of meta information on power (tested od 64bit Mint Maya). Nevertheless it might be useful to you:

我看不到确切的功率值,只有很多关于功率的元数据(测试过的od 64位Mint Maya)。然而,它可能对你有用:

PowerTOP is a Linux tool to diagnose issues with power consumption and power management. In addition to being a diagnostic tool, PowerTOP also has an interactive mode where you can experiment with various power management settings for cases where the Linux distribution has not enabled those settings.

PowerTOP是一个用于诊断功耗和功耗管理问题的Linux工具。除了是一种诊断工具之外,PowerTOP还提供了一种交互模式,您可以对Linux发行版未启用这些设置的情况进行各种电源管理设置的实验。

PowerTOP reports which components in the system are most likely to blame for a higher-than-needed power consumption, ranging from software applications to active components in the system. Detailed screens are available for CPU C and P states, device activity, and software activity.

PowerTOP报告系统中哪些组件最有可能被认为是高于需要的功耗,从软件应用到系统中的活动组件。详细的屏幕可用于CPU C和P状态、设备活动和软件活动。

For many years, PowerTOP has been used heavily by Intel, Linux distributors, and various parts of the open source community. We're hoping that our users find the second generation even more useful for their needs.

多年来,PowerTOP已经被Intel、Linux分销商和开源社区的各个部分大量使用。我们希望我们的用户能发现第二代对他们的需求更加有用。

homepage

主页

another article

另一篇文章

installation instructions:

安装说明:

sudo apt-get install powertop

usage instructions

使用说明

sudo powertop

#1


1  

  1. PowerPack 3.0 is a software developed by Virginia Tech for direct measurements of the power consumption of a system’s major components: http://scape.cs.vt.edu/software/powerpack-3-0/

    PowerPack 3.0是弗吉尼亚理工大学开发的一款软件,用于直接测量系统主要组件的功耗:http://scape.cs.vt.edu/software/powerpack-3-0/

  2. The PAPI Api can provide several performance counters: http://icl.cs.utk.edu/papi/overview/index.html

    PAPI Api可以提供几个性能计数器:http://icl.cs.utk.edu/papi/overview/index.html

  3. Power Analyzer for the ARM processor is a joint venture of the University of Michigan, the University of Colorado: http://web.eecs.umich.edu/~panalyzer/

    ARM处理器的功率分析仪是密歇根大学科罗拉多大学的合资企业:http://web.eecs.umich.edu/~panalyzer/

#2


1  

I couldn't see exact power values, just a lot of meta information on power (tested od 64bit Mint Maya). Nevertheless it might be useful to you:

我看不到确切的功率值,只有很多关于功率的元数据(测试过的od 64位Mint Maya)。然而,它可能对你有用:

PowerTOP is a Linux tool to diagnose issues with power consumption and power management. In addition to being a diagnostic tool, PowerTOP also has an interactive mode where you can experiment with various power management settings for cases where the Linux distribution has not enabled those settings.

PowerTOP是一个用于诊断功耗和功耗管理问题的Linux工具。除了是一种诊断工具之外,PowerTOP还提供了一种交互模式,您可以对Linux发行版未启用这些设置的情况进行各种电源管理设置的实验。

PowerTOP reports which components in the system are most likely to blame for a higher-than-needed power consumption, ranging from software applications to active components in the system. Detailed screens are available for CPU C and P states, device activity, and software activity.

PowerTOP报告系统中哪些组件最有可能被认为是高于需要的功耗,从软件应用到系统中的活动组件。详细的屏幕可用于CPU C和P状态、设备活动和软件活动。

For many years, PowerTOP has been used heavily by Intel, Linux distributors, and various parts of the open source community. We're hoping that our users find the second generation even more useful for their needs.

多年来,PowerTOP已经被Intel、Linux分销商和开源社区的各个部分大量使用。我们希望我们的用户能发现第二代对他们的需求更加有用。

homepage

主页

another article

另一篇文章

installation instructions:

安装说明:

sudo apt-get install powertop

usage instructions

使用说明

sudo powertop