summarylogtreecommitdiffstats
path: root/kernel.install
blob: 32c58bfebc426f966edccedcdc7c258581ddf8f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

post_install() {
    if [ $(nproc --all) -lt 4 ]; then
        echo "I noticed that your CPU core(s) is(are) less than or equal 4, so it's good to set kernel.sched_tt_balancer_opt=1"
    else
        echo "I noticed that your CPU cores are more than 4, so it's good to set kernel.sched_tt_balancer_opt=0"
    fi
}

post_upgrade() {
    if [ $(nproc --all) -lt 4 ]; then
        echo "I noticed that your CPU core(s) is(are) less than or equal 4, so it's good to set kernel.sched_tt_balancer_opt=1"
    else
        echo "I noticed that your CPU cores are more than 4, so it's good to set kernel.sched_tt_balancer_opt=0"
    fi
}