l ow u tilization
play

L OW U TILIZATION ! Servers operate at 10% - 40% utilization most of - PowerPoint PPT Presentation

P LIANT : L EVERAGING A PPROXIMATION TO I MPROVE R ESOURCE E FFICIENCY IN D ATACENTERS Neeraj Kulkarni, Feng Qi, Christina Delimitrou C LOUD C OMPUTING Resource Flexibility Users can elastically scale their resources on-demand Cost


  1. P LIANT : L EVERAGING A PPROXIMATION TO I MPROVE R ESOURCE E FFICIENCY IN D ATACENTERS Neeraj Kulkarni, Feng Qi, Christina Delimitrou

  2. C LOUD C OMPUTING § Resource Flexibility • Users can elastically scale their resources on-demand § Cost Efficiency • Sharing resources between multiple users and applications Latency-critical Batch applications Interactive apps QoS: throughput QoS: tail latency

  3. L OW U TILIZATION ! § Servers operate at 10% - 40% utilization most of the time Google cluster Twitter cluster § Major reasons: • Dedicated servers for interactive services • Resource over-provisioning – conservative reservations C. Delimitrou and C. Kozyrakis, “Quasar: Resource-Efficient and QoS-Aware Cluster Management,” in ASPLOS , 2014 L. Barroso et. al., “The Datacenter as a Computer: An Introduction to the Design of Warehouse-Scale Machines”, Second edition, 2013

  4. M ULTI - TENANCY § Scheduling multiple jobs on the same server • Increases server utilization and cost efficiency • Interference in shared resources … … CPU CPU CPU CPU App1 compute LLC memory App2 Memory network § Interference à Unpredictable performance § Difficult with interactive services

  5. P REVIOUS S OLUTIONS 1. Allow co-scheduling of apps that would not violate QoS • Bubble-Up, Bubble-Flux, Paragon and Quasar 2. Partition shared resources at runtime to reduce interference • Heracles, Ubik, Rubik 3. Reduce interference by throttling applications at runtime • Bubble-Flux, ReQoS, Protean Code § But … • Server utilization by disallowing certain co-locations • Performance of batch applications by treating them as low-priority

  6. B REAK UTILIZATION VS PERFORMANCE TRADE - OFF § Approximate computing applications • Tolerate some loss in output accuracy in return for » Improved performance, or » Same performance with reduced resources § Cloud workloads suitable for approximation • Performance can be more important than highest output quality § Co-locate approximate batch apps with interactive services • Meet performance for both applications at the cost of some inaccuracy

  7. L EVERAGING A PPROXIMATION 1. Mitigate interference: • Approximation can reduce # of requests to memory system & network • Approximation may not be always sufficient 2. Meet performance of approximate applications: • When approximation is not enough, employ resource partitioning: » Core relocation » Cache partitioning » Memory partitioning • Provide more resources to interactive service to meet its QoS • Approximation preserves the performance of batch applications

  8. A PPROXIMATION T ECHNIQUES § Loop perforation: Skip fraction of iterations • Fewer instructions & data accesses à exec time ⇩ & cache interference ⇩ ... § Synchronization elision: Barriers, locks elided double l_c = 1.0 float l_c = 1.0 • Threads don’t wait for sync à exec time ⇩ • Reduces memory accesses for acquiring locks for i = 1 to N: if i % 2 != 0: § Lower precision: Reduce precision of variables ..... ... • e.g., replace ‘double’ with ‘float’ or ‘int’ lock() g_c = g_c + l_c • Reduces memory traffic unlock() ... § Tiling: Compute 1 element & project onto neighbors BARRIER() ... • Fewer instructions & data accesses à exec time ⇩ & for i = 1 to M: A[i,2] = F(i,2) cache interference ⇩ for j = 1 to 3: A[i][j] = F(i,j) A[i][j] = A[i][2]

  9. A PPROXIMATION T RADE - OFFS § 100s of approximate variants § Pruning design space: • Hint-based: » Employ approximations hinted by ACCEPT* tool • Profiling-based (gprof): » Approximate in functions which contribute most to execution time Precise Approx v1 Approx v2 Approx v3 Approx v4 Approx v5 Approx v6 Approx v7 Approx v8 Precise Approx v1 Approx v2 Approx v3 Approx v4 Execution time norm. to precise Canneal Canneal 3.0 1.1 Precise 1.0 Tail Latency vs. QoS 2.5 Approx Selected 0.9 2.0 0.8 1.5 0.7 1.0 0.6 0.5 0.5 0.4 0 5 10 15 20 0.0 nginx memcached mongodb Inaccuracy (%) *ACCEPT: A Programmer-Guided Compiler Framework for Practical Approximate Computing, A. Sampson et. al.

  10. P LIANT : G OALS § High utilization • Co-schedule interactive services with approximate applications § High QoS • Satisfy QoS of all co-scheduled jobs at the cost of some accuracy loss § Minimize accuracy loss • Adjust approximation at runtime using slack in tail latency § Techniques used to reduce interference at runtime • Approximation • Resource relocation (core relocation, cache & memory partitioning)

  11. P LIANT - O VERVIEW • Continuously monitors • Dynamic recompilation the tail latency • Runtime allocation A Design Space QoS violation Exploration Performance Pliant Actuator monitor C B CPU CPU … requests LLC Main Memory CPU CPU CPU CPU Client … LLC interactive service Main Memory workload generator approximate computing app Server

  12. P LIANT – R UNTIME A LGORITHM § Meet QoS as fast as possible § Minimize accuracy loss using latency slack when QoS met QoS not met Batch: precise QoS not met ….. QoS not met Batch: Most-1 Approx Batch: Most Approx Batch: -1 core Latency slack > 10% Interactive: +1 core Batch: -1 core Interactive: +1 core ….. Latency slack > 10% Interference ⇩

  13. P LIANT – R UNTIME A LGORITHM § Multiple resources: cores, LLC and memory QoS not met Mem saturated? CPU saturated? Batch: Most Approx Cache thrashing? Batch: - 512 MB Batch: -1 LLC way Batch: -1 core Interactive: +512 MB Interactive: +1 LLC way Interactive: +1 core ….. ….. ….. Batch: - 512 MB Batch: -1 LLC way Batch: -1 core Interactive: +512 MB Interactive: +1 LLC way Interactive: +1 core

  14. P LIANT – V ARYING A PPROXIMATION D EGREE § Dynamic recompilation system • Aggregated approximate variants to construct tunable app • Linux signals for DynamoRIO to switch to an approximate variant • drwrap_replace() interface is used to replace functions » Coarse granularity à low overheads DynamoRIO App Binary Tunable App precise – signal0 precise - addr0 ... ... approx1 – signal1 approx1 - addr1 approx2 – signal2 approx2 - addr2 void f1_p(){ addr0 <f1_p> signal0 //f1_precise .... signal2 ..... ..... f1_a1 f0 } void f1_a1(){ addr1 <f1_a1> //f1_approx1 ..... f1_p f1_a2 ..... ..... f2 } Pliant runtime void f1_a2(){ addr2 <f1_a2> //f1_approx2 ..... ..... ..... } ... ...

  15. P LIANT – R UNTIME R ESOURCE A LLOCATION § All applications run in Docker containers § Core relocation • Docker update interface to allocate cores to each container § Cache allocation • Intel’s Cache Allocation Technology (CAT) to allocate cache ways § Memory capacity • Docker update interface to assign memory limits

  16. E XPERIMENTAL S ETUP § Interactive services: NGINX, memcached, MongoDB § 24 approximate computing applications: • PARSEC, SPLASH2x, MineBench, BioPerf benchmark suites § Systems • 44 physical core dual-socket platform, 128 GB RAM, 56 MB LLC/socket • Interactive services & approximate applications pinned to different physical cores of same socket § Baseline • Approximate application run in precise mode • Cores, cache, and memory shared fairly among the applications

  17. E VALUATION - D YNAMIC BEHAVIOR Batch: precise Precise Approx v1 Approx v2 Approx v3 Approx v4 Approx v5 Approx v6 Approx v7 Approx v8 Precise Approx v1 Approx v2 Approx v3 Approx v4 Batch: Most-1 Approx Batch: Most Approx Batch: -1 core Interactive: +1 core Batch: -1 core Interactive: +1 core Batch: -1 core Interactive: +1 core

  18. E VALUATION – D YNAMIC B EHAVIOR § Across interactive services • memcached and NGINX need to reclaim resources • In case of MongoDB, approximation is enough Precise Approx v1 Approx v2 Approx v3 Approx v4 Approx v5 Approx v6 Approx v7 Approx v8 Precise Approx v1 Approx v2 Approx v3 Approx v4

  19. E VALUATION – D YNAMIC B EHAVIOR § Across approximate applications • Bayesian shows bursty behavior - approximation usually enough • In case of SNP, no resource reclamation is required Precise Approx v1 Approx v2 Approx v3 Approx v4 Approx v5 Approx v6 Approx v7 Approx v8 § For all co-schedulings, show QoS is met for all apps at an accuracy loss of up to 5% (2.8% on average)

  20. S UMMARY - P LIANT § Approximation can break performance vs utilization trade-off § Many cloud applications can tolerate some loss of quality § Pliant – practical runtime system • Incremental approximation using dynamic recompilation • Dynamic allocation of shared resources § Achieves high utilization • Enabled co-scheduling of approximate batch apps with interactive services § Achieves high QoS • Meets QoS for all apps at cost of small accuracy loss (max 5%, avg 2.8%)

  21. Q UESTIONS ? § Approximation can break performance vs utilization trade-off § Many cloud applications can tolerate some loss of quality § Pliant – practical runtime system • Incremental approximation using dynamic recompilation • Dynamic allocation of shared resources § Achieves high utilization • Enabled co-scheduling of approximate batch apps with interactive services § Achieves high QoS • Meets QoS for all apps at cost of small accuracy loss (max 5%, avg 2.8%)

  22. T HANK Y OU ! Page 25 of 25

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend