Supercomputingin Plain English Distributed Multiprocessing.ppt
《Supercomputingin Plain English Distributed Multiprocessing.ppt》由会员分享,可在线阅读,更多相关《Supercomputingin Plain English Distributed Multiprocessing.ppt(65页珍藏版)》请在麦多课文档分享上搜索。
1、Supercomputing in Plain English Distributed Multiprocessing,Henry Neeman Director OU Supercomputing Center for Education & Research November 19 2004,Supercomputing in Plain English: Distributed Parallel OU Supercomputing Center for Education & Research,2,Outline,The Desert Islands Analogy Distribute
2、d Parallelism MPI,The Desert Islands Analogy,Supercomputing in Plain English: Distributed Parallel OU Supercomputing Center for Education & Research,4,An Island Hut,Imagine youre on a desert island in a little hut. Inside the hut is a desk and a chair. On the desk is:a phone; a pencil; a calculator;
3、 a piece of paper with instructions; a piece of paper with numbers.,Supercomputing in Plain English: Distributed Parallel OU Supercomputing Center for Education & Research,5,Instructions,The instructions are split into two kinds: Arithmetic/Logical: e.g., Add the 27th number to the 239th number Comp
4、are the 96th number to the 118th number to see whether they are equal Communication: e.g.,dial 555-0127 and leave a voicemail containing the 962nd number call your voicemail box and collect a voicemail from 555-0063 and put that number in the 715th slot,Supercomputing in Plain English: Distributed P
5、arallel OU Supercomputing Center for Education & Research,6,Is There Anybody Out There?,If youre in a hut on an island, you arent specifically aware of anyone else. Especially, you dont know whether anyone else is working on the same problem as you are, and you dont know whos at the other end of the
6、 phone line. All you know is what to do with the voicemails you get, and what phone numbers to send voicemails to.,Supercomputing in Plain English: Distributed Parallel OU Supercomputing Center for Education & Research,7,Someone Might Be Out There,Now suppose that Julie is on another island somewher
7、e, in the same kind of hut, with the same kind of equipment. Suppose that she has the same list of instructions as you, but a different set of numbers (both data and phone numbers). Like you, she doesnt know whether theres anyone else working on her problem.,Supercomputing in Plain English: Distribu
8、ted Parallel OU Supercomputing Center for Education & Research,8,Even More People Out There,Now suppose that Lloyd and Jerry are also in huts on islands. Suppose that each of the four has the exact same list of instructions, but different lists of numbers. And suppose that the phone numbers that peo
9、ple call are each others. That is, your instructions have you call Julie, Lloyd and Jerry, Julies has her call Lloyd, Jerry and you, and so on. Then you might all be working together on the same problem, even though youre not aware of it.,Supercomputing in Plain English: Distributed Parallel OU Supe
10、rcomputing Center for Education & Research,9,All Data Are Private,Notice that you cant see Julies or Lloyds or Jerrys numbers, nor can they see yours or each others. Thus, everyones numbers are private: theres no way for anyone to share numbers, except by leaving them in voicemails.,Supercomputing i
11、n Plain English: Distributed Parallel OU Supercomputing Center for Education & Research,10,Long Distance Calls: 2 Costs,When you make a long distance phone call, you typically have to pay two costs: Connection charge: the fixed cost of connecting your phone to someone elses, even if youre only conne
12、cted for a second Per-minute charge: the cost per minute of talking, once youre connected If the connection charge is large, then you want to make as few calls as possible.,Distributed Parallelism,Supercomputing in Plain English: Distributed Parallel OU Supercomputing Center for Education & Research
13、,12,Like Desert Islands,Distributed parallelism is very much like the Desert Islands analogy: processes are independent of each other. All data are private. Processes communicate by passing messages (like voicemails). The cost of passing a message is split into: latency (connection time) bandwidth (
14、time per byte),Supercomputing in Plain English: Distributed Parallel OU Supercomputing Center for Education & Research,13,Parallelism,Less fish ,More fish!,Parallelism means doing multiple things at the same time: you can get more work done in the same amount of time.,Supercomputing in Plain English
15、: Distributed Parallel OU Supercomputing Center for Education & Research,14,What Is Parallelism?,Parallelism is the use of multiple processing units either processors or parts of an individual processor to solve a problem, and in particular the use of multiple processing units operating concurrently
16、 on different parts of a problem. The different parts could be different tasks, or the same task on different pieces of the problems data.,Supercomputing in Plain English: Distributed Parallel OU Supercomputing Center for Education & Research,15,Kinds of Parallelism,Shared Memory Multithreading (our
17、 topic last time) Distributed Memory Multiprocessing (today) Hybrid Shared/Distributed,Supercomputing in Plain English: Distributed Parallel OU Supercomputing Center for Education & Research,16,Why Parallelism Is Good,The Trees: We like parallelism because, as the number of processing units working
18、on a problem grows, we can solve the same problem in less time. The Forest: We like parallelism because, as the number of processing units working on a problem grows, we can solve bigger problems.,Supercomputing in Plain English: Distributed Parallel OU Supercomputing Center for Education & Research
19、,17,Parallelism Jargon,Threads: execution sequences that share a single memory area (“address space”) Processes: execution sequences with their own independent, private memory areas and thus: Multithreading: parallelism via multiple threads Multiprocessing: parallelism via multiple processes As a ge
20、neral rule, Shared Memory Parallelism is concerned with threads, and Distributed Parallelism is concerned with processes.,Supercomputing in Plain English: Distributed Parallel OU Supercomputing Center for Education & Research,18,Jargon Alert,In principle: “shared memory parallelism” “multithreading”
21、 “distributed parallelism” “multiprocessing” In practice, these terms are often used interchangeably: Parallelism Concurrency (not as popular these days) Multithreading Multiprocessing Typically, you have to figure out what is meant based on the context.,Supercomputing in Plain English: Distributed
22、Parallel OU Supercomputing Center for Education & Research,19,Load Balancing,Suppose you have a distributed parallel code, but one process does 90% of the work, and all the other processes share 10% of the work. Is it a big win to run on 1000 processes?Now, suppose that each process gets exactly 1/N
23、p of the work, where Np is the number of processes. Now is it a big win to run on 1000 processes?,Supercomputing in Plain English: Distributed Parallel OU Supercomputing Center for Education & Research,20,Load Balancing,Load balancing means giving everyone roughly the same amount of work to do.,Supe
24、rcomputing in Plain English: Distributed Parallel OU Supercomputing Center for Education & Research,21,Load Balancing,Load balancing can be easy, if the problem splits up into chunks of roughly equal size, with one chunk per process. Or load balancing can be very hard.,Supercomputing in Plain Englis
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- SUPERCOMPUTINGINPLAINENGLISHDISTRIBUTEDMULTIPROCESSINGPPT

链接地址:http://www.mydoc123.com/p-389478.html