Re: [Cs-dev] Linux performance
Date | 2006-01-13 16:32 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Linux performance |
That's not actually a problem, as I can use plughw:0,0. The issue was the train of dropouts I was getting even if the CPU was reasonably at ease. I have been running other less heavy orchestras and the performance seems OK, I was able to go down to -b8 -B80 running a phase vocoder harmoniser with a GUI (I would get the occasional underrun if I start clicking too much on other desktop items). There is no generally noticeable latency. I'm surprised with the demix, I thought I'd be able to run it in that machine. Victor At 16:20 13/01/2006, you wrote: >If it's the sample format, it could be the low-level driver >(manufacturer's driver, sound card). Try a different format. Are you >trying float? Then try 16 bit int. Some cards only do certain sample rates >also. > >Regards, >Mike > >-----Original Message----- > >From: Victor Lazzarini |
Date | 2006-01-13 16:54 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Linux performance |
In fact, with regards to that orc, OSX 10.4 machines (comparable spec) run it OK as well. So I don't really know. I expected Linux to beat them all. Victor At 16:32 13/01/2006, you wrote: >That's not actually a problem, as I can use plughw:0,0. The issue >was the train of dropouts I was getting even if the CPU was reasonably >at ease. > >I have been running other less heavy orchestras and the performance >seems OK, I was able to go down to -b8 -B80 running a phase vocoder >harmoniser with a GUI (I would get the occasional underrun if I start >clicking too much on other desktop items). There is no generally noticeable >latency. > >I'm surprised with the demix, I thought I'd be able to run it in that machine. > >Victor > >At 16:20 13/01/2006, you wrote: >>If it's the sample format, it could be the low-level driver >>(manufacturer's driver, sound card). Try a different format. Are you >>trying float? Then try 16 bit int. Some cards only do certain sample >>rates also. >> >>Regards, >>Mike >> >>-----Original Message----- >> >From: Victor Lazzarini |
Date | 2006-01-13 18:11 |
From | Steven Yi |
Subject | Re: [Cs-dev] Linux performance |
Attachments | None |
Date | 2006-01-13 19:44 |
From | Iain Duncan |
Subject | Re: [Cs-dev] Linux performance |
> I have been running other less heavy orchestras and the performance > seems OK, I was able to go down to -b8 -B80 running a phase vocoder > harmoniser with a GUI (I would get the occasional underrun if I start > clicking too much on other desktop items). There is no generally noticeable > latency. You should be able to fix that with --sched too. I can pretty much do anything without clicks if I use flux box, and I have reniced X before too but with the Molnar patch that's not even necessary. I put Istvan's scheduling code into my host app and used varying pthread priorities and it works like a hot damn. I can send you code if you would like to see how the threading and scheduling was handled. I have my fltk gui moving 128 knobs and updating 128 graphic windows with latency still dead low, no clicks. Thanks Istvan! Thanks Ingo! Iain ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-01-16 09:54 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Linux performance |
I could not find Ingo's patch on linux-kernels.org. I put the latest kernel and patched it with Andrew Morton's. Not really any noticeable difference with the Core 4-shipped kernel. Is there any specific Kernel configuration you might suggest? I would prefer to have a low latency kernel than to have to nice X etc. What's a flux box? Victor At 19:44 13/01/2006, you wrote: >>I have been running other less heavy orchestras and the performance >>seems OK, I was able to go down to -b8 -B80 running a phase vocoder >>harmoniser with a GUI (I would get the occasional underrun if I start >>clicking too much on other desktop items). There is no generally noticeable >>latency. > >You should be able to fix that with --sched too. I can pretty much do >anything without clicks if I use flux box, and I have reniced X before too >but with the Molnar patch that's not even necessary. I put Istvan's >scheduling code into my host app and used varying pthread priorities and >it works like a hot damn. I can send you code if you would like to see how >the threading and scheduling was handled. I have my fltk gui moving 128 >knobs and updating 128 graphic windows with latency still dead low, no >clicks. Thanks Istvan! Thanks Ingo! > >Iain > > > > >------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >for problems? Stop! Download the new AJAX search engine that makes >searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click >_______________________________________________ >Csound-devel mailing list >Csound-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/csound-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-01-16 10:05 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Linux performance |
Can you try this CSD in your system? Just to see if it runs with no dropouts. Change "jarret1.wav" to any stereo file you have at hand. Here it goes: |
Date | 2006-01-16 10:28 |
From | Istvan Varga |
Subject | Re: [Cs-dev] Linux performance |
Attachments | None |
Date | 2006-01-16 10:52 |
From | jpff@codemist.co.uk |
Subject | Re: [Cs-dev] Linux performance |
I got ... ftable 1: new alloc for instr 1: Csound tidy up: Segmentation fault inactive allocs returned to freespace end of score. overall amps: 0.0 0.0 overall samples out of range: 0 0 0 errors in performance Elapsed time at end of performance: real: 0.563s, CPU: 0.010s 0 1024-byte soundblks of shorts written to dac end of widget thread *** glibc detected *** free(): invalid pointer: 0x08122628 *** Csound tidy up: Aborted It flashed up a dialog window before crashing ==John ffitch ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-01-16 11:18 |
From | Istvan Varga |
Subject | Re: [Cs-dev] Linux performance |
Attachments | None |
Date | 2006-01-16 11:50 |
From | jpff@codemist.co.uk |
Subject | Re: [Cs-dev] Linux performance |
It turns out to be deep in libsndfile -- on the 32bit machine. The crash was in diskin. ==John ffitch ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-01-16 12:01 |
From | Erik de Castro Lopo |
Subject | Re: [Cs-dev] Linux performance |
jpff@codemist.co.uk wrote: > It turns out to be deep in libsndfile -- on the 32bit machine. The > crash was in diskin. Do you have a test case for that? Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo +-----------------------------------------------------------+ "The earth is degenerating these days. Bribery and corruption abound. Children no longer mind parents ...and it is evident that the end of the world is approaching fast." -- Assyrian Tablet Engraved in 2800 B.C. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-01-16 12:19 |
From | jpff@codemist.co.uk |
Subject | Re: [Cs-dev] Linux performance |
With a recompiled libsndfile I am getting a few dropouts, but not much. This is a 1.4GHz Centrino on a 32bit laptop -- so the sound is not very good and I may be not hearing the dropouts.... ==John ffitch ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-01-16 12:47 |
From | jpff@codemist.co.uk |
Subject | Re: [Cs-dev] Linux performance |
Sorry Erik; I recompiled 1.0.13pre6 and all was OK. I suspect that there was a grade-A foul-up of headers versus libraries.....all my fault and no reflection on libsndfile. ==John ffitch ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-01-16 13:18 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Linux performance |
If you click on bypass you will get the original audio without the de-mixing, but with the computation, that'll probably help to check for droupouts. Also, Istvan's alsa module reports overruns to the console; Do you get many of these? What about buffer settings? Victor At 12:19 16/01/2006, you wrote: >With a recompiled libsndfile I am getting a few dropouts, but not >much. This is a 1.4GHz Centrino on a 32bit laptop -- so the sound is >not very good and I may be not hearing the dropouts.... >==John ffitch > > >------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >for problems? Stop! Download the new AJAX search engine that makes >searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click >_______________________________________________ >Csound-devel mailing list >Csound-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/csound-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-01-16 13:28 |
From | Istvan Varga |
Subject | Re: [Cs-dev] Linux performance |
Attachments | None |
Date | 2006-01-16 13:48 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] Linux performance |
I was using alsa outofthebox, no fiddling with B or b; no overrun messages, just a few suspect sounds. Should different settings of the sliders make a difference to computation? I will try on the AMD3200+ when I am next home. This machine is 1GHz desktop but the sound plain does not work (Hamerfall Lite problems) and no speakers. Seems to have the characteristic sound of failure to keep up, even with bypass set. ==John ffitch ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-01-16 15:56 |
From | jjbenham@chicagoguitar.com (Jeremiah Benham) |
Subject | Re: [Cs-dev] Linux performance |
Attachments | None |
Date | 2006-01-16 16:38 |
From | jjbenham@chicagoguitar.com (Jeremiah Benham) |
Subject | Re: [Cs-dev] Linux performance |
Attachments | None |
Date | 2006-01-16 16:39 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Linux performance |
Using gnome; I can't see that it would make that much difference, but I'll try fluxbox. Victor At 15:56 16/01/2006, you wrote: >On Mon, Jan 16, 2006 at 09:54:50AM +0000, Victor Lazzarini wrote: > > Is there any specific Kernel configuration you might suggest? I would > prefer > > to have a low latency kernel than to have to nice X etc. What's a flux box? > >What wm (window manager) are you using? Fluxbox is a light weight wm. see >-> http://fluxbox.sourceforge.net/ >You are not using kde or gnome are you. If you are that is probably your >problem. Those two desktops are nice for doing normal computer and office >type work but for realtime work they can be you enemy. What other system >services are currently running? Are they all necessary? > >Jeremiah > > > >------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >for problems? Stop! Download the new AJAX search engine that makes >searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click >_______________________________________________ >Csound-devel mailing list >Csound-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/csound-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-01-16 16:55 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Linux performance |
Tried fluxbox and found no significant difference. Victor At 16:39 16/01/2006, you wrote: >Using gnome; I can't see that it would make that much >difference, but I'll try fluxbox. > >Victor >At 15:56 16/01/2006, you wrote: >>On Mon, Jan 16, 2006 at 09:54:50AM +0000, Victor Lazzarini wrote: >> > Is there any specific Kernel configuration you might suggest? I would >> prefer >> > to have a low latency kernel than to have to nice X etc. What's a flux >> box? >> >>What wm (window manager) are you using? Fluxbox is a light weight wm. see >>-> http://fluxbox.sourceforge.net/ >>You are not using kde or gnome are you. If you are that is probably your >>problem. Those two desktops are nice for doing normal computer and office >>type work but for realtime work they can be you enemy. What other system >>services are currently running? Are they all necessary? >> >>Jeremiah >> >> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >>for problems? Stop! Download the new AJAX search engine that makes >>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >>http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click >>_______________________________________________ >>Csound-devel mailing list >>Csound-devel@lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/csound-devel > >Victor Lazzarini >Music Technology Laboratory >Music Department >National University of Ireland, Maynooth > > >------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >for problems? Stop! Download the new AJAX search engine that makes >searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click >_______________________________________________ >Csound-devel mailing list >Csound-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/csound-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-01-16 17:04 |
From | jjbenham@chicagoguitar.com (Jeremiah Benham) |
Subject | Re: [Cs-dev] Linux performance |
Attachments | None |
Date | 2006-01-16 17:26 |
From | Istvan Varga |
Subject | Re: [Cs-dev] Linux performance |
Attachments | None |
Date | 2006-01-16 18:26 |
From | Steven Yi |
Subject | Re: [Cs-dev] Linux performance |
Attachments | None |
Date | 2006-01-16 19:46 |
From | Iain Duncan |
Subject | Re: [Cs-dev] Linux performance |
Istvan Varga wrote: > On Monday 16 January 2006 11:28, Istvan Varga wrote: > > >>On Monday 16 January 2006 11:05, Victor Lazzarini wrote: >> >> >>>Can you try this CSD in your system? Just to see if it runs with no >>>dropouts. Change "jarret1.wav" to any stereo file you have at hand. >> >>I cannot run it in real time on my 1300 MHZ CPU (it would need more >>than 100% CPU time), but after setting sr = 32000, it works fine >>with -b 64 -B 512. This is with the RC2 RPM build from Dec 30 2005; >>I do not recall any changes since then that would have resulted in >>a significant slowdown. > > > Compiled with icc instead of gcc, it now runs at the original sample > and control rates using --sched -b 64 -B 512 with occasional dropouts, > With -B 1024 it is OK even without --sched, and with --sched I can > increase the sample rate to 48000. What is icc? Is it free? Should I recompile csound5 differently to get best real time performance? Thanks Iain ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-01-16 19:58 |
From | schwaahed |
Subject | Re: [Cs-dev] Linux performance |
Attachments | None |
Date | 2006-01-16 20:19 |
From | Iain Duncan |
Subject | Re: [Cs-dev] Linux performance |
Hi Victor, I can get it down to -b256 -B512 but no lower, with ksmp=64, 100, or 128. It works ok lower for a bit, but moving the controls causes underruns. This uses about 75% cpu of an AMD 3000, so it's a hungry one. I am using 2.6.13 with Ingo Desktop Preempt patch. I have been told that 2.6.14 is a big improvement, and an Ingo patched 2.6.14 even better. Fluxbox mostly helps because the footprint of opening new windows and stuff is lower, so it's nice if you are going to be using fltk windows or doing other stuff. Also, I noticed that on the build I am using, --sched does NOT work when called from the csd options, and there is no error msg to indicate so. It just doesn't do anything, I can't watch top or switch windows without massive underruns.I broke your code into an orc/sco pair and then was able to get better performance by using --sched and --experession-opt. Anyone know is this issue has been fixed? I tried a cvs update today and can't log in for some reason, so I do not know how out of date my build is. Hope that helps, Iain Victor Lazzarini wrote: > Can you try this CSD in your system? Just to see if it runs with no > dropouts. Change "jarret1.wav" to any stereo file you have at hand. > > Here it goes: > |
Date | 2006-01-16 20:51 |
From | jpff@codemist.co.uk |
Subject | Re: [Cs-dev] Linux performance |
What does the Intel compiler do for AMD processors? ==John ffitch ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-01-17 19:05 |
From | Victor Lazzarini |
Subject | [Cs-dev] soundcards for linux laptop |
I am setting up a new linux laptop for my own use and I am wondering what you would suggest as a *reasonably priced* soundcard for it, which is well supported by Alsa. I have some m-audio USB cards around here, but they don't really work with Alsa. So I'm wondering about other USB cards or perhaps FireWire (although last time I looked these weren't yet supported). Any suggestions welcome. Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-01-17 19:58 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] soundcards for linux laptop |
In fact, I have to go back on what I have just said. Plugged in the m-audio audiophile USB, booted up Fedora Core 4 and it's working. I could not get this to work on a desktop machine by fiddling around with loading the snd-usb-audio module, and here it just works straight out of the box. So there you go... Victor At 19:05 17/01/2006, you wrote: >I am setting up a new linux laptop for my own use and >I am wondering what you would suggest as a *reasonably priced* >soundcard for it, which is well supported by Alsa. > >I have some m-audio USB cards around here, but they don't >really work with Alsa. So I'm wondering about other USB cards >or perhaps FireWire (although last time I looked these weren't >yet supported). > >Any suggestions welcome. > > >Victor Lazzarini >Music Technology Laboratory >Music Department >National University of Ireland, Maynooth > > >------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >for problems? Stop! Download the new AJAX search engine that makes >searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 >_______________________________________________ >Csound-devel mailing list >Csound-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/csound-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |