Csound Csound-dev Csound-tekno Search About

[Cs-dev] CPU difference csound5 vs csound6 [was Re: [Csnd] Re: Design for a multi-channel Embedded DSP project.]

Date2013-03-05 20:17
Frompeiman khosravi
Subject[Cs-dev] CPU difference csound5 vs csound6 [was Re: [Csnd] Re: Design for a multi-channel Embedded DSP project.]
Attachmentscsp.csd  None  None  
I just thought of comparing csound's performance between v5 and v6.
With the attached csd I get:

Csound5---->Elapsed time at end of performance: real: 0.363s, CPU: 0.358s
Csound6---->Elapsed time at end of performance: real: 0.724s, CPU: 0.712s

Strange, no?

Thanks
Peiman

On 5 March 2013 20:08, Victor Lazzarini  wrote:
> No, there is no special branch.
>
> Victor
> On 5 Mar 2013, at 19:55, Michael Gogins wrote:
>
> I tried GIT head for Csound 6 a few days ago and didn't see speedups for
> multicore. Is it in a separate branch or is there some build configuration I
> need?
>
> Regards,
> Mike
>
>
> On Tue, Mar 5, 2013 at 2:24 PM, Victor Lazzarini 
> wrote:
>>
>> The Csound 6 multicore implementation delivers substantial gains, and the
>> way it has been designed, context-switching is not problematic. You
>> can check the code in csound6 GIT. The multicore code is in Top/csound.c.
>>
>> Victor
>> On 5 Mar 2013, at 19:18, imaia wrote:
>>
>> > It's a great news about csound 6.
>> >
>> > Looking at 'Top/threads.c' in cs5,  I can see that everything is done
>> > with
>> > mutexes and condition variables.  I don't know if I'm looking at the
>> > right
>> > file, but the problem with mutexes is the context switch overhead, it
>> > wastes
>> > a lot of time to switch threads in this way.
>> >
>> > I've been working with  multi-thread implementations. In fine grained
>> > processing like synthesis I think spinlocks are better and faster for
>> > thread
>> > synchronization.
>> >
>> > Another good feature in cs6 could be "CPU affinity". In this way users
>> > could
>> > associate instruments to certain CPU set. It improves locality and cache
>> > utilisation leading better performance.
>> > System tasks like interrupts and syscalls(printf) could use a specific
>> > CPU.
>> > These features would be great in embedded environments.
>> >
>> > I'm tuning my implementation in this way, but it's a lot of work.
>> > I'm planning to write an article at the end to report my experience.
>> >
>> > Thanks.
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> > http://csound.1045644.n5.nabble.com/Design-for-a-multi-channel-Embedded-DSP-project-tp5720738p5720760.html
>> > Sent from the Csound - General mailing list archive at Nabble.com.
>> >
>> >
>> > Send bugs reports to the Sourceforge bug tracker
>> >            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> > Discussions of bugs and features can be posted here
>> > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> > csound"
>> >
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>
>
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

Date2013-03-05 20:23
FromVictor Lazzarini
SubjectRe: [Cs-dev] CPU difference csound5 vs csound6 [was Re: [Csnd] Re: Design for a multi-channel Embedded DSP project.]
No, because there is quite a bit of printing etc. and the version you have there is a debug one as well (so you are not comparing like for like). The release version should be
faster.

Victor
On 5 Mar 2013, at 20:17, peiman khosravi wrote:

> I just thought of comparing csound's performance between v5 and v6.
> With the attached csd I get:
> 
> Csound5---->Elapsed time at end of performance: real: 0.363s, CPU: 0.358s
> Csound6---->Elapsed time at end of performance: real: 0.724s, CPU: 0.712s
> 
> Strange, no?
> 
> Thanks
> Peiman
> 
> On 5 March 2013 20:08, Victor Lazzarini  wrote:
>> No, there is no special branch.
>> 
>> Victor
>> On 5 Mar 2013, at 19:55, Michael Gogins wrote:
>> 
>> I tried GIT head for Csound 6 a few days ago and didn't see speedups for
>> multicore. Is it in a separate branch or is there some build configuration I
>> need?
>> 
>> Regards,
>> Mike
>> 
>> 
>> On Tue, Mar 5, 2013 at 2:24 PM, Victor Lazzarini 
>> wrote:
>>> 
>>> The Csound 6 multicore implementation delivers substantial gains, and the
>>> way it has been designed, context-switching is not problematic. You
>>> can check the code in csound6 GIT. The multicore code is in Top/csound.c.
>>> 
>>> Victor
>>> On 5 Mar 2013, at 19:18, imaia wrote:
>>> 
>>>> It's a great news about csound 6.
>>>> 
>>>> Looking at 'Top/threads.c' in cs5,  I can see that everything is done
>>>> with
>>>> mutexes and condition variables.  I don't know if I'm looking at the
>>>> right
>>>> file, but the problem with mutexes is the context switch overhead, it
>>>> wastes
>>>> a lot of time to switch threads in this way.
>>>> 
>>>> I've been working with  multi-thread implementations. In fine grained
>>>> processing like synthesis I think spinlocks are better and faster for
>>>> thread
>>>> synchronization.
>>>> 
>>>> Another good feature in cs6 could be "CPU affinity". In this way users
>>>> could
>>>> associate instruments to certain CPU set. It improves locality and cache
>>>> utilisation leading better performance.
>>>> System tasks like interrupts and syscalls(printf) could use a specific
>>>> CPU.
>>>> These features would be great in embedded environments.
>>>> 
>>>> I'm tuning my implementation in this way, but it's a lot of work.
>>>> I'm planning to write an article at the end to report my experience.
>>>> 
>>>> Thanks.
>>>> 
>>>> 
>>>> 
>>>> --
>>>> View this message in context:
>>>> http://csound.1045644.n5.nabble.com/Design-for-a-multi-channel-Embedded-DSP-project-tp5720738p5720760.html
>>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>> 
>>>> 
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>> csound"
>>>> 
>>> 
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>> 
>>> 
>>> 
>>> 
>>> 
>>> Send bugs reports to the Sourceforge bug tracker
>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>> 
>> 
>> 
>> 
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> 
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-03-05 20:37
FromMichael Gogins
SubjectRe: [Cs-dev] CPU difference csound5 vs csound6 [was Re: [Csnd] Re: Design for a multi-channel Embedded DSP project.]
AttachmentsNone  None  
How build the fastest version of Csound6 then?


On Tue, Mar 5, 2013 at 3:23 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
No, because there is quite a bit of printing etc. and the version you have there is a debug one as well (so you are not comparing like for like). The release version should be
faster.

Victor
On 5 Mar 2013, at 20:17, peiman khosravi wrote:

> I just thought of comparing csound's performance between v5 and v6.
> With the attached csd I get:
>
> Csound5---->Elapsed time at end of performance: real: 0.363s, CPU: 0.358s
> Csound6---->Elapsed time at end of performance: real: 0.724s, CPU: 0.712s
>
> Strange, no?
>
> Thanks
> Peiman
>
> On 5 March 2013 20:08, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
>> No, there is no special branch.
>>
>> Victor
>> On 5 Mar 2013, at 19:55, Michael Gogins wrote:
>>
>> I tried GIT head for Csound 6 a few days ago and didn't see speedups for
>> multicore. Is it in a separate branch or is there some build configuration I
>> need?
>>
>> Regards,
>> Mike
>>
>>
>> On Tue, Mar 5, 2013 at 2:24 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie>
>> wrote:
>>>
>>> The Csound 6 multicore implementation delivers substantial gains, and the
>>> way it has been designed, context-switching is not problematic. You
>>> can check the code in csound6 GIT. The multicore code is in Top/csound.c.
>>>
>>> Victor
>>> On 5 Mar 2013, at 19:18, imaia wrote:
>>>
>>>> It's a great news about csound 6.
>>>>
>>>> Looking at 'Top/threads.c' in cs5,  I can see that everything is done
>>>> with
>>>> mutexes and condition variables.  I don't know if I'm looking at the
>>>> right
>>>> file, but the problem with mutexes is the context switch overhead, it
>>>> wastes
>>>> a lot of time to switch threads in this way.
>>>>
>>>> I've been working with  multi-thread implementations. In fine grained
>>>> processing like synthesis I think spinlocks are better and faster for
>>>> thread
>>>> synchronization.
>>>>
>>>> Another good feature in cs6 could be "CPU affinity". In this way users
>>>> could
>>>> associate instruments to certain CPU set. It improves locality and cache
>>>> utilisation leading better performance.
>>>> System tasks like interrupts and syscalls(printf) could use a specific
>>>> CPU.
>>>> These features would be great in embedded environments.
>>>>
>>>> I'm tuning my implementation in this way, but it's a lot of work.
>>>> I'm planning to write an article at the end to report my experience.
>>>>
>>>> Thanks.
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://csound.1045644.n5.nabble.com/Design-for-a-multi-channel-Embedded-DSP-project-tp5720738p5720760.html
>>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>> csound"
>>>>
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
> <csp.csd>------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

Date2013-03-05 20:46
FromVictor Lazzarini
SubjectRe: [Cs-dev] CPU difference csound5 vs csound6 [was Re: [Csnd] Re: Design for a multi-channel Embedded DSP project.]
AttachmentsNone  None  
The OSX binaries Peiman is trying has all the debug switched on, so it is slower.  Turn all the debugging off and build release.
Also there might be other gains to be had along the way, so comparing csound5 and csound6 is not going to be very meaningful at this point.
This is an altogether different question to multicore testing.  In my oldish 2 core machine, I get definite speedups with -j2 on most things with
ksmps over 64. Lower ksmps are not so good, but then my machine is not a good platform for multicore testing.

Victor

On 5 Mar 2013, at 20:37, Michael Gogins wrote:

How build the fastest version of Csound6 then?


On Tue, Mar 5, 2013 at 3:23 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
No, because there is quite a bit of printing etc. and the version you have there is a debug one as well (so you are not comparing like for like). The release version should be
faster.

Victor
On 5 Mar 2013, at 20:17, peiman khosravi wrote:

> I just thought of comparing csound's performance between v5 and v6.
> With the attached csd I get:
>
> Csound5---->Elapsed time at end of performance: real: 0.363s, CPU: 0.358s
> Csound6---->Elapsed time at end of performance: real: 0.724s, CPU: 0.712s
>
> Strange, no?
>
> Thanks
> Peiman
>
> On 5 March 2013 20:08, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
>> No, there is no special branch.
>>
>> Victor
>> On 5 Mar 2013, at 19:55, Michael Gogins wrote:
>>
>> I tried GIT head for Csound 6 a few days ago and didn't see speedups for
>> multicore. Is it in a separate branch or is there some build configuration I
>> need?
>>
>> Regards,
>> Mike
>>
>>
>> On Tue, Mar 5, 2013 at 2:24 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie>
>> wrote:
>>>
>>> The Csound 6 multicore implementation delivers substantial gains, and the
>>> way it has been designed, context-switching is not problematic. You
>>> can check the code in csound6 GIT. The multicore code is in Top/csound.c.
>>>
>>> Victor
>>> On 5 Mar 2013, at 19:18, imaia wrote:
>>>
>>>> It's a great news about csound 6.
>>>>
>>>> Looking at 'Top/threads.c' in cs5,  I can see that everything is done
>>>> with
>>>> mutexes and condition variables.  I don't know if I'm looking at the
>>>> right
>>>> file, but the problem with mutexes is the context switch overhead, it
>>>> wastes
>>>> a lot of time to switch threads in this way.
>>>>
>>>> I've been working with  multi-thread implementations. In fine grained
>>>> processing like synthesis I think spinlocks are better and faster for
>>>> thread
>>>> synchronization.
>>>>
>>>> Another good feature in cs6 could be "CPU affinity". In this way users
>>>> could
>>>> associate instruments to certain CPU set. It improves locality and cache
>>>> utilisation leading better performance.
>>>> System tasks like interrupts and syscalls(printf) could use a specific
>>>> CPU.
>>>> These features would be great in embedded environments.
>>>>
>>>> I'm tuning my implementation in this way, but it's a lot of work.
>>>> I'm planning to write an article at the end to report my experience.
>>>>
>>>> Thanks.
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://csound.1045644.n5.nabble.com/Design-for-a-multi-channel-Embedded-DSP-project-tp5720738p5720760.html
>>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>> csound"
>>>>
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
> <csp.csd>------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




Date2013-03-05 20:52
Frompeiman khosravi
SubjectRe: [Cs-dev] CPU difference csound5 vs csound6 [was Re: [Csnd] Re: Design for a multi-channel Embedded DSP project.]
Great, thanks Victor.

Peiman

On 5 March 2013 20:46, Victor Lazzarini  wrote:
> The OSX binaries Peiman is trying has all the debug switched on, so it is
> slower.  Turn all the debugging off and build release.
> Also there might be other gains to be had along the way, so comparing
> csound5 and csound6 is not going to be very meaningful at this point.
> This is an altogether different question to multicore testing.  In my oldish
> 2 core machine, I get definite speedups with -j2 on most things with
> ksmps over 64. Lower ksmps are not so good, but then my machine is not a
> good platform for multicore testing.
>
> Victor
>
> On 5 Mar 2013, at 20:37, Michael Gogins wrote:
>
> How build the fastest version of Csound6 then?
>
>
> On Tue, Mar 5, 2013 at 3:23 PM, Victor Lazzarini 
> wrote:
>>
>> No, because there is quite a bit of printing etc. and the version you have
>> there is a debug one as well (so you are not comparing like for like). The
>> release version should be
>> faster.
>>
>> Victor
>> On 5 Mar 2013, at 20:17, peiman khosravi wrote:
>>
>> > I just thought of comparing csound's performance between v5 and v6.
>> > With the attached csd I get:
>> >
>> > Csound5---->Elapsed time at end of performance: real: 0.363s, CPU:
>> > 0.358s
>> > Csound6---->Elapsed time at end of performance: real: 0.724s, CPU:
>> > 0.712s
>> >
>> > Strange, no?
>> >
>> > Thanks
>> > Peiman
>> >
>> > On 5 March 2013 20:08, Victor Lazzarini 
>> > wrote:
>> >> No, there is no special branch.
>> >>
>> >> Victor
>> >> On 5 Mar 2013, at 19:55, Michael Gogins wrote:
>> >>
>> >> I tried GIT head for Csound 6 a few days ago and didn't see speedups
>> >> for
>> >> multicore. Is it in a separate branch or is there some build
>> >> configuration I
>> >> need?
>> >>
>> >> Regards,
>> >> Mike
>> >>
>> >>
>> >> On Tue, Mar 5, 2013 at 2:24 PM, Victor Lazzarini
>> >> 
>> >> wrote:
>> >>>
>> >>> The Csound 6 multicore implementation delivers substantial gains, and
>> >>> the
>> >>> way it has been designed, context-switching is not problematic. You
>> >>> can check the code in csound6 GIT. The multicore code is in
>> >>> Top/csound.c.
>> >>>
>> >>> Victor
>> >>> On 5 Mar 2013, at 19:18, imaia wrote:
>> >>>
>> >>>> It's a great news about csound 6.
>> >>>>
>> >>>> Looking at 'Top/threads.c' in cs5,  I can see that everything is done
>> >>>> with
>> >>>> mutexes and condition variables.  I don't know if I'm looking at the
>> >>>> right
>> >>>> file, but the problem with mutexes is the context switch overhead, it
>> >>>> wastes
>> >>>> a lot of time to switch threads in this way.
>> >>>>
>> >>>> I've been working with  multi-thread implementations. In fine grained
>> >>>> processing like synthesis I think spinlocks are better and faster for
>> >>>> thread
>> >>>> synchronization.
>> >>>>
>> >>>> Another good feature in cs6 could be "CPU affinity". In this way
>> >>>> users
>> >>>> could
>> >>>> associate instruments to certain CPU set. It improves locality and
>> >>>> cache
>> >>>> utilisation leading better performance.
>> >>>> System tasks like interrupts and syscalls(printf) could use a
>> >>>> specific
>> >>>> CPU.
>> >>>> These features would be great in embedded environments.
>> >>>>
>> >>>> I'm tuning my implementation in this way, but it's a lot of work.
>> >>>> I'm planning to write an article at the end to report my experience.
>> >>>>
>> >>>> Thanks.
>> >>>>
>> >>>>
>> >>>>
>> >>>> --
>> >>>> View this message in context:
>> >>>>
>> >>>> http://csound.1045644.n5.nabble.com/Design-for-a-multi-channel-Embedded-DSP-project-tp5720738p5720760.html
>> >>>> Sent from the Csound - General mailing list archive at Nabble.com.
>> >>>>
>> >>>>
>> >>>> Send bugs reports to the Sourceforge bug tracker
>> >>>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> >>>> Discussions of bugs and features can be posted here
>> >>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> >>>> "unsubscribe
>> >>>> csound"
>> >>>>
>> >>>
>> >>> Dr Victor Lazzarini
>> >>> Senior Lecturer
>> >>> Dept. of Music
>> >>> NUI Maynooth Ireland
>> >>> tel.: +353 1 708 3545
>> >>> Victor dot Lazzarini AT nuim dot ie
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> Send bugs reports to the Sourceforge bug tracker
>> >>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> >>> Discussions of bugs and features can be posted here
>> >>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> >>> "unsubscribe
>> >>> csound"
>> >>>
>> >>
>> >>
>> >>
>> >> --
>> >> Michael Gogins
>> >> Irreducible Productions
>> >> http://www.michael-gogins.com
>> >> Michael dot Gogins at gmail dot com
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Everyone hates slow websites. So do we.
>> >> Make your web apps faster with AppDynamics
>> >> Download AppDynamics Lite for free today:
>> >>
>> >> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>> >>
>> >> Dr Victor Lazzarini
>> >> Senior Lecturer
>> >> Dept. of Music
>> >> NUI Maynooth Ireland
>> >> tel.: +353 1 708 3545
>> >> Victor dot Lazzarini AT nuim dot ie
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Everyone hates slow websites. So do we.
>> >> Make your web apps faster with AppDynamics
>> >> Download AppDynamics Lite for free today:
>> >> http://p.sf.net/sfu/appdyn_d2d_feb
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>> >
>> > ------------------------------------------------------------------------------
>> > Everyone hates slow websites. So do we.
>> > Make your web apps faster with AppDynamics
>> > Download AppDynamics Lite for free today:
>> >
>> > http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
>
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-03-05 21:06
FromMichael Gogins
SubjectRe: [Cs-dev] CPU difference csound5 vs csound6 [was Re: [Csnd] Re: Design for a multi-channel Embedded DSP project.]
AttachmentsNone  None  
I will try this again. I probably had ksmps too low.

Thanks,
Mike


On Tue, Mar 5, 2013 at 3:46 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
The OSX binaries Peiman is trying has all the debug switched on, so it is slower.  Turn all the debugging off and build release.
Also there might be other gains to be had along the way, so comparing csound5 and csound6 is not going to be very meaningful at this point.
This is an altogether different question to multicore testing.  In my oldish 2 core machine, I get definite speedups with -j2 on most things with
ksmps over 64. Lower ksmps are not so good, but then my machine is not a good platform for multicore testing.

Victor

On 5 Mar 2013, at 20:37, Michael Gogins wrote:

How build the fastest version of Csound6 then?


On Tue, Mar 5, 2013 at 3:23 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
No, because there is quite a bit of printing etc. and the version you have there is a debug one as well (so you are not comparing like for like). The release version should be
faster.

Victor
On 5 Mar 2013, at 20:17, peiman khosravi wrote:

> I just thought of comparing csound's performance between v5 and v6.
> With the attached csd I get:
>
> Csound5---->Elapsed time at end of performance: real: 0.363s, CPU: 0.358s
> Csound6---->Elapsed time at end of performance: real: 0.724s, CPU: 0.712s
>
> Strange, no?
>
> Thanks
> Peiman
>
> On 5 March 2013 20:08, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
>> No, there is no special branch.
>>
>> Victor
>> On 5 Mar 2013, at 19:55, Michael Gogins wrote:
>>
>> I tried GIT head for Csound 6 a few days ago and didn't see speedups for
>> multicore. Is it in a separate branch or is there some build configuration I
>> need?
>>
>> Regards,
>> Mike
>>
>>
>> On Tue, Mar 5, 2013 at 2:24 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie>
>> wrote:
>>>
>>> The Csound 6 multicore implementation delivers substantial gains, and the
>>> way it has been designed, context-switching is not problematic. You
>>> can check the code in csound6 GIT. The multicore code is in Top/csound.c.
>>>
>>> Victor
>>> On 5 Mar 2013, at 19:18, imaia wrote:
>>>
>>>> It's a great news about csound 6.
>>>>
>>>> Looking at 'Top/threads.c' in cs5,  I can see that everything is done
>>>> with
>>>> mutexes and condition variables.  I don't know if I'm looking at the
>>>> right
>>>> file, but the problem with mutexes is the context switch overhead, it
>>>> wastes
>>>> a lot of time to switch threads in this way.
>>>>
>>>> I've been working with  multi-thread implementations. In fine grained
>>>> processing like synthesis I think spinlocks are better and faster for
>>>> thread
>>>> synchronization.
>>>>
>>>> Another good feature in cs6 could be "CPU affinity". In this way users
>>>> could
>>>> associate instruments to certain CPU set. It improves locality and cache
>>>> utilisation leading better performance.
>>>> System tasks like interrupts and syscalls(printf) could use a specific
>>>> CPU.
>>>> These features would be great in embedded environments.
>>>>
>>>> I'm tuning my implementation in this way, but it's a lot of work.
>>>> I'm planning to write an article at the end to report my experience.
>>>>
>>>> Thanks.
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://csound.1045644.n5.nabble.com/Design-for-a-multi-channel-Embedded-DSP-project-tp5720738p5720760.html
>>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>> csound"
>>>>
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
> <csp.csd>------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel




--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

Date2013-03-05 21:13
FromVictor Lazzarini
SubjectRe: [Cs-dev] CPU difference csound5 vs csound6 [was Re: [Csnd] Re: Design for a multi-channel Embedded DSP project.]
AttachmentsNone  None  
With CloudStrata.csd for instance, it takes 69 s single-thread and 44 s with -j 2
On 5 Mar 2013, at 21:06, Michael Gogins wrote:

I will try this again. I probably had ksmps too low.

Thanks,
Mike


On Tue, Mar 5, 2013 at 3:46 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
The OSX binaries Peiman is trying has all the debug switched on, so it is slower.  Turn all the debugging off and build release.
Also there might be other gains to be had along the way, so comparing csound5 and csound6 is not going to be very meaningful at this point.
This is an altogether different question to multicore testing.  In my oldish 2 core machine, I get definite speedups with -j2 on most things with
ksmps over 64. Lower ksmps are not so good, but then my machine is not a good platform for multicore testing.

Victor

On 5 Mar 2013, at 20:37, Michael Gogins wrote:

How build the fastest version of Csound6 then?


On Tue, Mar 5, 2013 at 3:23 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
No, because there is quite a bit of printing etc. and the version you have there is a debug one as well (so you are not comparing like for like). The release version should be
faster.

Victor
On 5 Mar 2013, at 20:17, peiman khosravi wrote:

