Chinese translated version of Documentation/cpu-freq/cpufreq-stats.txt
If you have any comment or update to the content, please contact the
original document maintainer directly. However, if you have a problem
communicating in English you can also ask the Chinese maintainer for
help. Contact the Chinese maintainer if this translation is outdated
or if there is a problem with the translation.
Chinese maintainer: Liemin Ma <[email protected]>
---------------------------------------------------------------------
Documentation/cpu-freq/cpufreq-stats.txt 的中文翻译
如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文
交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻
译存在问题,请联系中文版维护者。
中文版维护者: 马列敏 <[email protected]>
中文版翻译者: 马列敏<[email protected]>
中文版校译者: 马列敏<[email protected]>
以下为正文
---------------------------------------------------------------------
3 CPU frequency and voltagescaling statistics in the Linux(TM) kernel
在Linux(TM)内核里CPU频率和电压缩放统计
5 L i n u x c p u f r e q - s t a t s d r i v e r
linux cpufreq-stats驱动程序
7 -information for users -
用户须知
10 Venkatesh Pallipadi <[email protected]>
12 Contents
13 1. Introduction
14 2. Statistics Provided (with example)
15 3. Configuring cpufreq-stats
内容
1.引言
2.提供的统计数据(带有示例)
3.配置cpufreq-stats
18 1. Introduction
1.引言
20 cpufreq-stats is a driver that provides CPU frequency statistics foreach CPU.
21 These statistics are provided in /sysfs as a bunch of read_onlyinterfaces. This
22 interface (when configured) will appear in a separate directory undercpufreq
23 in /sysfs (<sysfs root>/devices/system/cpu/cpuX/cpufreq/stats/)for each CPU.
24 Various statistics will form read_only files under this directory.
cpufreq-stats是一个为每个CPU提供 CPU频率的统计数据的驱动程序。这些数据提供了/ sysfs中的一堆read_only接口,这个接口(在配置时)就会为了每个CPU出现在一个单独的目录在/ cpufreq sysfs(< sysfs root > /设备/系统/ cpu / cpuX / cpufreq /统计/)。各种统计数据将形成read_only这个目录下的文件。
26 This driver is designed to be independent of any particularcpufreq_driver
27 that may be running on your CPU. So, it will work with anycpufreq_driver.
这个驱动程序被设计成可能是你的CPU上运行的独立于任何特定的cpufreq_driver,所以它将与任何cpufreq_driver一同运行。
30 2. Statistics Provided (with example)
2.提供的统计数据(带有示例)
32 cpufreq stats provides following statistics (explained in detailbelow).
cpufreq统计提供了以下统计(下面详细解释)。
33 - time_in_state
34 - total_trans
35 - trans_table
37 All the statistics will be from the time the stats driver has beeninserted
38 to the time when a read of a particular statistic is done. Obviously,stats
39 driver will not have any information about the frequency transitionsbefore
40 the stats driver insertion.
所有的数据都是从数据驱动程序被插入时一直到一个特定统计的读操作完成时。显然,统计驱动程序之前不会有关于频率转换的任何信息的统计。
42 --------------------------------------------------------------------------------
43 <mysystem>:/sys/devices/system/cpu/cpu0/cpufreq/stats # ls -l
44 total 0
45 drwxr-xr-x 2 root root 0 May 14 16:06 .
46 drwxr-xr-x 3 root root 0 May 14 15:58 ..
47 -r--r--r-- 1 root root 4096 May14 16:06 time_in_state
48 -r--r--r-- 1 root root 4096 May14 16:06 total_trans
49 -r--r--r-- 1 root root 4096 May14 16:06 trans_table
50--------------------------------------------------------------------------------
52 - time_in_state
53 This gives the amount of time spent in each of the frequenciessupported by
54 this CPU. The cat output will have "<frequency><time>" pair in each line, which
55 will mean this CPU spent <time> usertime units of time at<frequency>. Output
56 will have one line for each of the supported frequencies. usertimeunits here
57 is 10mS (similar to other time exported in /proc).
这给出的时间都用在每个被CPU支持的频率里,猫输出将有“<frequency><time>”对中的每一行,这就意味着这个CPU花费的时间<time>的usertime单位<frequency>。输出将为每个支持频率都预留一行。这里的usertime单位为10mS(类似于其他出口时间
59--------------------------------------------------------------------------------
60 <mysystem>:/sys/devices/system/cpu/cpu0/cpufreq/stats # cattime_in_state
61 3600000 2089
62 3400000 136
63 3200000 34
64 3000000 67
65 2800000 172488
66 --------------------------------------------------------------------------------
69 - total_trans
70 This gives the total number of frequency transitions on this CPU. Thecat
71 output will have a single count which is the total number of frequency
72 transitions.
在这个CPU上给出了频率转换的总数,猫的输出将会有一个计数频率转换的总数。
73 74--------------------------------------------------------------------------------
75 <mysystem>:/sys/devices/system/cpu/cpu0/cpufreq/stats # cattotal_trans
76 20
77--------------------------------------------------------------------------------
79 - trans_table
80 This will give a fine grained information about all the CPU frequency
81 transitions. The cat output here is a two dimensional matrix, where anentry
82 <i,j> (row i, column j) represents the count of number oftransitions from
83 Freq_i to Freq_j. Freq_i is in descending order with increasing rowsand
84 Freq_j is in descending order with increasing columns. The output herealso
85 contains the actual freq values for each row and column for betterreadability.
这将会给出所有的有关于CPU频率转换的细粒度的信息。猫输出是一个二维矩阵,在那里一个条目< i,j >(行,列j)代表的数的转换Freq_i Freq_j。Freq_i与增加行和降序Freq_j降序排列,增加列。这里的输出还包含每行和每列更好的实际频率值。
87--------------------------------------------------------------------------------
88 <mysystem>:/sys/devices/system/cpu/cpu0/cpufreq/stats # cattrans_table
89 From : To
90 : 3600000 3400000 3200000 3000000 2800000
91 3600000: 0 5 0 0 0
92 3400000: 4 0 2 0 0
93 3200000: 0 1 0 2 0
94 3000000: 0 0 1 0 3
95 2800000: 0 0 0 2 0
96--------------------------------------------------------------------------------
99 3. Configuring cpufreq-stats
3.配置cpufreq-stats
101 To configure cpufreq-stats in your kernel
102 Config Main Menu
103 Power management options(ACPI, APM) --->
104 CPU Frequencyscaling --->
105 [*] CPUFrequency scaling
106 <*> CPU frequencytranslation statistics
107 [*] CPU frequency translation statisticsdetails
在内核里配置cpufreq-stats
配置主菜单
电源管理选项(ACPI,APM)--->
CPU频率调节--->
[*] CPU频率调节
<*> CPU频率转换统计
[*] CPU频率转化统计数字的详细资料
110 "CPU Frequency scaling" (CONFIG_CPU_FREQ) should be enabledto configure
CPU频率调节(CONFIG_CPU_FREQ) 应该能被配置
111 cpufreq-stats.
113 "CPU frequency translation statistics" (CONFIG_CPU_FREQ_STAT)provides the
114 basic statistics which includes time_in_state and total_trans.
“CPU频率转化统计”(CONFIG_CPU_FREQ_STAT)提供了基本的统计数据,其中包括time_in_state和total_trans。
116 "CPU frequency translation statistics details"(CONFIG_CPU_FREQ_STAT_DETAILS)
117 provides fine grained cpufreq stats by trans_table. The reason forhaving a
118 separate config option for trans_table is:
119 - trans_table goes against the traditional /sysfs rule of one value per
120 interface. It provides a wholebunch of value in a 2 dimensional matrix
121 form.
“CPU频率转化统计细节”(CONFIG_CPU_FREQ_STAT_DETAILS)提供了细粒cpufreq trans_table统计。单独的配置选项trans_table的原因是:-有悖于传统trans_table / sysfs规则每个接口的一个值。它在一个二维矩阵形式中提供了很多有价值的。
123 Once these two options are enabled and your CPU supports cpufrequency,you
124 will be able to see the CPU frequency statistics in /sysfs.
一旦这两个选项被启用,并且你的CPU支持 cpufrequency,你就将能看到/ sysfs中CPU频率的统计数据。
文章浏览阅读2.5w次,点赞9次,收藏51次。操作环境:vmware虚机一、整体流程在使用fdisk/parted等分区工具对硬盘分区之后,是否使用LVM由用户决定 : 1)可以直接对分区后的硬盘进行格式化操作,之后挂载分区; 2)也可以先用LVM逻辑卷管理工具对分区后的物理卷进行管理,之后再对逻辑卷进行格式化操作,之后挂载分区。( LVM的分区类型为8e) 使用LVM的好处是方_linux中lvm的分区类型是什么
文章浏览阅读821次。一:介绍监控Github上的漏洞、红队等信息发送钉钉、邮箱、Telegram BOT、server酱,Telegram BOT时需要安装telegram bot需要的库:pip3 install python-telegram-bot二:服务部署步骤一:在海外云主机上运行一下命令拉取项目文件git clone https://github.com/JustYoomoon/CVEAP.git步骤二:进入项目文件进行配置(钉钉)##########修改处1########钉钉def dingd_使用钉钉做cve实时监测机器人
文章浏览阅读4k次。接口测试登录遇到验证码问题,本文章使用appfox引用外部文件来处理带有图片验证码问题_使用apifox怎么解决接口登录时动态验证码
文章浏览阅读2.5w次,点赞25次,收藏149次。Java开发环境搭建与实验教程如何配置JAVA的环境变量下载Java JDK(JDK包含JRE。SDK是Software Development Kit 即软件开发工具包,可以包括函数库、编译程序等。JRE是Java RuntimeEnviroment是指Java的运行环境,是面向Java程序的使用者,而不是开发者。)可到网上搜索下载。官方下载地址:http://www...._"%java_home%\\bin\\java\" -dfile.encoding=gb18030 -cp \"%myclasspath%\" %myserver"
文章浏览阅读153次。一、dubbo、zookeeperzookeeper注册中心,其可看成是zookeeper=文件系统+监听通知机制。主要用于分布式应用配置管理、统一命名服务、状态同步服务、集群管理等。zookeeper用来注册服务和进行负载均衡,通过心跳机制可以检测挂掉的机器并将挂掉机器的ip和服务对应关系从列表中删除。zookeeper是一个分布式协调服务:a:zookeeper是为别的分布式程序服务的b:zookeeper本身就是一个分布式程序(只要半数以上节点存活,zookeeper就能正常服务。)c:_springboot+dubbo+zookeeper特点
文章浏览阅读4.5k次,点赞7次,收藏31次。作为一枚码农,下载b站的时候以前虽然知道用you-get,但是还是想批量进行下载you-get虽然可以在命令行直接下载,但是这样很费事,还是想写在一个python文件这样方便我注意到you-get是可以开多个窗口同时下载的,这样可以提高下载速度的,不信可以试一下。但是这样得开很多个窗口,这样也是很麻烦的一件事。然后就想到了,干脆直接在python文件里做成多进程算了。直接看代码..._you-get批量下载
文章浏览阅读829次。第一步:窗口最小化到托盘,显示图标。这一步在网上一搜,真的很多文章,基本上都可以用吧。有的是在OnSize中最化时画图标,隐藏窗口;有的是在初始化时画图标,在OnSysCommand中判断最大化和最小化时进行窗口显示隐藏。我选择了后者。一开始在后面的步骤遇到了麻烦,最后第二种方法完成了。谅没再去试第一种方法。在OnSysCommand中显示隐藏,效果挺好的。 我的开发环境是V..._c 语言 软件显示在右侧的最小
文章浏览阅读3.3w次,点赞68次,收藏340次。因为前段时间上课有接触WEKA这个软件 ,写了一个实验报告,特此把它贴出来,希望能对大家有所帮助~一、Weka介绍1、Weka简介Weka是怀卡托智能分析环境(Waikato Environment for Knowledge Analysis)的英文字首缩写,在该网站可以免费下载可运行软件和源代码,还可以获得说明文档、常见问题解答、数据集和其他文献等资源。Weka是新西兰怀卡托大学用..._weka安装
文章浏览阅读4.6k次。问题s001.vmdk”所在的文件系统已满。 选择“重试(R)”可重试该操作。 选择“取消”将结在下载docker镜像时候,提示虚拟硬盘空间不足,点击取消,就会退出系统,如果再打开系统,还是会一直出现这个提示解决办法打开你存放虚拟机系统文件的文件夹。然后以下面关键字搜索这个文件夹:*.lck。删除所有找到的就可以了。..._ubuntu 64 位-s001.vmdk
文章浏览阅读786次,点赞4次,收藏2次。BUAA数据结构期末模拟题——网络打印机延迟率计算看前须知考试回顾题目内容问题描述输入形式输出形式样例样例说明看前须知要点介绍和简要声明.考试回顾格式控制输入输出——期中考试模拟题(简单的分类讨论).标识符的识别(期中考试题)——题目说的不清不楚但其实不难.空闲空间申请模拟(期中考试题)——注意读题,难度其实一般.网络打印机选择(北京学院数据结构18级期末压轴题)——伪树状数组(这题杀我)(ಥ_ಥ).查家谱(士谔书院16级期末)——找最近公共祖先.图的直径(士谔书院15级期末)——求有向图_某单位信息网络结构呈树形网络 北航
文章浏览阅读326次。_linux使用nmap获得了假信息
文章浏览阅读1w次。在看本文之前,建议查看本人的系列文章:《AjaxPro与服务器端交互过程中如何传值》:http://blog.csdn.net/zhoufoxcn/archive/2008/01/05/2026908.aspx 《用AjaxPro实现二级联动》:http://blog.csdn.net/zhoufoxcn/archive/2008/01/07/2029204.aspx 《用AjaxPro实现定时刷_ajaxpro 全部数据分页