Changing to Linux for music making

Configure and optimize you computer for Audio.
Post Reply New Topic
RELATED
PRODUCTS

Post

As one article explains it:

If you’ve found memory management in Ubuntu a little on the aggressive side since upgrading to 22.04 LTS know this: you are not alone.

A discussion on the Ubuntu mailing list highlights issues scores of users are experiencing. Out of the blue, with no indication anything is wrong, apps like Firefox, Chrome, and Visual Studio Code just die… Blink out of existence.

At fault? Ubuntu 22.04 LTS’s introduction of systemd-oomd, a user-space out of memory killer that’s designed to “take corrective action before an OOM occurs in the kernel space’. When it detects that memory pressure is getting a bit too stressed, it intervenes to ensure the system copes, and (most) things stay running.

But it seems that it’s being triggered too frequently, killing apps even though memory isn’t at a critical impasse.

“There should be a warning prior killing apps to give the opportunity to save the app data. There should at least be an apologize and an explanation after killing the app. The current behavior gives the impression that Ubuntu 22.04 is unreliable and unsafe to use which is a problem for an LTS  release”, writes one frustrated user (all sic).

“I was watching some video in Firefox. I popped over to another virtual workspace for a few minutes, and when I popped back to Firefox it had gone. The same thing had been happening all week (I installed fresh Ubuntu-22.04 last week) with Chrome, Firefox and Thunderbird”, recounts another.

S’going on, ‘Buntz?
a laptop running ubuntu 22.04 on a desk
You can see the bug, but it’s there…
Canonical’s Nick Rosbrook explains the issue(s) at play in more detail in his mailing list post. “The common theme in these reports”, he writes, “is that e.g, Chrome is killed ‘suddenly’ without any other observable symptoms of the system nearing OOM”.

A number of possible solutions are put forward to mitigate the aggressiveness. These range from altering how memory values are calculated/triggered by systemd-oomd, to disabling the feature entirely and letting the kernel handle OOM situations instead.

Another mooted solution is to increase Ubuntu’s default swap file size. On most installs this is just 1GB. Doing this would alleviate the issue of the swap limit being hit too easily, triggering the unannounced app exits, but isn’t something that can be applied to existing systems automatically.

Or at least, that’s my understanding. I’ve been a touch reductive in my summary as low-level technical workings such as this are not my area of expertise —before you ask, I don’t have any area of expertise, not unless sleeping in too late counts 😅.

But as someone who is affected by this issue — I thought it was just my system prior to today — I’m keen to see how things play out. There’s no firm conclusion on how to proceed for now. I’ll be keeping an eye on the situation as we inch closer to the first Ubuntu 22.04 LTS point release (due next month).

If you’re keen to learn more do check out the mailing list post yourself. It’s an insightful glimpse into a system features that most of us never stop to think about.
Vendor‑Dependent Copy Protection: Customers lose. Pirates win.:mad:
(Also: I'm Accused of lying about Linux—it boots, runs my pro audio workflow, stays stable, updates--though yearly dismissed as “niche”. Yet I'm the deluded one.)
:roll:

Post

audiojunkie wrote: Mon Aug 15, 2022 9:55 pm Oh yeah. It's been big news for Ubuntu. It has hit everybody, but Ubuntu especially hard--because it's new to their distro. The OOM killer is actually a very good thing. It is designed to keep the system always stable. However, it is lately tweaked to be a bit more heavy handed with what it does. Work is being done to change things to not be so heavy handed with it.

Also, kernel v. 6.1 will likely manage things even better with the MGLRU. But either way, when working on pro audio, it's always good to configure your limits for rt privileges and memlock.
Good to know. I have been off Linux for a little over a year (since early June, 2021).

Post

classic wrote: Fri Jul 29, 2022 3:18 pm I have no real clue about Linux.........or windows for that matter :scared:
I see red flags. Don't you?
We are the KVR collective. Resistance is futile. You will be assimilated. Image
My MusicCalc is served over https!!