> I just thought of comparing csound's performance between v5 and v6.
> With the attached csd I get:
>
> Csound5---->Elapsed time at end of performance: real: 0.363s, CPU: 0.358s
> Csound6---->Elapsed time at end of performance: real: 0.724s, CPU: 0.712s
>
> Strange, no?
>
> Thanks
> Peiman
>
> On 5 March 2013 20:08, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
>> No, there is no special branch.
>>
>> Victor
>> On 5 Mar 2013, at 19:55, Michael Gogins wrote:
>>
>> I tried GIT head for Csound 6 a few days ago and didn't see speedups for
>> multicore. Is it in a separate branch or is there some build configuration I
>> need?
>>
>> Regards,
>> Mike
>>
>>
>> On Tue, Mar 5, 2013 at 2:24 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie>
>> wrote:
>>>
>>> The Csound 6 multicore implementation delivers substantial gains, and the
>>> way it has been designed, context-switching is not problematic. You
>>> can check the code in csound6 GIT. The multicore code is in Top/csound.c.
>>>
>>> Victor
>>> On 5 Mar 2013, at 19:18, imaia wrote:
>>>
>>>> It's a great news about csound 6.
>>>>
>>>> Looking at 'Top/threads.c' in cs5,  I can see that everything is done
>>>> with
>>>> mutexes and condition variables.  I don't know if I'm looking at the
>>>> right
>>>> file, but the problem with mutexes is the context switch overhead, it
>>>> wastes
>>>> a lot of time to switch threads in this way.
>>>>
>>>> I've been working with  multi-thread implementations. In fine grained
>>>> processing like synthesis I think spinlocks are better and faster for
>>>> thread
>>>> synchronization.
>>>>
>>>> Another good feature in cs6 could be "CPU affinity". In this way users
>>>> could
>>>> associate instruments to certain CPU set. It improves locality and cache
>>>> utilisation leading better performance.
>>>> System tasks like interrupts and syscalls(printf) could use a specific
>>>> CPU.
>>>> These features would be great in embedded environments.
>>>>
>>>> I'm tuning my implementation in this way, but it's a lot of work.
>>>> I'm planning to write an article at the end to report my experience.
>>>>
>>>> Thanks.
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://csound.1045644.n5.nabble.com/Design-for-a-multi-channel-Embedded-DSP-project-tp5720738p5720760.html
>>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>> csound"
>>>>
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
> <csp.csd>------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel




--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




Date2013-03-05 21:26
Frompeiman khosravi
SubjectRe: [Cs-dev] CPU difference csound5 vs csound6 [was Re: [Csnd] Re: Design for a multi-channel Embedded DSP project.]
This could be related to the already reported bugs but I should
probably mention it. With the current build that I have the previously
attached csd doesn't reach and end with -j2 flag (but no errors).

Might be worth trying it on your system.

Best,
Peiman

On 5 March 2013 21:13, Victor Lazzarini  wrote:
> With CloudStrata.csd for instance, it takes 69 s single-thread and 44 s with
> -j 2
>
> On 5 Mar 2013, at 21:06, Michael Gogins wrote:
>
> I will try this again. I probably had ksmps too low.
>
> Thanks,
> Mike
>
>
> On Tue, Mar 5, 2013 at 3:46 PM, Victor Lazzarini 
> wrote:
>>
>> The OSX binaries Peiman is trying has all the debug switched on, so it is
>> slower.  Turn all the debugging off and build release.
>> Also there might be other gains to be had along the way, so comparing
>> csound5 and csound6 is not going to be very meaningful at this point.
>> This is an altogether different question to multicore testing.  In my
>> oldish 2 core machine, I get definite speedups with -j2 on most things with
>> ksmps over 64. Lower ksmps are not so good, but then my machine is not a
>> good platform for multicore testing.
>>
>> Victor
>>
>> On 5 Mar 2013, at 20:37, Michael Gogins wrote:
>>
>> How build the fastest version of Csound6 then?
>>
>>
>> On Tue, Mar 5, 2013 at 3:23 PM, Victor Lazzarini
>>  wrote:
>>>
>>> No, because there is quite a bit of printing etc. and the version you
>>> have there is a debug one as well (so you are not comparing like for like).
>>> The release version should be
>>> faster.
>>>
>>> Victor
>>> On 5 Mar 2013, at 20:17, peiman khosravi wrote:
>>>
>>> > I just thought of comparing csound's performance between v5 and v6.
>>> > With the attached csd I get:
>>> >
>>> > Csound5---->Elapsed time at end of performance: real: 0.363s, CPU:
>>> > 0.358s
>>> > Csound6---->Elapsed time at end of performance: real: 0.724s, CPU:
>>> > 0.712s
>>> >
>>> > Strange, no?
>>> >
>>> > Thanks
>>> > Peiman
>>> >
>>> > On 5 March 2013 20:08, Victor Lazzarini 
>>> > wrote:
>>> >> No, there is no special branch.
>>> >>
>>> >> Victor
>>> >> On 5 Mar 2013, at 19:55, Michael Gogins wrote:
>>> >>
>>> >> I tried GIT head for Csound 6 a few days ago and didn't see speedups
>>> >> for
>>> >> multicore. Is it in a separate branch or is there some build
>>> >> configuration I
>>> >> need?
>>> >>
>>> >> Regards,
>>> >> Mike
>>> >>
>>> >>
>>> >> On Tue, Mar 5, 2013 at 2:24 PM, Victor Lazzarini
>>> >> 
>>> >> wrote:
>>> >>>
>>> >>> The Csound 6 multicore implementation delivers substantial gains, and
>>> >>> the
>>> >>> way it has been designed, context-switching is not problematic. You
>>> >>> can check the code in csound6 GIT. The multicore code is in
>>> >>> Top/csound.c.
>>> >>>
>>> >>> Victor
>>> >>> On 5 Mar 2013, at 19:18, imaia wrote:
>>> >>>
>>> >>>> It's a great news about csound 6.
>>> >>>>
>>> >>>> Looking at 'Top/threads.c' in cs5,  I can see that everything is
>>> >>>> done
>>> >>>> with
>>> >>>> mutexes and condition variables.  I don't know if I'm looking at the
>>> >>>> right
>>> >>>> file, but the problem with mutexes is the context switch overhead,
>>> >>>> it
>>> >>>> wastes
>>> >>>> a lot of time to switch threads in this way.
>>> >>>>
>>> >>>> I've been working with  multi-thread implementations. In fine
>>> >>>> grained
>>> >>>> processing like synthesis I think spinlocks are better and faster
>>> >>>> for
>>> >>>> thread
>>> >>>> synchronization.
>>> >>>>
>>> >>>> Another good feature in cs6 could be "CPU affinity". In this way
>>> >>>> users
>>> >>>> could
>>> >>>> associate instruments to certain CPU set. It improves locality and
>>> >>>> cache
>>> >>>> utilisation leading better performance.
>>> >>>> System tasks like interrupts and syscalls(printf) could use a
>>> >>>> specific
>>> >>>> CPU.
>>> >>>> These features would be great in embedded environments.
>>> >>>>
>>> >>>> I'm tuning my implementation in this way, but it's a lot of work.
>>> >>>> I'm planning to write an article at the end to report my experience.
>>> >>>>
>>> >>>> Thanks.
>>> >>>>
>>> >>>>
>>> >>>>
>>> >>>> --
>>> >>>> View this message in context:
>>> >>>>
>>> >>>> http://csound.1045644.n5.nabble.com/Design-for-a-multi-channel-Embedded-DSP-project-tp5720738p5720760.html
>>> >>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>> >>>>
>>> >>>>
>>> >>>> Send bugs reports to the Sourceforge bug tracker
>>> >>>>
>>> >>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> >>>> Discussions of bugs and features can be posted here
>>> >>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>> >>>> "unsubscribe
>>> >>>> csound"
>>> >>>>
>>> >>>
>>> >>> Dr Victor Lazzarini
>>> >>> Senior Lecturer
>>> >>> Dept. of Music
>>> >>> NUI Maynooth Ireland
>>> >>> tel.: +353 1 708 3545
>>> >>> Victor dot Lazzarini AT nuim dot ie
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>> >>> Send bugs reports to the Sourceforge bug tracker
>>> >>>
>>> >>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> >>> Discussions of bugs and features can be posted here
>>> >>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>> >>> "unsubscribe
>>> >>> csound"
>>> >>>
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> Michael Gogins
>>> >> Irreducible Productions
>>> >> http://www.michael-gogins.com
>>> >> Michael dot Gogins at gmail dot com
>>> >>
>>> >> ------------------------------------------------------------------------------
>>> >> Everyone hates slow websites. So do we.
>>> >> Make your web apps faster with AppDynamics
>>> >> Download AppDynamics Lite for free today:
>>> >>
>>> >> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>>> >> Csound-devel mailing list
>>> >> Csound-devel@lists.sourceforge.net
>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >>
>>> >>
>>> >> Dr Victor Lazzarini
>>> >> Senior Lecturer
>>> >> Dept. of Music
>>> >> NUI Maynooth Ireland
>>> >> tel.: +353 1 708 3545
>>> >> Victor dot Lazzarini AT nuim dot ie
>>> >>
>>> >>
>>> >>
>>> >>
>>> >>
>>> >> ------------------------------------------------------------------------------
>>> >> Everyone hates slow websites. So do we.
>>> >> Make your web apps faster with AppDynamics
>>> >> Download AppDynamics Lite for free today:
>>> >> http://p.sf.net/sfu/appdyn_d2d_feb
>>> >> _______________________________________________
>>> >> Csound-devel mailing list
>>> >> Csound-devel@lists.sourceforge.net
>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >>
>>> >
>>> > ------------------------------------------------------------------------------
>>> > Everyone hates slow websites. So do we.
>>> > Make your web apps faster with AppDynamics
>>> > Download AppDynamics Lite for free today:
>>> >
>>> > http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>>> > Csound-devel mailing list
>>> > Csound-devel@lists.sourceforge.net
>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Everyone hates slow websites. So do we.
>>> Make your web apps faster with AppDynamics
>>> Download AppDynamics Lite for free today:
>>> http://p.sf.net/sfu/appdyn_d2d_feb
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>>
>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-03-05 22:35
FromVictor Lazzarini
SubjectRe: [Cs-dev] CPU difference csound5 vs csound6 [was Re: [Csnd] Re: Design for a multi-channel Embedded DSP project.]
it finishes here OK.
On 5 Mar 2013, at 21:26, peiman khosravi wrote:

