xruns with Rosegarden

View: New views
13 Messages — Rating Filter:   Alert me  

xruns with Rosegarden

by Tomasz Grzelak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello!

I'm writing to the mailing list about xruns because I get them ONLY when I try to use Rosegarden.
My OS is: Debian (unstable) with kernel 2.6.24.7 + real time patches (-rt17) applied; software raid1 is used for all partitions.
Hardware is AMD64 x2 6400+, 4 GB RAM, and Edirol FA-66 as the sound unit.

I usually start QSynth (witch four engines), ZynAddSubFX, Hydrogen, Muse, Ardour, and JACK in the following way:

    jackd -R -P70 -t2000 -dfreebob -dhw:0 -r48000 -p128 -n3 -D

Then I have no issues, I can work for several hours without an xrun. But when I try to use Rosegarden instead of Muse,
I start getting xruns, more less one per a minute. It happens to hear a click/crackle then (not at every xrun), and additionally Rosegarden somehow
looses its synchronization (or BPM measurement, I don't know how to call it), and starts playing noticeably slower - for example, Hydrogen starts playing
a beat at 57th bar while Rosegarden reaches a 50th bar then. This synchronization loss does not happen at every xrun neither, just sometimes,
but often enough to make Rosegarden unusable for me.

I have followed instructions/suggestions about real time kernel preparation, mainly at:
http://tapas.affenbande.org/wordpress/?page_id=40

My interrupts are:
daemon:~/bin# cat /proc/interrupts
           CPU0       CPU1
  0:        149         27   IO-APIC-edge      timer
  1:          0       3301   IO-APIC-edge      i8042
  4:          0          1   IO-APIC-edge
  8:       4387    4605172   IO-APIC-edge      rtc
  9:          0          0   IO-APIC-fasteoi   acpi
 16:     339745       9307   IO-APIC-fasteoi   nvidia
 19:    3979385         78   IO-APIC-fasteoi   ohci1394
 20:      67599       2670   IO-APIC-fasteoi   sata_nv, HDA Intel
 21:     117173       2744   IO-APIC-fasteoi   sata_nv
 22:          0         29   IO-APIC-fasteoi   ehci_hcd:usb2
 23:          1      64256   IO-APIC-fasteoi   ohci_hcd:usb1, sata_nv
505:     686520       1715   PCI-MSI-edge      eth0
NMI:          0          0   Non-maskable interrupts
LOC:    4103774    4101798   Local timer interrupts
RES:    7526734    7904732   Rescheduling interrupts
CAL:        797        855   function call interrupts
TLB:       3268       4503   TLB shootdowns
TRM:          0          0   Thermal event interrupts
THR:          0          0   Threshold APIC interrupts
SPU:          0          0   Spurious interrupts
ERR:          0


I also set the FIFO sch., and high prio to the IRQ-8 & IRQ-19 processes:

   chrt -f -p 98 `pidof IRQ-8`
   chrt -f -p 82 `pidof IRQ-19`
   echo 8192 > /proc/sys/dev/rtc/max-user-freq

Next I start JACK, and other audio software. In the htop processes look like this then:

    http://picasaweb.google.com/tgrzelak/Audio/photo#5235864409871263538

[you can see there are quite many xruns reported]



Now... what I have tried before asking you for help:

1. Starting JACK with larger buffer:

    jackd -R -P70 -t2000 -dfreebob -dhw:0 -r48000 -p512 -n3 -D


2. Having used the 'nv' driver instead of the binary 'nvidia' one (I have GeForce 8800GTX if that matters),
and some light window manager - Window Maker.

3. Rosegarden 1.7.1 compiled from source (currently I have 1.7.0 in Debian repositories).

4. JACK 0.112.1 compiled from svn repositories.

5. JACK 0.112.1 with FFADO backend instead of FreeBoB.

No matter what I have tried, the situation looked the same every time - not possible to work with Rosegarden, no problems with Muse.
I must say I'm running out of ideas. I don't know what to check/try more, especially xruns happen ONLY while using Rosegarden!

Rosegarden seems to be a great environment with lots of useful features, and convenient usage, and I'd like to have it as the main MIDI seq software,
but somehow it is unusable for me.

I'd be thankful for help with this issue.

Regards,
Tomasz Grzelak


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Rosegarden-user mailing list
Rosegarden-user@... - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user

Re: xruns with Rosegarden

by D. Michael McIntyre :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Monday 18 August 2008, Tomasz Grzelak wrote:

> I'd be thankful for help with this issue.

Since this only happens with Rosegarden, it probably does point a finger at us
in some way.  I wish I could help, but I'm afraid I have no idea what else to
suggest.  You've already done a great job of trying to solve your own
problem.

All I can do from here is hope that Chris has some insight when he gets back
from vacation.  He knows the inside of the audio code vastly better than I
do.
--
D. Michael McIntyre

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Rosegarden-user mailing list
Rosegarden-user@... - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user

Re: xruns with Rosegarden

by Tomasz Grzelak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

D. Michael McIntyre pisze:

> On Monday 18 August 2008, Tomasz Grzelak wrote:
>
>> I'd be thankful for help with this issue.
>
> Since this only happens with Rosegarden, it probably does point a finger at us
> in some way.  I wish I could help, but I'm afraid I have no idea what else to
> suggest.  You've already done a great job of trying to solve your own
> problem.
>
> All I can do from here is hope that Chris has some insight when he gets back
> from vacation.  He knows the inside of the audio code vastly better than I
> do.

Nice to see some feedback... I hope this issue won't be ignored, but
investigated deeper.

I've just make another test - I have run JACK & Rosegarden only, without
any other audio applications.

Look at what I've got after 10 minutes of doing nothing (Rosegarden was
only run, and in the meantime I was reading mails):

