Code: Select all
CONFIG_HZ_1000=y
CONFIG_HZ=1000
CONFIG_PREEMPT_RT_FULL=y
CONFIG_PREEMPT=y
Code: Select all
#CONFIG_HZ_1000=y
CONFIG_HZ=250
Salut!
Moderators: MattKingUSA, khz
Code: Select all
CONFIG_HZ_1000=y
CONFIG_HZ=1000
CONFIG_PREEMPT_RT_FULL=y
CONFIG_PREEMPT=y
Code: Select all
#CONFIG_HZ_1000=y
CONFIG_HZ=250
Code: Select all
cd /usr/src/linux
Code: Select all
make menuconfig
==> Realtime Kernel: https://wiki.debianforum.de/Realtime_Ke ... figurieren >> 5 Kompilieren >> 6 Installieren (https://www.deepl.com/translate)Processor type and features -> Preemption Model -> (höchste RT-Einstellung vornehmen)
Processor type and features -> Timer Frequency auf 1000
You probably shouldn't. The kernel is most likely configured as a so called tickless kernel which most likely is better for our purposes than using the 1000Hz ticker (grep the config file for NO_HZ). Also check that it has CONFIG_HIGH_RES_TIMERS and CONFIG_SND_HRTIMER=m / CONFIG_SND_SEQ_HRTIMER_DEFAULT=ywakoo wrote:My question is, How to edit those specs on kernel and how to make those changes persistent.
So, I have two options: 1) Compile my own kernel, or 2) Download a kernel rt (like AVLinux).Since Debian Wheezy an RT variant is also available in the stock repositories; unfortunately its system timer is set to 250 Hz instead of 1000 Hz, so you'll probably want to recompile your own kernel anyway, especially if you use ALSA MIDI.
Liquorix Kernel and/or "make menuconfig"or (Backports https://wiki.debian.org/Backports) https://packages.debian.org/stretch-bac ... e-rt-amd64 or (DebianRepository https://wiki.debian.org/DebianRepository, DebianRepositoryUnofficial https://wiki.debian.org/DebianRepository/Unofficial) https://liquorix.net/, ...
Code: Select all
cat /proc/interrupts | grep -i time; sleep 10; cat /proc/interrupts | grep time
Code: Select all
0: 74763084 0 0 0 0 0 IO-APIC 2-edge timer
LOC: 12117727 21586639 18222512 17371363 17532116 17976564 Local timer interrupts
0: 74803799 0 0 0 0 0 IO-APIC 2-edge timer
LOC: 12124588 21597292 18231815 17380505 17539466 17985614 Local timer interrupts
Code: Select all
zcat /proc/config.gz |grep CONFIG_HZ_
Code: Select all
# CONFIG_HZ_PERIODIC is not set
# CONFIG_HZ_100 is not set
# CONFIG_HZ_250 is not set
# CONFIG_HZ_300 is not set
CONFIG_HZ_1000=y
Code: Select all
zcat /proc/config.gz |grep CONFIG_PREEMPT
Code: Select all
CONFIG_PREEMPT_RCU=y
CONFIG_PREEMPT_NOTIFIERS=y
CONFIG_PREEMPT=y
CONFIG_PREEMPT_RT_BASE=y
CONFIG_PREEMPT_LAZY=y
# CONFIG_PREEMPT_NONE is not set
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT__LL is not set
# CONFIG_PREEMPT_RTB is not set
CONFIG_PREEMPT_RT_FULL=y
CONFIG_PREEMPT_COUNT=y
# CONFIG_PREEMPTIRQ_EVENTS is not set
# CONFIG_PREEMPT_TRACER is not set