Commercial Applications of Multicore at Ericsson Hans Nilsson



























- Slides: 27
Commercial Applications of Multi-core at Ericsson Hans Nilsson, Hans. R. Nilsson@ericsson. com
Ericsson § § 1876 Customers: mobile and fixed network operators Over 1, 000 networks in 140 countries 40 percent of all mobile calls are made through our systems § 65507 emplyees § 50% of Sixth ACM SIGPLAN Erlang Workshop (c) Ericsson 2007 2 Commercial Applications of Multi-core at Ericsson October 5, 2007
Mobile Phones are no fun anymore The original mobile phone, 1956 Sixth ACM SIGPLAN Erlang Workshop (c) Ericsson 2007 3 Commercial Applications of Multi-core at Ericsson October 5, 2007
A new communications architecture Multimedia Service network Network Transport network IMS and communication enablers Multi Access Edge Fixed access Mobile access Users Softswitch and IMS, first steps towards an all-IP network Sixth ACM SIGPLAN Erlang Workshop (c) Ericsson 2007 4 Commercial Applications of Multi-core at Ericsson October 5, 2007
Modern Telecom 3 G Phones IP-phones SIP, R TP 23, R H. 3 P SIP, RTP T SIP, R Communication clients on PCs TP UMTS P, PC M SIP, RTP ISU GS M Telecom network Lots of old phones Sixth ACM SIGPLAN Erlang Workshop ? (c) Ericsson 2007 5 Commercial Applications of Multi-core at Ericsson October 5, 2007
Modern Telecom (cont’d) Many; Variations Huge data volumes Billing Services e. g. Java-based frameworks SIP Diameter Complex FSMs High degree of concurrency Session handling H. 248 SIP RT P Media processing Wire-speed SIP ISUP RTP Network processors, DSPs, . . . Sixth ACM SIGPLAN Erlang Workshop (c) Ericsson 2007 7 Commercial Applications of Multi-core at Ericsson October 5, 2007
Different Execution Platforms Highly scalable processing clusters (C++/Erlang/3 PP) . . . CPU Compact ”system on a blade” DP Tight space and power budget NP DSPs Subracks of dedicated blades (e. g. ”Integrated Site”, or IS) http: //www. ericsson. com/ericsson/corpinfo/publications/review/2005_01/files/2005014. pdf Sixth ACM SIGPLAN Erlang Workshop (c) Ericsson 2007 8 Commercial Applications of Multi-core at Ericsson October 5, 2007
Different Execution Platforms Highly scalable processing clusters (C++/Erlang/3 PP) . . . CPU DP Multicore can help reduce footprint • E. g. through virtualization Compact ”system on a blade” • Software already written Tight for space and power budget DSPs distributed processing NP Subracks of dedicated blades (e. g. ”Integrated Site”, or IS) http: //www. ericsson. com/ericsson/corpinfo/publications/review/2005_01/files/2005014. pdf Sixth ACM SIGPLAN Erlang Workshop (c) Ericsson 2007 9 Commercial Applications of Multi-core at Ericsson October 5, 2007
Different Execution Platforms Highly scalable processing clusters (C++/Erlang/3 PP) . . . CPU Compact ”system on a blade” DP Tight space and power budget NP DSPs Multicore can help through • Packing more umph Subracks in one slotof dedicated blades (e. g. ”Integrated Site”, or IS) • Replacing different special-purpose processors, reducing cost and http: //www. ericsson. com/ericsson/corpinfo/publications/review/2005_01/files/2005014. pdf footprint Sixth ACM SIGPLAN Erlang Workshop (c) Ericsson 2007 10 Commercial Applications of Multi-core at Ericsson October 5, 2007
Different Execution Platforms CPU DP Highly scalable processing. . . can help through Multicore clusters (C++/Erlang/3 PP) • Making each ”blade system” more compact • Better performance/slot => better price/performance Compact ”system on a blade” spacetricky and power budget • (Chaining subracks is. Tight always DSPs – inter-subrack links a bottleneck) NP Subracks of dedicated blades (e. g. ”Integrated Site”, or IS) http: //www. ericsson. com/ericsson/corpinfo/publications/review/2005_01/files/2005014. pdf Sixth ACM SIGPLAN Erlang Workshop (c) Ericsson 2007 11 Commercial Applications of Multi-core at Ericsson October 5, 2007
Different levels of parallelism Virtual Container: OS OS OS Operating System: App App Thread Application: Difficult(? ) Thread: Sixth ACM SIGPLAN Erlang Workshop Code/Data Segm (c) Ericsson 2007 Code/Data Segm 12 Code/Data Segm Commercial Applications of Multi-core at Ericsson October 5, 2007
Our parallellism § Many (≥ 105) independent threads § Few supervisors, many workers (instances of the same code) § No matrix operations § No long loops with inherenet parallellism Sixth ACM SIGPLAN Erlang Workshop (c) Ericsson 2007 13 Commercial Applications of Multi-core at Ericsson October 5, 2007
Erlang program features § Erlang already modelled ”with annotations” in form of processes § Processes models real world activities – C(++) is not like that Sixth ACM SIGPLAN Erlang Workshop (c) Ericsson 2007 14 Commercial Applications of Multi-core at Ericsson October 5, 2007
Different levels of parallelism Virtual Container: OS OS OS Operating System: App Application: Thread: Code/Data Segm Sixth ACM SIGPLAN Erlang Workshop (c) Ericsson 2007 15 Commercial Applications of Multi-core at Ericsson Easy! Difficult(? ) October 5, 2007
What is left to do then? § Analysis of dataflow // – pattern matching…. § Bandwidth? § Memory bandwidth? Sixth ACM SIGPLAN Erlang Workshop (c) Ericsson 2007 16 Commercial Applications of Multi-core at Ericsson October 5, 2007
Case study: The Ericsson TGC Sixth ACM SIGPLAN Erlang Workshop (c) Ericsson 2007 17 Commercial Applications of Multi-core at Ericsson October 5, 2007
The TGC § Telephony Gateway Controller § Formerly known as – the Hybrid § reported (by customer!) to have ISP of 0. 99999 – the Mediation Logic § Runs on AXD 301 and IS AXE § Developed in Erlang § Multicore version shipped to customer TGC GW Sixth ACM SIGPLAN Erlang Workshop (c) Ericsson 2007 18 Commercial Applications of Multi-core at Ericsson GW GW October 5, 2007
The TGC (internal) § Process model – Servers – Workers AXE § ~100 servers § ~10 workers per call § 10, 000 workers is perfectly normal c-link half-call dispatcher half-call p-link GW Sixth ACM SIGPLAN Erlang Workshop (c) Ericsson 2007 19 decoder GW Commercial Applications of Multi-core at Ericsson October 5, 2007
Erlang on multicore Erlang programs are meant for distributed processing – – § § § Erlang processes do not share data Message passing is distribution transparent SMP prototype -97, serious implementation in -05. Mid -06 we ran a benchmark mimicking call handling (axdmark) with a prototype SMP emulator. Observed speedup/core: 0. 95 TGC released on multicore in Q 207 1 scheduler Time (s) § ”Big bang” benchmark on Sunfire T 2000 16 schedulers Simultaneous processes http: //www. franklinmint. fm/blog/archives/000792. html Sixth ACM SIGPLAN Erlang Workshop (c) Ericsson 2007 20 Commercial Applications of Multi-core at Ericsson October 5, 2007
TGC Results (top) Tasks: 50 total, 2 running, 48 sleeping, 0 stopped, 0 zombie Cpu 0 : 62. 5% us, 3. 7% sy, 0. 0% ni, 32. 4% id, 0. 0% wa, 0. 0% hi, 1. 3% si Cpu 1 : 36. 1% us, 2. 7% sy, 0. 0% ni, 60. 9% id, 0. 0% wa, 0. 0% hi, 0. 3% si Mem: 4092764 k total, 459352 k used, 3633412 k free, 8196 k buffers Swap: 0 k total, 0 k used, 0 k free, 215796 k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1975 homer 25 0 2295 m 192 m 2144 S 99. 9 4. 8 179: 40. 46 beam. smp 1 root 16 0 664 244 208 S 0. 0 0: 01. 50 init 2 root RT 0 0 S 0. 0 0: 00. 02 migration/0 3 root 34 19 0 0 0 S 0. 0 0: 00. 00 ksoftirqd/0 4 root RT 0 0 S 0. 0 0: 00. 01 migration/1 5 root 34 19 0 0 0 S 0. 0 0: 00. 00 ksoftirqd/1 Sixth ACM SIGPLAN Erlang Workshop (c) Ericsson 2007 21 Commercial Applications of Multi-core at Ericsson October 5, 2007
TGC Results (dtop) ppb 1_bs 13 -R 3 A@blade_ size 2345(131 M, cpu% 107, procs 10371, runq 0 15: 53 memory[k. B]: proc 58223, atom 1768, bin 170, code 29772, ets 39215 pid name current msgq mem cpu <0. 5872. 491 prf. Targ (prf. Prc: pinf/2) 0 2036 22 <0. 18323. 47 (erlang: apply/2) (gcp. Serv: recv 1/3) 0 17 10 <0. 18436. 47 (erlang: apply/2) (gcp. Serv: recv 1/3) 0 24 5 <0. 1813. 0> sys. Proc (gen_server: loop/6) 0 981 2 <0. 27384. 47 (pth. Tcp. Net. Handler: init/1) (gen_server: loop/6) 0 587 1 <0. 18350. 47 (erlang: apply/2) (gcp. Transport. Proxy: 0 8 1 <0. 1935. 0> ccpc. Server_n (gen_server: loop/6) 0 587 0 <0. 18526. 47 (erlang: apply/2) (gcp. Transport. Proxy: 0 6 0 <0. 1923. 0> sbm (gen_server: loop/6) 0 1719 0 <0. 3603. 0> (erlang: apply/2) (gcp. Serv: recv 1/3) 0 5 0 Sixth ACM SIGPLAN Erlang Workshop (c) Ericsson 2007 22 Commercial Applications of Multi-core at Ericsson October 5, 2007
TGC results (performance) Traffic scenario POTS-POTS /AGW ISUP-ISUP /Inter MGW ISUP-ISUP /Intra MGW IS/GCP IS/GEP 1 slot/board Dual core One core running 2 slots/board Dual core Two cores running 2 slots/board X call/sec 2. 3 X call/sec 3. 6 X call/sec One core used OTP R 11_3 beta+patches 7. 7 X call/sec 13 X call/sec One core used OTP R 11_3 beta+patches 5. 5 X call/sec Sixth ACM SIGPLAN Erlang Workshop (c) Ericsson 2007 4. 3 X call/sec 26 X call/sec 23 AXD CPB 5 AXD CPB 6 0. 4 X call/sec 2. 1 X call/sec 1. 55 X call/sec 7. 6 X call/sec 3. 17 X call/sec 14 X call/sec Commercial Applications of Multi-core at Ericsson October 5, 2007
TGC Experience § § § Porting effort: negligible (for the application) Porting effort: modest (for the platform) Architecture dependency: low (for the application) Results: excellent Future: bright § “Funky languages” (Hagersten) can sometimes save the day Sixth ACM SIGPLAN Erlang Workshop (c) Ericsson 2007 24 Commercial Applications of Multi-core at Ericsson October 5, 2007
Sixth ACM SIGPLAN Erlang Workshop (c) Ericsson 2007 25 Commercial Applications of Multi-core at Ericsson October 5, 2007
Conclusion § Still need much more research on low-level parallellism like pattern matching § Commercial multi-core applications is not the future. – It is NOW (iff you are an Erlang adict) Sixth ACM SIGPLAN Erlang Workshop (c) Ericsson 2007 26 Commercial Applications of Multi-core at Ericsson October 5, 2007
Questions? Sixth ACM SIGPLAN Erlang Workshop (c) Ericsson 2007 27 Commercial Applications of Multi-core at Ericsson October 5, 2007
Sixth ACM SIGPLAN Erlang Workshop (c) Ericsson 2007 28 Commercial Applications of Multi-core at Ericsson October 5, 2007



