http://picasaweb.google.com/tgrzelak/Audio/photo#5236609217996444898

almost 30 xruns in ten minutes of doing nothing, only with Jack &
Rosegarden running :/
In comparison, when I work simultaneously with many audio applications
(Muse+Qsynth+ZynAddSubFX+Hydrogen+Ardour) I usually get only 2 or 3
xruns when starting synthesizers programs, and then can work as long as
I want without any problems (no xruns).

I hope the Rosegarden issue will be fixed soon.

Cheers!
Tomasz Grzelak

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Rosegarden-user mailing list
Rosegarden-user@... - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user

Re: xruns with Rosegarden

by Emanuel Rumpf-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2008/8/18 Tomasz Grzelak <tgrzelak@...>:
> 3. Rosegarden 1.7.1 compiled from source (currently I have 1.7.0 in Debian
> repositories).
>
> 4. JACK 0.112.1 compiled from svn repositories.
>
> 5. JACK 0.112.1 with FFADO backend instead of FreeBoB.
>
Hello
The first thing, I would try on your place, would be to
use stable sources.
jack 0.112.1 has not been released yet and
thus rosegarden likely has not been tested with it.

I'd also recommend to install jackd in /usr not in /usr/local
if you haven't done so, since that's been an error source in the past.
also set the tmpdir to /dev/shm

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Rosegarden-user mailing list
Rosegarden-user@... - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user

Re: xruns with Rosegarden

by D. Michael McIntyre :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wednesday 20 August 2008, Tomasz Grzelak wrote:

> Nice to see some feedback... I hope this issue won't be ignored, but
> investigated deeper.

I don't think it's fair to say I am "ignoring" the issue.  That implies I
don't care.

I do care, but I can't do anything to help you.  You run Debian Unstable,
which is not a distro but a collection of proposed packages that might make
it into a distro.  You run your own kernel.  You run hardware of which I have
no first-hand knowledge (the firewire audio dongle, and even your basic
computer) and you throw RAID into the mix.

It would be hard enough for me to even try to suggest a solution if we had
more in common, but as things stand now, we have practically nothing in
common at all.

Rosegarden doesn't have this problem on my computer.

I run Ubuntu Studio with Kubuntu packages on top of it, on a 3.2 GHz Pentium D
with 2 GB of RAM.  I have an Audiophile 2496, a Sound Blaster Live! 5.1, and
built-in Intel HDA, with the Audiophile as my JACK card.  I run the
proprietary NVIDIA drivers too, because I can't get my widescreen display to
work properly without them.

We have totally different environments, and me saying everything works here is
just as useless to you as you saying it doesn't work there is useless to me.  
We have very little common ground for meaningful comparison here, and there's
little I can do except feel sorry for your misery.

