diff options
author | Peter Mikus <pmikus@cisco.com> | 2018-07-06 05:18:01 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2018-07-06 06:47:06 +0000 |
commit | 3354994941d5f8d27c53981dade9dd6c8d276cfb (patch) | |
tree | d4fc97bc76e68e7adec66f876877f3f981d209e2 /resources/tools/testbed-setup/ansible/roles/tg_sut/files | |
parent | b0aa215df352276c6aed3663dce947ed68749bb1 (diff) |
Add Skylake optimization to ansible
- Add kernel params
- Add TurboBoost managing
Change-Id: I9d9561290f8f6780ff41f3a418a1f335d935d843
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/tg_sut/files')
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/tg_sut/files/disable-turbo-boost.service | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/tg_sut/files/disable-turbo-boost.service b/resources/tools/testbed-setup/ansible/roles/tg_sut/files/disable-turbo-boost.service new file mode 100644 index 0000000000..e04729de50 --- /dev/null +++ b/resources/tools/testbed-setup/ansible/roles/tg_sut/files/disable-turbo-boost.service @@ -0,0 +1,10 @@ +[Unit] +Description=Disable Turbo Boost on Intel CPU + +[Service] +ExecStart=/bin/sh -c 'for core in `cat /proc/cpuinfo | grep processor | awk \'{print $3}\'`; do sudo wrmsr -p$core 0x1a0 0x4000850089; done' +ExecStop=/bin/sh -c 'for core in `cat /proc/cpuinfo | grep processor | awk \'{print $3}\'`; do sudo wrmsr -p$core 0x1a0 0x850089; done' +RemainAfterExit=yes + +[Install] +WantedBy=sysinit.target |