aboutsummaryrefslogtreecommitdiff
path: root/contrib/sqlite3/tea
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2019-05-04 20:34:26 +0000
committerConrad Meyer <cem@FreeBSD.org>2019-05-04 20:34:26 +0000
commit665919aaaf436bfc662701f0b0efa4488ea1b1a2 (patch)
tree2e235e29055d517e6a2f123621fe0bcb173df359 /contrib/sqlite3/tea
parentecaed009a9743ac085227b3740ea80f5ffc5063d (diff)
x86: Implement MWAIT support for stopping a CPU
IPI_STOP is used after panic or when ddb is entered manually. MONITOR/ MWAIT allows CPUs that support the feature to sleep in a low power way instead of spinning. Something similar is already used at idle. It is perhaps especially useful in oversubscribed VM environments, and is safe to use even if the panic/ddb thread is not the BSP. (Except in the presence of MWAIT errata, which are detected automatically on platforms with known wakeup problems.) It can be tuned/sysctled with "machdep.stop_mwait," which defaults to 0 (off). This commit also introduces the tunable "machdep.mwait_cpustop_broken," which defaults to 0, unless the CPU has known errata, but may be set to "1" in loader.conf to signal that mwait wakeup is broken on CPUs FreeBSD does not yet know about. Unfortunately, Bhyve doesn't yet support MONITOR extensions, so this doesn't help bhyve hypervisors running FreeBSD guests. Submitted by: Anton Rang <rang AT acm.org> (earlier version) Reviewed by: kib Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D20135
Notes
Notes: svn path=/head/; revision=347134
Diffstat (limited to 'contrib/sqlite3/tea')
0 files changed, 0 insertions, 0 deletions