Audio PC (Linux/Ubuntu)

Discussion in 'Linux' started by Friendelek, Sep 9, 2024.

  1. Friendelek

    Friendelek Platinum Record

    Joined:
    Nov 28, 2020
    Messages:
    226
    Likes Received:
    155
    My test was incorrect, I'm newbie in Linux and I'm sure that tested system was not configured right.
     
  2. ᑕ⊕ֆᗰIᑢ

    ᑕ⊕ֆᗰIᑢ Platinum Record

    Joined:
    Jan 23, 2022
    Messages:
    501
    Likes Received:
    275
    As much as I'm loving Debian lately,
    in my experience, the difference in Audio performance between Win and Linux is abysmal..

    There's a few things one can do to improve stability tho, but ymmv a lot.

    I had to:
    Set Audio process CPU affinity to first core.
    Set IRQ priority at max (in fact I wonder if I should/could disable ACPI and manually assign IRQs since it's shared...)
    Prioritize Audio Threads

    Install a low latency RT Kernel,
    I tried Debian stock RT, but settled with XanMod kernel which gave better results as it handles the AMD-FX platform better..


    With all of this, I can play One Piano instrument and a couple of effects in Reaper without cracks/clicks/pops..
    Goal achieved, and I'm Loving the experience. :wink:


    But yeah, in W7 I can load a TON of instruments/plugs before things start to click/pop..
    I can have a project with a thousand+ tracks, lots of Kontakt instances and other VSTis, lots of plugs and effects.. you name it.
    W7 just goes through absurd levels of load it like it's nothing.

    But ofc, that's with a pretty old AMD-FX 8350 and ancient M-Audio Delta 66 (Evy24) soundcard..

    With a proper modern CPU things may be a bit different,
    things may be better optimized, and the Audio interface/driver may be a factor too.
     
  3. Andrew

    Andrew AudioSEX Maestro

    Joined:
    Oct 24, 2011
    Messages:
    1,994
    Likes Received:
    1,217
    Location:
    Between worlds
    Had the same experience with RT kernel.
    Much better option is to run generic with preempt=full

    ALSA or worse Pulseaudio adds a ton of latency too, which one has to compensate with lower buffer sizes leading to pops.

    BUT
    Configure a preempt scheduling with threadirqs, use pipewire instead of jack and the performance actually surpasses windows, and round trip latency is even better than with ASIO or WASAPI.
    It's also useful to configure yabridge to run single instance - better thread utilization and lower RAM usage (plugins are not isolated).

    PS: I'm actually looking into Clear Linux to be used as main audio workhorse, phoronix benchmarks are actually intriguing
     
    • Interesting Interesting x 1
    • List
  4. ᑕ⊕ֆᗰIᑢ

    ᑕ⊕ֆᗰIᑢ Platinum Record

    Joined:
    Jan 23, 2022
    Messages:
    501
    Likes Received:
    275
    So you're positive Pipewire should perform better than ALSA?

    For some reason it seems the opposite in my system,
    but yeah M-Audio Delta (Envy24) is Ancient at this point..

    I thought Pipewire was more for modern multimedia stuff, like Wasapi or something;
    while ALSA was more professional like ASIO..


    Here running ALSA directly in Reaper works,
    but I found going through Cadence (a QJack alternative) made it more stable and clean..


    -Right now I'm wondering two things tho:
    Will the stability/performance of M-Audio Delta increase Disabling ACPI and manually assigning a unique IRQ to the soundcard?
    Will this blow the computer? (since acpi is power management related.. lol)

    Why not use the internal soundcard on my Radeon RX6600 for monitoring?
    Maybe there's some kind of HDMI to Spdif converter, and that's all I would need for piano practice..

    Performance could be good, as it's running on a x16 PCIe slot..
    But it could Suck because of poor Drivers, or too much shared resources and stuff?
     
  5. Andrew

    Andrew AudioSEX Maestro

    Joined:
    Oct 24, 2011
    Messages:
    1,994
    Likes Received:
    1,217
    Location:
    Between worlds
    Pipewire is basically streamlined jack. You get the same functionality with qpwgraph as with qjackctl.
    Technically integrated or PCIe sound card should perform best for latency (integrated usually shares lanes directly to the CPU).
    USB does add some pooling latency, but a great deal is actually added in hardware and software.

    Drivers imho don't do much - they seem they do, but only because for the longest time windows had big issues with it (no UAC2 driver for 15 years and the Thesycon generic one not being integrated well with the kernel), to the point where only RME got it right. On linux, as long as it's UAC compliant, the interfaces should match in latency terms (not counting potential hardware added delays).

    PS: On another note I wonder how would Kontakt performance compare, with samples loaded from ext4 file system compared to ntfs.
    [​IMG]
     
    Last edited: Sep 26, 2024
    • Like Like x 1
    • Winner Winner x 1
    • Love it! Love it! x 1
    • List
  6. Friendelek

    Friendelek Platinum Record

    Joined:
    Nov 28, 2020
    Messages:
    226
    Likes Received:
    155
    Does Kontakt work well on Linux? What do you recommend, use the licensed version or one from sister site ?
     
  7. Andrew

    Andrew AudioSEX Maestro

    Joined:
    Oct 24, 2011
    Messages:
    1,994
    Likes Received:
    1,217
    Location:
    Between worlds
    Kontakt portable from sister site works well. Can't speak about legit Kontakt player, never tried it.
    PLAY on the other hand has issues under latest wine-staging.
     
  8. vuldegger

    vuldegger Producer

    Joined:
    Mar 15, 2021
    Messages:
    287
    Likes Received:
    126
    been test driving the latest ubuntu lts. wanted to game and make music. failed both miserably. back to win
     
  9. Friendelek

    Friendelek Platinum Record

    Joined:
    Nov 28, 2020
    Messages:
    226
    Likes Received:
    155
    What do you mean ?
     
  10. ᑕ⊕ֆᗰIᑢ

    ᑕ⊕ֆᗰIᑢ Platinum Record

    Joined:
    Jan 23, 2022
    Messages:
    501
    Likes Received:
    275
    Play must be EastWest's library sampler/engine..

    Well apparently Games can perform better on Linux than on Win,
    but I guess that's with the really compatible stuff like Steam games..

    One may get a certain mileage with Wine,
    but depending on your system config the Native stuff is gonna perform better in the end..

    It would be advisable to have an AMD Radeon card tho,
    Nvidia drivers have quite a reputation in linux, so better to avoid complications..
     
  11. Friendelek

    Friendelek Platinum Record

    Joined:
    Nov 28, 2020
    Messages:
    226
    Likes Received:
    155
    Thanks

    Agree. Steam working hard on Proton to provide best experience on Linux base Steam Deck
     
  12. MFSAKA

    MFSAKA Ultrasonic

    Joined:
    Oct 24, 2021
    Messages:
    72
    Likes Received:
    31

    Measured by first buffer underruns\xruns by the ear and recorded waveform.
     
Loading...
Similar Threads - Audio (Linux Ubuntu) Forum Date
Checking Out: Triumph Audio's The Ghost Bundle Software Reviews and Tutorials Sunday at 5:27 PM
Acustica Audio TH8 Software News Friday at 6:58 PM
Prototype Audio Matter Software Friday at 2:21 AM
minimal audio only login screen Software Nov 20, 2024
Bought and audioz downloaded KONTAKT libraries in KONTAKT Portable Kontakt Nov 19, 2024
Loading...