Re: [ubuntu-studio-users] Real Time kernel US 13.04
Hi all, Just an update. I compiled my own rt kernel following the system configuration guide http://wiki.linuxaudio.org/wiki/system_configuration#the_kernel I've used the linux-3.2.35 kernel with the 3.2.35-rt52 patch compiled against the .config of the latest low-latency kernel available from 13.04 repo. All seems working SO FAR better now on my machine. I have no problem running jack at 44100/128/2 (5.8 ms latency) just a couple of xrun in 30 mins of session. Disabling pulseaudio i can improve the situation even more... For the moment i'm really satisfied. I've got the deb files if someone needs it. Nicola On Tue, 2013-07-30 at 00:35 +0100, nicola.di.marzo @vodafone.it wrote: Thanks Ralf for the suggestions. Tomorrow i will experiment a little bit. One strange thing that i don't understand is why does still compare the webcam (on the bus 2) in lsusb even if i blacklisted the uvcvideo e videodev drivers? I also found a very interesting discussion about rtirq made on LAU http://linux-audio.4202.n7.nabble.com/Re-Issue-with-the-priority-of-the-sound-cards-using-rtirq-td40952i20.html Cheers Nicola 2013/7/29 Ralf Mardorf ralf.mard...@alice-dsl.net ninu@ninu-HPg6:~$ service rtirq status PID CLS RTPRIO NI PRI %CPU STAT COMMAND 66 FF 90 - 130 0.0 Sirq/8-rtc0 62 FF 80 - 120 0.3 Sirq/16-ehci_hcd 63 FF 79 - 119 0.8 Sirq/21-ehci_hcd 65 FF 75 - 115 0.0 Sirq/1-i8042 64 FF 74 - 114 0.0 Sirq/12-i8042 35 FF 50 - 90 0.0 Sirq/9-acpi 189 FF 50 - 90 0.0 Sirq/41-rtsx_pci 217 FF 50 - 90 0.3 Sirq/42-ahci 424 FF 50 - 90 0.0 Sirq/43-mei 620 FF 50 - 90 0.4 Sirq/16-ath9k 742 FF 50 - 90 0.0 Sirq/44-i915 1377 FF 50 - 90 0.0 Sirq/40-eth0 3 TS - 0 19 0.2 Sksoftirqd/0 14 TS - 0 19 0.1 Sksoftirqd/1 19 TS - 0 19 0.0 Sksoftirqd/2 24 TS - 0 19 0.0 Sksoftirqd/3 Unbind ehci_hcd with irq 16 and use ehci_hcd with irq 21 for the USB sound device. Disabling WLAN might be useful too, even when it doesn't share the irq. http://wiki.linuxaudio.org/wiki/system_configuration#solve_irq_conflict_by_unbinding_devices Or at least take care that the used USB slot is head of the USB slots, RTIRQ_NAME_LIST=rtc snd usb i8042 instead of usb add the number usb1 or similar, ask Rui, if it shouldn't be described by http://wiki.linuxaudio.org/wiki/system_configuration#rtirq Rui Nuno Capela rncbc at rncbc dot org -- Ubuntu-Studio-users mailing list Ubuntu-Studio-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users -- ubuntu-studio-users mailing list ubuntu-studio-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
Re: Real Time kernel US 13.04
On Mon, Jul 29, 2013 at 5:35 PM, nicola.di.marzo @vodafone.it nicola.di.ma...@vodafone.it wrote: Thanks Ralf for the suggestions. Tomorrow i will experiment a little bit. One strange thing that i don't understand is why does still compare the webcam (on the bus 2) in lsusb even if i blacklisted the uvcvideo e videodev drivers? lsusb enumerates the USB bus and then listing connected devices. Blacklisting the module just means that the module (driver) does not get loaded. The device is still actually physically connected to the USB bus so lsusb will still see it. The same is true of pci devices with lspci. -- Ubuntu-Studio-users mailing list Ubuntu-Studio-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
Re: Real Time kernel US 13.04
On Tue, 2013-07-30 at 13:25 -0600, Gustin Johnson wrote: On Mon, Jul 29, 2013 at 5:35 PM, nicola.di.marzo @vodafone.it nicola.di.ma...@vodafone.it wrote: Thanks Ralf for the suggestions. Tomorrow i will experiment a little bit. One strange thing that i don't understand is why does still compare the webcam (on the bus 2) in lsusb even if i blacklisted the uvcvideo e videodev drivers? lsusb enumerates the USB bus and then listing connected devices. Blacklisting the module just means that the module (driver) does not get loaded. The device is still actually physically connected to the USB bus so lsusb will still see it. The same is true of pci devices with lspci. True :D lsmod does show the loaded modules. So the OP likely doesn't need to add rmmod uvcvideo rmmod videodev to rc.local. -- Ubuntu-Studio-users mailing list Ubuntu-Studio-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
Real Time kernel US 13.04
Hi all, Is it available a Real Time kernel for the 13.04? I've tried both the default lowlatency kernels but to be honest i'm not satisfied with them. With my hp pavilion g6 can't get good results with jack below 11,6 ms (many xruns) even if i tried several further configurations (ex, i disabled pulseaudio). Even though i use a Roland ua25-ex that stands undisturbed upon its interrupt line... Any tips eventually? Thanks Cheers Nicola -- Ubuntu-Studio-users mailing list Ubuntu-Studio-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
Re: Real Time kernel US 13.04
PS: What issues do you experience? Can you please post the output of rtirq status? -- Ubuntu-Studio-users mailing list Ubuntu-Studio-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
Re: Real Time kernel US 13.04
That Laptop has limited cpu and I/O resources for the many apps that can run on this kernel thus you get plenty of xruns. In other words, you need more hardware resources. Perhaps if you use an externel usb sound card you may get some help. You need to be at 8Gb of Ram and a high speed hard Drive. Graphics on that Laptop will be a problem too. I have 8 screens going during productions. I have a desktop for the heavy work and use my laptop for DJ software or simple audacity recording. At least a 4 core processor would do the trick. On Mon, Jul 29, 2013 at 10:49 AM, Nicola nicola.di.ma...@vodafone.itwrote: Hi all, Is it available a Real Time kernel for the 13.04? I've tried both the default lowlatency kernels but to be honest i'm not satisfied with them. With my hp pavilion g6 can't get good results with jack below 11,6 ms (many xruns) even if i tried several further configurations (ex, i disabled pulseaudio). Even though i use a Roland ua25-ex that stands undisturbed upon its interrupt line... Any tips eventually? Thanks Cheers Nicola -- Ubuntu-Studio-users mailing list Ubuntu-Studio-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users -- Ubuntu-Studio-users mailing list Ubuntu-Studio-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
Re: Real Time kernel US 13.04
Hi Nicola, google for KXStudio, perhaps it provides linux-rt for Ubuntu 13.04, if not, then I can explain how you can build your own kernel-rt. Since I'm short in time, I only will do it, if no linux-rt should be available by a repository. Regards, Ralf -- Ubuntu-Studio-users mailing list Ubuntu-Studio-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
Re: Real Time kernel US 13.04
My mails did not come through the list and the archive is outdated since days. Forwarded Message From: Ralf Mardorf ralf.mard...@alice-dsl.net To: ubuntu-studio-users@lists.ubuntu.com Subject: Re: Real Time kernel US 13.04 Date: Mon, 29 Jul 2013 17:51:42 +0200 Hi Nicola, google for KXStudio, perhaps it provides linux-rt for Ubuntu 13.04, if not, then I can explain how you can build your own kernel-rt. Since I'm short in time, I only will do it, if no linux-rt should be available by a repository. Regards, Ralf Forwarded Message From: Ralf Mardorf ralf.mard...@alice-dsl.net To: ubuntu-studio-users@lists.ubuntu.com Subject: Re: Real Time kernel US 13.04 Date: Mon, 29 Jul 2013 17:55:04 +0200 PS: What issues do you experience? Can you please post the output of rtirq status? -- Ubuntu-Studio-users mailing list Ubuntu-Studio-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
Re: Real Time kernel US 13.04
On Mon, 2013-07-29 at 11:54 -0400, Abe Caleb wrote: That Laptop has limited cpu and I/O resources for the many apps that can run on this kernel thus you get plenty of xruns. In other words, you need more hardware resources. Perhaps if you use an externel usb sound card you may get some help. You need to be at 8Gb of Ram and a high speed hard Drive. Graphics on that Laptop will be a problem too. I have 8 screens going during productions. I have a desktop for the heavy work and use my laptop for DJ software or simple audacity recording. At least a 4 core processor would do the trick. My apologise to the OP, I didn't take care about the issues, so no need to repeat them, but anyway, post the output of rtirq status. IIRC on Ubuntu it's /etc/init.d/rtirq status or try service rtirq status perhaps there's a wrapper. -- Ubuntu-Studio-users mailing list Ubuntu-Studio-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
Re: Real Time kernel US 13.04
On Mon, Jul 29, 2013, at 05:54 PM, Abe Caleb wrote: That Laptop has limited cpu and I/O resources for the many apps that can run on this kernel thus you get plenty of xruns. In other words, you need more hardware resources. Perhaps if you use an externel usb sound card you may get some help. You need to be at 8Gb of Ram and a high speed hard Drive. Graphics on that Laptop will be a problem too. I have 8 screens going during productions. I have a desktop for the heavy work and use my laptop for DJ software or simple audacity recording. At least a 4 core processor would do the trick. Neither the number of cores, the amount of RAM or the type of hard drive you have is going to have much effect on jack performance, unless we're talking really poor hardware. Some audio devices work better than others. And, there is always the chance of IRQ conflict, causing one piece of hardware to disturbe the performance of another. Ralph mentioned rtirq. That would be a good place to start. -- Ubuntu-Studio-users mailing list Ubuntu-Studio-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
Re: Real Time kernel US 13.04
Hello Nicola, A packaged RT kernel for Ubuntu 13.04 is not available via any repository or PPA currently. We do have plans to resume maintenance of the linux-rt package in the near future (possibly after the release of Ubuntu 14.04 LTS). However, I don't think a packaged RT kernel will be available for Ubuntu 13.04. Meanwhile, you can build the Linux RT kernel yourself. Follow the instructions in https://rt.wiki.kernel.org/index.php/RT_PREEMPT_HOWTO for details. Regards, Howard Chan (smartboyhw) Ubuntu Studio Release Manager On Jul 29, 2013 3:56 PM, Nicola nicola.di.ma...@vodafone.it wrote: Hi all, Is it available a Real Time kernel for the 13.04? I've tried both the default lowlatency kernels but to be honest i'm not satisfied with them. With my hp pavilion g6 can't get good results with jack below 11,6 ms (many xruns) even if i tried several further configurations (ex, i disabled pulseaudio). Even though i use a Roland ua25-ex that stands undisturbed upon its interrupt line... Any tips eventually? Thanks Cheers Nicola -- Ubuntu-Studio-users mailing list Ubuntu-Studio-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users -- Ubuntu-Studio-users mailing list Ubuntu-Studio-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
Re: Real Time kernel US 13.04
On Mon, 2013-07-29 at 18:21 +0200, Ralf Mardorf wrote: On Mon, 2013-07-29 at 11:54 -0400, Abe Caleb wrote: That Laptop has limited cpu and I/O resources for the many apps that can run on this kernel thus you get plenty of xruns. In other words, you need more hardware resources. Perhaps if you use an externel usb sound card you may get some help. You need to be at 8Gb of Ram and a high speed hard Drive. Graphics on that Laptop will be a problem too. I have 8 screens going during productions. I have a desktop for the heavy work and use my laptop for DJ software or simple audacity recording. At least a 4 core processor would do the trick. My apologise to the OP, I didn't take care about the issues, so no need to repeat them, but anyway, post the output of rtirq status. IIRC on Ubuntu it's /etc/init.d/rtirq status or try service rtirq status perhaps there's a wrapper. PS: I disagree. The OP does use a Roland ua25-ex and neither 8 GB RAM nor 4 cores are needed for heavy audio productions. -- Ubuntu-Studio-users mailing list Ubuntu-Studio-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
Re: Real Time kernel US 13.04
First of all, thanks everyone for your quick replies. Second, it's the first time that i write here but i'm a happy ubuntu studio user since 9.10! So thanks to make this distro as great as it is...hope to contribute myself more in the early future. Now, i attach the output of these commands: service rtirq status lsusb cat /proc/interrupts Seems like irq 16 has more priority than irq 21 that's where my ua25-ex stands. How can i prioritize it? p.s.I'm ready to compile the RT kernel as well, thanks for the links (that would be my first time!). Cheers Nicola 2013/7/29 Ralf Mardorf ralf.mard...@alice-dsl.net On Mon, 2013-07-29 at 18:21 +0200, Ralf Mardorf wrote: On Mon, 2013-07-29 at 11:54 -0400, Abe Caleb wrote: That Laptop has limited cpu and I/O resources for the many apps that can run on this kernel thus you get plenty of xruns. In other words, you need more hardware resources. Perhaps if you use an externel usb sound card you may get some help. You need to be at 8Gb of Ram and a high speed hard Drive. Graphics on that Laptop will be a problem too. I have 8 screens going during productions. I have a desktop for the heavy work and use my laptop for DJ software or simple audacity recording. At least a 4 core processor would do the trick. My apologise to the OP, I didn't take care about the issues, so no need to repeat them, but anyway, post the output of rtirq status. IIRC on Ubuntu it's /etc/init.d/rtirq status or try service rtirq status perhaps there's a wrapper. PS: I disagree. The OP does use a Roland ua25-ex and neither 8 GB RAM nor 4 cores are needed for heavy audio productions. -- Ubuntu-Studio-users mailing list Ubuntu-Studio-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users US13.04troubleshoot Description: Binary data -- Ubuntu-Studio-users mailing list Ubuntu-Studio-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
Re: Real Time kernel US 13.04
On Mon, 2013-07-29 at 19:43 +0200, Ralf Mardorf wrote: On Tue, 2013-07-30 at 00:36 +0800, Ho Wan Chan wrote: https://rt.wiki.kernel.org/index.php/RT_PREEMPT_HOWTO Or try the attached script. Boot into the lowlatency kernel, since the attached script should use it's config. I have no time to update the script completely and I needed to remove some parts of the original script. Perhaps not all packages are needed and I've doubts regarding to fakeroot, so run the script using sudo. Note, I'm running Arch Linux and can't test my old script right now. You need to follow the instructions, you can hit enter when there's no question about timers or audio, but take care about questions about e.g. real time, then answer in a self explaining way. In a terminal run the script by $ sudo bash /path/to/ubuntu-rt Note! Nothing bad should happen, only build might fail. However, use it on your own risk ;). Regards, Ralf Oops, that was the wrong script, use this one :). ubuntu-rt Description: application/shellscript -- Ubuntu-Studio-users mailing list Ubuntu-Studio-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
Re: Real Time kernel US 13.04
The processor in that laptop is pretty weak. It is only a single module (two integer cores) AMD and is thus less capable than a similarly clocked Intel i3. I have no idea what Even though i use a Roland ua25-ex that stands undisturbed upon its interrupt line... means since that device is USB based and thus by definition cannot have it's own interrupt. I have a Tascam US122l kicking around. I will see what kind of latency I can get on my AMD machine. It might take a couple of days. Historically it has only been really stable in and around the 10 ms mark. On Mon, Jul 29, 2013 at 10:40 AM, Ralf Mardorf ralf.mard...@alice-dsl.netwrote: On Mon, 2013-07-29 at 18:21 +0200, Ralf Mardorf wrote: On Mon, 2013-07-29 at 11:54 -0400, Abe Caleb wrote: That Laptop has limited cpu and I/O resources for the many apps that can run on this kernel thus you get plenty of xruns. In other words, you need more hardware resources. Perhaps if you use an externel usb sound card you may get some help. You need to be at 8Gb of Ram and a high speed hard Drive. Graphics on that Laptop will be a problem too. I have 8 screens going during productions. I have a desktop for the heavy work and use my laptop for DJ software or simple audacity recording. At least a 4 core processor would do the trick. My apologise to the OP, I didn't take care about the issues, so no need to repeat them, but anyway, post the output of rtirq status. IIRC on Ubuntu it's /etc/init.d/rtirq status or try service rtirq status perhaps there's a wrapper. PS: I disagree. The OP does use a Roland ua25-ex and neither 8 GB RAM nor 4 cores are needed for heavy audio productions. -- Ubuntu-Studio-users mailing list Ubuntu-Studio-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users -- Ubuntu-Studio-users mailing list Ubuntu-Studio-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
Re: Real Time kernel US 13.04
ninu@ninu-HPg6:~$ service rtirq status PID CLS RTPRIO NI PRI %CPU STAT COMMAND 66 FF 90 - 130 0.0 Sirq/8-rtc0 62 FF 80 - 120 0.3 Sirq/16-ehci_hcd 63 FF 79 - 119 0.8 Sirq/21-ehci_hcd 65 FF 75 - 115 0.0 Sirq/1-i8042 64 FF 74 - 114 0.0 Sirq/12-i8042 35 FF 50 - 90 0.0 Sirq/9-acpi 189 FF 50 - 90 0.0 Sirq/41-rtsx_pci 217 FF 50 - 90 0.3 Sirq/42-ahci 424 FF 50 - 90 0.0 Sirq/43-mei 620 FF 50 - 90 0.4 Sirq/16-ath9k 742 FF 50 - 90 0.0 Sirq/44-i915 1377 FF 50 - 90 0.0 Sirq/40-eth0 3 TS - 0 19 0.2 Sksoftirqd/0 14 TS - 0 19 0.1 Sksoftirqd/1 19 TS - 0 19 0.0 Sksoftirqd/2 24 TS - 0 19 0.0 Sksoftirqd/3 Unbind ehci_hcd with irq 16 and use ehci_hcd with irq 21 for the USB sound device. Disabling WLAN might be useful too, even when it doesn't share the irq. http://wiki.linuxaudio.org/wiki/system_configuration#solve_irq_conflict_by_unbinding_devices Or at least take care that the used USB slot is head of the USB slots, RTIRQ_NAME_LIST=rtc snd usb i8042 instead of usb add the number usb1 or similar, ask Rui, if it shouldn't be described by http://wiki.linuxaudio.org/wiki/system_configuration#rtirq Rui Nuno Capela rncbc at rncbc dot org -- Ubuntu-Studio-users mailing list Ubuntu-Studio-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
Re: Real Time kernel US 13.04
Thanks Ralf for the suggestions. Tomorrow i will experiment a little bit. One strange thing that i don't understand is why does still compare the webcam (on the bus 2) in lsusb even if i blacklisted the uvcvideo e videodev drivers? I also found a very interesting discussion about rtirq made on LAU http://linux-audio.4202.n7.nabble.com/Re-Issue-with-the-priority-of-the-sound-cards-using-rtirq-td40952i20.html Cheers Nicola 2013/7/29 Ralf Mardorf ralf.mard...@alice-dsl.net ninu@ninu-HPg6:~$ service rtirq status PID CLS RTPRIO NI PRI %CPU STAT COMMAND 66 FF 90 - 130 0.0 Sirq/8-rtc0 62 FF 80 - 120 0.3 Sirq/16-ehci_hcd 63 FF 79 - 119 0.8 Sirq/21-ehci_hcd 65 FF 75 - 115 0.0 Sirq/1-i8042 64 FF 74 - 114 0.0 Sirq/12-i8042 35 FF 50 - 90 0.0 Sirq/9-acpi 189 FF 50 - 90 0.0 Sirq/41-rtsx_pci 217 FF 50 - 90 0.3 Sirq/42-ahci 424 FF 50 - 90 0.0 Sirq/43-mei 620 FF 50 - 90 0.4 Sirq/16-ath9k 742 FF 50 - 90 0.0 Sirq/44-i915 1377 FF 50 - 90 0.0 Sirq/40-eth0 3 TS - 0 19 0.2 Sksoftirqd/0 14 TS - 0 19 0.1 Sksoftirqd/1 19 TS - 0 19 0.0 Sksoftirqd/2 24 TS - 0 19 0.0 Sksoftirqd/3 Unbind ehci_hcd with irq 16 and use ehci_hcd with irq 21 for the USB sound device. Disabling WLAN might be useful too, even when it doesn't share the irq. http://wiki.linuxaudio.org/wiki/system_configuration#solve_irq_conflict_by_unbinding_devices Or at least take care that the used USB slot is head of the USB slots, RTIRQ_NAME_LIST=rtc snd usb i8042 instead of usb add the number usb1 or similar, ask Rui, if it shouldn't be described by http://wiki.linuxaudio.org/wiki/system_configuration#rtirq Rui Nuno Capela rncbc at rncbc dot org -- Ubuntu-Studio-users mailing list Ubuntu-Studio-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users -- Ubuntu-Studio-users mailing list Ubuntu-Studio-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users