Hi Ralf, <br><br>I didn&#39;t understood what did you meant with:<br>&gt; For what do multimedia users (producers, but consumers) need more, but<br>
&gt; vanilla + rt-patch? Does somebody run a multi-user data server on the<br>
&gt; same machine, as he is using in his audio or audio-video studio? This<br>
&gt; would be nonsense.<br><br>What would be nonsense? audio producers using hard RT preemption on the kernel?<br>Do you think that a webserver needs more Realtime preemption than audio work?<br><br>As I see, If a webserver used a RT kernel, it would have a lot of problems, because it will probably lock in some tasks until they are finished.<br>
<br>Audio needs a very low latency, high resolution timer etc, because the Interrupts given by sound cards and by audio software need to be addressed as fast as possible, if they arent, what happens is that the audio buffers, either for the souncard playback, or capture will run out of data, and then the continuos steam of audio data will be over, and wait until receive more info. In a Nutshell, you LOSE audio data, and you will never get it back, for professional audio that is unacceptable. Also if You give software RT priorities, it less possible that, for instance, Ardour is left behind of a twitter client.... unaceptable to...<br>
<br>I am going to make some simple math with a not so professional cenario to ilstrate just the data stream, not audo software CPU time.<br><br><br>Recording and monitoring out 8 channels (8 in 8 out) at 48KS/s at 24 bits<br>
<br>48000 * 24 = 115200 bps = 14.0625KB/s<br><br>14.0625 * 16 = 225 KB/s = 1.76MB/s<br><br>Well, 1.76 MB/s is not to much really, well this calc is simple cenario, provided that the sound card uses real 24 bit audio data stream, if it used 32 bit, welll do the math.<br>
<br>Now to a PRO setup.. 192 KS/s @ 24bits<br><br>192000 * 24 = 4608000 = 0.55 MB/s<br><br>0.55 * 16  = 8,78 MB/s<br><br>8.78 MBytes per second, not mbits, FIrewire is rated at 400 MBit per second... USB in practice is a lot less + Communication overhead.<br>
<br>This is only on the Audio tranfer side, then you need to send this streams from each different software, make dsp calculations for Amplitude (volume) or mixing. This takes time.... so YES a Real time kernels is better for audio users than for normal users. Specially if you use Externals Firewire/USB card with high outputs<br>
<br>note: this are simple calculations made fast, just to demonstrate the kind of stream we talk about. I assumed 24 bits, this is very rare, usually it goes with 32 bit, that is a lot more data to transfer.<br><br>If some more explanation on why a RT kernel is prefered for audio, i can try to answer some more questions, i am not a pro in this tough.<br>
<br>Ricardo Lameiro<br><br><div class="gmail_quote">2010/9/30 Ralf Mardorf <span dir="ltr">&lt;<a href="mailto:ralf.mardorf@alice-dsl.net">ralf.mardorf@alice-dsl.net</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On Thu, 2010-09-30 at 16:38 +0200, Ralf Mardorf wrote:<br>
&gt; On Thu, 2010-09-30 at 07:35 -0400, Ronan Jouchet wrote:<br>
&gt; &gt; Hello everybody,<br>
&gt; &gt;<br>
&gt; &gt; Many are confused about the various realtime kernels, so here is a<br>
&gt; &gt; reminder of the situation as of Sept. 2010 (but _please_ see<br>
&gt; &gt; <a href="https://help.ubuntu.com/community/UbuntuStudio/RealTimeKernel" target="_blank">https://help.ubuntu.com/community/UbuntuStudio/RealTimeKernel</a> , which is<br>
&gt; &gt; more detailed and continuously updated).<br>
&gt; &gt;<br>
&gt; &gt; ***Summary***<br>
&gt; &gt; vanilla = unpatched kernel straight from <a href="http://kernel.org" target="_blank">kernel.org</a><br>
&gt; &gt; generic = vanilla + ubuntu sauce (it&#39;s the default ubuntu kernel)<br>
&gt; &gt;<br>
&gt; &gt; The *soft realtime kernels, prepared by changing build-time parameters*<br>
&gt; &gt;      preempt = generic + mild configuration to reduce latency<br>
&gt; &gt;      lowlatency = generic + aggressive configuration to reduce latency<br>
&gt; &gt;<br>
&gt; &gt; The *hard realtime kernels, prepared by applying a big patch* from Ingo<br>
&gt; &gt; Molnar to the kernel source before building:<br>
&gt; &gt;      realtime = vanilla + patch (hard to maintain and stabilize because<br>
&gt; &gt; merging 2 pieces of code is never easy)<br>
&gt; &gt;      rt = generic + patch (even harder to maintain and stabilize because<br>
&gt; &gt; merging 3 pieces of code is harder than 2)<br>
&gt; &gt;<br>
&gt; &gt; ***Availability***<br>
&gt; &gt; - for Maverick, generic will be the only kernel in the archives, thus<br>
&gt; &gt; the default kernel for ubuntu and ubuntustudio, but Alessio has been<br>
&gt; &gt; maintaining a PPA providing lowlatency and realtime<br>
&gt; &gt; - for Natty or later: work is being done to include lowlatency in the<br>
&gt; &gt; official archives and make it the default ubuntustudio kernel<br>
&gt; &gt;<br>
&gt; &gt; I hope this clears some doubts. By the way, this confusion is only going<br>
&gt; &gt; to get more intense at release time (less informed / technical users).<br>
&gt; &gt; Could we include some kind of note informing users about this? Why not a<br>
&gt; &gt; &quot;RealTime kernel help&quot; item in the Audio Production menu, redirecting to<br>
&gt; &gt; the wiki page?<br>
&gt; &gt;<br>
&gt; &gt; Good day,<br>
&gt; &gt;<br>
&gt; &gt; -- Ronan Jouchet<br>
&gt;<br>
<br>
&gt;<br>
&gt; 2 cents,<br>
&gt; Ralf<br>
<br>
</div></div>PS: Ok, on 32-bit architecture some might need support for large RAM in<br>
addition, this might be an additional patch, hat&#39;s not needed on 64-bit<br>
architecture.<br>
<div><div></div><div class="h5"><br>
<br>
--<br>
Ubuntu-Studio-users mailing list<br>
<a href="mailto:Ubuntu-Studio-users@lists.ubuntu.com">Ubuntu-Studio-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Fagote / Contrafagote<br>Bassoon / Contra-bassoon<br><a href="http://myspace.com/ricardolameiro">http://myspace.com/ricardolameiro</a><br>