summaryrefslogtreecommitdiffstats
path: root/ci/envs/guest-setup1.sh
blob: 678baa43b161f56aa2836bc3122bcff60f291072 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
@media only all and (prefers-color-scheme: dark) {
.highlight .hll { background-color: #49483e }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } 
#!/bin/bash
##############################################################################
## Copyright (c) 2015 Intel Corp.
##
## All rights reserved. This program and the accompanying materials
## are made available under the terms of the Apache License, Version 2.0
## which accompanies this distribution, and is available at
## http://www.apache.org/licenses/LICENSE-2.0
###############################################################################

set_irq_affinity () {
    for irq in /proc/irq/* ; do
       echo 0 > /proc/irq/${1}/smp_affinity_list
    done
}

# Disable watchdogs to reduce overhead
echo 0 > /proc/sys/kernel/watchdog
echo 0 > /proc/sys/kernel/nmi_watchdog

# Route device interrupts to non-RT CPU
set_irq_affinity

# Disable RT throttling
echo -1 > /proc/sys/kernel/sched_rt_period_us
echo -1 > /proc/sys/kernel/sched_rt_runtime_us