Debian dual-core cpu Configuration

Source: Internet
Author: User
Tags superuser permission
Debian: dual-core cpu configuration-Linux Release Technology-Debian information. See the following for details. Text: jiqing (jiqing) Co., http://hi.baidu.com/jiqing0925.
Email: jiqingwu@gmail.com

My computer in the lab is amd dual-core cpu and debian etch is installed.

When I added the system monitor to the Panel, I found that the cpu usage is always above 50%, that is, there is always a core running at full load.

I searched the internet for this problem and found that almost no one of me encountered the same problem.

I think the cpu has two cores. The system must have set the operating mode of the first core, but the second core is not managed. Maybe the second core has been executing empty commands, so it is full.

Finally, I found this article to adjust the cpu frequency. After reading this article, I tried it. I did this:

1. edit/etc/modules and add the kernel module mounted by modprobe.

Cpufreq-userspace
Cpufreq-ondemand
Cpufreq-powersave
Cpufreq-conservative
Powernow-k8.ko # Please change to the corresponding frequency adjustment module, which is corresponding to my amd frequency adjustment drive.

Install sysfsutils

# Apt-get install sysfsutils

Edit/etc/sysfs. conf with the superuser permission. File Content:

Devices/system/cpu/cpu0/cpufreq/scaling_governor = ondemand
Devices/system/cpu/cpu0/cpufreq/scaling_max_freq = 1600000 # change it to the maximum CPU frequency
Devices/system/cpu/cpu1/cpufreq/scaling_governor = ondemand
Devices/system/cpu/cpu1/cpufreq/scaling_max_freq = 1600000 # change it to the maximum CPU frequency

In this way, I have set the running mode of both cpu cores. In fact, I used my cpu for downgrading, And the cpu speed was 2 GB. I only used 1.6 GB.

I don't need to be so fast, and the cpu is still power-saving and environmentally friendly.

Restart, haha, solve the problem, cpu0 and cpu1 are liberated, and live a happy life.

I often peek at them through the system monitor and find that their usage rate is generally 0%. I envy their brother's leisurely life.
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.