> This could be related to the already reported bugs but I should
> probably mention it. With the current build that I have the previously
> attached csd doesn't reach and end with -j2 flag (but no errors).
> 
> Might be worth trying it on your system.
> 
> Best,
> Peiman
> 
> On 5 March 2013 21:13, Victor Lazzarini  wrote:
>> With CloudStrata.csd for instance, it takes 69 s single-thread and 44 s with
>> -j 2
>> 
>> On 5 Mar 2013, at 21:06, Michael Gogins wrote:
>> 
>> I will try this again. I probably had ksmps too low.
>> 
>> Thanks,
>> Mike
>> 
>> 
>> On Tue, Mar 5, 2013 at 3:46 PM, Victor Lazzarini 
>> wrote:
>>> 
>>> The OSX binaries Peiman is trying has all the debug switched on, so it is
>>> slower.  Turn all the debugging off and build release.
>>> Also there might be other gains to be had along the way, so comparing
>>> csound5 and csound6 is not going to be very meaningful at this point.
>>> This is an altogether different question to multicore testing.  In my
>>> oldish 2 core machine, I get definite speedups with -j2 on most things with
>>> ksmps over 64. Lower ksmps are not so good, but then my machine is not a
>>> good platform for multicore testing.
>>> 
>>> Victor
>>> 
>>> On 5 Mar 2013, at 20:37, Michael Gogins wrote:
>>> 
>>> How build the fastest version of Csound6 then?
>>> 
>>> 
>>> On Tue, Mar 5, 2013 at 3:23 PM, Victor Lazzarini
>>>  wrote:
>>>> 
>>>> No, because there is quite a bit of printing etc. and the version you
>>>> have there is a debug one as well (so you are not comparing like for like).
>>>> The release version should be
>>>> faster.
>>>> 
>>>> Victor
>>>> On 5 Mar 2013, at 20:17, peiman khosravi wrote:
>>>> 
>>>>> I just thought of comparing csound's performance between v5 and v6.
>>>>> With the attached csd I get:
>>>>> 
>>>>> Csound5---->Elapsed time at end of performance: real: 0.363s, CPU:
>>>>> 0.358s
>>>>> Csound6---->Elapsed time at end of performance: real: 0.724s, CPU:
>>>>> 0.712s
>>>>> 
>>>>> Strange, no?
>>>>> 
>>>>> Thanks
>>>>> Peiman
>>>>> 
>>>>> On 5 March 2013 20:08, Victor Lazzarini 
>>>>> wrote:
>>>>>> No, there is no special branch.
>>>>>> 
>>>>>> Victor
>>>>>> On 5 Mar 2013, at 19:55, Michael Gogins wrote:
>>>>>> 
>>>>>> I tried GIT head for Csound 6 a few days ago and didn't see speedups
>>>>>> for
>>>>>> multicore. Is it in a separate branch or is there some build
>>>>>> configuration I
>>>>>> need?
>>>>>> 
>>>>>> Regards,
>>>>>> Mike
>>>>>> 
>>>>>> 
>>>>>> On Tue, Mar 5, 2013 at 2:24 PM, Victor Lazzarini
>>>>>> 
>>>>>> wrote:
>>>>>>> 
>>>>>>> The Csound 6 multicore implementation delivers substantial gains, and
>>>>>>> the
>>>>>>> way it has been designed, context-switching is not problematic. You
>>>>>>> can check the code in csound6 GIT. The multicore code is in
>>>>>>> Top/csound.c.
>>>>>>> 
>>>>>>> Victor
>>>>>>> On 5 Mar 2013, at 19:18, imaia wrote:
>>>>>>> 
>>>>>>>> It's a great news about csound 6.
>>>>>>>> 
>>>>>>>> Looking at 'Top/threads.c' in cs5,  I can see that everything is
>>>>>>>> done
>>>>>>>> with
>>>>>>>> mutexes and condition variables.  I don't know if I'm looking at the
>>>>>>>> right
>>>>>>>> file, but the problem with mutexes is the context switch overhead,
>>>>>>>> it
>>>>>>>> wastes
>>>>>>>> a lot of time to switch threads in this way.
>>>>>>>> 
>>>>>>>> I've been working with  multi-thread implementations. In fine
>>>>>>>> grained
>>>>>>>> processing like synthesis I think spinlocks are better and faster
>>>>>>>> for
>>>>>>>> thread
>>>>>>>> synchronization.
>>>>>>>> 
>>>>>>>> Another good feature in cs6 could be "CPU affinity". In this way
>>>>>>>> users
>>>>>>>> could
>>>>>>>> associate instruments to certain CPU set. It improves locality and
>>>>>>>> cache
>>>>>>>> utilisation leading better performance.
>>>>>>>> System tasks like interrupts and syscalls(printf) could use a
>>>>>>>> specific
>>>>>>>> CPU.
>>>>>>>> These features would be great in embedded environments.
>>>>>>>> 
>>>>>>>> I'm tuning my implementation in this way, but it's a lot of work.
>>>>>>>> I'm planning to write an article at the end to report my experience.
>>>>>>>> 
>>>>>>>> Thanks.
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> --
>>>>>>>> View this message in context:
>>>>>>>> 
>>>>>>>> http://csound.1045644.n5.nabble.com/Design-for-a-multi-channel-Embedded-DSP-project-tp5720738p5720760.html
>>>>>>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>>>>>> 
>>>>>>>> 
>>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>> 
>>>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>>>> "unsubscribe
>>>>>>>> csound"
>>>>>>>> 
>>>>>>> 
>>>>>>> Dr Victor Lazzarini
>>>>>>> Senior Lecturer
>>>>>>> Dept. of Music
>>>>>>> NUI Maynooth Ireland
>>>>>>> tel.: +353 1 708 3545
>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>> 
>>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>>> "unsubscribe
>>>>>>> csound"
>>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> --
>>>>>> Michael Gogins
>>>>>> Irreducible Productions
>>>>>> http://www.michael-gogins.com
>>>>>> Michael dot Gogins at gmail dot com
>>>>>> 
>>>>>> ------------------------------------------------------------------------------
>>>>>> Everyone hates slow websites. So do we.
>>>>>> Make your web apps faster with AppDynamics
>>>>>> Download AppDynamics Lite for free today:
>>>>>> 
>>>>>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> 
>>>>>> 
>>>>>> Dr Victor Lazzarini
>>>>>> Senior Lecturer
>>>>>> Dept. of Music
>>>>>> NUI Maynooth Ireland
>>>>>> tel.: +353 1 708 3545
>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> ------------------------------------------------------------------------------
>>>>>> Everyone hates slow websites. So do we.
>>>>>> Make your web apps faster with AppDynamics
>>>>>> Download AppDynamics Lite for free today:
>>>>>> http://p.sf.net/sfu/appdyn_d2d_feb
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> 
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> Everyone hates slow websites. So do we.
>>>>> Make your web apps faster with AppDynamics
>>>>> Download AppDynamics Lite for free today:
>>>>> 
>>>>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> Dept. of Music
>>>> NUI Maynooth Ireland
>>>> tel.: +353 1 708 3545
>>>> Victor dot Lazzarini AT nuim dot ie
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> Everyone hates slow websites. So do we.
>>>> Make your web apps faster with AppDynamics
>>>> Download AppDynamics Lite for free today:
>>>> http://p.sf.net/sfu/appdyn_d2d_feb
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> 
>>> 
>>> 
>>> --
>>> Michael Gogins
>>> Irreducible Productions
>>> http://www.michael-gogins.com
>>> Michael dot Gogins at gmail dot com
>>> 
>>> ------------------------------------------------------------------------------
>>> Everyone hates slow websites. So do we.
>>> Make your web apps faster with AppDynamics
>>> Download AppDynamics Lite for free today:
>>> 
>>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> 
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>> 
>>> 
>>> 
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> Everyone hates slow websites. So do we.
>>> Make your web apps faster with AppDynamics
>>> Download AppDynamics Lite for free today:
>>> http://p.sf.net/sfu/appdyn_d2d_feb
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>> 
>> 
>> 
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> 
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
> 
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-03-05 22:36
FromVictor Lazzarini
SubjectRe: [Cs-dev] CPU difference csound5 vs csound6 [was Re: [Csnd] Re: Design for a multi-channel Embedded DSP project.]
But with ksmps=1 there will be no gains with multicore performance.
On 5 Mar 2013, at 21:26, peiman khosravi wrote:

> This could be related to the already reported bugs but I should
> probably mention it. With the current build that I have the previously
> attached csd doesn't reach and end with -j2 flag (but no errors).
> 
> Might be worth trying it on your system.
> 
> Best,
> Peiman
> 
> On 5 March 2013 21:13, Victor Lazzarini  wrote:
>> With CloudStrata.csd for instance, it takes 69 s single-thread and 44 s with
>> -j 2
>> 
>> On 5 Mar 2013, at 21:06, Michael Gogins wrote:
>> 
>> I will try this again. I probably had ksmps too low.
>> 
>> Thanks,
>> Mike
>> 
>> 
>> On Tue, Mar 5, 2013 at 3:46 PM, Victor Lazzarini 
>> wrote:
>>> 
>>> The OSX binaries Peiman is trying has all the debug switched on, so it is
>>> slower.  Turn all the debugging off and build release.
>>> Also there might be other gains to be had along the way, so comparing
>>> csound5 and csound6 is not going to be very meaningful at this point.
>>> This is an altogether different question to multicore testing.  In my
>>> oldish 2 core machine, I get definite speedups with -j2 on most things with
>>> ksmps over 64. Lower ksmps are not so good, but then my machine is not a
>>> good platform for multicore testing.
>>> 
>>> Victor
>>> 
>>> On 5 Mar 2013, at 20:37, Michael Gogins wrote:
>>> 
>>> How build the fastest version of Csound6 then?
>>> 
>>> 
>>> On Tue, Mar 5, 2013 at 3:23 PM, Victor Lazzarini
>>>  wrote:
>>>> 
>>>> No, because there is quite a bit of printing etc. and the version you
>>>> have there is a debug one as well (so you are not comparing like for like).
>>>> The release version should be
>>>> faster.
>>>> 
>>>> Victor
>>>> On 5 Mar 2013, at 20:17, peiman khosravi wrote:
>>>> 
>>>>> I just thought of comparing csound's performance between v5 and v6.
>>>>> With the attached csd I get:
>>>>> 
>>>>> Csound5---->Elapsed time at end of performance: real: 0.363s, CPU:
>>>>> 0.358s
>>>>> Csound6---->Elapsed time at end of performance: real: 0.724s, CPU:
>>>>> 0.712s
>>>>> 
>>>>> Strange, no?
>>>>> 
>>>>> Thanks
>>>>> Peiman
>>>>> 
>>>>> On 5 March 2013 20:08, Victor Lazzarini 
>>>>> wrote:
>>>>>> No, there is no special branch.
>>>>>> 
>>>>>> Victor
>>>>>> On 5 Mar 2013, at 19:55, Michael Gogins wrote:
>>>>>> 
>>>>>> I tried GIT head for Csound 6 a few days ago and didn't see speedups
>>>>>> for
>>>>>> multicore. Is it in a separate branch or is there some build
>>>>>> configuration I
>>>>>> need?
>>>>>> 
>>>>>> Regards,
>>>>>> Mike
>>>>>> 
>>>>>> 
>>>>>> On Tue, Mar 5, 2013 at 2:24 PM, Victor Lazzarini
>>>>>> 
>>>>>> wrote:
>>>>>>> 
>>>>>>> The Csound 6 multicore implementation delivers substantial gains, and
>>>>>>> the
>>>>>>> way it has been designed, context-switching is not problematic. You
>>>>>>> can check the code in csound6 GIT. The multicore code is in
>>>>>>> Top/csound.c.
>>>>>>> 
>>>>>>> Victor
>>>>>>> On 5 Mar 2013, at 19:18, imaia wrote:
>>>>>>> 
>>>>>>>> It's a great news about csound 6.
>>>>>>>> 
>>>>>>>> Looking at 'Top/threads.c' in cs5,  I can see that everything is
>>>>>>>> done
>>>>>>>> with
>>>>>>>> mutexes and condition variables.  I don't know if I'm looking at the
>>>>>>>> right
>>>>>>>> file, but the problem with mutexes is the context switch overhead,
>>>>>>>> it
>>>>>>>> wastes
>>>>>>>> a lot of time to switch threads in this way.
>>>>>>>> 
>>>>>>>> I've been working with  multi-thread implementations. In fine
>>>>>>>> grained
>>>>>>>> processing like synthesis I think spinlocks are better and faster
>>>>>>>> for
>>>>>>>> thread
>>>>>>>> synchronization.
>>>>>>>> 
>>>>>>>> Another good feature in cs6 could be "CPU affinity". In this way
>>>>>>>> users
>>>>>>>> could
>>>>>>>> associate instruments to certain CPU set. It improves locality and
>>>>>>>> cache
>>>>>>>> utilisation leading better performance.
>>>>>>>> System tasks like interrupts and syscalls(printf) could use a
>>>>>>>> specific
>>>>>>>> CPU.
>>>>>>>> These features would be great in embedded environments.
>>>>>>>> 
>>>>>>>> I'm tuning my implementation in this way, but it's a lot of work.
>>>>>>>> I'm planning to write an article at the end to report my experience.
>>>>>>>> 
>>>>>>>> Thanks.
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> --
>>>>>>>> View this message in context:
>>>>>>>> 
>>>>>>>> http://csound.1045644.n5.nabble.com/Design-for-a-multi-channel-Embedded-DSP-project-tp5720738p5720760.html
>>>>>>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>>>>>> 
>>>>>>>> 
>>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>> 
>>>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>>>> "unsubscribe
>>>>>>>> csound"
>>>>>>>> 
>>>>>>> 
>>>>>>> Dr Victor Lazzarini
>>>>>>> Senior Lecturer
>>>>>>> Dept. of Music
>>>>>>> NUI Maynooth Ireland
>>>>>>> tel.: +353 1 708 3545
>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>> 
>>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>>> "unsubscribe
>>>>>>> csound"
>>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> --
>>>>>> Michael Gogins
>>>>>> Irreducible Productions
>>>>>> http://www.michael-gogins.com
>>>>>> Michael dot Gogins at gmail dot com
>>>>>> 
>>>>>> ------------------------------------------------------------------------------
>>>>>> Everyone hates slow websites. So do we.
>>>>>> Make your web apps faster with AppDynamics
>>>>>> Download AppDynamics Lite for free today:
>>>>>> 
>>>>>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> 
>>>>>> 
>>>>>> Dr Victor Lazzarini
>>>>>> Senior Lecturer
>>>>>> Dept. of Music
>>>>>> NUI Maynooth Ireland
>>>>>> tel.: +353 1 708 3545
>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> ------------------------------------------------------------------------------
>>>>>> Everyone hates slow websites. So do we.
>>>>>> Make your web apps faster with AppDynamics
>>>>>> Download AppDynamics Lite for free today:
>>>>>> http://p.sf.net/sfu/appdyn_d2d_feb
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> 
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> Everyone hates slow websites. So do we.
>>>>> Make your web apps faster with AppDynamics
>>>>> Download AppDynamics Lite for free today:
>>>>> 
>>>>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> Dept. of Music
>>>> NUI Maynooth Ireland
>>>> tel.: +353 1 708 3545
>>>> Victor dot Lazzarini AT nuim dot ie
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> Everyone hates slow websites. So do we.
>>>> Make your web apps faster with AppDynamics
>>>> Download AppDynamics Lite for free today:
>>>> http://p.sf.net/sfu/appdyn_d2d_feb
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> 
>>> 
>>> 
>>> --
>>> Michael Gogins
>>> Irreducible Productions
>>> http://www.michael-gogins.com
>>> Michael dot Gogins at gmail dot com
>>> 
>>> ------------------------------------------------------------------------------
>>> Everyone hates slow websites. So do we.
>>> Make your web apps faster with AppDynamics
>>> Download AppDynamics Lite for free today:
>>> 
>>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> 
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>> 
>>> 
>>> 
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> Everyone hates slow websites. So do we.
>>> Make your web apps faster with AppDynamics
>>> Download AppDynamics Lite for free today:
>>> http://p.sf.net/sfu/appdyn_d2d_feb
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>> 
>> 
>> 
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> 
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
> 
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-03-05 22:38
FromVictor Lazzarini
SubjectRe: [Cs-dev] CPU difference csound5 vs csound6 [was Re: [Csnd] Re: Design for a multi-channel Embedded DSP project.]
Also  a single instance of an instrument will not parallelise. Parallelism works at instrument instance level.
On 5 Mar 2013, at 21:26, peiman khosravi wrote:

