Lines Matching +full:exit +full:- +full:latency

1 .. SPDX-License-Identifier: GPL-2.0
27 CPU idle time management is an energy-efficiency feature concerned about using
31 ------------
37 software as individual single-core processors. In other words, a CPU is an
46 Second, if the processor is multi-core, each core in it is able to follow at
61 Finally, each core in a multi-core processor may be able to follow more than one
66 multiple individual single-core "processors", referred to as *hardware threads*
67 (or hyper-threads specifically on Intel hardware), that each can follow one
78 ---------
107 next wakeup event, or there are strict latency constraints preventing any of the
112 .. _idle-loop:
127 the platform or the processor architecture and organized in a one-dimensional
134 taken into account by the governor, the *target residency* and the (worst-case)
135 *exit latency*. The target residency is the minimum time the hardware must
139 corresponds to the power drawn by the processor in that state.] The exit
140 latency, in turn, is the maximum time it will take a CPU asking the processor
142 wakeup from that state. Note that in general the exit latency also must cover
152 and exit it. However, the CPU may be woken up by a non-timer event at any time
162 There are four ``CPUIdle`` governors available, ``menu``, `TEO <teo-gov_>`_,
165 tick can be `stopped by the idle loop <idle-cpus-and-tick_>`_. Available
186 .. _idle-cpus-and-tick:
223 (non-tick) timer due to trigger within the tick range, stopping the tick clearly
225 reprogrammed in that case. Second, if the governor is expecting a non-timer
247 loop altogether. That can be done through the build-time configuration of it
255 generally regarded as more energy-efficient than the systems running kernels in
261 .. _menu-gov:
319 the predicted idle duration and the exit latency of it with the with the latency
320 limit coming from the power management quality of service, or `PM QoS <cpu-pm-qos_>`_,
322 idle duration, but still below it, and exit latency that does not exceed the
326 if it has not decided to `stop the scheduler tick <idle-cpus-and-tick_>`_. That
335 .. _teo-gov:
342 <menu-gov_>`_: it always tries to find the deepest idle state suitable for the
345 .. kernel-doc:: drivers/cpuidle/governors/teo.c
346 :doc: teo-description
348 .. _idle-states-representation:
354 supported by the processor have to be represented as a one-dimensional array of
359 the hierarchy. In that case, the `target residency and exit latency parameters
360 of it <idle-loop_>`_, must reflect the properties of the idle state at the
376 that state. Analogously, the exit latency parameter of that object must cover
377 the exit time of idle state "MX" of the module (and usually its entry time too),
390 used by the governor for idle state selection (for instance, the actual exit
391 latency of that idle state must not exceed the exit latency parameter of the
394 In addition to the target residency and exit latency idle state parameters
432 ``latency``
433 Exit latency of the idle state in microseconds.
507 .. _cpu-pm-qos:
514 energy-efficiency features of the kernel to prevent performance from dropping
518 global CPU latency limit and through the resume latency constraints for
523 signed 32-bit integer) to it. In turn, the resume latency constraint for a CPU
525 32-bit integer) to the :file:`power/pm_qos_resume_latency_us` file under
535 global CPU latency limit and for each individual CPU, aggregates them and
540 PM QoS request to be created and added to a global priority list of CPU latency
546 that effective value will be set as a new CPU latency limit. Thus requesting a
559 latency limit requests and destroyed. If that happens, the priority list
563 In turn, for each CPU there is one resume latency PM QoS request associated with
571 ``sysfs`` interface to control the resume latency constraint for it.] It is
573 determine the effective value to be set as the resume latency constraint for the
578 (effective) CPU latency limit and the effective resume latency constraint for
579 the given CPU as the upper limit for the exit latency of the idle states that
581 states with exit latency beyond that limit.
588 `disabled for individual CPUs <idle-states-representation_>`_, there are kernel
599 however, so it is rather crude and not very energy-efficient. For this reason,
628 P-states (see |cpufreq|) that require any number of CPUs in a package to be
629 idle, so it very well may hurt single-thread computations performance as well as
630 energy-efficiency. Thus using it for performance reasons may not be a good idea
641 In addition to the architecture-level kernel command line options affecting CPU
647 `Representation of Idle States <idle-states-representation_>`_), causes the