Ubuntu optimizes the CPU usage frequency

Source: Internet
Author: User
Ubuntu optimizes the CPU operating frequency and opens the terminal: sudoapt-getinstallcpufrequtils, and then sudochmodu + s/usr/bin/cpufreq-set adds two commands in the System Startup Program startupapplication: /usr/bin/cpufreq-set-c0-g

Ubuntu optimizes the CPU operating frequency and opens the terminal:

Sudo apt-get install cpufrequtils

Then sudo chmod u + s/usr/bin/cpufreq-set

Add two commands to the System startup Program startup application:

/Usr/bin/cpufreq-set-c 0-g conservative

/Usr/bin/cpufreq-set-c 1-g conservative

You can run the following command after startup to check whether the command takes effect:

Cat/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Run cpufreq-info to obtain the following information (the computer is dual-core)

Nalyzing CPU 0:
Driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 0 1
CPUs which need to have their frequency coordinated by software: 0
Maximum transition latency: 10.0 us.
Hardware limits: 1000 MHz-2.00 GHz
Available frequency steps: 2.00 GHz, 1.67 GHz, 1.33 GHz, 1000 MHz
Available cpufreq governors:Conservative, Ondemand, userspace, powersave, performance
Current policy: frequency shocould be within 1000 MHz and 2.00 GHz.
The governor "conservative" may decide which speed to use
Within this range.
Current CPU frequency is 1000 MHz.
Cpufreq stats: 2.00 GHz: 8.28%, 1.67 GHz: 1.46%, 1.33 GHz: 2.61%, 1000 MHz: 87.64% (35285)
Analyzing CPU 1:
Driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 0 1
CPUs which need to have their frequency coordinated by software: 1
Maximum transition latency: 10.0 us.
Hardware limits: 1000 MHz-2.00 GHz
Available frequency steps: 2.00 GHz, 1.67 GHz, 1.33 GHz, 1000 MHz
Available cpufreq governors:Conservative, Ondemand, userspace, powersave, performance
Current policy: frequency shocould be within 1000 MHz and 2.00 GHz.
The governor "conservative" may decide which speed to use
Within this range.
Current CPU frequency is 1000 MHz.
Cpufreq stats: 2.00 GHz: 8.88%, 1.67 GHz: 0.99%, 1.33 GHz: 1.57%, 1000 MHz: 88.56% (35873)

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.