> This could be related to the already reported bugs but I should
> probably mention it. With the current build that I have the previously
> attached csd doesn't reach and end with -j2 flag (but no errors).
> 
> Might be worth trying it on your system.
> 
> Best,
> Peiman
> 
> On 5 March 2013 21:13, Victor Lazzarini  wrote:
>> With CloudStrata.csd for instance, it takes 69 s single-thread and 44 s with
>> -j 2
>> 
>> On 5 Mar 2013, at 21:06, Michael Gogins wrote:
>> 
>> I will try this again. I probably had ksmps too low.
>> 
>> Thanks,
>> Mike
>> 
>> 
>> On Tue, Mar 5, 2013 at 3:46 PM, Victor Lazzarini 
>> wrote:
>>> 
>>> The OSX binaries Peiman is trying has all the debug switched on, so it is
>>> slower.  Turn all the debugging off and build release.
>>> Also there might be other gains to be had along the way, so comparing
>>> csound5 and csound6 is not going to be very meaningful at this point.
>>> This is an altogether different question to multicore testing.  In my
>>> oldish 2 core machine, I get definite speedups with -j2 on most things with
>>> ksmps over 64. Lower ksmps are not so good, but then my machine is not a
>>> good platform for multicore testing.
>>> 
>>> Victor
>>> 
>>> On 5 Mar 2013, at 20:37, Michael Gogins wrote:
>>> 
>>> How build the fastest version of Csound6 then?
>>> 
>>> 
>>> On Tue, Mar 5, 2013 at 3:23 PM, Victor Lazzarini
>>>  wrote:
>>>> 
>>>> No, because there is quite a bit of printing etc. and the version you
>>>> have there is a debug one as well (so you are not comparing like for like).
>>>> The release version should be
>>>> faster.
>>>> 
>>>> Victor
>>>> On 5 Mar 2013, at 20:17, peiman khosravi wrote:
>>>> 
>>>>> I just thought of comparing csound's performance between v5 and v6.
>>>>> With the attached csd I get:
>>>>> 
>>>>> Csound5---->Elapsed time at end of performance: real: 0.363s, CPU:
>>>>> 0.358s
>>>>> Csound6---->Elapsed time at end of performance: real: 0.724s, CPU:
>>>>> 0.712s
>>>>> 
>>>>> Strange, no?
>>>>> 
>>>>> Thanks
>>>>> Peiman
>>>>> 
>>>>> On 5 March 2013 20:08, Victor Lazzarini 
>>>>> wrote:
>>>>>> No, there is no special branch.
>>>>>> 
>>>>>> Victor
>>>>>> On 5 Mar 2013, at 19:55, Michael Gogins wrote:
>>>>>> 
>>>>>> I tried GIT head for Csound 6 a few days ago and didn't see speedups
>>>>>> for
>>>>>> multicore. Is it in a separate branch or is there some build
>>>>>> configuration I
>>>>>> need?
>>>>>> 
>>>>>> Regards,
>>>>>> Mike
>>>>>> 
>>>>>> 
>>>>>> On Tue, Mar 5, 2013 at 2:24 PM, Victor Lazzarini
>>>>>> 
>>>>>> wrote:
>>>>>>> 
>>>>>>> The Csound 6 multicore implementation delivers substantial gains, and
>>>>>>> the
>>>>>>> way it has been designed, context-switching is not problematic. You
>>>>>>> can check the code in csound6 GIT. The multicore code is in
>>>>>>> Top/csound.c.
>>>>>>> 
>>>>>>> Victor
>>>>>>> On 5 Mar 2013, at 19:18, imaia wrote:
>>>>>>> 
>>>>>>>> It's a great news about csound 6.
>>>>>>>> 
>>>>>>>> Looking at 'Top/threads.c' in cs5,  I can see that everything is
>>>>>>>> done
>>>>>>>> with
>>>>>>>> mutexes and condition variables.  I don't know if I'm looking at the
>>>>>>>> right
>>>>>>>> file, but the problem with mutexes is the context switch overhead,
>>>>>>>> it
>>>>>>>> wastes
>>>>>>>> a lot of time to switch threads in this way.
>>>>>>>> 
>>>>>>>> I've been working with  multi-thread implementations. In fine
>>>>>>>> grained
>>>>>>>> processing like synthesis I think spinlocks are better and faster
>>>>>>>> for
>>>>>>>> thread
>>>>>>>> synchronization.
>>>>>>>> 
>>>>>>>> Another good feature in cs6 could be "CPU affinity". In this way
>>>>>>>> users
>>>>>>>> could
>>>>>>>> associate instruments to certain CPU set. It improves locality and
>>>>>>>> cache
>>>>>>>> utilisation leading better performance.
>>>>>>>> System tasks like interrupts and syscalls(printf) could use a
>>>>>>>> specific
>>>>>>>> CPU.
>>>>>>>> These features would be great in embedded environments.
>>>>>>>> 
>>>>>>>> I'm tuning my implementation in this way, but it's a lot of work.
>>>>>>>> I'm planning to write an article at the end to report my experience.
>>>>>>>> 
>>>>>>>> Thanks.
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> --
>>>>>>>> View this message in context:
>>>>>>>> 
>>>>>>>> http://csound.1045644.n5.nabble.com/Design-for-a-multi-channel-Embedded-DSP-project-tp5720738p5720760.html
>>>>>>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>>>>>> 
>>>>>>>> 
>>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>> 
>>>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>>>> "unsubscribe
>>>>>>>> csound"
>>>>>>>> 
>>>>>>> 
>>>>>>> Dr Victor Lazzarini
>>>>>>> Senior Lecturer
>>>>>>> Dept. of Music
>>>>>>> NUI Maynooth Ireland
>>>>>>> tel.: +353 1 708 3545
>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>> 
>>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>>> "unsubscribe
>>>>>>> csound"
>>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> --
>>>>>> Michael Gogins
>>>>>> Irreducible Productions
>>>>>> http://www.michael-gogins.com
>>>>>> Michael dot Gogins at gmail dot com
>>>>>> 
>>>>>> ------------------------------------------------------------------------------
>>>>>> Everyone hates slow websites. So do we.
>>>>>> Make your web apps faster with AppDynamics
>>>>>> Download AppDynamics Lite for free today:
>>>>>> 
>>>>>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> 
>>>>>> 
>>>>>> Dr Victor Lazzarini
>>>>>> Senior Lecturer
>>>>>> Dept. of Music
>>>>>> NUI Maynooth Ireland
>>>>>> tel.: +353 1 708 3545
>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> ------------------------------------------------------------------------------
>>>>>> Everyone hates slow websites. So do we.
>>>>>> Make your web apps faster with AppDynamics
>>>>>> Download AppDynamics Lite for free today:
>>>>>> http://p.sf.net/sfu/appdyn_d2d_feb
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> 
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> Everyone hates slow websites. So do we.
>>>>> Make your web apps faster with AppDynamics
>>>>> Download AppDynamics Lite for free today:
>>>>> 
>>>>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> Dept. of Music
>>>> NUI Maynooth Ireland
>>>> tel.: +353 1 708 3545
>>>> Victor dot Lazzarini AT nuim dot ie
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> Everyone hates slow websites. So do we.
>>>> Make your web apps faster with AppDynamics
>>>> Download AppDynamics Lite for free today:
>>>> http://p.sf.net/sfu/appdyn_d2d_feb
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> 
>>> 
>>> 
>>> --
>>> Michael Gogins
>>> Irreducible Productions
>>> http://www.michael-gogins.com
>>> Michael dot Gogins at gmail dot com
>>> 
>>> ------------------------------------------------------------------------------
>>> Everyone hates slow websites. So do we.
>>> Make your web apps faster with AppDynamics
>>> Download AppDynamics Lite for free today:
>>> 
>>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> 
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>> 
>>> 
>>> 
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> Everyone hates slow websites. So do we.
>>> Make your web apps faster with AppDynamics
>>> Download AppDynamics Lite for free today:
>>> http://p.sf.net/sfu/appdyn_d2d_feb
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>> 
>> 
>> 
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> 
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
> 
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-03-05 22:47
Frompeiman khosravi
SubjectRe: [Cs-dev] CPU difference csound5 vs csound6 [was Re: [Csnd] Re: Design for a multi-channel Embedded DSP project.]
I see, thanks for checking. Good to know it works there.

I suppose this particular csd can't really benefit from multicore and
for the other stuff it would be easy to use one instrument per
channel.

However, if global f-sigs were supported then we could break the jobs
much more flexibly across different CPUs.

Thanks
P

On 5 March 2013 22:38, Victor Lazzarini  wrote:
> Also  a single instance of an instrument will not parallelise. Parallelism works at instrument instance level.
> On 5 Mar 2013, at 21:26, peiman khosravi wrote:
>
>> This could be related to the already reported bugs but I should
>> probably mention it. With the current build that I have the previously
>> attached csd doesn't reach and end with -j2 flag (but no errors).
>>
>> Might be worth trying it on your system.
>>
>> Best,
>> Peiman
>>
>> On 5 March 2013 21:13, Victor Lazzarini  wrote:
>>> With CloudStrata.csd for instance, it takes 69 s single-thread and 44 s with
>>> -j 2
>>>
>>> On 5 Mar 2013, at 21:06, Michael Gogins wrote:
>>>
>>> I will try this again. I probably had ksmps too low.
>>>
>>> Thanks,
>>> Mike
>>>
>>>
>>> On Tue, Mar 5, 2013 at 3:46 PM, Victor Lazzarini 
>>> wrote:
>>>>
>>>> The OSX binaries Peiman is trying has all the debug switched on, so it is
>>>> slower.  Turn all the debugging off and build release.
>>>> Also there might be other gains to be had along the way, so comparing
>>>> csound5 and csound6 is not going to be very meaningful at this point.
>>>> This is an altogether different question to multicore testing.  In my
>>>> oldish 2 core machine, I get definite speedups with -j2 on most things with
>>>> ksmps over 64. Lower ksmps are not so good, but then my machine is not a
>>>> good platform for multicore testing.
>>>>
>>>> Victor
>>>>
>>>> On 5 Mar 2013, at 20:37, Michael Gogins wrote:
>>>>
>>>> How build the fastest version of Csound6 then?
>>>>
>>>>
>>>> On Tue, Mar 5, 2013 at 3:23 PM, Victor Lazzarini
>>>>  wrote:
>>>>>
>>>>> No, because there is quite a bit of printing etc. and the version you
>>>>> have there is a debug one as well (so you are not comparing like for like).
>>>>> The release version should be
>>>>> faster.
>>>>>
>>>>> Victor
>>>>> On 5 Mar 2013, at 20:17, peiman khosravi wrote:
>>>>>
>>>>>> I just thought of comparing csound's performance between v5 and v6.
>>>>>> With the attached csd I get:
>>>>>>
>>>>>> Csound5---->Elapsed time at end of performance: real: 0.363s, CPU:
>>>>>> 0.358s
>>>>>> Csound6---->Elapsed time at end of performance: real: 0.724s, CPU:
>>>>>> 0.712s
>>>>>>
>>>>>> Strange, no?
>>>>>>
>>>>>> Thanks
>>>>>> Peiman
>>>>>>
>>>>>> On 5 March 2013 20:08, Victor Lazzarini 
>>>>>> wrote:
>>>>>>> No, there is no special branch.
>>>>>>>
>>>>>>> Victor
>>>>>>> On 5 Mar 2013, at 19:55, Michael Gogins wrote:
>>>>>>>
>>>>>>> I tried GIT head for Csound 6 a few days ago and didn't see speedups
>>>>>>> for
>>>>>>> multicore. Is it in a separate branch or is there some build
>>>>>>> configuration I
>>>>>>> need?
>>>>>>>
>>>>>>> Regards,
>>>>>>> Mike
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Mar 5, 2013 at 2:24 PM, Victor Lazzarini
>>>>>>> 
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> The Csound 6 multicore implementation delivers substantial gains, and
>>>>>>>> the
>>>>>>>> way it has been designed, context-switching is not problematic. You
>>>>>>>> can check the code in csound6 GIT. The multicore code is in
>>>>>>>> Top/csound.c.
>>>>>>>>
>>>>>>>> Victor
>>>>>>>> On 5 Mar 2013, at 19:18, imaia wrote:
>>>>>>>>
>>>>>>>>> It's a great news about csound 6.
>>>>>>>>>
>>>>>>>>> Looking at 'Top/threads.c' in cs5,  I can see that everything is
>>>>>>>>> done
>>>>>>>>> with
>>>>>>>>> mutexes and condition variables.  I don't know if I'm looking at the
>>>>>>>>> right
>>>>>>>>> file, but the problem with mutexes is the context switch overhead,
>>>>>>>>> it
>>>>>>>>> wastes
>>>>>>>>> a lot of time to switch threads in this way.
>>>>>>>>>
>>>>>>>>> I've been working with  multi-thread implementations. In fine
>>>>>>>>> grained
>>>>>>>>> processing like synthesis I think spinlocks are better and faster
>>>>>>>>> for
>>>>>>>>> thread
>>>>>>>>> synchronization.
>>>>>>>>>
>>>>>>>>> Another good feature in cs6 could be "CPU affinity". In this way
>>>>>>>>> users
>>>>>>>>> could
>>>>>>>>> associate instruments to certain CPU set. It improves locality and
>>>>>>>>> cache
>>>>>>>>> utilisation leading better performance.
>>>>>>>>> System tasks like interrupts and syscalls(printf) could use a
>>>>>>>>> specific
>>>>>>>>> CPU.
>>>>>>>>> These features would be great in embedded environments.
>>>>>>>>>
>>>>>>>>> I'm tuning my implementation in this way, but it's a lot of work.
>>>>>>>>> I'm planning to write an article at the end to report my experience.
>>>>>>>>>
>>>>>>>>> Thanks.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> View this message in context:
>>>>>>>>>
>>>>>>>>> http://csound.1045644.n5.nabble.com/Design-for-a-multi-channel-Embedded-DSP-project-tp5720738p5720760.html
>>>>>>>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>>>
>>>>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>>>>> "unsubscribe
>>>>>>>>> csound"
>>>>>>>>>
>>>>>>>>
>>>>>>>> Dr Victor Lazzarini
>>>>>>>> Senior Lecturer
>>>>>>>> Dept. of Music
>>>>>>>> NUI Maynooth Ireland
>>>>>>>> tel.: +353 1 708 3545
>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>>
>>>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>>>> "unsubscribe
>>>>>>>> csound"
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Michael Gogins
>>>>>>> Irreducible Productions
>>>>>>> http://www.michael-gogins.com
>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> Everyone hates slow websites. So do we.
>>>>>>> Make your web apps faster with AppDynamics
>>>>>>> Download AppDynamics Lite for free today:
>>>>>>>
>>>>>>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>>
>>>>>>> Dr Victor Lazzarini
>>>>>>> Senior Lecturer
>>>>>>> Dept. of Music
>>>>>>> NUI Maynooth Ireland
>>>>>>> tel.: +353 1 708 3545
>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> Everyone hates slow websites. So do we.
>>>>>>> Make your web apps faster with AppDynamics
>>>>>>> Download AppDynamics Lite for free today:
>>>>>>> http://p.sf.net/sfu/appdyn_d2d_feb
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Everyone hates slow websites. So do we.
>>>>>> Make your web apps faster with AppDynamics
>>>>>> Download AppDynamics Lite for free today:
>>>>>>
>>>>>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> Dr Victor Lazzarini
>>>>> Senior Lecturer
>>>>> Dept. of Music
>>>>> NUI Maynooth Ireland
>>>>> tel.: +353 1 708 3545
>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Everyone hates slow websites. So do we.
>>>>> Make your web apps faster with AppDynamics
>>>>> Download AppDynamics Lite for free today:
>>>>> http://p.sf.net/sfu/appdyn_d2d_feb
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Michael Gogins
>>>> Irreducible Productions
>>>> http://www.michael-gogins.com
>>>> Michael dot Gogins at gmail dot com
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Everyone hates slow websites. So do we.
>>>> Make your web apps faster with AppDynamics
>>>> Download AppDynamics Lite for free today:
>>>>
>>>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> Dept. of Music
>>>> NUI Maynooth Ireland
>>>> tel.: +353 1 708 3545
>>>> Victor dot Lazzarini AT nuim dot ie
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Everyone hates slow websites. So do we.
>>>> Make your web apps faster with AppDynamics
>>>> Download AppDynamics Lite for free today:
>>>> http://p.sf.net/sfu/appdyn_d2d_feb
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>>
>>>
>>> --
>>> Michael Gogins
>>> Irreducible Productions
>>> http://www.michael-gogins.com
>>> Michael dot Gogins at gmail dot com
>>> ------------------------------------------------------------------------------
>>> Everyone hates slow websites. So do we.
>>> Make your web apps faster with AppDynamics
>>> Download AppDynamics Lite for free today:
>>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Everyone hates slow websites. So do we.
>>> Make your web apps faster with AppDynamics
>>> Download AppDynamics Lite for free today:
>>> http://p.sf.net/sfu/appdyn_d2d_feb
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
> endpoint security space. For insight on selecting the right partner to
> tackle endpoint security challenges, access the full report.
> http://p.sf.net/sfu/symantec-dev2dev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-03-05 22:51
FromVictor Lazzarini
SubjectRe: [Cs-dev] CPU difference csound5 vs csound6 [was Re: [Csnd] Re: Design for a multi-channel Embedded DSP project.]
global fsigs have always been supported.

Victor
On 5 Mar 2013, at 22:47, peiman khosravi wrote:

