Skip to main content
Topic: How can I fix my kernel for audio production? (Read 542 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How can I fix my kernel for audio production?

Hi!

I am trying to follow instructions for configuring Audio for music production in Artix XFCE installed from base.

I must make sure that  kernel is good for the intended usage.

I have :
Code: [Select]
~$ sudo uname -a
Linux arthur-lifebooke743 6.4.1-artix1-1 #1 SMP PREEMPT_DYNAMIC Sat, 01 Jul 2023 18:50:59 +0000 x86_64 GNU/Linux

and in my kernel config:
Code: [Select]
CONFIG_HZ_300=y
# CONFIG_HZ_1000 is not set
CONFIG_HZ=300

Do I have to compile a new kernel to have the necessary 1000 HZ ?  I have never really  succeeded at that.

As a famous programmer once said I would rather do a root canal and although I may  not be able any longer to claim being a newbee  I am still a very naive user.

Computers are most a tool for my musical experiences.


Re: How can I fix my kernel for audio production?

Reply #1
I am sorry if this remains with a misleading Topic title. The reason for that is that the topic changed many times during my writing of what I had thought would be a very short and simple question.

As I kept  searching to formulate my question  properly, I kept learning new  things and pushing it deeper.

And in the end I forgot to change the topic title before posting.

I am trying to fix the topic, but I am unsure if it will work.

Re: How can I fix my kernel for audio production?

Reply #2
Yes, if you want to change this parameter you need to compile new kernel. Or install another kernel, which may have this parameter, and may (but not necessarily) be better for audio production, like linux-rt.

Re: How can I fix my kernel for audio production?

Reply #3
Or install another kernel, which may have this parameter
Code: [Select]
$ zcat /proc/config.gz | grep CONFIG_HZ
# 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
CONFIG_HZ=1000
that's the config on the linux-zen kernel

 

Re: How can I fix my kernel for audio production?

Reply #4
The linux-rt kernel (as suggested above) appears to have this set, if this is what you are looking for:
Code: [Select]
CONFIG_HZ_1000=y
CONFIG_HZ=1000
https://gitlab.archlinux.org/archlinux/packaging/packages/linux-rt/-/blob/main/config?ref_type=heads

It is also intended for professional audio applications among other uses, RT = Real Time, there may be tiny glitches with a regular kernel due to cpu scheduling priorities from what I understand.

The linux-zen kernel is optimized for desktop and laptop usage, the regular linux kernel is an all rounder but has more server and security considerations than linux-zen.