• Stars
    star
    268
  • Rank 152,357 (Top 4 %)
  • Language
    C
  • Created over 12 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Disables Turbo Boost Technology on Mac OS X for reliable OpenMP/CL benchmarking

Turbo Boost Disabler for Mac OS X

This kernel extension DisableTurboBoost.kext lets you disable Intel Turbo Boost Technology present on latest Intel Core processors running Mac OS X.

Abstract

Turbo Boost technology provides automatic CPU over-clocking in certain situations where there is no risk of overheating the CPU. Unfortunately it has nasty effect of ruining various OpenCL and OpenMP benchmark scores.

As observed Turbo Boost triggers when process is occupying 100% of single CPU core, while other CPU cores are idle. However when all CPU cores are occupied, Turbo Boost doesn't trigger as it would cause CPU overheat. As a result parallel tasks performance running on all CPU cores does not scale relatively to number of cores, i.e. for 4 core i5 CPU OpenMP program running on all 4 cores is only ~3x faster than 1 single core version.

Disabling Turbo Boost makes CPU run same clock regardless of cores occupation, therefore we get desired close to 4x speedup when running 4 cores OpenMP program vs 1 core.

This program implements modification of MSR CPU register responsible for Turbo Boost control as described in Table 34-10. MSRs Supported by Intel Processors Based on Intel Microarchitecture Code Name Sandy Bridge (Contd.) - Intel® 64 and IA-32 Architectures Software Developer’s Manual Volume 3C

Prerequisites

Xcode with Command Line Tools is required to compile this module.

Command Line Tools are available as extra add-on from Preferences > Downloads of Xcode 4.3 or newer, installer option on Xcode 4.2 or older or separate download. Separate download does now require Xcode to build this project.

Usage

  1. make
  2. make load to load and disable Turbo Boost (will ask for admin privileges)
  3. make unload to unload and re-enable Turbo Boost (will ask for admin privileges)

OS X Yosemite

In OS X 10.10 (Yosemite), Apple has introduced a new security requirement called kext signing. (A kext is a kernel extension, or a driver, in Mac OS X).

To use DisableTurboBoost, you need to disable the kext signing security setting:

nvram boot-args=kext-dev-mode=1

It is important to note that the kext-signing setting is global, if you disable it you should be careful to only install system drivers from sources that you trust.

Read the following article for more details: http://www.cindori.org/trim-enabler-and-yosemite/

License

Copyright (c) 2012 Adam Strzelecki

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

CMakePCHCompiler

CMake precompiled header support via custom PCH compiler extension
CMake
103
star
2

WebFrameworkBenchmark

Benchmarking some web frameworks
Java
55
star
3

glua

glua = LuaJIT + FFI + OpenGL/GLUT
Lua
44
star
4

nim-orm

Nim's ORM module
Nim
38
star
5

mountblockd

Launch daemon blocking auto mounting of certain volumes
C
36
star
6

osxglut

GLUT for Mac OS X fork with Core Profile and scroll wheel support
C
12
star
7

CFNetwork

CoreNetwork Apple source mirror
C
9
star
8

ssebench

Little (SSE) 4x4 matrix multiplication test for various compilers
C
8
star
9

mjpeg

MJPEG is small command line utility to create OpenDML AVI from JPEG series
C
8
star
10

efi

Grub 2.00 based triple boot for Mac/Parallels
Shell
7
star
11

Mac-gtk2-theme

Mac GTK2 theme for OSX GTK2 applications
5
star
12

jupterlab-macos-runner

Standalone app running jupyter-lab in the background, showing JupyterLab UI in WebKit window
Objective-C
4
star
13

cutescope

ADALM2000 oscilloscope app using Qt, libm2k and iio
C++
4
star
14

keyremapd

DoubleCommand inspired user-space key remapper daemon
C
4
star
15

DocSets

Dash & Xcode docsets for various documentations
Shell
4
star
16

JSObjCBridge

A JavaScriptCore to Objective-C bridge
Objective-C
4
star
17

Skim

Mirror of Skim PDF reader and note-taker for OS X Subversion repository with custom fixes (devel branch)
Objective-C
3
star
18

ldaptestserver

LDAP test server written in Go
Go
3
star
19

sinatra-hat

Sinatra Ruby gem extensions for gettext, caching, reloading, etc.
Ruby
3
star
20

trim-enabler-script

A clone/mirror of public gist.github.com/4058659
Shell
2
star
21

blueswitch

Ensured that desired Bluetooth host device (e.g. USB dongle) remains active in macOS (after reboot)
2
star
22

CMakeCUDACompiler

CMake CUDA support as compiler (alternative to FindCUDA)
1
star
23

CF

CoreFoundation Apple source mirror
C
1
star
24

nanoANT.tmbundle

nanoANT's TextMate 2 theme
1
star
25

assembly.tmbundle

Assembly (x86+SSE+AVX) bundle for TextMate
1
star
26

flops

FLOPs counter for x86 SSE and AVX based on awesome code of Mystical:
C++
1
star
27

Fetch.framework

Fast *CoreNetwork* based HTTP in-order fetcher
Objective-C
1
star
28

ChromeSVG2Clipboard

Copy SVG from Chrome into a clipboard as PNG compatible with Microsoft Office
C#
1
star