Post

BertKoor wrote: Mon Aug 15, 2022 11:30 pm
classic wrote: Fri Jul 29, 2022 3:18 pm I have no real clue about Linux.........or windows for that matter :scared:
I see red flags. Don't you?
But I LIKE his enthusiasm! 🙂 If he sticks to it, he can beat the learning curve—but it takes effort and patience. That’s why I recommend AV Linux for beginners. 🙂
Vendor‑Dependent Copy Protection: Customers lose. Pirates win.:mad:
(Also: I'm Accused of lying about Linux—it boots, runs my pro audio workflow, stays stable, updates--though yearly dismissed as “niche”. Yet I'm the deluded one.)
:roll:

Post

glokraw wrote: Fri Jul 15, 2022 10:34 pm AVLinux

https://distrowatch.com/table.php?distribution=avlinux

comes with wine-staging installed, along with yabridge plugin wrapper and a Reaper demo, to make vst .dlls easy to use in linux daws. And has the main audio tools people rely on. Your main commercial native linux daw choices will be, Reaper, Bitwig, Harrison Mixbus, and free daws qtractor, ardour, and carla. I think as a first go, installing the ssd in an external case, would be safer than booting alongside windows.

Burn a dvd of the distribution iso, and boot it from your computers early-boot menu, to verify potential happiness. There's no hurry, except for backing up whatever is important, and then consider cloning the windows setup first.

Be prepared to find a linux-friendly audio interface, if the one you have is not well supported. The yabridge page has excellent info:

https://github.com/robbert-vdh/

The linux Reaper forum is helpful:

https://forum.cockos.com/forumdisplay.php?f=52

Bitwig has a forum here at kvr.

Linux Mixbus forum is at:

https://forum.harrisonconsoles.com/

This forum has many separate topics for linux musicians:

https://linuxmusicians.com/

Surge XT, Odin2, Vital, Dexed, and Yoshimi are a great core of synths.
Hydrogen drum machine is pattern/grid based, and easy to make new kits from samples, Guitarix is an ever growing and improving amp-sim collection, and rakarrack is great fun as a multi-fx panel. Stochas and Patroneo are there for sequencer fans.
Cheers
So I downloaded the iso and did connect the new ssd.
What now?

Just copy the iso to the new ssd?

Post

GoGo duck: "how to extract ISO to disk"

Random video:

As stated before, especially if you're going for working with Linux, you really should be self-supporting in shooting at troubles like this.
We are the KVR collective. Resistance is futile. You will be assimilated. Image
My MusicCalc is served over https!!

Post

:)
I know how to extract a file with zip and friends.
Just wanted to have my linux operating system on my new ssd.

So. What do I do now with this iso to have an ssd, with the AV Linux on it and boot from it when I start my computer?

Post

classic wrote: Wed Aug 17, 2022 3:12 pm :)
I know how to extract a file with zip and friends.
Just wanted to have my linux operating system on my new ssd.

So. What do I do now with this iso to have an ssd, with the AV Linux on it and boot from it when I start my computer?
You need to make a bootable USB stick. I use "Rufus" to make a bootable USB from a Linux iso. you will have to configure your PC to boot from a USB at startup first. Boot into Linux and then follow the install instructions. Its pretty easy.

https://rufus.ie/en/

Post

@classic: To follow on from what @dellboy wrote, after you make a bootable USB stick from the ISO file (or a bootable DVD if you have a DVD burner and a blank DVD):

You need to learn the key to press on your computer to select boot options -- it's usually either Del or F12, but you might have to look it up for your particular computer or motherboard.

You end up booting into a temporary session of Linux from the USB stick or DVD installer. There will be a clear option on the Linux desktop to install Linux permanently somewhere. That's when you would identify and select your SSD as the target drive for installation.

