From 8a832eeab524bbad160adb7c27acb370d6adedff Mon Sep 17 00:00:00 2001 From: ckolivas Date: Thu, 9 Jun 2011 11:45:06 +1000 Subject: Linux + x86_64 optimisations. Add likely() macro. Optimise a few obvious code paths with likely/unlikely. Change algo to sse2_amd64 by default. Move priority change to worker threads only. Detect number of CPUs and set default number of threads == CPUs. Add scheduling policy change to worker threads to SCHED_IDLE first and fallback to SCHED_BATCH on linux. Don't error when failing to set priority. Add CPU affinity and bind worker threads to CPUs when number of threads is a multiple of number of CPUs. Update NEWS with changes. --- NEWS | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 26a97ce..1ab5040 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,9 @@ +- Linux x86_64 optimisations - Con Kolivas +- Optimise for x86_64 by default by using sse2_64 algo +- Detects CPUs and sets number of threads accordingly +- Uses CPU affinity for each thread where appropriate +- Sets scheduling policy to lowest possible +- Minor performance tweaks Version 1.0.1 - May 14, 2011 -- cgit v1.2.3-18-g5258