I would suggest that since you seem to like pure Debian over Ubuntu, you might
give 64 Studio a try.  I haven't used 64 Studio, but I've read a lot of their
pages, and it seems to be a very good distro for audio work.  I can
personally vouch for Ubuntu Studio being a very good distro for audio work as
well.

I would furthermore suggest that Debian Unstable is a really bad choice for an
audio platform, because it's too unstable, and too unpredictable.  Packages
are often buggy, and they interact with each other in complex ways, so that
somebody who upgraded on Monday and Thursday might wind up with a buggy
system that someone who upgraded on Tuesday and Thursday might not.  I
concede that you have everything else working so well that your environment
is probably OK this time, but just in terms of a long-term strategy, trying
to do this kind of thing with Debian Unstable is a lot of work for nothing.  
I did the same thing for years myself, and I'm speaking from experience.  
Switching to Ubuntu Studio was a great move for me, because I now have the
luxury of not knowing much of anything about how to put together a
JACK-friendly setup.  Someone else keeps up with all the changes in this and
that, and it just works.  I love it!

In any case, Chris might still have some insight to offer here.  I've said all
there is any point in my saying, and I wish you the best of luck with your
trouble.
--
D. Michael McIntyre

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Rosegarden-user mailing list
Rosegarden-user@... - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user

Re: xruns with Rosegarden

by Tomasz Grzelak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Emanuel Rumpf pisze:

> 2008/8/18 Tomasz Grzelak <tgrzelak@...>:
>> 3. Rosegarden 1.7.1 compiled from source (currently I have 1.7.0 in Debian
>> repositories).
>>
>> 4. JACK 0.112.1 compiled from svn repositories.
>>
>> 5. JACK 0.112.1 with FFADO backend instead of FreeBoB.
>>
> Hello
> The first thing, I would try on your place, would be to
> use stable sources.
> jack 0.112.1 has not been released yet and
> thus rosegarden likely has not been tested with it.
>
> I'd also recommend to install jackd in /usr not in /usr/local
> if you haven't done so, since that's been an error source in the past.
> also set the tmpdir to /dev/shm

before I started using JACK 0.112.1, I had used version 0.109.2 directly
from Debian repositories which is also placed in /usr, not /usr/local.
So unfortunately it's not a problem as you suggested. It must be
something else.

Problems with Rosegarden made me experiment with other versions of
different software, and that's why I started using the 0.112.1 version.

Besides when I use Muse both version of JACK work fine with audio
applications on my system.

Cheers!

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Rosegarden-user mailing list
Rosegarden-user@... - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user

Re: xruns with Rosegarden

by Tomasz Grzelak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2008/8/20 D. Michael McIntyre <michael.mcintyre@...>
On Wednesday 20 August 2008, Tomasz Grzelak wrote:

> Nice to see some feedback... I hope this issue won't be ignored, but
> investigated deeper.

you understood me wrong, sorry, it's probably my "personal" version of English ;)
I meant I was happy to see a response for this problem, it was not an accusation in any way!
Sorry once again, I was just satisfied it interested developers, and hoped to be investigated more.



I don't think it's fair to say I am "ignoring" the issue.  That implies I
don't care.

like I wrote above - misunderstanding :)


I do care, but I can't do anything to help you.  You run Debian Unstable,
which is not a distro but a collection of proposed packages that might make
it into a distro.  You run your own kernel.  You run hardware of which I have
no first-hand knowledge (the firewire audio dongle, and even your basic
computer) and you throw RAID into the mix. 

It would be hard enough for me to even try to suggest a solution if we had
more in common, but as things stand now, we have practically nothing in
common at all.

agree
 

Rosegarden doesn't have this problem on my computer.

I suppose so. It's a very popular and good environment, and that's why I wanted to give it a try,
and still want, but I'm running out of ideas slowly, because somehow only Rosegarden is unusable on my system.


We have totally different environments, and me saying everything works here is
just as useless to you as you saying it doesn't work there is useless to me.
We have very little common ground for meaningful comparison here, and there's
little I can do except feel sorry for your misery.

I agree too, but I'm also willing to give any more needed information about my system
to diagnose the problem. I understand it's very hard (I'm not a computer/Linux newbie),
but at the moment I just don't know what more can have influence for such behaviour.
I have been thinking of RAID for many times, but in that case why do other JACK apllications work fine?
If they all were not working, it would be easy to say "Debian unstable with RAID is not good for this stuff".
But... there's always this "BUT" :) ... everything I use works fine besides Rosegarden.
So it makes me totally confused :/


I would suggest that since you seem to like pure Debian over Ubuntu, you might
give 64 Studio a try.  I haven't used 64 Studio, but I've read a lot of their
pages, and it seems to be a very good distro for audio work.  I can
personally vouch for Ubuntu Studio being a very good distro for audio work as
well.

I would furthermore suggest that Debian Unstable is a really bad choice for an
audio platform, because it's too unstable, and too unpredictable.  Packages
are often buggy, and they interact with each other in complex ways, so that
somebody who upgraded on Monday and Thursday might wind up with a buggy
system that someone who upgraded on Tuesday and Thursday might not.  I
concede that you have everything else working so well that your environment
is probably OK this time, but just in terms of a long-term strategy, trying
to do this kind of thing with Debian Unstable is a lot of work for nothing.
I did the same thing for years myself, and I'm speaking from experience.
Switching to Ubuntu Studio was a great move for me, because I now have the
luxury of not knowing much of anything about how to put together a
JACK-friendly setup.  Someone else keeps up with all the changes in this and
that, and it just works.  I love it!

In any case, Chris might still have some insight to offer here.  I've said all
there is any point in my saying, and I wish you the best of luck with your
trouble.

I must say I have thought of some other audio distro, but  ("BUT" again ;) ) I use my Debian
not only for audio stuff, but lots of other tasks, and have there many important data
(including my music, and work); that's why I need this RAID too.
What's more, I have used Debian for many years, and there's no other OS/Distro that I feel so comfortable with.

Maybe I'll try to install 64studio... to see if there's any difference.
Do you think it would wise to install it on some USB disk/pendrive?
I'm just not very happy when thinking of repartitioning my drives...

Thanks for your help!
Tomasz Grzelak


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Rosegarden-user mailing list
Rosegarden-user@... - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user

Re: xruns with Rosegarden

by David Tisdell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Tomas,

I think the answer to your problem may be to dual boot between Debian unstable and either Studio 64 or Ubuntu Studio.
Like you, I do a lot of things unrelated to audio (I teach 2 Linux classes at the local community college for network admin majors).
I actually have a quad boot setup between OpenSuse, JAD (Jack Audio Distribution), Ubuntu Studio, and Windows.
I do most of my audio work in JAD; sometimes Ubuntu Studio and all of my network administration stuff in OpenSuse. Windows is only there for the occasional app that I have to use for network administration that is Windows only.

As others have said, running a proven stable Audio distro will give you the best audio results and you are a lot less likely to have to mess around with the kernel etc. to get things going

Hope this helps.

Dave

On Thu, Aug 21, 2008 at 2:55 AM, Tomasz Grzelak <tgrzelak@...> wrote:
2008/8/20 D. Michael McIntyre <michael.mcintyre@...>
On Wednesday 20 August 2008, Tomasz Grzelak wrote:

> Nice to see some feedback... I hope this issue won't be ignored, but
> investigated deeper.

you understood me wrong, sorry, it's probably my "personal" version of English ;)
I meant I was happy to see a response for this problem, it was not an accusation in any way!
Sorry once again, I was just satisfied it interested developers, and hoped to be investigated more.



I don't think it's fair to say I am "ignoring" the issue.  That implies I
don't care.

like I wrote above - misunderstanding :)


I do care, but I can't do anything to help you.  You run Debian Unstable,
which is not a distro but a collection of proposed packages that might make
it into a distro.  You run your own kernel.  You run hardware of which I have
no first-hand knowledge (the firewire audio dongle, and even your basic
computer) and you throw RAID into the mix. 

It would be hard enough for me to even try to suggest a solution if we had
more in common, but as things stand now, we have practically nothing in
common at all.

agree
 

Rosegarden doesn't have this problem on my computer.

I suppose so. It's a very popular and good environment, and that's why I wanted to give it a try,
and still want, but I'm running out of ideas slowly, because somehow only Rosegarden is unusable on my system.


We have totally different environments, and me saying everything works here is
just as useless to you as you saying it doesn't work there is useless to me.
We have very little common ground for meaningful comparison here, and there's
little I can do except feel sorry for your misery.

