which C-state governor is in use


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users which C-state governor is in use
# 1  
Old 11-05-2009
Data which C-state governor is in use

How can one know which C-state governor is being used by the system ? Also I'm interested to know what is the procedure to change the C-state governor , say from ladder to menu governor ? Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Web Development

The State of Vue.js

Here is very good video from Evan You, founder of Vue.js, on the state of Vue.js State of Vuenation with Evan You Here is a nice PDF report on Vue.js Update State of Vue.js Report Vue.js is now the second most starred project on GitHub, recently surpassing Bootstrap. These two... (0 Replies)
Discussion started by: Neo
0 Replies

2. AIX

Open firmware state to running state

Hi Admins, I am having a whole system lpar in open firmware state on HMC. How can I bring it to running state ? Let me know. Thanks. (2 Replies)
Discussion started by: snchaudhari2
2 Replies

3. Solaris

Zone in down state

Hi all, One of my zone is stuck in down state, not able to boot it or halt it root@xpm9ka1 # zoneadm list -iv ID NAME STATUS PATH BRAND IP 0 global running / native shared 2 bsmrxdb4 down /zones/bsmrxdb4 native shared root@xpm9ka1 # zoneadm -z bsmrxdb4 boot zoneadm: zone... (6 Replies)
Discussion started by: peppeunz
6 Replies

4. UNIX for Advanced & Expert Users

When a process will go to 'D' state?

I'm using "Linux hostname 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC 2009 i686 GNU/Linux" All the client machines will use Thin-client ,I will use my laptop for working and I will mount my home directory from server to my laptop. If I open the firefox in my laptop the... (1 Reply)
Discussion started by: ungalnanban
1 Replies

5. UNIX for Advanced & Expert Users

cpufreq directory not present. How to change governor for P states in such a case

One node in my cluster is using ondemand governor which is specified in the directory /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor .. Scaling_governor allows us to choose the governor of our choice . But this sub-directory is absent in the other node of the cluster . How do I change... (0 Replies)
Discussion started by: vishwamitra
0 Replies

6. Solaris

Zone in down state.

One of my zone is stuck in down state, not able to boot it or halt it .. not even detach .. is there any way to recover without rebooting the whole system ( global zone ) ? (3 Replies)
Discussion started by: fugitive
3 Replies

7. UNIX for Advanced & Expert Users

TIME_WAIT state

in TCP, is TIME_WAIT state really essential..!!! (3 Replies)
Discussion started by: sasikanth
3 Replies

8. UNIX for Dummies Questions & Answers

Process State

If your process makes a system call, then while the system call code is being run in the kernel, is your process READY, RUNNING or BLOCKED? (1 Reply)
Discussion started by: ianlow
1 Replies

9. Programming