After you install Linux to the SSD, you reboot your system, remove the USB stick or DVD installer, and use your boot options again to select the SSD as the device to boot from, instead of the internal hard drive.

Hoping this gets you at least part of the way there!
Last edited by havran on Fri Aug 19, 2022 7:16 pm, edited 1 time in total.

Post

dellboy wrote: Mon Jul 25, 2022 2:17 pm I wanted to be able to use Linux on a USB3 C SSD hard disk and for it to be fully portable and be able to plug it into any computer, and have Linux up and running anywhere. I had messed up my first attempt, so I had to reinstall windows and remake my Ubuntu 20.10 USB hardisk. I now have what I wanted - a fully portable Linux distro on a hard disk which can be written to and act like an installed OS. Ubuntu 20.10 is an early beta release, but pipewire is up and running and is great. It has turned my audio interface into a multiclient interface on steroids along with a graphical interface which can be wired in any way you want. I also have lower latency thanI do on windows.

I did this by following carefully the instructions found here...................
https://itsfoss.com/intsall-ubuntu-on-usb/
I like this idea (portable Linux on an SSD)!

Post

Does AVLinux suffer from the massive design flaw in Ubuntu OOMkiller?

Post

biscuitdough wrote: Sun Aug 21, 2022 5:57 am Does AVLinux suffer from the massive design flaw in Ubuntu OOMkiller?
What OOM Ubuntu killer? Scaremongering. I am typing this from Ubuntu and nothing sinister has happened. I am a Windows user who occasionally uses Linux, so I have little knowledge about this, but my Ubuntu setup has been rock solid and never crashed.

Post

biscuitdough wrote: Sun Aug 21, 2022 5:57 am Does AVLinux suffer from the massive design flaw in Ubuntu OOMkiller?
The OOM killer is not a bad thing, it’s a great thing. It’s just configured to be a little more aggressive than is needed. This will be quickly adjusted and then there won’t be a problem. It is designed as a safety net to prevent certain rogue programs from taking and not returning RAM. So the system won’t crash from (O)ut (O)f (M)emory situations. Right now, there are situations where you aren’t totally out of RAM, and the OOM Killer kills the offending app a little too early. This is the part that developers want to adjust. The goal is to kill the offending application right before it brings your whole system down, so your system stays up and running. There is no design flaw; there is only a configuration in a (fairly) new tool needing to be made on Ubuntu systems.

Edit: I realized that I forgot to answer your question. There is a set of recommended tuning configurations that involves enabling RT and configuring memlock to reserve more memory than an average untuned system. Pro uses a lot of files and memory, so these adjustments make more memory available and tell the OOM killer not to kill these apps until a higher threshold is reached. AV Linux like most pro audio setups already have these configurations made so that you can have ultra low latency and run memory and file intensive programs without problem.

In short, you won’t have any problems with AV Linux. :)
Vendor‑Dependent Copy Protection: Customers lose. Pirates win.:mad:
(Also: I'm Accused of lying about Linux—it boots, runs my pro audio workflow, stays stable, updates--though yearly dismissed as “niche”. Yet I'm the deluded one.)
:roll:

Post

audiojunkie wrote: Sun Aug 21, 2022 1:48 pm ...Right now, there are situations where you aren’t totally out of RAM, and the OOM Killer kills the offending app a little too early. This is the part that developers want to adjust. The goal is to kill the offending application right before it brings your whole system down, so your system stays up and running. There is no design flaw;
That's worse than a 'mere' design flaw. It's early-alpha quality foisted on the unsuspecting users of a release candidate. The goal should be to pop up a message stating what calamity is anticipated, naming any villainous app(s) involved,
and offering log-out, reboot, and 'killall -9' options on a panel. :dog:

Post

I should add that I've pushed earlier releases of Ubuntu Studio to whatever limits one might reasonably imagine, with the default swap file setting, and never had any such experience. Thanks for explaining what's been occurring!
Cheers

Post Reply

Return to “Computer Setup and System Configuration”