> I see, thanks for checking. Good to know it works there.
> 
> I suppose this particular csd can't really benefit from multicore and
> for the other stuff it would be easy to use one instrument per
> channel.
> 
> However, if global f-sigs were supported then we could break the jobs
> much more flexibly across different CPUs.
> 
> Thanks
> P
> 
> On 5 March 2013 22:38, Victor Lazzarini  wrote:
>> Also  a single instance of an instrument will not parallelise. Parallelism works at instrument instance level.
>> On 5 Mar 2013, at 21:26, peiman khosravi wrote:
>> 
>>> This could be related to the already reported bugs but I should
>>> probably mention it. With the current build that I have the previously
>>> attached csd doesn't reach and end with -j2 flag (but no errors).
>>> 
>>> Might be worth trying it on your system.
>>> 
>>> Best,
>>> Peiman
>>> 
>>> On 5 March 2013 21:13, Victor Lazzarini  wrote:
>>>> With CloudStrata.csd for instance, it takes 69 s single-thread and 44 s with
>>>> -j 2
>>>> 
>>>> On 5 Mar 2013, at 21:06, Michael Gogins wrote:
>>>> 
>>>> I will try this again. I probably had ksmps too low.
>>>> 
>>>> Thanks,
>>>> Mike
>>>> 
>>>> 
>>>> On Tue, Mar 5, 2013 at 3:46 PM, Victor Lazzarini 
>>>> wrote:
>>>>> 
>>>>> The OSX binaries Peiman is trying has all the debug switched on, so it is
>>>>> slower.  Turn all the debugging off and build release.
>>>>> Also there might be other gains to be had along the way, so comparing
>>>>> csound5 and csound6 is not going to be very meaningful at this point.
>>>>> This is an altogether different question to multicore testing.  In my
>>>>> oldish 2 core machine, I get definite speedups with -j2 on most things with
>>>>> ksmps over 64. Lower ksmps are not so good, but then my machine is not a
>>>>> good platform for multicore testing.
>>>>> 
>>>>> Victor
>>>>> 
>>>>> On 5 Mar 2013, at 20:37, Michael Gogins wrote:
>>>>> 
>>>>> How build the fastest version of Csound6 then?
>>>>> 
>>>>> 
>>>>> On Tue, Mar 5, 2013 at 3:23 PM, Victor Lazzarini
>>>>>  wrote:
>>>>>> 
>>>>>> No, because there is quite a bit of printing etc. and the version you
>>>>>> have there is a debug one as well (so you are not comparing like for like).
>>>>>> The release version should be
>>>>>> faster.
>>>>>> 
>>>>>> Victor
>>>>>> On 5 Mar 2013, at 20:17, peiman khosravi wrote:
>>>>>> 
>>>>>>> I just thought of comparing csound's performance between v5 and v6.
>>>>>>> With the attached csd I get:
>>>>>>> 
>>>>>>> Csound5---->Elapsed time at end of performance: real: 0.363s, CPU:
>>>>>>> 0.358s
>>>>>>> Csound6---->Elapsed time at end of performance: real: 0.724s, CPU:
>>>>>>> 0.712s
>>>>>>> 
>>>>>>> Strange, no?
>>>>>>> 
>>>>>>> Thanks
>>>>>>> Peiman
>>>>>>> 
>>>>>>> On 5 March 2013 20:08, Victor Lazzarini 
>>>>>>> wrote:
>>>>>>>> No, there is no special branch.
>>>>>>>> 
>>>>>>>> Victor
>>>>>>>> On 5 Mar 2013, at 19:55, Michael Gogins wrote:
>>>>>>>> 
>>>>>>>> I tried GIT head for Csound 6 a few days ago and didn't see speedups
>>>>>>>> for
>>>>>>>> multicore. Is it in a separate branch or is there some build
>>>>>>>> configuration I
>>>>>>>> need?
>>>>>>>> 
>>>>>>>> Regards,
>>>>>>>> Mike
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On Tue, Mar 5, 2013 at 2:24 PM, Victor Lazzarini
>>>>>>>> 
>>>>>>>> wrote:
>>>>>>>>> 
>>>>>>>>> The Csound 6 multicore implementation delivers substantial gains, and
>>>>>>>>> the
>>>>>>>>> way it has been designed, context-switching is not problematic. You
>>>>>>>>> can check the code in csound6 GIT. The multicore code is in
>>>>>>>>> Top/csound.c.
>>>>>>>>> 
>>>>>>>>> Victor
>>>>>>>>> On 5 Mar 2013, at 19:18, imaia wrote:
>>>>>>>>> 
>>>>>>>>>> It's a great news about csound 6.
>>>>>>>>>> 
>>>>>>>>>> Looking at 'Top/threads.c' in cs5,  I can see that everything is
>>>>>>>>>> done
>>>>>>>>>> with
>>>>>>>>>> mutexes and condition variables.  I don't know if I'm looking at the
>>>>>>>>>> right
>>>>>>>>>> file, but the problem with mutexes is the context switch overhead,
>>>>>>>>>> it
>>>>>>>>>> wastes
>>>>>>>>>> a lot of time to switch threads in this way.
>>>>>>>>>> 
>>>>>>>>>> I've been working with  multi-thread implementations. In fine
>>>>>>>>>> grained
>>>>>>>>>> processing like synthesis I think spinlocks are better and faster
>>>>>>>>>> for
>>>>>>>>>> thread
>>>>>>>>>> synchronization.
>>>>>>>>>> 
>>>>>>>>>> Another good feature in cs6 could be "CPU affinity". In this way
>>>>>>>>>> users
>>>>>>>>>> could
>>>>>>>>>> associate instruments to certain CPU set. It improves locality and
>>>>>>>>>> cache
>>>>>>>>>> utilisation leading better performance.
>>>>>>>>>> System tasks like interrupts and syscalls(printf) could use a
>>>>>>>>>> specific
>>>>>>>>>> CPU.
>>>>>>>>>> These features would be great in embedded environments.
>>>>>>>>>> 
>>>>>>>>>> I'm tuning my implementation in this way, but it's a lot of work.
>>>>>>>>>> I'm planning to write an article at the end to report my experience.
>>>>>>>>>> 
>>>>>>>>>> Thanks.
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> --
>>>>>>>>>> View this message in context:
>>>>>>>>>> 
>>>>>>>>>> http://csound.1045644.n5.nabble.com/Design-for-a-multi-channel-Embedded-DSP-project-tp5720738p5720760.html
>>>>>>>>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>>>> 
>>>>>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>>>>>> "unsubscribe
>>>>>>>>>> csound"
>>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>> Senior Lecturer
>>>>>>>>> Dept. of Music
>>>>>>>>> NUI Maynooth Ireland
>>>>>>>>> tel.: +353 1 708 3545
>>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>>> 
>>>>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>>>>> "unsubscribe
>>>>>>>>> csound"
>>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> --
>>>>>>>> Michael Gogins
>>>>>>>> Irreducible Productions
>>>>>>>> http://www.michael-gogins.com
>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>> 
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> Everyone hates slow websites. So do we.
>>>>>>>> Make your web apps faster with AppDynamics
>>>>>>>> Download AppDynamics Lite for free today:
>>>>>>>> 
>>>>>>>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>> 
>>>>>>>> 
>>>>>>>> Dr Victor Lazzarini
>>>>>>>> Senior Lecturer
>>>>>>>> Dept. of Music
>>>>>>>> NUI Maynooth Ireland
>>>>>>>> tel.: +353 1 708 3545
>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> Everyone hates slow websites. So do we.
>>>>>>>> Make your web apps faster with AppDynamics
>>>>>>>> Download AppDynamics Lite for free today:
>>>>>>>> http://p.sf.net/sfu/appdyn_d2d_feb
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>> 
>>>>>>> 
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> Everyone hates slow websites. So do we.
>>>>>>> Make your web apps faster with AppDynamics
>>>>>>> Download AppDynamics Lite for free today:
>>>>>>> 
>>>>>>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> 
>>>>>> Dr Victor Lazzarini
>>>>>> Senior Lecturer
>>>>>> Dept. of Music
>>>>>> NUI Maynooth Ireland
>>>>>> tel.: +353 1 708 3545
>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> ------------------------------------------------------------------------------
>>>>>> Everyone hates slow websites. So do we.
>>>>>> Make your web apps faster with AppDynamics
>>>>>> Download AppDynamics Lite for free today:
>>>>>> http://p.sf.net/sfu/appdyn_d2d_feb
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> --
>>>>> Michael Gogins
>>>>> Irreducible Productions
>>>>> http://www.michael-gogins.com
>>>>> Michael dot Gogins at gmail dot com
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> Everyone hates slow websites. So do we.
>>>>> Make your web apps faster with AppDynamics
>>>>> Download AppDynamics Lite for free today:
>>>>> 
>>>>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>> 
>>>>> 
>>>>> Dr Victor Lazzarini
>>>>> Senior Lecturer
>>>>> Dept. of Music
>>>>> NUI Maynooth Ireland
>>>>> tel.: +353 1 708 3545
>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> Everyone hates slow websites. So do we.
>>>>> Make your web apps faster with AppDynamics
>>>>> Download AppDynamics Lite for free today:
>>>>> http://p.sf.net/sfu/appdyn_d2d_feb
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>> 
>>>> 
>>>> 
>>>> 
>>>> --
>>>> Michael Gogins
>>>> Irreducible Productions
>>>> http://www.michael-gogins.com
>>>> Michael dot Gogins at gmail dot com
>>>> ------------------------------------------------------------------------------
>>>> Everyone hates slow websites. So do we.
>>>> Make your web apps faster with AppDynamics
>>>> Download AppDynamics Lite for free today:
>>>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>>> 
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> Dept. of Music
>>>> NUI Maynooth Ireland
>>>> tel.: +353 1 708 3545
>>>> Victor dot Lazzarini AT nuim dot ie
>>>> 
>>>> 
>>>> 
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> Everyone hates slow websites. So do we.
>>>> Make your web apps faster with AppDynamics
>>>> Download AppDynamics Lite for free today:
>>>> http://p.sf.net/sfu/appdyn_d2d_feb
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> Everyone hates slow websites. So do we.
>>> Make your web apps faster with AppDynamics
>>> Download AppDynamics Lite for free today:
>>> http://p.sf.net/sfu/appdyn_d2d_feb
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
>> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
>> endpoint security space. For insight on selecting the right partner to
>> tackle endpoint security challenges, access the full report.
>> http://p.sf.net/sfu/symantec-dev2dev
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
> endpoint security space. For insight on selecting the right partner to 
> tackle endpoint security challenges, access the full report. 
> http://p.sf.net/sfu/symantec-dev2dev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-03-05 23:13
Frompeiman khosravi
SubjectRe: [Cs-dev] CPU difference csound5 vs csound6 [was Re: [Csnd] Re: Design for a multi-channel Embedded DSP project.]
Ohh for some reason I thought they weren't! Great. This means I can
split my instruments that require more than one resynthesis into
several instruments. Should save some CPU.

Thanks!
Peiman