state mach{ne...

hi, I am looking for some info on how can we implement state machines. Conceptually it appears to be good but while implementing it causes lot of confusion.. I have some doubts regarding this concept. (my explanation may look wired, as I am also not clear on this front) The commonly... (2 Replies)
Discussion started by: parasa
2 Replies
Login or Register to Ask a Question
ACPICPU(4)						   BSD Kernel Interfaces Manual 						ACPICPU(4)

NAME
acpicpu -- ACPI CPU SYNOPSIS
acpicpu* at cpu? DESCRIPTION
The acpicpu device driver supports certain processor features that are either only available via ACPI or that require ACPI to function prop- erly. Typically the ACPI processor functionality is grouped into so-called C-, P-, and T-states. C-states The processor power states, or C-states, are low-power modes that can be used when the CPU is idle. The idea is not new: already in the 80486 processor a specific instruction (HLT) was used for this purpose. This was later accompanied by a pair of other instructions (MONITOR, MWAIT). By default, NetBSD may use either one; see the machdep.idle-mechanism sysctl(8) variable. ACPI provides the latest amendment. The following C-states are typically available. Additional processor or vendor specific states (C4, ..., Cn) are handled internally by acpicpu. C0 This is the normal state of a processor; the CPU is busy executing instructions. C1 This is the state that is typically reached via the mentioned x86 instructions. On a typical processor, C1 turns off the main internal CPU clock, leaving APIC running at full speed. The CPU is free to temporarily leave the state to deal with important requests. C2 The main difference between C1 and C2 lies in the internal hardware entry method of the processor. While less power is expected to be consumed than in C1, the bus interface unit is still running. But depending on the processor, the local APIC timer may be stopped. Like with C1, entering and exiting the state are expected to be fast operations. C3 This is the deepest conventional state. Parts of the CPU are actively powered down. The internal CPU clock is stopped. The local APIC timer is stopped. Depending on the processor, additional timers such as x86/tsc(9) may be stopped. Processor caches may be flushed. Entry and exit latencies are expected to be high; the CPU can no longer ``quickly'' respond to bus activity or other interruptions. Each state has a latency associated with entry and exit. The higher the state, the lower the power consumption, and the higher the potential performance costs. The acpicpu driver tries to balance the latency constraints when choosing the appropriate state. One of the checks involves bus master activity; if such activity is detected, a lower state is used. It is known that particularly usb(4) may cause high activity even when not in use. If maximum power savings are desirable, it may be necessary to use a custom kernel without USB support. And generally: to save power with C-states, one should avoid polling, both in userland and in the kernel. P-states The processor performance states, or P-states, are used to control the clock frequencies and voltages of a CPU. Underneath the abstractions of ACPI, P-states are associated with such technologies as ``SpeedStep'' (Intel), ``PowerNow!'' (AMD), and ``PowerSaver'' (VIA). The P0-state is always the highest operating frequency supported by the processor. The number of additional P-states may vary across proces- sors and vendors. Each higher numbered P-state represents lower clock frequencies and hence lower power consumption. Note that while acpicpu always uses the exact frequencies internally, the user-visible values reported by ACPI may be rounded or approximated by the vendor. Unlike conventional CPU frequency management, ACPI provides support for Dynamic Voltage and Frequency Scaling (DVFS). Among other things, this means that the firmware may request the implementation to dynamically scale the presently supported maximum or minimum clock frequency. For example, if acpiacad(4) is disconnected, the maximum available frequency may be lowered. By default, the NetBSD implementation may manipulate the frequencies according to the notifications from the firmware. T-states Processor T-states, or ``throttling states'', can be used to actively modulate the time a processor is allowed to execute. Outside the ACPI nomenclature, throttling and T-states may be known as ``on-demand clock modulation'' (ODCM). The concept of ``duty cycle'' is relevant to T-states. It is generally defined to be a fraction of time that a system is in an ``active'' state. The T0-state has always a duty cycle of 100 %, and thus, comparable to the C0-state, the processor is fully active. Each additional higher-numbered T-state indicates lower duty cycles. At most eight T-states may be available, although also T-states use DVFS. The duty cycle does not refer to the actual clock signal, but to the time period in which the clock signal is allowed to drive the processor chip. For instance, if a T-state has a duty cycle of 75 %, the CPU runs at the same clock frequency and uses the same voltage, but 25 % of the time the CPU is forced to idle. Because of this, the use of T-states may severely affect system performance. There are two typical situations for throttling: power management and thermal control. As a technique to save power, T-states are largely an artifact from the past. There was a short period in the x86 lineage when P-states were not yet available and throttling was considered as an option to modulate the processor power consumption. The approach was however quickly abandoned. In modern x86 systems P-states should be preferred in all circumstances. It is also more beneficial to move from the C0-state to deeper C-states than it is to actively force down the duty cycle of a processor. But T-states have retained their use as a last line of defense against critical thermal conditions. Many x86 processors include a cata- strophic shutdown detector. When the processor core temperature reaches this factory defined trip-point, the processor execution is halted without any software control. Before this fatal condition, it is possible to use throttling for a short period of time in order to force the temperatures to lower levels. The thermal control modulation is typically started only when the system is in the highest-power P-state and a high temperature situation exists. After the temperatures have returned to non-critical levels, the modulation ceases. System Control Variables The acpicpu driver uses the same sysctl(8) controls for P-states as the ones provided by est(4) and powernow(4). Depending on the processor, the second-level node is either machdep.est or machdep.powernow. Please note that future versions of acpicpu may however remove these system control variables without further notice. In addition, the following two variables are available. hw.acpi.cpu.dynamic A boolean that controls whether the states are allowed to change dynamically. When enabled, C-, P-, and T-states may all change at runtime, and acpicpu may also take actions based on requests from the firmware. hw.acpi.cpu.passive A boolean that enables or disables automatic processor thermal management via acpitz(4). Statistics The acpicpu driver uses event counters to track the times a processor has entered a given state. It is possible to view the statistics by using vmstat(1) (with the -e flag). SEE ALSO
acpi(4), acpitz(4), est(4), odcm(4), powernow(4), cpu_idle(9) Etienne Le Sueur and Gernot Heiser, Dynamic Voltage and Frequency Scaling: The Laws of Diminishing Returns, http://www.ertos.nicta.com.au/publications/papers/LeSueur_Heiser_10.pdf, October, 2010, Proceedings of the 2010 Workshop on Power Aware Computing and Systems (HotPower'10). David C. Snowdon, Operating System Directed Power Management, School of Computer Science and Engineering, University of New South Wales, http://ertos.nicta.com.au/publications/papers/Snowdon:phd.pdf, March, 2010, PhD Thesis. Microsoft Corporation, Windows Native Processor Performance Control, Version 1.1a, http://msdn.microsoft.com/en-us/windows/hardware/gg463343, November, 2002. Venkatesh Pallipadi and Alexey Starikovskiy, The Ondemand Governor. Past, Present, and Future, Intel Open Source Technology Center, http://www.kernel.org/doc/ols/2006/ols2006v2-pages-223-238.pdf, July, 2006, Proceedings of the Linux Symposium. HISTORY
The acpicpu device driver appeared in NetBSD 6.0. AUTHORS
Jukka Ruohonen <jruohonen@iki.fi> CAVEATS
At least the following caveats can be mentioned. o It is currently only safe to use C1 on NetBSD. All other C-states are disabled by default. o Processor thermal control (see acpitz(4)) is not yet supported. o Depending on the processor, changes in C-, P-, and T-states may all skew timers and counters such as x86/tsc(9). This is neither handled by acpicpu nor by est(4) or powernow(4). o There is currently neither a well-defined, machine-independent API for processor performance management nor a ``governor'' for different policies. It is only possible to control the CPU frequencies from userland. BSD
August 6, 2011 BSD