/srv/irclogs.ubuntu.com/2019/09/18/#ubuntustudio.txt

OvenWerkswonko: good. I did not put a logging message in to catch this particular problem. You may see extra "device = <your usb device> play: <something> capture: <something>00:18
wonkowell, at this point zero log entries at all, so I guess that's good then. :)00:19
OvenWerksIf you see those in the log file and your setup doesn't quit/lockup/otherwise misbehave, then we have fixed it.00:19
wonkoI'll check on it in the morning00:19
wonkoI'll keep an eye out for those then00:19
wonkoThanks for fixing that, btw!00:20
OvenWerksyour welcome, thanks for pointing it out.00:20
=== john40 is now known as lyth
=== Unit193 is now known as Guest17120
=== Guest17120 is now known as Unit193
wonkoOvenWerks: so far so good11:14
wonkohttps://paste.ubuntu.com/p/hXhk3rsrm8/11:14
wonkooh, that thing in the udevd logs is the wireless mouse receiver, not the audio device.11:16
wonkoso unrelated anyway11:16
studiobotKaioHenriquebr was removed by: KaioHenriquebr15:28
wonkoOvenWerks: It just happened again. :(15:55
OvenWerksyour log from last night shows a lot of xruns16:04
OvenWerkswhich latency are you using?16:05
OvenWerksand I forget, are you using the lowlatency kernel?16:05
OvenWerkswonko: what does cat /etc/default/rtirq |grep RTIRQ_NAME_LIST show16:07
wonkowonko@deepthought:~/Documents/projects/BattleTech/RTWikiBot$ cat /etc/default/rtirq |grep RTIRQ_NAME_LIST16:10
wonko# RTIRQ_NAME_LIST="rtc snd usb i8042" # old16:10
wonkoRTIRQ_NAME_LIST="snd usb i8042"16:10
wonkoLinux deepthought 5.0.0-27-lowlatency #28-Ubuntu SMP PREEMPT Tue Aug 20 20:33:37 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux16:10
wonko128 latency16:11
OvenWerkswonko you use your USB device as jack master?16:12
OvenWerksIf so, usb should be before snd16:13
OvenWerks also usb should be changed.16:13
OvenWerksI would guess you have USB mouse and kb?16:13
wonkousb device as jack master16:14
wonkoyes on the mouse/kbd16:14
OvenWerksyour mouse is at the same (maybe higher priority as your audio.16:16
EickmeyerThat happens a lot if it's a mouse with a high pull rate, like a lot of gaming mice.16:17
OvenWerkswonko: if you type usb-devices do you find that your Sound Device is on the same Bus as you r mouse?16:22
OvenWerksdoes changing the USB plug you use on your computer change that? (it doesn't on my computer)16:22
wonkomouse: T:  Bus=03 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 15 Spd=12  MxCh= 016:24
wonkoaudio: T:  Bus=03 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 13 Spd=480 MxCh= 016:24
wonko*everything* is on bus 316:25
wonkoI only need usb2 for the KA616:25
wonkoI should see if moving that to one of the usb2 ports would put it on a different bus (currently everything is plugged into the usb3 ports)16:25
OvenWerksYeah, the new mother boards route all the plugs to one usb bus16:25
OvenWerksThat means it is sharing time with whatever else is there.16:26
wonkonope, still on bus 316:28
wonkotime to go plug the usb pcie card I have in. :)16:28
OvenWerksyeah that may make a difference16:28
OvenWerksI would be interested to know16:29
wonkoshould I update usb before snd as well?16:30
wonkoi still need to find that card and make the time to stick it in16:30
wonkoand remember what I did with the screws for the bulkhead16:30
OvenWerkswonko: first you want to get your device on a different usb bus if you can... then do "usb3 snd usb"16:31
OvenWerksassuming usb3 is your device usb...it may not be16:31
wonkoit's a usb2 device, so that wouldn't be right16:31
OvenWerksnot the same thing.16:32
OvenWerksin this case usb3 is the bus not the type.16:32
wonkooh, ok.16:33
* OvenWerks wonders if using a usb 3.0 hub to plug in a USB 2.0 audio device would separate the audio device to another bus.16:40
wonkoI don't think so16:45
OvenWerksA USB3.0 device should get it's own bus... there are 4 buses those other three buses must be there for some reason16:47
OvenWerksA USB3.0 hub should act as a 3.0 to 2.0 device.16:48
OvenWerksthat is, it should be a 2.0 host16:48
wonkousb card added17:08
wonkowhat a colossal pain in the ass17:08
wonkobut, now the audio device is on its own bus17:08
wonkoOvenWerks: should I tweak rtirq or do you want to see what happens now?17:14
OvenWerkswonko: when you plug your audio device into that plug which usb bus does it end up on?17:21
wonkothe new bus517:24
wonkohttp://paste.ubuntu.com/p/M3wK7BT9SW/17:25
wonkohttp://paste.ubuntu.com/p/ks3FGGdprb/17:25
OvenWerksCool! so change you  rtirq line to "usb5 snd usb"17:27
wonkodo I need to restart/reboot/etc to get that into effect?17:27
OvenWerks(or whatever just make sure the plain usb is at the end)17:27
OvenWerksyes17:27
OvenWerksyou would need to reboot17:28
wonkook17:28
OvenWerksyou can run the rtirq again but it does not remove priority17:28
OvenWerkswonko: what does /etc/init.d/rtirq status17:48
OvenWerksshow17:48
wonkolots. :)18:03
wonkohttp://paste.ubuntu.com/p/KHm2FvvVSj/18:04
OvenWerkswonko: That still shows snd on top18:09
wonkoRTIRQ_NAME_LIST="usb5 snd usb i8042"18:09
wonkois what I put in /etc/default/rtirq18:10
OvenWerksOK, so the usb5 trick doesn't work any more18:10
OvenWerkswe need to find out which of those irq goes to your audio device18:12
OvenWerks(and wonder if it will stay there)18:13
OvenWerksMind ifirq18/38 is your card, that would be ok too18:15
OvenWerkswonko: do you get less xruns?18:15
wonkohow do I even check? I don't know without Claudia. :)18:15
wonkojust check the log file?18:15
wonkois that the state = Triggered thing?18:16
OvenWerksHuh, something else I should add to controls I guess18:16
wonkothat would be nice. :)18:16
OvenWerksit should show client not finished for an xrun18:16
OvenWerksadding xruns would mean a redesign of a good portion of things18:17
wonkohttp://paste.ubuntu.com/p/bXJKDzZXH3/18:17
OvenWerkshmm18:22
OvenWerksI would guess we are not quite there18:23
OvenWerksrtirq does nto understand usb5.18:23
OvenWerkswonko: there is another script that does similar to rtirq that may work better for you but it does not come as a package18:30
wonkoI'm ok with that18:31
wonkoIs any of this still valid: https://wiki.linuxaudio.org/wiki/system_configuration18:31
OvenWerkssome of that is out of date.18:32
wonkoI ran that script and this is what "failed"18:32
wonkoChecking access to the high precision event timer... not readable - not good18:33
wonkoChecking access to the real-time clock... not readable - not good18:33
wonkoKernel with Real-Time Preemption... not found - not good18:33
wonkothe rest all checks out18:33
wonkoanyway, bbiab, need to get the kid from the bus stop18:33
OvenWerkshowever, it does remind me of something... in -controls on the system tab18:33
OvenWerks(system Tweaks)18:33
OvenWerksmake sure CPU governor is set to performance and boost (if it is changable) to off.18:34
OvenWerkshttps://github.com/jhernberg/udev-rtirq18:37
OvenWerkswonko: ^^18:38
wonkofirst thing I did was set performance and boost off18:46
wonkoso you guys aren't enabling threadirqs?18:47
OvenWerksI don't know18:49
OvenWerkssomething to find out18:49
wonkoI don't see that you are, so I've added that18:49
OvenWerkscool where?18:50
wonkoI changed GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to GRUB_CMDLINE_LINUX_DEFAULT="threadirqs quiet splash" in /etc/default/grub18:50
wonkoso looks like another reboot. :)18:50
OvenWerksthank you18:50
OvenWerksyes18:50
wonkook19:09
wonkohttp://paste.ubuntu.com/p/Q4x2BpRqfb/19:10
wonkono xruns so far19:11
wonkojust got a couple19:21
OvenWerkswonko: after a few reboots and so far no sign I actually changed the priority of anything by plugging in a usb device...19:28
OvenWerksI have found that I can turn xhci off in bios after which my usb devices show up on different usb buses19:29
wonkohmm19:29
wonkointeresting19:29
wonkoso the bus is virtualized by xhci19:29
OvenWerkswhere everything was on usb3 before, now my mouse is on usb2 and my audio is on usb119:29
wonkoOk better19:48
wonkonow Quassel-Core won't restart every time I reboot my computer19:48
wonkooh no!19:49
wonkojack server restarted. :(19:49
wonkoOvenWerks: Who wrote Carla? you guys?20:03
OvenWerksno falktx did20:03
OvenWerkssame as all the kxstudio stuff20:03
wonkoIt would be nice if it reconnected to jack when it came back. Minor annoyance though, nothing serious20:04
OvenWerksI haven't found any application that does that...20:04
OvenWerksThe only way to do that I know of is to keep trying to reconnect and fail till it comes back20:06
OvenWerksbugging jackdbus via dbus may work too, but seems not too rliable.20:06
wonkoAh well, would have been nice, but again, not a major issue20:18
wonkomajor issue being that jack crashed even with all this new stuff going on. :(20:20
wonkoxruns being way down is awesome though20:23
OvenWerksThe udev-rtirq doesn't seem to work for me20:31
OvenWerksI was able to more my usb irq by hand: http://paste.ubuntu.com/p/RHGxDRd7s7/20:33
OvenWerksirq20 is my USB1 and irq23 is sub220:34
wonkohow do I find out which irq maps to what?20:35
wonkoI mean, xruns are *way* down, so that's good20:37
OvenWerkswhen I did: cat /proc/interrupts I got  20:    2810586          0         30          0   IO-APIC  20-fasteoi   ehci_hcd:usb120:37
wonkoso maybe it's not super important and is "good enough"?20:37
wonkoI have 56 cores. That's some ugly output. :)20:38
OvenWerksI guess it depends on what you are doing.20:38
OvenWerks56 cores? that may be the problem20:38
OvenWerksThe low latency tests I have seen tend to favour fewer cores20:39
OvenWerksAlso hyperthreading will raise the lowest latency20:39
wonkoWell then I'll be happy with the results I have now. :)20:39
wonkoI don't even see usb5 in /proc/interrupts20:40
OvenWerksI purposely bought an i5 with 4 cores and no hyperthreads rather than the i720:40
wonkoirq19 is usb1 and usb320:40
wonkoirq18 is usb220:41
OvenWerksone of the ehci/xhci must be your pcie card20:42
OvenWerksI would say one of the 4* ones20:43
OvenWerks18 and 38 will be linked and 19/39 too20:44
wonkocan I expect zero xruns to be a reasonable goal or is 5 every couple of minutes not terrible20:44
OvenWerksI don't know, try going from 128 to 256 for buffer size20:45
OvenWerksI am pretty sure there some more tricks20:47
OvenWerksI do know that I can do better with what I have. I haven't done a lot of testing lately so I don't know what newer kernels and even this MB are good for. I used to be able to get down to a buffer size 16 with no xruns for hours.20:49
OvenWerksbut that was with a pci audio device20:49
OvenWerksYou can see that have a whole lot shorter irq list too. All of those megasas and ens1 things you have listed must be one per core.20:52
OvenWerkstying you irq for your usb device along with your audio chain to one core might do wonders too. I know of people who have gotten their buffer size to less than 64 (32/3 I think) even with a usb device20:53
OvenWerkswonko: I wonder if the webcam is causing any odd stuff.21:23
wonkoYeah, let's not get crazy just yet. Mic should be here Monday. Then I'll stop using the webcam21:23
wonkoThen we'll see what happens21:23
wonkoAnd leave CPU pining for last. 😁21:24
OvenWerksmaybe the webcam doesn't like 64 for a buffer21:24
OvenWerkscpu pinning is a task and a half I think21:24
OvenWerksAnd I don't know if it would help anyway.21:24
OvenWerksWhat I do know is that you seem to have 128 extra irqs that most cpus don't have21:25
OvenWerksI don't know how often they have to tale to each other, but that may be enough to do things.21:26
OvenWerkss/tale/talk/21:26
wonkoThe joys of not having desktop CPUs21:37

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!