I agree too, but I'm also willing to give any more needed information about my system
to diagnose the problem. I understand it's very hard (I'm not a computer/Linux newbie),
but at the moment I just don't know what more can have influence for such behaviour.
I have been thinking of RAID for many times, but in that case why do other JACK apllications work fine?
If they all were not working, it would be easy to say "Debian unstable with RAID is not good for this stuff".
But... there's always this "BUT" :) ... everything I use works fine besides Rosegarden.
So it makes me totally confused :/


I would suggest that since you seem to like pure Debian over Ubuntu, you might
give 64 Studio a try.  I haven't used 64 Studio, but I've read a lot of their
pages, and it seems to be a very good distro for audio work.  I can
personally vouch for Ubuntu Studio being a very good distro for audio work as
well.

I would furthermore suggest that Debian Unstable is a really bad choice for an
audio platform, because it's too unstable, and too unpredictable.  Packages
are often buggy, and they interact with each other in complex ways, so that
somebody who upgraded on Monday and Thursday might wind up with a buggy
system that someone who upgraded on Tuesday and Thursday might not.  I
concede that you have everything else working so well that your environment
is probably OK this time, but just in terms of a long-term strategy, trying
to do this kind of thing with Debian Unstable is a lot of work for nothing.
I did the same thing for years myself, and I'm speaking from experience.
Switching to Ubuntu Studio was a great move for me, because I now have the
luxury of not knowing much of anything about how to put together a
JACK-friendly setup.  Someone else keeps up with all the changes in this and
that, and it just works.  I love it!

In any case, Chris might still have some insight to offer here.  I've said all
there is any point in my saying, and I wish you the best of luck with your
trouble.

I must say I have thought of some other audio distro, but  ("BUT" again ;) ) I use my Debian
not only for audio stuff, but lots of other tasks, and have there many important data
(including my music, and work); that's why I need this RAID too.
What's more, I have used Debian for many years, and there's no other OS/Distro that I feel so comfortable with.

Maybe I'll try to install 64studio... to see if there's any difference.
Do you think it would wise to install it on some USB disk/pendrive?
I'm just not very happy when thinking of repartitioning my drives...

Thanks for your help!
Tomasz Grzelak


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Rosegarden-user mailing list
Rosegarden-user@... - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Rosegarden-user mailing list
Rosegarden-user@... - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user

Re: xruns with Rosegarden

by Emanuel Rumpf-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2008/8/20 Tomasz Grzelak <tgrzelak@...>:
>
> Besides when I use Muse both version of JACK work fine with audio
> applications on my system.
>
OK

Let's think about it again:
xruns (at playback) occur, if rosegarden is unable to deliver
buffers to jack within a range of time.
possible reasons:
- rosegarden doesn't get enough cpu time
     possible reason: it cannot accuire real-time-priority
                              so another process is stealing cpu time
(maybe just every minute)

- rosegardens timer does not work as expected and is not
     in sync with muse for example.


possible solutions:

make all program use the same clock
make rosegarden use the system timer (see options dialog), instead of the rtc.
(( This doesn't sound logical, but I've myself had
"out-of-sync" problems, when using rosegarden with rtc.
I still don't understand all of this timer-stuff, but
I've read somewhere, that linux would use
the most accurate timer available.
If that is true, the system timer would somehow
be run by the rt-clock anyway. ))

I've just checked, and yes, actually, rosegarden is using the system timer here.

Have a look at the rosegardensequencer process-threads with:
htop -H

For comparision: I have to two threads running with prio 20 (low
priority threads)
and one running with prio -88 (rt-thread)


Other things to try:
killall crond deamon processes
killall powersave processes
killall cpu-frequency scaling processes

good luck

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Rosegarden-user mailing list
Rosegarden-user@... - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user

Re: xruns with Rosegarden

by D. Michael McIntyre :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday 21 August 2008, Tomasz Grzelak wrote:
> you understood me wrong, sorry, it's probably my "personal" version of
> English ;)

OK.  I hope I didn't come off too gruff myself.

> I have been thinking of RAID for many times, but in that case why do other
> JACK apllications work fine?

I could only make wild guesses, and I'd probably be wrong.

> I must say I have thought of some other audio distro, but  ("BUT" again ;)
> ) I use my Debian not only for audio stuff, but lots of other tasks, and
> have there many important data (including my music, and work); that's why I
> need this RAID too. What's more, I have used Debian for many years, and
> there's no other OS/Distro that I feel so comfortable with.

I used Debian Sid for many years too, and was very skeptical about making the
switch to Ubuntu.  I finally did it after some series of incremental package
upgrades completely broke audio to a point where nothing was working, and I
had little to lose.

It worked out well.  I use (K)Ubuntu Studio for everything, and that's one of
the pleasant things that sets it apart from earlier distros that tried to
solve the problems with audio.  It's not just for audio, but audio plus
whatever else you would normally do, and it's Debian enough to keep me happy.

> Maybe I'll try to install 64studio... to see if there's any difference.
> Do you think it would wise to install it on some USB disk/pendrive?
> I'm just not very happy when thinking of repartitioning my drives...

They might have a live CD. Looks like they do:

http://64studio.com/download

I'd try the live CD first.  See if that gets you anywhere. If not, then blame
it all on Rosegarden and carry on. :)
--
D. Michael McIntyre

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Rosegarden-user mailing list
Rosegarden-user@... - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user

Re: xruns with Rosegarden

by Tomasz Grzelak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Emanuel Rumpf pisze:
> 2008/8/20 Tomasz Grzelak <tgrzelak@...>:
>> Besides when I use Muse both version of JACK work fine with audio
>> applications on my system.
>>
> OK
>
> Let's think about it again:
> xruns (at playback) occur, if rosegarden is unable to deliver

xruns occur, but not only in playback. I can leave Rosegarden (and only
Rosegarden without any other JACK application running) doing nothing for
several minutes, and when I return I can see several xruns more.
On the other hand, I can run Muse doing nothing for an hour (with many
other JACK applications), and then I don't get a particular xrun. I've
made this kind of tests too.
I've even tried to compose/play my music with some big software having
compiled in the background on two CPU cores, from time to time rotating
my compiz cube, and what's interesting - only one xrun occured during
that quite long time os the stress.

But I've noticed one interesting thing - it seems to get 3 or 4 times
more xruns when a screensaver (OpenGL) activates in the meantime of
doing nothing.
But like I wrote before - I tried to run Rosegarden in WindowMaker
(without any screensaver) on open source "nv" driver, and it didn't
change anything about xruns. So no matter if I use the open "nv" or
proprietary "nvidia" driver, it does not make any difference.


> buffers to jack within a range of time.
> possible reasons:
> - rosegarden doesn't get enough cpu time
>      possible reason: it cannot accuire real-time-priority
>                               so another process is stealing cpu time
> (maybe just every minute)

only one so important I can think of would the RAID daemon, but why do
other apps work fine somehow? I'm confused...

>
> - rosegardens timer does not work as expected and is not
>      in sync with muse for example.
>

what do you mean by "... is not in sync with muse"?
I do not run those applications simultaneously;
Either Muse or Rosegarden, but not both at the same time

>
> possible solutions:
>
> make all program use the same clock

hmm... I don't think I know how to do that :/

> make rosegarden use the system timer (see options dialog), instead of the rtc.

yes, this one I've found
and set to system timer - xruns occur still, maybe a little bit slower
or maybe it's just an illusion, but they do any way...

> (( This doesn't sound logical, but I've myself had
> "out-of-sync" problems, when using rosegarden with rtc.
> I still don't understand all of this timer-stuff, but
> I've read somewhere, that linux would use
> the most accurate timer available.
> If that is true, the system timer would somehow
> be run by the rt-clock anyway. ))
>
> I've just checked, and yes, actually, rosegarden is using the system timer here.

By default mine was setup to (Auto). I've checked RTC, and system-timer
- no success unfortunately.

>
> Have a look at the rosegardensequencer process-threads with:
> htop -H
>
> For comparision: I have to two threads running with prio 20 (low
> priority threads)
> and one running with prio -88 (rt-thread)
>

I have one rosegarden thread with prio 20, three rosegardensequencer
threads with prio 20, and one rosegardensequencer thread with -70 prio (rt)

>
> Other things to try:
> killall crond deamon processes

killed - no change unfortunately

> killall powersave processes

and how could they be called?
I don't know what to kill... if any

> killall cpu-frequency scaling processes

I suppose this is OK:

daemon:~# cpufreq-info
cpufrequtils 004: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to cpufreq@..., please.
analyzing CPU 0:
   no or unknown cpufreq driver is active on this CPU
analyzing CPU 1:
   no or unknown cpufreq driver is active on this CPU


>
> good luck
>

thanks for your help!

I still have no clue, but as others suggested I'll try to see what
happens with an audio dedicated distribution.
I'll try to get some LiveCD for the beginning, and let you know how it goes.

Cheers!

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Rosegarden-user mailing list
Rosegarden-user@... - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user

Re: xruns with Rosegarden

by david-602 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tomasz Grzelak wrote:

> Emanuel Rumpf pisze:
>> 2008/8/20 Tomasz Grzelak <tgrzelak@...>:
>>> Besides when I use Muse both version of JACK work fine with audio
>>> applications on my system.
>>>
>> OK
>>
>> Let's think about it again:
>> xruns (at playback) occur, if rosegarden is unable to deliver
>
> xruns occur, but not only in playback. I can leave Rosegarden (and only
> Rosegarden without any other JACK application running) doing nothing for
> several minutes, and when I return I can see several xruns more.
> On the other hand, I can run Muse doing nothing for an hour (with many
> other JACK applications), and then I don't get a particular xrun. I've
> made this kind of tests too.
> I've even tried to compose/play my music with some big software having
> compiled in the background on two CPU cores, from time to time rotating
> my compiz cube, and what's interesting - only one xrun occured during
> that quite long time os the stress.
>
> But I've noticed one interesting thing - it seems to get 3 or 4 times
> more xruns when a screensaver (OpenGL) activates in the meantime of
> doing nothing.
> But like I wrote before - I tried to run Rosegarden in WindowMaker
> (without any screensaver) on open source "nv" driver, and it didn't
> change anything about xruns. So no matter if I use the open "nv" or
> proprietary "nvidia" driver, it does not make any difference.

No real contribution, but it sounds to me like your video and sound
hardware might be sharing an interrupt. Perhaps it's not normally
noticeable until the video card is doing something more demanding (like
running OpenGL)?

--
David
gnome@...
authenticity, honesty, community

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Rosegarden-user mailing list
Rosegarden-user@... - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user

Re: xruns with Rosegarden

by Tomasz Grzelak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

david pisze:
> No real contribution, but it sounds to me like your video and sound
> hardware might be sharing an interrupt. Perhaps it's not normally
> noticeable until the video card is doing something more demanding (like
> running OpenGL)?
>

I described my interrupts in the first post. I can see no conflict here:

daemon:~/bin# cat /proc/interrupts
            CPU0       CPU1
   0:        149         27   IO-APIC-edge      timer
   1:          0       3301   IO-APIC-edge      i8042
   4:          0          1   IO-APIC-edge
   8:       4387    4605172   IO-APIC-edge      rtc
   9:          0          0   IO-APIC-fasteoi   acpi
  16:     339745       9307   IO-APIC-fasteoi   nvidia
  19:    3979385         78   IO-APIC-fasteoi   ohci1394
  20:      67599       2670   IO-APIC-fasteoi   sata_nv, HDA Intel
  21:     117173       2744   IO-APIC-fasteoi   sata_nv
  22:          0         29   IO-APIC-fasteoi   ehci_hcd:usb2
  23:          1      64256   IO-APIC-fasteoi   ohci_hcd:usb1, sata_nv
505:     686520       1715   PCI-MSI-edge      eth0
NMI:          0          0   Non-maskable interrupts
LOC:    4103774    4101798   Local timer interrupts
RES:    7526734    7904732   Rescheduling interrupts
CAL:        797        855   function call interrupts
TLB:       3268       4503   TLB shootdowns
TRM:          0          0   Thermal event interrupts
THR:          0          0   Threshold APIC interrupts
SPU:          0          0   Spurious interrupts
ERR:          0


I also set the FIFO sch., and high prio to the IRQ-8 & IRQ-19 processes:

    chrt -f -p 98 `pidof IRQ-8`
    chrt -f -p 82 `pidof IRQ-19`
    echo 8192 > /proc/sys/dev/rtc/max-user-freq

If you see anything wrong with it, let me know please.

Cheers!
Tomasz Grzelak

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Rosegarden-user mailing list
Rosegarden-user@... - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user