On 5 March 2013 22:51, Victor Lazzarini  wrote:
> global fsigs have always been supported.
>
> Victor
> On 5 Mar 2013, at 22:47, peiman khosravi wrote:
>
>> I see, thanks for checking. Good to know it works there.
>>
>> I suppose this particular csd can't really benefit from multicore and
>> for the other stuff it would be easy to use one instrument per
>> channel.
>>
>> However, if global f-sigs were supported then we could break the jobs
>> much more flexibly across different CPUs.
>>
>> Thanks
>> P
>>
>> On 5 March 2013 22:38, Victor Lazzarini  wrote:
>>> Also  a single instance of an instrument will not parallelise. Parallelism works at instrument instance level.
>>> On 5 Mar 2013, at 21:26, peiman khosravi wrote:
>>>
>>>> This could be related to the already reported bugs but I should
>>>> probably mention it. With the current build that I have the previously
>>>> attached csd doesn't reach and end with -j2 flag (but no errors).
>>>>
>>>> Might be worth trying it on your system.
>>>>
>>>> Best,
>>>> Peiman
>>>>
>>>> On 5 March 2013 21:13, Victor Lazzarini  wrote:
>>>>> With CloudStrata.csd for instance, it takes 69 s single-thread and 44 s with
>>>>> -j 2
>>>>>
>>>>> On 5 Mar 2013, at 21:06, Michael Gogins wrote:
>>>>>
>>>>> I will try this again. I probably had ksmps too low.
>>>>>
>>>>> Thanks,
>>>>> Mike
>>>>>
>>>>>
>>>>> On Tue, Mar 5, 2013 at 3:46 PM, Victor Lazzarini 
>>>>> wrote:
>>>>>>
>>>>>> The OSX binaries Peiman is trying has all the debug switched on, so it is
>>>>>> slower.  Turn all the debugging off and build release.
>>>>>> Also there might be other gains to be had along the way, so comparing
>>>>>> csound5 and csound6 is not going to be very meaningful at this point.
>>>>>> This is an altogether different question to multicore testing.  In my
>>>>>> oldish 2 core machine, I get definite speedups with -j2 on most things with
>>>>>> ksmps over 64. Lower ksmps are not so good, but then my machine is not a
>>>>>> good platform for multicore testing.
>>>>>>
>>>>>> Victor
>>>>>>
>>>>>> On 5 Mar 2013, at 20:37, Michael Gogins wrote:
>>>>>>
>>>>>> How build the fastest version of Csound6 then?
>>>>>>
>>>>>>
>>>>>> On Tue, Mar 5, 2013 at 3:23 PM, Victor Lazzarini
>>>>>>  wrote:
>>>>>>>
>>>>>>> No, because there is quite a bit of printing etc. and the version you
>>>>>>> have there is a debug one as well (so you are not comparing like for like).
>>>>>>> The release version should be
>>>>>>> faster.
>>>>>>>
>>>>>>> Victor
>>>>>>> On 5 Mar 2013, at 20:17, peiman khosravi wrote:
>>>>>>>
>>>>>>>> I just thought of comparing csound's performance between v5 and v6.
>>>>>>>> With the attached csd I get:
>>>>>>>>
>>>>>>>> Csound5---->Elapsed time at end of performance: real: 0.363s, CPU:
>>>>>>>> 0.358s
>>>>>>>> Csound6---->Elapsed time at end of performance: real: 0.724s, CPU:
>>>>>>>> 0.712s
>>>>>>>>
>>>>>>>> Strange, no?
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>> Peiman
>>>>>>>>
>>>>>>>> On 5 March 2013 20:08, Victor Lazzarini 
>>>>>>>> wrote:
>>>>>>>>> No, there is no special branch.
>>>>>>>>>
>>>>>>>>> Victor
>>>>>>>>> On 5 Mar 2013, at 19:55, Michael Gogins wrote:
>>>>>>>>>
>>>>>>>>> I tried GIT head for Csound 6 a few days ago and didn't see speedups
>>>>>>>>> for
>>>>>>>>> multicore. Is it in a separate branch or is there some build
>>>>>>>>> configuration I
>>>>>>>>> need?
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>> Mike
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Tue, Mar 5, 2013 at 2:24 PM, Victor Lazzarini
>>>>>>>>> 
>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>> The Csound 6 multicore implementation delivers substantial gains, and
>>>>>>>>>> the
>>>>>>>>>> way it has been designed, context-switching is not problematic. You
>>>>>>>>>> can check the code in csound6 GIT. The multicore code is in
>>>>>>>>>> Top/csound.c.
>>>>>>>>>>
>>>>>>>>>> Victor
>>>>>>>>>> On 5 Mar 2013, at 19:18, imaia wrote:
>>>>>>>>>>
>>>>>>>>>>> It's a great news about csound 6.
>>>>>>>>>>>
>>>>>>>>>>> Looking at 'Top/threads.c' in cs5,  I can see that everything is
>>>>>>>>>>> done
>>>>>>>>>>> with
>>>>>>>>>>> mutexes and condition variables.  I don't know if I'm looking at the
>>>>>>>>>>> right
>>>>>>>>>>> file, but the problem with mutexes is the context switch overhead,
>>>>>>>>>>> it
>>>>>>>>>>> wastes
>>>>>>>>>>> a lot of time to switch threads in this way.
>>>>>>>>>>>
>>>>>>>>>>> I've been working with  multi-thread implementations. In fine
>>>>>>>>>>> grained
>>>>>>>>>>> processing like synthesis I think spinlocks are better and faster
>>>>>>>>>>> for
>>>>>>>>>>> thread
>>>>>>>>>>> synchronization.
>>>>>>>>>>>
>>>>>>>>>>> Another good feature in cs6 could be "CPU affinity". In this way
>>>>>>>>>>> users
>>>>>>>>>>> could
>>>>>>>>>>> associate instruments to certain CPU set. It improves locality and
>>>>>>>>>>> cache
>>>>>>>>>>> utilisation leading better performance.
>>>>>>>>>>> System tasks like interrupts and syscalls(printf) could use a
>>>>>>>>>>> specific
>>>>>>>>>>> CPU.
>>>>>>>>>>> These features would be great in embedded environments.
>>>>>>>>>>>
>>>>>>>>>>> I'm tuning my implementation in this way, but it's a lot of work.
>>>>>>>>>>> I'm planning to write an article at the end to report my experience.
>>>>>>>>>>>
>>>>>>>>>>> Thanks.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> View this message in context:
>>>>>>>>>>>
>>>>>>>>>>> http://csound.1045644.n5.nabble.com/Design-for-a-multi-channel-Embedded-DSP-project-tp5720738p5720760.html
>>>>>>>>>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>>>>>
>>>>>>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>>>>>>> "unsubscribe
>>>>>>>>>>> csound"
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>> Senior Lecturer
>>>>>>>>>> Dept. of Music
>>>>>>>>>> NUI Maynooth Ireland
>>>>>>>>>> tel.: +353 1 708 3545
>>>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>>>>
>>>>>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>>>>>> "unsubscribe
>>>>>>>>>> csound"
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Michael Gogins
>>>>>>>>> Irreducible Productions
>>>>>>>>> http://www.michael-gogins.com
>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> Everyone hates slow websites. So do we.
>>>>>>>>> Make your web apps faster with AppDynamics
>>>>>>>>> Download AppDynamics Lite for free today:
>>>>>>>>>
>>>>>>>>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>> Senior Lecturer
>>>>>>>>> Dept. of Music
>>>>>>>>> NUI Maynooth Ireland
>>>>>>>>> tel.: +353 1 708 3545
>>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> Everyone hates slow websites. So do we.
>>>>>>>>> Make your web apps faster with AppDynamics
>>>>>>>>> Download AppDynamics Lite for free today:
>>>>>>>>> http://p.sf.net/sfu/appdyn_d2d_feb
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> Everyone hates slow websites. So do we.
>>>>>>>> Make your web apps faster with AppDynamics
>>>>>>>> Download AppDynamics Lite for free today:
>>>>>>>>
>>>>>>>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>> Dr Victor Lazzarini
>>>>>>> Senior Lecturer
>>>>>>> Dept. of Music
>>>>>>> NUI Maynooth Ireland
>>>>>>> tel.: +353 1 708 3545
>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> Everyone hates slow websites. So do we.
>>>>>>> Make your web apps faster with AppDynamics
>>>>>>> Download AppDynamics Lite for free today:
>>>>>>> http://p.sf.net/sfu/appdyn_d2d_feb
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Michael Gogins
>>>>>> Irreducible Productions
>>>>>> http://www.michael-gogins.com
>>>>>> Michael dot Gogins at gmail dot com
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Everyone hates slow websites. So do we.
>>>>>> Make your web apps faster with AppDynamics
>>>>>> Download AppDynamics Lite for free today:
>>>>>>
>>>>>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>>
>>>>>> Dr Victor Lazzarini
>>>>>> Senior Lecturer
>>>>>> Dept. of Music
>>>>>> NUI Maynooth Ireland
>>>>>> tel.: +353 1 708 3545
>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Everyone hates slow websites. So do we.
>>>>>> Make your web apps faster with AppDynamics
>>>>>> Download AppDynamics Lite for free today:
>>>>>> http://p.sf.net/sfu/appdyn_d2d_feb
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Michael Gogins
>>>>> Irreducible Productions
>>>>> http://www.michael-gogins.com
>>>>> Michael dot Gogins at gmail dot com
>>>>> ------------------------------------------------------------------------------
>>>>> Everyone hates slow websites. So do we.
>>>>> Make your web apps faster with AppDynamics
>>>>> Download AppDynamics Lite for free today:
>>>>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>>
>>>>> Dr Victor Lazzarini
>>>>> Senior Lecturer
>>>>> Dept. of Music
>>>>> NUI Maynooth Ireland
>>>>> tel.: +353 1 708 3545
>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Everyone hates slow websites. So do we.
>>>>> Make your web apps faster with AppDynamics
>>>>> Download AppDynamics Lite for free today:
>>>>> http://p.sf.net/sfu/appdyn_d2d_feb
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Everyone hates slow websites. So do we.
>>>> Make your web apps faster with AppDynamics
>>>> Download AppDynamics Lite for free today:
>>>> http://p.sf.net/sfu/appdyn_d2d_feb
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
>>> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
>>> endpoint security space. For insight on selecting the right partner to
>>> tackle endpoint security challenges, access the full report.
>>> http://p.sf.net/sfu/symantec-dev2dev
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
>> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
>> endpoint security space. For insight on selecting the right partner to
>> tackle endpoint security challenges, access the full report.
>> http://p.sf.net/sfu/symantec-dev2dev
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
> endpoint security space. For insight on selecting the right partner to
> tackle endpoint security challenges, access the full report.
> http://p.sf.net/sfu/symantec-dev2dev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-03-06 02:17
FromMichael Gogins
SubjectRe: [Cs-dev] CPU difference csound5 vs csound6 [was Re: [Csnd] Re: Design for a multi-channel Embedded DSP project.]
AttachmentsNone  None  
OK, I rebuilt for RelWithDebInfo andCloudStrata.csd with four threads runs in 60% the time of one. And xanadu.csd does even better, 40%.

Fantastic!

I will now be proceeding with other tests, some profiling, and trying to write instruments directly in C++.

Regards,
Mike


On Tue, Mar 5, 2013 at 4:13 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
With CloudStrata.csd for instance, it takes 69 s single-thread and 44 s with -j 2

On 5 Mar 2013, at 21:06, Michael Gogins wrote:

I will try this again. I probably had ksmps too low.

Thanks,
Mike


On Tue, Mar 5, 2013 at 3:46 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
The OSX binaries Peiman is trying has all the debug switched on, so it is slower.  Turn all the debugging off and build release.
Also there might be other gains to be had along the way, so comparing csound5 and csound6 is not going to be very meaningful at this point.
This is an altogether different question to multicore testing.  In my oldish 2 core machine, I get definite speedups with -j2 on most things with
ksmps over 64. Lower ksmps are not so good, but then my machine is not a good platform for multicore testing.

Victor

On 5 Mar 2013, at 20:37, Michael Gogins wrote:

How build the fastest version of Csound6 then?


On Tue, Mar 5, 2013 at 3:23 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
No, because there is quite a bit of printing etc. and the version you have there is a debug one as well (so you are not comparing like for like). The release version should be
faster.

Victor
On 5 Mar 2013, at 20:17, peiman khosravi wrote:

> I just thought of comparing csound's performance between v5 and v6.
> With the attached csd I get:
>
> Csound5---->Elapsed time at end of performance: real: 0.363s, CPU: 0.358s
> Csound6---->Elapsed time at end of performance: real: 0.724s, CPU: 0.712s
>
> Strange, no?
>
> Thanks
> Peiman
>
> On 5 March 2013 20:08, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
>> No, there is no special branch.
>>
>> Victor
>> On 5 Mar 2013, at 19:55, Michael Gogins wrote:
>>
>> I tried GIT head for Csound 6 a few days ago and didn't see speedups for
>> multicore. Is it in a separate branch or is there some build configuration I
>> need?
>>
>> Regards,
>> Mike
>>
>>
>> On Tue, Mar 5, 2013 at 2:24 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie>
>> wrote:
>>>
>>> The Csound 6 multicore implementation delivers substantial gains, and the
>>> way it has been designed, context-switching is not problematic. You
>>> can check the code in csound6 GIT. The multicore code is in Top/csound.c.
>>>
>>> Victor
>>> On 5 Mar 2013, at 19:18, imaia wrote:
>>>
>>>> It's a great news about csound 6.
>>>>
>>>> Looking at 'Top/threads.c' in cs5,  I can see that everything is done
>>>> with
>>>> mutexes and condition variables.  I don't know if I'm looking at the
>>>> right
>>>> file, but the problem with mutexes is the context switch overhead, it
>>>> wastes
>>>> a lot of time to switch threads in this way.
>>>>
>>>> I've been working with  multi-thread implementations. In fine grained
>>>> processing like synthesis I think spinlocks are better and faster for
>>>> thread
>>>> synchronization.
>>>>
>>>> Another good feature in cs6 could be "CPU affinity". In this way users
>>>> could
>>>> associate instruments to certain CPU set. It improves locality and cache
>>>> utilisation leading better performance.
>>>> System tasks like interrupts and syscalls(printf) could use a specific
>>>> CPU.
>>>> These features would be great in embedded environments.
>>>>
>>>> I'm tuning my implementation in this way, but it's a lot of work.
>>>> I'm planning to write an article at the end to report my experience.
>>>>
>>>> Thanks.
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://csound.1045644.n5.nabble.com/Design-for-a-multi-channel-Embedded-DSP-project-tp5720738p5720760.html
>>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>> csound"
>>>>
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
> <csp.csd>------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel




--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel




--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com