|
|
Subscribe / Log in / New account

Scale Fail (part 1)

Scale Fail (part 1)

Posted May 8, 2011 1:27 UTC (Sun) by dps (guest, #5725)
Parent article: Scale Fail (part 1)

Using vasy numbers of threads is almost always a bad idea. Writing the program is much harder and the performance is likely to poor due to excessive amounts of context switching.

I am one of the very few people that has formally analysed parallel systems in anger. The difficultly of doing this indicates that it worth sacrificing some concurrency for a simpler design. Shared data is expensive to implement on distributed systems and good for writing 10+ pages of mathematics about a trivial 5 line program.

If a task can be broken down into pieces that are more or less independent then threads are probably a good idea: pools of I/O slaves are effective for some I/O intensive applications and data parallel programming works well for large numerical problems.

There are good mathematical reasons for a job list to work well, based on systems which fail at random intervals. This analysis assumes the cost of accessing the list is negligible compared to the jobs. If that is not true then it is an inappropriate design.

I think the idea that functional programming language are good training for parallel thinking is completely wrong. These languages, like ML, do not feature any control flow whatever. Anybody that attempts to analyse the evaluation strategy will be punished (and probably wrong).


to post comments

Scale Fail (part 1)

Posted May 11, 2011 14:27 UTC (Wed) by oct (subscriber, #71481) [Link]

> These languages, like ML, do not feature any control flow whatever.
Bullshit. All MLs have strict evaluation strategy by default.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds