* do ada tasks run accross 16 cpu boxs? or stuck on 1 cpu?
@ 2013-05-07 20:16 johannes falcone
2013-05-07 20:29 ` Jeffrey Carter
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: johannes falcone @ 2013-05-07 20:16 UTC (permalink / raw)
How would an ada program use 16 core box?
Are the tasks green threads? meaning 1 cpu microthreads? or are they somehow green threads than can run on 16 cpus at same time? or are they like os threads and heavy?
I think they are the best combo green threads than can use N cpus by being farmed out to all avaialble cpu as wrokers cpus .... but not sure..
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: do ada tasks run accross 16 cpu boxs? or stuck on 1 cpu?
2013-05-07 20:16 do ada tasks run accross 16 cpu boxs? or stuck on 1 cpu? johannes falcone
@ 2013-05-07 20:29 ` Jeffrey Carter
2013-05-07 20:45 ` Ludovic Brenta
2013-05-08 13:13 ` john
2013-05-12 7:17 ` ldries46
2 siblings, 1 reply; 10+ messages in thread
From: Jeffrey Carter @ 2013-05-07 20:29 UTC (permalink / raw)
On 05/07/2013 01:16 PM, johannes falcone wrote:
> How would an ada program use 16 core box?
>
> Are the tasks green threads? meaning 1 cpu microthreads? or are they somehow
> green threads than can run on 16 cpus at same time? or are they like os
> threads and heavy?
>
> I think they are the best combo green threads than can use N cpus by being
> farmed out to all avaialble cpu as wrokers cpus .... but not sure..
This depends on the compiler. Most implement tasks so they use the available
processors, but some don't.
--
Jeff Carter
"We call your door-opening request a silly thing."
Monty Python & the Holy Grail
17
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: do ada tasks run accross 16 cpu boxs? or stuck on 1 cpu?
2013-05-07 20:29 ` Jeffrey Carter
@ 2013-05-07 20:45 ` Ludovic Brenta
2013-05-07 23:10 ` johannes falcone
0 siblings, 1 reply; 10+ messages in thread
From: Ludovic Brenta @ 2013-05-07 20:45 UTC (permalink / raw)
Jeffrey Carter writes on comp.lang.ada:
> On 05/07/2013 01:16 PM, johannes falcone wrote:
>> How would an ada program use 16 core box?
>>
>> Are the tasks green threads? meaning 1 cpu microthreads? or are they
>> somehow green threads than can run on 16 cpus at same time? or are
>> they like os threads and heavy?
>>
>> I think they are the best combo green threads than can use N cpus by
>> being farmed out to all avaialble cpu as wrokers cpus .... but not
>> sure..
>
> This depends on the compiler. Most implement tasks so they use the
> available processors, but some don't.
And on the underlying operating system. With GNAT on GNU/Linux, threads
are native and use all available CPU cores.
--
Ludovic Brenta.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: do ada tasks run accross 16 cpu boxs? or stuck on 1 cpu?
2013-05-07 20:45 ` Ludovic Brenta
@ 2013-05-07 23:10 ` johannes falcone
0 siblings, 0 replies; 10+ messages in thread
From: johannes falcone @ 2013-05-07 23:10 UTC (permalink / raw)
On Tuesday, May 7, 2013 1:45:19 PM UTC-7, Ludovic Brenta wrote:
> Jeffrey Carter writes on comp.lang.ada:
>
> > On 05/07/2013 01:16 PM, johannes falcone wrote:
>
> >> How would an ada program use 16 core box?
>
> >>
>
> >> Are the tasks green threads? meaning 1 cpu microthreads? or are they
>
> >> somehow green threads than can run on 16 cpus at same time? or are
>
> >> they like os threads and heavy?
>
> >>
>
> >> I think they are the best combo green threads than can use N cpus by
>
> >> being farmed out to all avaialble cpu as wrokers cpus .... but not
>
> >> sure..
>
> >
>
> > This depends on the compiler. Most implement tasks so they use the
>
> > available processors, but some don't.
>
>
>
> And on the underlying operating system. With GNAT on GNU/Linux, threads
>
> are native and use all available CPU cores.
>
>
>
> --
>
> Ludovic Brenta.
aw yeah!!!!
how about free or net bsd?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: do ada tasks run accross 16 cpu boxs? or stuck on 1 cpu?
2013-05-07 20:16 do ada tasks run accross 16 cpu boxs? or stuck on 1 cpu? johannes falcone
2013-05-07 20:29 ` Jeffrey Carter
@ 2013-05-08 13:13 ` john
2013-05-08 13:15 ` john
2013-05-12 7:17 ` ldries46
2 siblings, 1 reply; 10+ messages in thread
From: john @ 2013-05-08 13:13 UTC (permalink / raw)
AFAIK on GNAT they are OS threads. However, when implementing my own green threads (for a virtual machine) I've found out that assigning twice than the available tasks than CPU cores (or, available hyperthreads if HT is on) for some reason increased performance, so it seems worth experimenting rather than relying on theoretical assumptions.
Anyway, on my machine running GNAT 4.6 on Linux tasks easily max out all available cores at 100%.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: do ada tasks run accross 16 cpu boxs? or stuck on 1 cpu?
2013-05-08 13:13 ` john
@ 2013-05-08 13:15 ` john
0 siblings, 0 replies; 10+ messages in thread
From: john @ 2013-05-08 13:15 UTC (permalink / raw)
>I've found out that assigning twice than the available tasks than CPU cores
Sorry, that's supposed to read "assigning twice as many tasks than available CPU cores"...
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: do ada tasks run accross 16 cpu boxs? or stuck on 1 cpu?
2013-05-07 20:16 do ada tasks run accross 16 cpu boxs? or stuck on 1 cpu? johannes falcone
2013-05-07 20:29 ` Jeffrey Carter
2013-05-08 13:13 ` john
@ 2013-05-12 7:17 ` ldries46
2013-05-12 16:35 ` Dennis Lee Bieber
2 siblings, 1 reply; 10+ messages in thread
From: ldries46 @ 2013-05-12 7:17 UTC (permalink / raw)
I just have created my own program in which I originally did all ca;vulation
on one CPU. Now I created a part of the calculation in tasks running
paralel. On my four core systemI achieved a speed that exceded the original
speed by a factor of more than 3. This meant three cores were running the
intensive calculation part in the tasks and one the administration around
the proces. (all with GNAT ADA on windows 7). The same exe file ran even
faster on a 4 core with hyperthreading machine of which the clock speed was
lower than that of the first test. I did nothing extraordinary to achieve
this.
L. Dries
"johannes falcone" schreef in bericht
news:19811f9b-0fe9-449c-a082-4764a2bc66c4@googlegroups.com...
How would an ada program use 16 core box?
Are the tasks green threads? meaning 1 cpu microthreads? or are they somehow
green threads than can run on 16 cpus at same time? or are they like os
threads and heavy?
I think they are the best combo green threads than can use N cpus by being
farmed out to all avaialble cpu as wrokers cpus .... but not sure..
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: do ada tasks run accross 16 cpu boxs? or stuck on 1 cpu?
2013-05-12 7:17 ` ldries46
@ 2013-05-12 16:35 ` Dennis Lee Bieber
2013-05-21 19:41 ` Michael Erdmann
0 siblings, 1 reply; 10+ messages in thread
From: Dennis Lee Bieber @ 2013-05-12 16:35 UTC (permalink / raw)
On Sun, 12 May 2013 09:17:25 +0200, "ldries46" <bertus.dries@planet.nl>
declaimed the following in comp.lang.ada:
> I just have created my own program in which I originally did all ca;vulation
> on one CPU. Now I created a part of the calculation in tasks running
> paralel. On my four core systemI achieved a speed that exceded the original
> speed by a factor of more than 3. This meant three cores were running the
> intensive calculation part in the tasks and one the administration around
> the proces. (all with GNAT ADA on windows 7). The same exe file ran even
> faster on a 4 core with hyperthreading machine of which the clock speed was
> lower than that of the first test. I did nothing extraordinary to achieve
> this.
>
I suspect you had a number cruncher application in which the intense
code and most data all fit within each core's high-speed cache.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: do ada tasks run accross 16 cpu boxs? or stuck on 1 cpu?
2013-05-12 16:35 ` Dennis Lee Bieber
@ 2013-05-21 19:41 ` Michael Erdmann
2013-05-22 12:14 ` Marc C
0 siblings, 1 reply; 10+ messages in thread
From: Michael Erdmann @ 2013-05-21 19:41 UTC (permalink / raw)
On 05/12/2013 06:35 PM, Dennis Lee Bieber wrote:
> On Sun, 12 May 2013 09:17:25 +0200, "ldries46" <bertus.dries@planet.nl>
> declaimed the following in comp.lang.ada:
>
>> I just have created my own program in which I originally did all ca;vulation
>> on one CPU. Now I created a part of the calculation in tasks running
>> paralel. On my four core systemI achieved a speed that exceded the original
>> speed by a factor of more than 3. This meant three cores were running the
>> intensive calculation part in the tasks and one the administration around
>> the proces. (all with GNAT ADA on windows 7). The same exe file ran even
>> faster on a 4 core with hyperthreading machine of which the clock speed was
>> lower than that of the first test. I did nothing extraordinary to achieve
>> this.
>>
>
> I suspect you had a number cruncher application in which the intense
> code and most data all fit within each core's high-speed cache.
>
Try to bind your tasks to the CPU's and look at top (option 1). Then you
can observe what your cpu's are doing. May be you should have a look at
parafine :-)
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: do ada tasks run accross 16 cpu boxs? or stuck on 1 cpu?
2013-05-21 19:41 ` Michael Erdmann
@ 2013-05-22 12:14 ` Marc C
0 siblings, 0 replies; 10+ messages in thread
From: Marc C @ 2013-05-22 12:14 UTC (permalink / raw)
On Tuesday, May 21, 2013 2:41:20 PM UTC-5, Michael Erdmann wrote:
>
> Try to bind your tasks to the CPU's and look at top (option 1). Then you
> can observe what your cpu's are doing. May be you should have a look at
> parafine :-)
I think you meant Paraffin (http://sourceforge.net/projects/paraffin). And that is a *really* nice package.
Marc A. Criley
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-05-22 12:14 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-07 20:16 do ada tasks run accross 16 cpu boxs? or stuck on 1 cpu? johannes falcone
2013-05-07 20:29 ` Jeffrey Carter
2013-05-07 20:45 ` Ludovic Brenta
2013-05-07 23:10 ` johannes falcone
2013-05-08 13:13 ` john
2013-05-08 13:15 ` john
2013-05-12 7:17 ` ldries46
2013-05-12 16:35 ` Dennis Lee Bieber
2013-05-21 19:41 ` Michael Erdmann
2013-05-22 12:14 ` Marc C
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox