- sched: Turn off child_runs_first
- sched: Re-tune the scheduler latency defaults to decrease worst-case latencies
- sched: Keep kthreads at default priority
Ну и небольшой скриптик на основе комментария:
#!/bin/sh
BASE='/proc/sys/kernel'
VALUES='
sched_child_runs_first:0
sched_compat_yield:0
sched_features:113916
sched_latency_ns:5000000
sched_migration_cost:500000
sched_min_granularity_ns:100000
sched_nr_migrate:32
sched_rt_period_us:1000000
sched_rt_runtime_us:950000
sched_shares_ratelimit:250000
sched_shares_thresh:4
sched_wakeup_granularity_ns:100000'
for i in $VALUES; do
fname=$( echo "${i}" | cut -d ':' -f 1 )
echo "${i}" | cut -d ':' -f 2 >"${BASE}/${fname}"
done