summaryrefslogtreecommitdiffstats
path: root/contrib/libc++/src/regex.cpp
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2012-11-10 07:02:57 +0000
committermav <mav@FreeBSD.org>2012-11-10 07:02:57 +0000
commit4edd3bb7df2986cf8d85264875c79f4f7d1d009a (patch)
tree385ac89dc3d37d72215d9c538ffad2c5f333f289 /contrib/libc++/src/regex.cpp
parent4dab880c2d0efe333acf4da21dd4429b41a0a6e4 (diff)
downloadFreeBSD-src-4edd3bb7df2986cf8d85264875c79f4f7d1d009a.zip
FreeBSD-src-4edd3bb7df2986cf8d85264875c79f4f7d1d009a.tar.gz
Several optimizations to sched_idletd():
- Do not try to steal load from other CPUs if there was no contest switches on this CPU (i.e. it was idle all the time and woke up just for bus mastering or TLB shutdown). If current CPU was idle, then it is quite unlikely that some other CPU has load to steal. Under high I/O rate, when TLB shutdowns cause numerous CPU wakeups, on 24-CPU system load stealing code may consume up to 25% of all CPU time without giving any benefits. - Change code that implements spinning for load to restart spin in case of context switch. Previous code periodically called cpu_idle() even under high interrupt/context switch rate. - Rise spinning threshold to 10KHz, where it gives at least some effect that may worth consumed power. Reviewed by: jeff@
Diffstat (limited to 'contrib/libc++/src/regex.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud