Re: [Rosegarden-user] Warning maessage resolution timer with rt kernel and hrtimer mod.

2012-10-14 Thread jimmy

On Thu, 04 Oct 2012, Delpistroumph xzuruk...@free.fr wrote:

 But why I've got this message??
 
 My system timer is set to 1000 hz! (as you can see in my
 first message)
 (Installing a real time kernel here: 
 http://wiki.linuxmusicians.com/doku.php?id=system_configuration#the_kernel)
 

Can you double check the output for a couple of command?  Here's mine:

   zcat /proc/config.gz | grep -i HZ | grep 1000

CONFIG_HZ_1000=y
CONFIG_HZ=1000


   cat /proc/sys/dev/hpet/max-user-freq

1024


If /proc/sys/dev/hpet/max-user-freq is less than 1000, you may want to try:

   sudo echo 1024  /proc/sys/dev/hpet/max-user-freq ; cat 
/proc/sys/dev/hpet/max-user-freq

My kernel has

CONFIG_HZ_1000=y
CONFIG_HZ=1000

compiled in, but by default, it shows /proc/sys/dev/hpet/max-user-freq value of 
64 .  I have to set it within /etc/rc.local so it is set again everytime the 
system starts up.

Jimmy


--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] Warning maessage resolution timer with rt kernel and hrtimer mod.

2012-10-09 Thread Delpistroumph
Problem resolved by set (in option) the timer on: system timer and reboot.

But I still can't use hr-timer. If I do rosegarden play only on note 
(!??) and then mute.
Same thing if I move the cursor.

Damien.

--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] Warning maessage resolution timer with rt kernel and hrtimer mod.

2012-10-04 Thread Delpistroumph
Thanks all.

But why I've got this message??

My system timer is set to 1000 hz! (as you can see in my first message)
(Installing a real time kernel here: 
http://wiki.linuxmusicians.com/doku.php?id=system_configuration#the_kernel)

--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] Warning maessage resolution timer with rt kernel and hrtimer mod.

2012-10-04 Thread D. Michael McIntyre
On 10/04/2012 03:05 AM, Delpistroumph wrote:

 But why I've got this message??

 My system timer is set to 1000 hz!

It's impossible to guess without more diagnostic information.  There is 
nothing in the code to print the kind of diagnostic information I'm 
looking for, so I don't see an easy way to find out more about your problem.

If I had the information, I wouldn't have much of a clue what I was 
looking at.  I have no idea how the sequencing guts work, and you really 
need help from someone else.  I seem to be the only one standing here at 
the moment, however.

Désolé.
-- 
D. Michael McIntyre

--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


[Rosegarden-user] Warning maessage resolution timer with rt kernel and hrtimer mod.

2012-10-03 Thread Delpistroumph

Hi all!

I am (french) musician discovering Rosegarden, that look very good! ;) 
Great soft.
I'm also a contributor of the linuxmao.org team (Xzu Rukneg), I'm a free 
musician.


I use multiple distro, I have no problems with TangoStudio(.tuxfamily.org).

But I need to use a recent distro (for ffado), I've optimised a debian 
wheezy with Xfce-4 for that, with a *rt-kernel*:

uname -a:
Linux ruknegstudio 3.2.0-3-rt-amd64 #1 SMP PREEMPT RT Mon Jul 23 
03:37:45 UTC 2012 x86_64 GNU/Linux


And I use *rosegarden 1:12.04-1* (last debian wheezy version).

*Config test* (from linuxmusician):

delpixzu@ruknegstudio:~$ cd realtimeconfigquickscan ; perl 
./realTimeConfigQuickScan.pl

== GUI-enabled checks ==
Checking if you are root... no - good
Checking filesystem 'noatime' parameter...  - good

cat: /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: Aucun 
fichier ou dossier de ce type
cat: /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor: Aucun 
fichier ou dossier de ce type
cat: /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor: Aucun 
fichier ou dossier de ce type
cat: /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor: Aucun 
fichier ou dossier de ce type
Checking CPU Governors... CPU 0: '' CPU 1: '' CPU 2: '' CPU 3: ''  - not 
good #But ok because option set OFF in BIOS (resolve Xrun)
Set CPU Governors to 'performance' with 'cpufreq-set -c cpunr -g 
performance'

See also: http://linuxmusicians.com/viewtopic.php?f=27t=844
Checking swappiness... 5 - good
Checking for resource-intensive background processes... none found - good
Checking checking sysctl inotify max_user_watches... = 524288 - good
Checking access to the high precision event timer... readable - good
Checking access to the real-time clock... readable - good
Checking whether you're in the 'audio' group... yes - good
Checking for multiple 'audio' groups... no - good
yes - good.
Checking the ability to prioritize processes with chrt... yes - good
Checking kernel support for high resolution timers... found - good
Kernel with Real-Time Preemption... found - good
Checking if kernel system timer is set to 1000 hz... found - good
Checking kernel support for tickless timer... found - good
== Other checks ==
Checking filesystem types... ok.
not found.
** Warning: no tmpfs partition mounted on /tmp
   For more information, see:
   - http://wiki.linuxmusicians.com/doku.php?id=system_configuration#tmpfs
   - http://lowlatency.linuxaudio.org
** Set $SOUND_CARD_IRQ to the IRQ of your soundcard to enable more checks.
   Find your sound card's IRQ by looking at '/proc/interrupts' and lspci.


I also load the *hrtimer*:
root@ruknegstudio:~# lsmod | grep timer
snd_hrtimer12604  0
snd_timer  22886  3 snd_seq,snd_pcm,snd_hrtimer
snd52818  13 
snd_timer,snd_seq_device,snd_seq,snd_pcm,snd_rawmidi,snd_mpu401_uart,snd_ac97_codec,snd_ak4xxx_adda,snd_i2c,snd_cs8427,snd_ice1712


*
*And*Jack* is running in RT mode.
I've read 
this:http://www.rosegardenmusic.com/wiki/Frequently_Asked_Questions#what_does_system_timer_resolution_is_too_low_mean

So all seem to be ok.

But I still have the error warning message: 'midi timer resolution to 
low'.(in French for my version)


I've search for*snd-rtctimer* kernel module but I've don't find it, on 
any different kernel from different distro.

Maybe 'snd-hrtimer' is the new name of 'snd-rtctimer'?

Anyway, I don't understand, for example with TangoStudio distro, 
(rosegarden version 1:11.06-1tstudio1) I don't have this problem,

 here the 'ls mod':
tangxzu@TangoStudio-desktop:~$ lsmod | grep timer
snd_hrtimer 2033  0
snd_timer  23543  3 snd_pcm,snd_hrtimer,snd_seq
snd72000  21 
snd_usb_audio,snd_hwdep,snd_ice1712,snd_ak4xxx_adda,snd_cs8427,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_i2c,snd_mpu401_uart,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device



Thanks I you have any idea or advice!

See you.

Damien.Delpiroux. (aka Xzu Rukneg)
--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] Warning maessage resolution timer with rt kernel and hrtimer mod.

2012-10-03 Thread Holger Marzen
On Wed, 3 Oct 2012, Delpistroumph wrote:

 But I still have the error warning message: 'midi timer resolution to low'.(in
 French for my version)

I don't know if ALSA is fixed already. At least with 3.0 kernel the
system locks if you use hrtimer with a sequencer.

A realtime kernel is something people used to boost the jack performance
with slow CPUs. It's not needed for Rosegarden's functionality.

Important für Rosegarden is a kernel with HZ1000 enabled, that's the
scheduling frequency. Then Rosegarden's warning disappears. Check if
it's enabled. If not, enable it and compile the kernel again.

Regards
Holger--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] Warning maessage resolution timer with rt kernel and hrtimer mod.

2012-10-03 Thread D. Michael McIntyre
On 10/03/2012 05:54 AM, Delpistroumph wrote:

 But I still have the error warning message: 'midi timer resolution to
 low'.(in French for my version)

I was thinking about this just the other day.  I have the same problem 
currently, and have been debating what to do about it.

Several years ago, they changed the default timer resolution in the 
Linux kernel from 1000 Hz to 250 Hz.  We implemented the warning back 
then to encourage people to recompile their kernels with this variable 
set back to the original 1000 Hz.

There were several distros who shipped studio kernels that had this 
option set to our requirements, but these days that no longer appears to 
be the case.

In the years that have passed since all of this changed, I've never seen 
one other Linux MIDI project express any concern about the kernel timer 
resolution change.  Rosegarden seems to be alone in worrying about this.

I have been thinking maybe it is time to just remove the warning and let 
it go.  I know Chris Cannam was completely convinced that the new 250 Hz 
timer resolution couldn't possibly reproduce MIDI correctly, and that 
concern was backed up by sound reasoning and actual math skills.  Be 
that as it may, it remains the case that not one other soul anywhere 
else on the Earth cares, and it seems to be a complete non-issue 
everywhere except here at Rosegarden.

Maybe it's time to kill the warning.

There are some pretty hardcore MIDI power users on this list.  Do you 
guys have any opinion here?

-- 
D. Michael McIntyre

--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] Warning maessage resolution timer with rt kernel and hrtimer mod.

2012-10-03 Thread Lorenzo Sutton
On 03/10/12 12:29, D. Michael McIntyre wrote:
 On 10/03/2012 05:54 AM, Delpistroumph wrote:

 But I still have the error warning message: 'midi timer resolution to
 low'.(in French for my version)
 I was thinking about this just the other day.  I have the same problem
 currently, and have been debating what to do about it.

 Several years ago, they changed the default timer resolution in the
 Linux kernel from 1000 Hz to 250 Hz.  We implemented the warning back
 then to encourage people to recompile their kernels with this variable
 set back to the original 1000 Hz.
One thing I noticed is that midi seems much more precise and less 
'jittery' if jack latency is low, epsecially with alsa-midi, but I think 
this is something different.

I also wonder if/how alsa and jack midi relate to this kind of issue.

Lorenzo.



 There were several distros who shipped studio kernels that had this
 option set to our requirements, but these days that no longer appears to
 be the case.

 In the years that have passed since all of this changed, I've never seen
 one other Linux MIDI project express any concern about the kernel timer
 resolution change.  Rosegarden seems to be alone in worrying about this.

 I have been thinking maybe it is time to just remove the warning and let
 it go.  I know Chris Cannam was completely convinced that the new 250 Hz
 timer resolution couldn't possibly reproduce MIDI correctly, and that
 concern was backed up by sound reasoning and actual math skills.  Be
 that as it may, it remains the case that not one other soul anywhere
 else on the Earth cares, and it seems to be a complete non-issue
 everywhere except here at Rosegarden.

 Maybe it's time to kill the warning.

 There are some pretty hardcore MIDI power users on this list.  Do you
 guys have any opinion here?



--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] Warning maessage resolution timer with rt kernel and hrtimer mod.

2012-10-03 Thread Delpistroumph
Le 03/10/2012 12:03, Holger Marzen a écrit :

Hi Holger Marzen.

 Important für Rosegarden is a kernel with HZ1000 enabled, that's the 
 scheduling frequency. Then Rosegarden's warning disappears. Check if 
 it's enabled. If not, enable it and compile the kernel again. Regards 
 Holger 

As you can see in the 'realtime config scan' in my previous mail, that 
seem ok.

Kernel with Real-Time Preemption... found - good
Checking if kernel system timer is set to 1000 hz... found - good
Checking kernel support for tickless timer... found - good


Damien.DX.

--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] Warning maessage resolution timer with rt kernel and hrtimer mod.

2012-10-03 Thread Delpistroumph
Le 03/10/2012 12:29, D. Michael McIntyre a écrit :

Hi D. Michael McIntyre.


 Maybe it's time to kill the warning.

Ok, but with rosegarden 1:12.04-1 (with debian wheezy), I've got some 
strange reaction, or bugs (with Qsynth).
I think that timer thing was the cause, but you think not?


And instruction in this page have to resolve this problem, no? like this:
http://wiki.linuxmusicians.com/doku.php?id=system_configuration#hardware_timers

Damien.DX.

--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] Warning maessage resolution timer with rt kernel and hrtimer mod.

2012-10-03 Thread D. Michael McIntyre
On 10/03/2012 07:10 AM, Delpistroumph wrote:

 I think that timer thing was the cause, but you think not?

My opinion is almost completely worthless.  I gave up trying to keep 
track of these issues years ago.

I notice you already have the 1000 Hz kernel timer according to that 
system check utility.  It's odd that you get the warning in spite of this.

I was thinking maybe I had the right timer resolution myself, and our 
warning was simply broken, but no, I ran that same utility and my setup 
is wrong in almost every possible way.

Listen to people who know how to set up a working realtime environment, 
and ignore me.  I gave up on this many years ago.  Linux audio is evil.
-- 
D. Michael McIntyre

--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] Warning maessage resolution timer with rt kernel and hrtimer mod.

2012-10-03 Thread Abrolag
On Wed, 03 Oct 2012 06:29:40 -0400
D. Michael McIntyre rosegarden.trumpe...@gmail.com wrote:

 Maybe it's time to kill the warning.

I'd much prefer to keep the warning, but maybe as an 'advisory' something like:

System timer is set to 250Hz. Rosegarden works better with 1000Hz

Possibly also with a option to disable the message once seen for the first time.

-- 
Will J Godfrey
http://www.musically.me.uk
Say you have a poem and I have a tune.
Exchange them and we can both have a poem, a tune, and a song.

--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] Warning maessage resolution timer with rt kernel and hrtimer mod.

2012-10-03 Thread D. Michael McIntyre
On 10/03/2012 03:15 PM, Chris Cannam wrote:

 Rosegarden is about the only major application that ever used the ALSA
 sequencer timers. Others do their own timing, and consequently have
 different problems.

Ah.

-- 
D. Michael McIntyre

--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] Warning maessage resolution timer with rt kernel and hrtimer mod.

2012-10-03 Thread Chris Cannam
On 3 October 2012 11:29, D. Michael McIntyre
rosegarden.trumpe...@gmail.com wrote:
 I know Chris Cannam was completely convinced that the new 250 Hz
 timer resolution couldn't possibly reproduce MIDI correctly, and that
 concern was backed up by sound reasoning and actual math skills.  Be
 that as it may, it remains the case that not one other soul anywhere
 else on the Earth cares, and it seems to be a complete non-issue
 everywhere except here at Rosegarden.

Rosegarden is about the only major application that ever used the ALSA
sequencer timers. Others do their own timing, and consequently have
different problems.


Chris

--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user