[SOLVED] what is difference between performance and frequency of processers
Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
In a nutshell: How performant a processor is depends upon it's clock speed (how many things it can do per second) and the number of clock cycles (things it does) one instruction takes.
So, say a processor is working at two cycles per second 2Hz and the operation of adding two numbers together takes two clock cycles - that CPU will only be that same speed, in reality, as one which is working at 1Hz but can add in one clock cycle.
Modern processors of the x86 variety actually do more that just simple arithmetic per clock cycle and how much they can do per clock cycle is a big factor in how well they actually perform.
In Linux Source Code, especially intel_pstate.c, to adjuest cpu's with Performance value, frequency value or pstate value.
So how to know when to choice, when I want to adjuest cpu's?
frequency is the clock rate or clock speed when cpu is running.
P state is a combination of voltage and frequency.
But I don't know how to understand performance. The performance is an alias for Pstate?
Thanks All for answers.
According to the documents you have provided and analyzing source code of Linux, I think Performance is a mathematical abstraction and an intermediate variable used for calculating.
The P in p-state is not short for performance. It's short for power. Power as in the electricity that gets used by the CPU.
My understanding of how these relate is the common one: that as power and frequency increase, "performance" (see the Wikipedia article above for the definition) also increases.
14.2
P-STATE HARDWARE COORDINATION
The Advanced Configuration and Power Interface (ACPI) defines performance states (P-states) that are used to
facilitate system software’s ability to manage processor power consumption. Different P-states correspond to
different performance levels that are applied while the processor is actively executing instructions. Enhanced Intel
SpeedStep Technology supports P-states by providing software interfaces that control the operating frequency and
voltage of a processor.
That copied from "Intel 64 and IA-32 Architectures Software Developer's Manual".
It's to metion: performance states (P-states)
In Linux Source Code, especially intel_pstate.c, to adjuest cpu's with Performance value, frequency value or pstate value.
So how to know when to choice, when I want to adjuest cpu's?
Screw Intel_Pstate.. Add
Code:
intel_pstate=disable
to your bootline, and it will use acpi-cpufreq driver instead. With this driver you can do alot more with your cpufreq and frequency scaling in general.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.