个人工具
登录
查看“UbuntuHelp:LongRunHowTo”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:LongRunHowTo”的源代码
来自Ubuntu中文
←
UbuntuHelp:LongRunHowTo
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/LongRunHowTo}} {{Languages|UbuntuHelp:LongRunHowTo}} LongRun is a [http://www.transmeta.com/ Transmeta (tm)] introduced feature in their [http://www.transmeta.com/crusoe/index.html Crusoe (tm)] and [http://www.transmeta.com/efficeon/index.html Efficeon (tm)] based processors for power management. It allows processors to be configured to use less or more power by demand or on its own using extensions built into the processors. The official definition from http://www.transmeta.com/efficeon/faq.html#12: ==== Definition ==== LongRun is Transmeta's original proprietary power management technology that enables processors to change voltage and frequency dynamically -- hundreds of times per second -- to provide the performance needed by the application at any moment. Transmeta introduced LongRun power management in the Crusoe processor, and the new Efficeon processor now also incorporates Enhanced LongRun technology. ==== FAQ ==== Transmeta (tm) FAQ http://www.transmeta.com/efficeon/faq.html ==== See Also ==== [[UbuntuHelp:HardwareSupportMachinesECS]] === LongRun HOWTO === This page is dedicated to making Ubuntu Linux take advantage of and control Long Run enabled processors -- most notably the Crusoe&tm; processors from [http://www.transmeta.com/ Transmeta&tm;]. This HOWTO was written to explain certain things regarding the longrun utility and how to get it to work on Ubuntu 5.04 (Hoary Hedgehog). '''NOTE:''' Tips may work on previous versions of Ubuntu, however testing would be necessary to confirm their effectivenes. ==== Requirements ==== To be able to make use of the LongRun functionality of the Transmeta&tm; Crusoe&tm; family of processors on Ubuntu Linux, there are certain requirements especially in the kernel drivers. These are the following: * CPUID device driver * MSR device driver * longrun package (available from the universe repository) The first two device drivers may be loaded from the default Ubuntu packaged Linux Kernel by issuing the following commands from the terminal (or the shell): <pre><nowiki> sudo modprobe cpuid sudo modprobe msr </nowiki></pre> The two modules may be loaded during boot time by adding the two module names to /etc/modules -- and part of which is shown below: <pre><nowiki> # /etc/modules: kernel modules to load at boot time. ... # load the two required modules for longrun at boot time. cpuid msr ... </nowiki></pre> The '''longrun''' utility is provided by the `longrun package from universe: <pre><nowiki> sudo apt-get install longrun </nowiki></pre> ==== Command Index ==== There are five operations which can be done using the longrun utility to enable, configure, disable, and query the LongRun settings for the processor. These are: * Listing LongRun information about available performance levels for the processor. * Printing the current LongRun settings and status * Setting the LongRun mode flag * Configuring the current LongRun performance window * Setting the current LongRun Thermal Extensions setting These operations are enumerated in depth in the following sections. The basic format for the longrun command is as follows: <pre><nowiki> longrun -c (cpuid device) -m (msr device) (command flag) [command options] </nowiki></pre> CPUID device pertains to the device created and associated with the CPUID device driver -- and which works the same for the MSR device, created and associated with the MSR device driver. Usually, on uniprocessor systems, CPUID and MSR devices for the one and only processor are the following files respectively: <pre><nowiki> /dev/cpu/0/cpuid /dev/cpu/0/msr </nowiki></pre> When used in the longrun function, it usually looks like the following: <pre><nowiki> sudo longrun -c /dev/cpu/0/cpuid -m /dev/cpu/0/msr ... </nowiki></pre> The '0' (zero) pertains to the cpu id which you want to be able to control with the utility. In cases where there are more than one LongRun capable processor in the system, the each one gets a cpu id. For example, in a dual-Crusoe(TM) system, the second processor is accessed using the following device(s): <pre><nowiki> /dev/cpu/1/cpuid /dev/cpu/1/msr </nowiki></pre> '''NOTE:''' To be able to perform these operations, make sure that the appropriate drivers have been loaded and that the `longrun is installed in the system. See above for information about installing required packages and loaded device drivers. ===== Displaying current settings and status. ===== The following command can be used to display the current settings and status: <pre><nowiki> sudo longrun -c /dev/0/cpuid -m /dev/0/msr -p </nowiki></pre> Which would yield something similar to this: <pre><nowiki> LongRun: enabled LongRun Thermal Extensions (LTX): inactive Current performance window: 0 to 100 Current performance level: 66 LongRun flags: economy </nowiki></pre> ===== Listing available LongRun performance levels ===== To see the available performance levels for the processor, the following command should show that information on the terminal/command line: <pre><nowiki> sudo longrun -c /dev/cpu/0/cpuid -m /dev/cpu/0/msr -l </nowiki></pre> Typical outputs look like the following: <pre><nowiki> # % MHz Volts usage SDR DDR PCI 0 300 1.200 0.281 100 75 33 33 400 1.250 0.407 100 80 33 66 500 1.400 0.638 125 100 33 100 600 1.600 1.000 120 100 33 </nowiki></pre> The above values are obtained from a Transmeta(TM) Crusoe(TM) Processor TM5600, installed on an ECS Desknote A530 (See [HardwareSupportMachinesECS] for more information). The significant values of note are the values on the first colum, which defines the possible values for the performance window. ===== Configuring the Current Performance Window ===== Given the values from the available performance levels, setting the current performance window (minimum and maximum levels) may be done using the following command: <pre><nowiki> sudo longrun -c /dev/cpu/0/cpuid -m /dev/cpu/0/msr -s 0 100 </nowiki></pre> When the current settings and status are displayed, the output should be similar to the following: <pre><nowiki> sudo longrun -c /dev/cpu/0/cpuid -m /dev/cpu/0/msr -p </nowiki></pre> Ouput: <pre><nowiki> LongRun: enabled LongRun Thermal Extensions (LTX): inactive Current performance window: 0 to 100 Current performance level: 100 LongRun flags: economy </nowiki></pre> '''TODO:''' Explain performance window and its effect on the performance of the processor. ===== Setting the performance mode flag ===== LongRun CPU's have different performance mode flags, which can be set using the '''-f''' option of the longrun utility. In the case of the Transmeta&tm; Crusoe&tm; TM5600, the two flags ''performance'' and ''economy'' are available. To set the performance flag using the longrun utility, the following command can be used: <pre><nowiki> sudo longrun -c /dev/0/cpuid -m /dev/0/msr -f performance </nowiki></pre> Which sets the ''performance'' flag for the processor. To verify the results, the settings are printed: <pre><nowiki> sudo longrun -c /dev/0/cpuid -m /dev/0/msr -p </nowiki></pre> <pre><nowiki> LongRun: enabled LongRun Thermal Extensions (LTX): inactive Current performance window: 0 to 100 Current performance level: 100 LongRun flags: performance </nowiki></pre> '''TODO:''' Explain what the ''performance'' and ''economy'' flags do for the processor. Consult technical docs for more info. ===== Setting thermal extension settings. ===== LongRun Thermal Extensions (LTX) can be enabled, disabled, and configured using the '''-t''' option. Valid values range from 0 to 8 where a setting of 8 turns off the extensions. To set the LTX to the highest sensitivity (?) setting of 0, the following command can be used: <pre><nowiki> sudo longrun -c /dev/cpu/0/cpuid -m /dev/cpu/0/msr -t 0 </nowiki></pre> To verify: <pre><nowiki> sudo longrun -c /dev/cpu/0/cpuid -m /dev/cpu/0/msr -p </nowiki></pre> <pre><nowiki> LongRun: enabled LongRun Thermal Extensions (LTX): active LTX setting: reserved Current performance window: 0 to 100 Current performance level: 0 LongRun flags: performance </nowiki></pre> Notice that the LTX setting is set to '''reserved''' while the LongRun Thermal Extensions (LTX) indicates that it's "active". From '''man longrun''': <pre><nowiki> Longrun Thermal Extensions (LTX) is an alternative way to manipulate the power saving functionality of the processor, by controlling heat dissipation directly. Settings 2 through 8 represent power utilization levels from 25% to 100%, respectively, in 12.5% increments. NOTE: Settings 0 and 1 are listed as ’reserved’ in the TM5600 literature. Though they appear to represent 0% and 12.5% respectively on the TM5800 chip, use these settings at your own risk. ... Notes: This functionality may or may not provide you with different performance per watt characteristings than the -s flag. It is provided for completeness, and left as an exercise to the reader to decide if it is appropriate on their system. As mentioned above, use the -t 0 and -t 1 settings with caution. </nowiki></pre> ==== Work in Progress ==== This HOWTO is a work in progress. Please feel free to comment on the Wiki, or contact DeanMichaelBerris for questions and clarifications. ==== Other HOWTO's ==== http://research.indocisc.com/~andika/ecs/ [[category:CategoryDocumentation]] [[category:CategoryHardware]] [[category:CategoryCleanup]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:LongRunHowTo
。