Popular Post IgorSki Posted September 15 Popular Post Share Posted September 15 Thank you @camott ! Now we know "do-release-upgrade" works well too. BTW, I assume you've upgraded HQPe after core system upgrade, correct? Do you have CUDA as well? I wonder what "do-release-upgrade" pulls for nVidia, if anything. In a meanwhile... 24.04.01 installation script with nVidia 560 drivers (this is the latest nVidia driver as of today, script is a tiny bit trickier than usual) ## Step 1 - bringing system up to date with all the latest and greatest defaults sudo apt update sudo apt upgrade sudo reboot now ## Step 2 - getting all the distros for the build, please note today for me is 15th of Sep 2024 ## Step 2 - If you see it in relatively distant future make sure you check the latest packages versions wget https://www.sonarnerd.net/src/noble/libgmpris_2.2.1-12_amd64.deb wget https://www.sonarnerd.net/src/noble/libgmpris-dev_2.2.1-12_amd64.deb wget https://www.sonarnerd.net/src/noble/libgmpris-dbg_2.2.1-12_amd64.deb wget https://www.sonarnerd.net/src/noble/linux-image-6.6.50-jl+_6.6.50-00009-g25fa156f34cc-5_amd64.deb wget https://www.sonarnerd.net/src/noble/linux-headers-6.6.50-jl+_6.6.50-00009-g25fa156f34cc-5_amd64.deb wget https://signalyst.com/bins/hqplayerd/noble/hqplayerd_5.7.1-22_amd64.deb ## Step 3 - installing JL+ custom kernel from Jussi sudo dpkg -i linux-headers-6.6.50-jl+_6.6.50-00009-g25fa156f34cc-5_amd64.deb sudo dpkg -i linux-image-6.6.50-jl+_6.6.50-00009-g25fa156f34cc-5_amd64.deb sudo reboot now ## Step 4 - after reboot you can check the kernerl version with "uname -r" ## Step 4 - CUDA: my system had 4090 GPU. At this point I know that the latest nVidia driver is 560 ## Step 4 - It is available from the CUDA package repository sudo apt update ## Step 4.1 - Add the PPA graphics repository to your system / install the required dependencies sudo apt install software-properties-common -y ## Step 4.2 - Add the PPA graphics repository to your system / add the PPA GPU drivers repository to your system sudo add-apt-repository ppa:graphics-drivers/ppa ## Step 4.3 - Now identify all the available + recommended nVidia drivers ## Step 4.3 - this can actually be skipped, but for the comfort of mind I do this to see that 560 is indeed available ubuntu-drivers devices ## Step 4.4 - Installing nVidia driver 560 for our headless server sudo apt install nvidia-headless-560-open sudo apt install nvidia-utils-560 sudo reboot now ## Step 5 - after reboot you can check nVidia driver version with "watch nvidia-smi" ## Step 5 - afterwards - classics, installing and enabling HQPlayer Embedded ## Step 5 - please note "hqplayerd -s" it is your login and password to HQP! I use HQPLAYER as an example. ## Step 5 - libgmpris-dev / libgmpris-dbg install can be skipped, if you wish sudo dpkg -i libgmpris_2.2.1-12_amd64.deb sudo dpkg -i libgmpris-dev_2.2.1-12_amd64.deb sudo dpkg -i libgmpris-dbg_2.2.1-12_amd64.deb sudo dpkg -i hqplayerd_5.7.1-22_amd64.deb sudo apt install -f sudo hqplayerd -s HQPLAYER HQPLAYER sudo systemctl enable hqplayerd sudo systemctl start hqplayerd sudo reboot ## Step 6 - editing hqplayerd.xml setting up multicore value as "1" sudo nano /etc/hqplayer/hqplayerd.xml sudo systemctl restart hqplayerd exit Voila ! nVidia 560.35.03 cpcat and paradis 2 Link to comment
jabbr Posted September 15 Share Posted September 15 along with what i've said that the nVidia open drivers which are already integrated with the Ubuntu release have become "better" as time as gone on, this: https://forums.developer.nvidia.com/t/clarifying-560-series-drivers-open-sourcedness-vs-kernel-module-type-proprietary/292698 and https://developer.nvidia.com/blog/nvidia-transitions-fully-towards-open-source-gpu-kernel-modules/ and https://forums.developer.nvidia.com/t/unix-graphics-feature-deprecation-schedule/60588 so again unless you need the "ppa" you don't Custom room treatments for headphone users. Link to comment
Miska Posted September 15 Share Posted September 15 I'm pulling the Nvidia drivers from Nvidia's CUDA package repository. But as long as it works, it doesn't matter. Point is that I support OS releases that are officially supported by Nvidia, so I know things are going to work. For just running the binaries it is not as sensitive though. Signalyst - Developer of HQPlayer Pulse & Fidelity - Software Defined Amplifiers Link to comment
Jud Posted September 17 Share Posted September 17 On 9/3/2024 at 4:28 PM, Miska said: It is coming... I just got my machines updated to 24.04 (since as usual with LTS, it became possible from 22.04 at release of 24.04.1). Upgrade, installation and operation all went smoothly. I was running the low latency kernel on 22.04 LTS, and the upgrade script updated it to 6.8.0-45-lowlatency. Miska 1 One never knows, do one? - Fats Waller The fairest thing we can experience is the mysterious. It is the fundamental emotion which stands at the cradle of true art and true science. - Einstein Computer, Audirvana -> optical Ethernet to Fitlet3 -> Fibbr Alpha Optical USB -> iFi NEO iDSD DAC -> Apollon Audio 1ET400A Mini (Purifi based) -> Vandersteen 3A Signature. Link to comment
ytsamlee Posted September 19 Share Posted September 19 Fine-Tuning the Ubuntu 24.04 LTS generic kernel for low latency FOR HQPlayer Embedded The new Ubuntu 24.04 generic kernel offered the availability of additional low-latency tunable settings。 If you install ubuntu 24 directly,the default Linux kernel is linux 6.8.x generic kernel,you can use specific boot-time or run-time parameters to enable low latency features in the generic Ubuntu kernel for 24.04. Performance profiles examples Following there is a list of performance profile examples mapped to these new kernel settings: server (use default settings) gaming: preempt=full virtualization: preempt=full nohz_full=all audio: preempt=full nohz_full=all threadirqs mobile: preempt=full rcu_nocbs=all rcutree.enable_rcu_lazy=1 Simply copy paste the options above for the desired performance profile and add them to the line in (then run to apply them at the next reboot). sudo nano /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT= "preempt=full nohz_full=all threadirqs rcu_nocbs=all rcutree.enable_rcu_lazy=1" then,reboot. sudo update-grub I guess this setup is sufficient。 Additional low-latency settings,you can refer to Enable low latency features in the generic Ubuntu kernel for 24.04 - Kernel - Ubuntu Community Hub Link to comment
Miska Posted September 19 Share Posted September 19 13 hours ago, ytsamlee said: sudo nano /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT= "preempt=full nohz_full=all threadirqs rcu_nocbs=all rcutree.enable_rcu_lazy=1" then,reboot. sudo update-grub Please note that you should run "update-grub" before rebooting. Otherwise the kernel command line is not updated and will only take effect on next reboot after the update-grub. Signalyst - Developer of HQPlayer Pulse & Fidelity - Software Defined Amplifiers Link to comment
ytsamlee Posted September 19 Share Posted September 19 3 minutes ago, Miska said: Please note that you should run "update-grub" before rebooting. Otherwise the kernel command line is not updated and will only take effect on next reboot after the update-grub. yes,first update-grub,then reboot sudo nano /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT= "preempt=full nohz_full=all threadirqs rcu_nocbs=all rcutree.enable_rcu_lazy=1" sudo update-grub then,reboot. Link to comment
camott Posted September 19 Share Posted September 19 So what is the difference between the 6.8.x lowlatency kernel and the 6.8.x generic kernel with various permutations of the performance parameters? i.e. is there a way to configure the generic kernel such that it's effectively identical to the lowlatency kernel? Link to comment
Jud Posted September 19 Share Posted September 19 1 hour ago, camott said: So what is the difference between the 6.8.x lowlatency kernel and the 6.8.x generic kernel with various permutations of the performance parameters? i.e. is there a way to configure the generic kernel such that it's effectively identical to the lowlatency kernel? Is there a reason in this situation why you would want to go through the configuration rather than simply install the low latency kernel? One never knows, do one? - Fats Waller The fairest thing we can experience is the mysterious. It is the fundamental emotion which stands at the cradle of true art and true science. - Einstein Computer, Audirvana -> optical Ethernet to Fitlet3 -> Fibbr Alpha Optical USB -> iFi NEO iDSD DAC -> Apollon Audio 1ET400A Mini (Purifi based) -> Vandersteen 3A Signature. Link to comment
Miska Posted September 19 Share Posted September 19 2 hours ago, camott said: So what is the difference between the 6.8.x lowlatency kernel and the 6.8.x generic kernel with various permutations of the performance parameters? i.e. is there a way to configure the generic kernel such that it's effectively identical to the lowlatency kernel? At least in my case, low latency kernel is built that way, which affects the code paths taken inside. If these are not conditional, they are faster as the CPU doesn't always need to evaluate which path to take. At least those two kernels are not identical. I have not paid much attention to the build details of those two though, since I've been focusing mostly on my custom kernel.... camott 1 Signalyst - Developer of HQPlayer Pulse & Fidelity - Software Defined Amplifiers Link to comment
paradis Posted September 20 Share Posted September 20 done Ubuntu 24 fresh install with the guide, easy and no drama.... thanks for the guide @IgorSki Miska 1 Link to comment
ytsamlee Posted September 20 Share Posted September 20 Misplaced。 These two references are more clear about setting the generic kernel to a low-latency kernel. Low latency Kernel for Ubuntu 24.04 LTS and Debian 12.5 | Samiux Fine-Tuning the Ubuntu 24.04 Kernel for low latency, throughput, and power efficiency - Kernel - Ubuntu Community Hub I'm now fine-tuning the parameters on the basis of a generic kernel for HQPlayer Embedded On Ubuntu。 Link to comment
camott Posted September 20 Share Posted September 20 Other than an academic exercise, why wouldn't you just install the low-latency kernel instead of trying to achieve similar results with the generic kernel? do you think you can do better with finer tuning? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now