跨越 跨越 Web 2.0 Web 2.0 – – 新世代的高效 新世代的高效 能網路運算技術與應用伺服器 能網路運算技術與應用伺服器
洪士灝助理教授 洪士灝助理教授 PAS/CMT Lab PAS/CMT Lab 台灣大學資訊工程系
台灣大學資訊工程系, , 網路及多媒體研究所網路及多媒體研究所
ShihShih--Hao HungHao Hung
National Taiwan University National Taiwan University
What is Web 2.0?
What is Web 2.0?
zz Applications examples from Tim OApplications examples from Tim O’’ReillyReilly……
The Web As Platform The Web As Platform
zz
Platform for Platform for
¾¾ Search Engine (Google)Search Engine (Google)
¾¾ WeblogWeblog
¾¾ Web servicesWeb services
¾¾ WikipediaWikipedia
¾¾ ……
zz
To build a great platform To build a great platform
¾¾ Optimized SoftwareOptimized Software
¾¾ Optimized HardwareOptimized Hardware
Performance Performance
Processors Processors
¾
¾ General-General-purpose, x86purpose, x86
¾¾ High-High-perfperf., Power., Power
¾¾ Optimized, SPARCOptimized, SPARC
Systems Systems
¾¾ MultiprocessingMultiprocessing
¾¾ ScalabilityScalability
¾¾ EfficiencyEfficiency
Applications Applications
¾¾ ThroughputThroughput
¾¾ ScalabilityScalability
¾¾ SecuritySecurity
Performance Engineering Performance Engineering
zz Cost and performance are two major issues Cost and performance are two major issues in system designs
in system designs
zz HardwareHardware--software cosoftware co--design and codesign and co-- optimization are keys to a great system optimization are keys to a great system
design design
zz Who is doing it?Who is doing it?
¾¾ Sun, Apple, IBMSun, Apple, IBM
¾¾ Intel?, AMD?, Microsoft?, Linux?Intel?, AMD?, Microsoft?, Linux?
zz Who can do it for Web 1.0, 2.0 and beyond?Who can do it for Web 1.0, 2.0 and beyond?
Workload on Web Workload on Web
zz You see pages; Systems see:You see pages; Systems see:
¾¾ TCP/IPTCP/IP
¾¾ HTTP,FTP,HTTP,FTP,……
¾¾ SSL (HTTPS)SSL (HTTPS)
¾¾ XMLXML
¾¾ Application threadsApplication threads
zz How many tasks?How many tasks?
¾¾ No. of users scales with system performanceNo. of users scales with system performance
¾¾ No. of threads scales with no. of usersNo. of threads scales with no. of users
zz How to handle lots of threads?How to handle lots of threads?
Chip Chip - - Multithreading (CMT) Multithreading (CMT)
zz For lots of threads, better to have:For lots of threads, better to have:
¾¾ Support for simultaneous multithreadingSupport for simultaneous multithreading
2-2-way (Intel way (Intel HyperthreadingHyperthreading))
44--way (Sun way (Sun UltraSPARCUltraSPARC T1)T1)
¾¾ Support for multiprocessingSupport for multiprocessing
2-2-way (Intel Dualway (Intel Dual-core, core duo)-core, core duo)
8-8-way (Sun way (Sun UltraSPARCUltraSPARC T1)T1)
zz Sun can, Intel canSun can, Intel can’’tt…… why?why?
¾¾ Vision: T1 design started in 2001Vision: T1 design started in 2001
¾¾ System technologySystem technology
UltraSPARC
UltraSPARC T1 Processor T1 Processor
System Technology, 2005 System Technology, 2005
zz
Performance Performance
¾¾ PowerPower--efficient CMT architectureefficient CMT architecture
¾¾ Scalable OS & MiddlewareScalable OS & Middleware
¾¾ Optimized network stackOptimized network stack
¾¾ Performance Tools, e.g. Performance Tools, e.g. DTraceDTrace
zz
Security Security
¾¾ Crypto accelerationCrypto acceleration
¾¾ Optimized security infrastructureOptimized security infrastructure
¾¾ Application integrationApplication integration
10
Processor
Processor - - RSA Operations RSA Operations
N. Sun & P. Bhattacharya, Using the Cryptographic Accelerator of
System
System - - Solaris Crypto Framework Solaris Crypto Framework
12
Application
Application – – SPECweb2005 SPECweb2005
N. Sun & P. Bhattacharya, Using the Cryptographic Accelerator of
System Technology, Future System Technology, Future
zz PerformancePerformance
¾
¾ CMT architectureCMT architecture
¾¾ Scalable OS & MiddlewareScalable OS & Middleware
¾¾ Optimized network stackOptimized network stack
¾
¾ Performance ToolsPerformance Tools
zz SecuritySecurity
¾¾ Crypto accelerationCrypto acceleration
¾¾ Optimized security infrastructureOptimized security infrastructure
¾¾ Application integrationApplication integration
zz Application accelerationApplication acceleration
¾¾ XML, Java, etc.XML, Java, etc.
¾¾ Application modelingApplication modeling
Application Acceleration and Application Acceleration and
System
System - - level HW/SW Co level HW/SW Co - - design design
Conclusion Conclusion
zz As a platform, Web 2.0 enables a lot of As a platform, Web 2.0 enables a lot of
applications and expands the spectrum of applications and expands the spectrum of
system optimization.
system optimization.
zz System technology will play a more System technology will play a more
important role for Web 2.0 and beyond. CMT important role for Web 2.0 and beyond. CMT
and Sun
and Sun’’s T1 processor are prime examples.s T1 processor are prime examples.
zz Application modeling and HWApplication modeling and HW--SW SW codesigncodesign will be keys to system technology in the
will be keys to system technology in the future.
future.