Global Sources
EE Times AsiaWebsite
Stay in touch with EE Times Asia
eeBlogs-Article content Home?/?eeBlog?/?eeBlogs
Nickname:?Jack Ganssle???? Articles(193)???? Visits(279190)???? Comments(30)???? Votes(165)???? RSS
Jack Ganssle is a lecturer and consultant specializing in embedded systems' development issues. He has been a columnist with Embedded Systems Design for over 20 years.
Blog Archive
2016?-? Apr.,?? Mar.,?? Feb.,?? Jan.??
2015?-? Oct.,?? Sep.,?? Aug.,?? Jul.,?? Jun.,?? May.,?? Apr.,?? Mar.,?? Feb.,?? Jan.??
2014?-? Dec.,?? Nov.,?? Oct.,?? Sep.,?? Aug.,?? Jul.,?? Jun.,?? May.,?? Apr.,?? Mar.,?? Feb.,?? Jan.??
View All
Comment?|?Add to Favorites

Posted: 04:58:55 PM, 21/02/2012

Multicore and speed limits

? ?

In Finksburg, Maryland, Route 140 is heavily patrolled. Breaking the speed limit would likely lead to a fine.

But some speed limits can't be exceeded, no matter how much one wishes to. The speed of light comes to mind. As does the speed at which a teenager's brain matures.

Then there are multiprocessor limits. Amdahl's Law tells us that the max speedup achievable is:



where f is the percentage of a problem that cannot be parallelized, and n is the number of processors. In a system, where, say, only 50% of the problem can be executed in parallel, even with an infinite number of CPUs you can only halve the execution time by adding processors.

Gustafson's Law suggests that Amdahl is too conservative, and notes that sometimes problems scale faster in the parallel portion than in sequential. Google's Pagerank algorithm is one example. I suspect that in most embedded systems, though, Gustafson won't apply.

However, I believe Amdahl and Gustafson are optimistic in many cases, especially when working with symmetric multicore processors. These have two or more identical cores, each with their own L1 cache. They share L2 and a common memory bus. Executing out of L1 they will scream. But that cache is tiny 每 often only 32KB. Go to L2 每 or worse, main memory 每 and the brake lights come on. Up to dozens of wait states slow processing, and bus contention will occur if more than one CPU needs memory at the same time. This effect is pretty hard to model since it will be both non-deterministic and very problem-specific.

But Sandia National Labs researchers have come up with some interesting data showing that even on traditional parallel problems multicore's advantages diminish very quickly. Going from two to four cores nets some serious execution-time reduction. Double down, to 8 cores, and there's no gain. Each additional doubling slows the system down 每 by a lot. A 64 core solution slows the system by half an order of magnitude over one with just four.

Multicore as being pushed by the major semi vendors in some cases can offer some significant advantages, both in terms of speed and power. But I think the benefits are being oversold. Memory bandwidth is a hugely-limiting factor. Alternatives such as asymmetric multiprocessing are often a better solution, depending, of course, on the nature of the problem being addressed.

A new processor technology from Venray Technology is an interesting twist on the memory bandwidth problem. Instead of adding DRAM to a CPU, they add CPUs to DRAM. Small (20k transistors) processors are tightly integrated with memory.

A typical arrangement marries 4 of these cores with 64 MB of DRAM. That puts the CPU transistor count at 0.01% of the memory. Venray's web site is long on marketing-speak and short of tech details, but the idea is compelling.


Views(800) Comments(1)
Total [0] users voted ????
[Last update: 04:59:29 PM, 21/02/2012]


Visitor 02:17:24 PM, 04/08/2012
Comment: I would really peerfr a lesson were the video plays most of the time. This is mostley reading the screen, which is very small and they are so paraoid that you will copy it that they disable printing, The video really does not help much and i have been through half of the course. I personally would reccomend metal method with doug marks over this.
Have Your Say!

Bloggers Say

Got something to say? Why not share it with other engineers?

Just introduce yourself to us, we'll contact you and set you up. Yes, it's that simple!

See what engineers like you are posting on our pages.

Interviews & Viewpoints


Learn how senior executives are seeing the industry from interviews and contributed opinions.

Back to Top