Core parking is a new feature that introduced in Windows 7 to get better Battery performance .
Depending on the resource use of the operating system it may park one or multiple cores of a multi-core cpu to reduce the computer’s power consumption and thermal emissions. Once operations require more processing power, the parked cores are activated again to assist in the tasks
So my question is that is there any way i can do it on Ubuntu 12.04 " Core Parking " ?
For the time being, I do not have a clear answer for this, however it is obvious that the linux Kernel is using some energy saving mechanisms.
However, doing some quick research around, I quickly realised that the most recent Linux kernels make use of a feature called ACPI which is an acronym for Advanced Configuration and Power Interface.
What the ACPI is doing:
via Wikipedia.
Basically the ACPI allows for control of different CPU states, to allow for better power management.
Different ACPI CPU-states:
CPU C-States (power management)
CPU-T States (throttling)
CPU-P States (performance)
** Some consumption benchmarks:**
Some references for further reading
EDITS
[EDIT #1]: Googling around, I found some other posts in some forums too (OpenSuse forum seems to be relevant to what you seek) and found out that this is not that much of an issue for Linux as it is for windows and especially in gaming. I also dug up some information in two mails (first one and second one [follow-up]) in the RedHat mailing lists that seems to be related. I am currently researching the information in it.
[EDIT #2]: I have researched the issue a bit, and I am getting more and more certain that there is not a core parking mechanism in Linux, unless there is one the ACPI that I am unaware of. Some interesting findings are some pieces of software that allow for direct manipulation of the cpu and the processes run on it, like cpuset, numactl and last but not least, CPUfreq. Will continue with my research.
There's an article here mentioning that core parking relates to setting cores to advance c-states to save power. c-states are set with the halt instruction. As NlightNFotis mentions this is done using linux's support for ACPI.
You may be able to get some more information about the states into which your cores are put by linux with the
powertop
(sudo apt-get install powertop
) open source program written by Intel. If your hardware supports various c-states it should be able to tell you what percentage of time your cores are put into these reduced-power states by Ubuntu Linux. See below. The higher number the c-state the more power that is saved.It provides much more information as well.
Also, like Windows, when there is work to do Linux can adjust the frequency at which the cores run depending upon the amount of demand, desire to save power, etc.
My laptop doesn't support c-states, though it can be suspended. A little Acer we have with an Atom processor does support them, as you can see below.