Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
research-article

The Online Pause and Resume Problem: Optimal Algorithms and An Application to Carbon-Aware Load Shifting

Published: 12 December 2023 Publication History
  • Get Citation Alerts
  • Abstract

    We introduce and study the online pause and resume problem. In this problem, a player attempts to find the k lowest (alternatively, highest) prices in a sequence of fixed length T, which is revealed sequentially. At each time step, the player is presented with a price and decides whether to accept or reject it. The player incurs aswitching cost whenever their decision changes in consecutive time steps, i.e., whenever they pause or resume purchasing. This online problem is motivated by the goal of carbon-aware load shifting, where a workload may be paused during periods of high carbon intensity and resumed during periods of low carbon intensity and incurs a cost when saving or restoring its state. It has strong connections to existing problems studied in the literature on online optimization, though it introduces unique technical challenges that prevent the direct application of existing algorithms. Extending prior work on threshold-based algorithms, we introducedouble-threshold algorithms for both the minimization and maximization variants of this problem. We further show that the competitive ratios achieved by these algorithms are the best achievable by any deterministic online algorithm. Finally, we empirically validate our proposed algorithm through case studies on the application of carbon-aware load shifting using real carbon trace data and existing baseline algorithms.

    References

    [1]
    Bilge Acun, Benjamin Lee, Fiodar Kazhamiaka, Kiwan Maeng, Udit Gupta, Manoj Chakkaravarthy, David Brooks, and Carole-Jean Wu. 2023. Carbon Explorer: A Holistic Framework for Designing Carbon Aware Datacenters. In Proceedings of the 28th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2 (Vancouver, BC, Canada) (ASPLOS 2023). Association for Computing Machinery, New York, NY, USA, 118--132. https://doi.org/10.1145/3575693.3575754
    [2]
    Pradeep Ambati, Noman Bashir, David Irwin, Mohammad Hajiesmaili, and Prashant Shenoy. 2020. Hedge Your Bets: Optimizing Long-term Cloud Costs by Mixing VM Purchasing Options. In 2020 IEEE International Conference on Cloud Engineering (IC2E). 105--115. https://doi.org/10.1109/IC2E48712.2020.00018
    [3]
    Spyros Angelopoulos, Christoph Dürr, Shendan Jin, Shahin Kamali, and Marc Renault. 2022. Online Computation with Untrusted Advice. arxiv: 1905.05655 [cs.DS]
    [4]
    Antonios Antoniadis, Christian Coester, Marek Elias, Adam Polak, and Bertrand Simon. 2020. Online Metric Algorithms with Untrusted Predictions. In Proceedings of the 37th International Conference on Machine Learning. PMLR, 345--355.
    [5]
    Naser M. Asghari, M. Mandjes, and Anwar Walid. 2014. Energy-efficient scheduling in multi-core servers. Computer Networks, Vol. 59 (2014), 33--43. https://doi.org/10.1016/j.bjp.2013.12.009
    [6]
    Noman Bashir, Tian Guo, Mohammad Hajiesmaili, David Irwin, Prashant Shenoy, Ramesh Sitaraman, Abel Souza, and Adam Wierman. 2021. Enabling Sustainable Clouds: The Case for Virtualizing the Energy System. In Proceedings of the ACM Symposium on Cloud Computing (Seattle, WA, USA) (SoCC '21). Association for Computing Machinery, New York, NY, USA, 350--358. https://doi.org/10.1145/3472883.3487009
    [7]
    Allan Borodin, Nathan Linial, and Michael E. Saks. 1992. An Optimal On-Line Algorithm for Metrical Task System. J. ACM, Vol. 39, 4 (Oct 1992), 745--763. https://doi.org/10.1145/146585.146588
    [8]
    Sébastien Bubeck, Christian Coester, and Yuval Rabani. 2023. The Randomized $k$-Server Conjecture Is False !. In Proceedings of the 55th Annual ACM Symposium on Theory of Computing (STOC 2023) (Orlando, FL, USA) (STOC 2023). Association for Computing Machinery, New York, NY, USA, 581--594. https://doi.org/10.1145/3564246.3585132
    [9]
    Sébastien Bubeck, Michael B. Cohen, James R. Lee, and Yin Tat Lee. 2021. Metrical Task Systems on Trees via Mirror Descent and Unfair Gluing. SIAM J. Comput., Vol. 50, 3 (Jan. 2021), 909--923. https://doi.org/10.1137/19M1237879
    [10]
    Sébastien Bubeck, Bo'az Klartag, Yin Tat Lee, Yuanzhi Li, and Mark Sellke. 2019. Chasing Nested Convex Bodies Nearly Optimally. In Proceedings of the 2020 ACM-SIAM Symposium on Discrete Algorithms (SODA ). Society for Industrial and Applied Mathematics, 1496--1508. https://doi.org/10.1137/1.9781611975994.91
    [11]
    NiangJun Chen, Gautam Goel, and Adam Wierman. 2018. Smoothed Online Convex Optimization in High Dimensions via Online Balanced Descent. In Proceedings of the 31st Conference On Learning Theory. PMLR, 1574--1594.
    [12]
    Nicolas Christianson, Tinashe Handina, and Adam Wierman. 2022. Chasing Convex Bodies and Functions with Black-Box Advice. In Proceedings of the 35th Conference on Learning Theory, Vol. 178. PMLR, 867--908.
    [13]
    Nicolas Christianson, Junxuan Shen, and Adam Wierman. 2023. Optimal robustness-consistency tradeoffs for learning-augmented metrical task systems. In International Conference on Artificial Intelligence and Statistics.
    [14]
    Peter Damaschke, Phuong Hoai Ha, and Philippas Tsigas. 2007. Online Search with Time-Varying Price Bounds. Algorithmica, Vol. 55, 4 (Dec. 2007), 619--642. https://doi.org/10.1007/s00453-007--9156--9
    [15]
    R. El-Yaniv, A. Fiat, R. M. Karp, and G. Turpin. 2001. Optimal Search and One-Way Trading Online Algorithms. Algorithmica, Vol. 30, 1 (May 2001), 101--139. https://doi.org/10.1007/s00453-001-0003-0
    [16]
    National Center for Biotechnology Information. 2022. Basic Local Alignment Search Tool (BLAST). https://blast.ncbi.nlm.nih.gov.
    [17]
    Joel Friedman and Nathan Linial. 1993. On convex body chasing. Discrete & Computational Geometry, Vol. 9, 3 (March 1993), 293--321. https://doi.org/10.1007/bf02189324
    [18]
    Anshul Gandhi, Mor Harchol-Balter, and Ivo Adan. 2010. Server farms with setup costs. Performance Evaluation, Vol. 67, 11 (2010), 1123--1138. https://doi.org/10.1016/j.peva.2010.07.004 Performance 2010.
    [19]
    Vani Gupta, Prashant Shenoy, and Ramesh K Sitaraman. 2019. Combining renewable solar and open air cooling for greening internet-scale distributed networks. In Proceedings of the Tenth ACM International Conference on Future Energy Systems. 303--314.
    [20]
    Walid A. Hanafy, Roozbeh Bostandoost, Noman Bashir, David Irwin, Mohammad Hajiesmaili, and Prashant Shenoy. 2023. The War of the Efficiencies: Understanding the Tension between Carbon and Energy Optimization. In Proceedings of the 2nd Workshop on Sustainable Computer Systems. ACM. https://doi.org/10.1145/3604930.3605709
    [21]
    Abdolhossein Hoorfar and Mehdi Hassani. 2008. Inequalities on the Lambert W function and hyperpower function. Journal of Inequalities in Pure and Applied Mathematics, Vol. 9, 51 (Jan. 2008). Issue 2.
    [22]
    M. Yu. Kitaev and Richard F. Serfozo. 1999. M/M/1 Queues with Switching Costs and Hysteretic Optimal Control. Operations Research, Vol. 47, 2 (1999), 310--312. https://doi.org/10.1287/opre.47.2.310
    [23]
    Russell Lee, Bo Sun, John C. S. Lui, and Mohammad Hajiesmaili. 2022. Pareto-Optimal Learning-Augmented Algorithms for Online k-Search Problems. arxiv: 2211.06567 https://arxiv.org/abs/2211.06567
    [24]
    Pengfei Li, Jianyi Yang, and Shaolei Ren. 2022. Expert-Calibrated Learning for Online Optimization with Switching Costs. Proceedings of the ACM on Measurement and Analysis of Computing Systems, Vol. 6, 2 (May 2022), 1--35. https://doi.org/10.1145/3530894
    [25]
    Minghong Lin, Zhenhua Liu, Adam Wierman, and Lachlan L. H. Andrew. 2012a. Online algorithms for geographical load balancing. In 2012 International Green Computing Conference (IGCC). IEEE. https://doi.org/10.1109/igcc.2012.6322266
    [26]
    Minghong Lin, Adam Wierman, Lachlan LH Andrew, and Eno Thereska. 2012b. Dynamic right-sizing for power-proportional data centers. IEEE/ACM Transactions on Networking, Vol. 21, 5 (2012), 1378--1391.
    [27]
    Zhenhua Liu, Yuan Chen, Cullen Bash, Adam Wierman, Daniel Gmach, Zhikui Wang, Manish Marwah, and Chris Hyser. 2012. Renewable and cooling aware workload management for sustainable data centers. In Proceedings of the 12th ACM SIGMETRICS/PERFORMANCE joint international conference on Measurement and Modeling of Computer Systems. 175--186.
    [28]
    Zhenhua Liu, Minghong Lin, Adam Wierman, Steven H Low, and Lachlan LH Andrew. 2011. Greening geographical load balancing. ACM SIGMETRICS Performance Evaluation Review, Vol. 39, 1 (2011), 193--204.
    [29]
    Julian Lorenz, Konstantinos Panagiotou, and Angelika Steger. 2008. Optimal Algorithms for k-Search with Application in Option Pricing. Algorithmica, Vol. 55, 2 (Aug. 2008), 311--328. https://doi.org/10.1007/s00453-008--9217--8
    [30]
    Thodoris Lykouris and Sergei Vassilvtiskii. 2018. Competitive Caching with Machine Learned Advice. In Proceedings of the 35th International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 80), Jennifer Dy and Andreas Krause (Eds.). PMLR, 3296--3305. https://proceedings.mlr.press/v80/lykouris18a.html
    [31]
    Diptyaroop Maji, Ramesh K. Sitaraman, and Prashant Shenoy. 2022. DACF: Day-Ahead Carbon Intensity Forecasting of Power Grids Using Machine Learning. In Proceedings of the Thirteenth ACM International Conference on Future Energy Systems (Virtual Event) (e-Energy '22). Association for Computing Machinery, New York, NY, USA, 188--192. https://doi.org/10.1145/3538637.3538849
    [32]
    Electricity Maps. 2020. Electricity Map. https://www.electricitymap.org/map.
    [33]
    Isi Mitrani. 2011. Managing performance and power consumption in a server farm. Annals of Operations Research, Vol. 202, 1 (July 2011), 121--134. https://doi.org/10.1007/s10479-011-0932--1
    [34]
    Esther Mohr, Iftikhar Ahmad, and Günter Schmidt. 2014. Online algorithms for conversion problems: a survey. Surveys in Operations Research and Management Science, Vol. 19, 2 (2014), 87--104.
    [35]
    Manish Purohit, Zoya Svitkina, and Ravi Kumar. 2018. Improving Online Algorithms via ML Predictions. In Advances in Neural Information Processing Systems, S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett (Eds.), Vol. 31. Curran Associates, Inc.
    [36]
    Ana Radovanovic, Ross Koningstein, Ian Schneider, Bokan Chen, Alexandre Duarte, Binz Roy, Diyue Xiao, Maya Haridasan, Patrick Hung, Nick Care, et al. 2022. Carbon-Aware Computing for Datacenters. IEEE Transactions on Power Systems (2022).
    [37]
    Samyam Rajbhandari, Olatunji Ruwase, Jeff Rasley, Shaden Smith, and Yuxiong He. 2021. ZeRO-Infinity: Breaking the GPU Memory Wall for Extreme Scale Deep Learning. In Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis. 1--14.
    [38]
    Daan Rutten, Nicolas Christianson, Debankur Mukherjee, and Adam Wierman. 2022. Smoothed Online Optimization with Unreliable Predictions. https://doi.org/10.48550/arXiv.2202.03519
    [39]
    Mark Sellke. 2020. Chasing Convex Bodies Optimally. In Proceedings of the Thirty-First Annual ACM-SIAM Symposium on Discrete Algorithms (SODA '20). Society for Industrial and Applied Mathematics, USA, 1509--1518.
    [40]
    Supreeth Shastri, Amr Rizk, and David Irwin. 2016. Transient guarantees: Maximizing the value of idle cloud capacity. In SC'16: Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis. IEEE, 992--1002.
    [41]
    Shaden Smith, Mostofa Patwary, Brandon Norick, Patrick LeGresley, Samyam Rajbhandari, Jared Casper, Zhun Liu, Shrimai Prabhumoye, George Zerveas, Vijay Korthikanti, et al. 2022. Using DeepSpeed and Megatron to Train Megatron-Turing NLG 530B, a Large-Scale Generative Language Model. arXiv preprint arXiv:2201.11990 (2022).
    [42]
    Abel Souza, Noman Bashir, Jorge Murillo, Walid Hanafy, Qianlin Liang, David Irwin, and Prashant Shenoy. 2023. Ecovisor: A Virtual Energy System for Carbon-Efficient Applications. In Proceedings of the 28th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2 (Vancouver, BC, Canada) (ASPLOS 2023). Association for Computing Machinery, New York, NY, USA, 252--265. https://doi.org/10.1145/3575693.3575709
    [43]
    Seán M. Stewart. 2009. On Certain Inequalities Involving the Lambert W function. Journal of Inequalities in Pure and Applied Mathematics, Vol. 10, 96 (Nov. 2009). Issue 4.
    [44]
    Bo Sun, Russell Lee, Mohammad Hajiesmaili, Adam Wierman, and Danny Tsang. 2021. Pareto-Optimal Learning-Augmented Algorithms for Online Conversion Problems. In Advances in Neural Information Processing Systems, M. Ranzato, A. Beygelzimer, Y. Dauphin, P.S. Liang, and J. Wortman Vaughan (Eds.), Vol. 34. Curran Associates, Inc., 10339--10350. https://proceedings.neurips.cc/paper_files/paper/2021/file/55a988dfb00a914717b3000a3374694c-Paper.pdf
    [45]
    Bo Sun, Lin Yang, Mohammad Hajiesmaili, Adam Wierman, John CS Lui, Don Towsley, and Danny HK Tsang. 2022. The Online Knapsack Problem with Departures. Proceedings of the ACM on Measurement and Analysis of Computing Systems, Vol. 6, 3 (2022), 1--32.
    [46]
    Bo Sun, Ali Zeynali, Tongxin Li, Mohammad Hajiesmaili, Adam Wierman, and Danny HK Tsang. 2020. Competitive Algorithms for the Online Multiple Knapsack Problem With Application to Electric Vehicle Charging. Proceedings of the ACM on Measurement and Analysis of Computing Systems, Vol. 4, 3 (2020), 1--32.
    [47]
    Philipp Wiesner, Ilja Behnke, Dominik Scheinert, Kordian Gontarska, and Lauritz Thamsen. 2021. Let's Wait A While: How Temporal Workload Shifting Can Reduce Carbon Emissions in the Cloud. In Proceedings of the 22nd International Middleware Conference. Association for Computing Machinery, New York, NY, USA, 260--272.
    [48]
    Guangxuan Xiao, Ji Lin, Mickael Seznec, Hao Wu, Julien Demouth, and Song Han. 2023. SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models. In International Conference on Machine Learning (Proceedings of Machine Learning Research). PMLR, PMLR, Honolulu, HI, USA, 38087--38099.
    [49]
    Lin Yang, Mohammad H. Hajiesmaili, Ramesh Sitaraman, Adam Wierman, Enrique Mallada, and Wing S. Wong. 2020. Online Linear Optimization with Inventory Management Constraints. Proc. ACM Meas. Anal. Comput. Syst., Vol. 4, 1, Article 16 (may 2020), 29 pages. https://doi.org/10.1145/3379482
    [50]
    Lin Yang, Ali Zeynali, Mohammad H. Hajiesmaili, Ramesh K. Sitaraman, and Don Towsley. 2021. Competitive Algorithms for Online Multidimensional Knapsack Problems. Proceedings of the ACM on Measurement and Analysis of Computing Systems, Vol. 5, 3, Article 30 (Dec 2021), 30 pages.
    [51]
    Zexi Yang, Meng-Hsi Chen, Zhisheng Niu, and Dawei Huang. 2011. An Optimal Hysteretic Control Policy for Energy Saving in Cloud Computing. In 2011 IEEE Global Telecommunications Conference - GLOBECOM 2011. 1--5. https://doi.org/10.1109/GLOCOM.2011.6133628
    [52]
    Sheng Shui Zhang. 2006. The effect of the charging protocol on the cycle life of a Li-ion battery. Journal of Power Sources, Vol. 161, 2 (2006), 1385--1391. https://doi.org/10.1016/j.jpowsour.2006.06.040
    [53]
    ZiJun Zhang, Zongpeng Li, and Chuan Wu. 2017. Optimal posted prices for online cloud resource allocation. Proceedings of the ACM on Measurement and Analysis of Computing Systems, Vol. 1, 1 (2017), 1--26.
    [54]
    Yunhong Zhou, Deeparnab Chakrabarty, and Rajan Lukose. 2008. Budget Constrained Bidding in Keyword Auctions and Online Knapsack Problems. In Lecture Notes in Computer Science. Springer Berlin Heidelberg, Heidelberg, DE, 566--576. https://doi.org/10.1007/978--3--540--92185--1_63

    Cited By

    View all
    • (2024)The Online Pause and Resume Problem: Optimal Algorithms and An Application to Carbon-Aware Load ShiftingACM SIGMETRICS Performance Evaluation Review10.1145/3673660.365508652:1(47-48)Online publication date: 13-Jun-2024
    • (2024)The Online Pause and Resume Problem: Optimal Algorithms and An Application to Carbon-Aware Load ShiftingAbstracts of the 2024 ACM SIGMETRICS/IFIP PERFORMANCE Joint International Conference on Measurement and Modeling of Computer Systems10.1145/3652963.3655086(47-48)Online publication date: 10-Jun-2024
    • (2024)LACS: Learning-Augmented Algorithms for Carbon-Aware Resource Scaling with Uncertain DemandProceedings of the 15th ACM International Conference on Future and Sustainable Energy Systems10.1145/3632775.3661942(27-45)Online publication date: 4-Jun-2024

    Index Terms

    1. The Online Pause and Resume Problem: Optimal Algorithms and An Application to Carbon-Aware Load Shifting

        Recommendations

        Comments

        Information & Contributors

        Information

        Published In

        cover image Proceedings of the ACM on Measurement and Analysis of Computing Systems
        Proceedings of the ACM on Measurement and Analysis of Computing Systems  Volume 7, Issue 3
        POMACS
        December 2023
        599 pages
        EISSN:2476-1249
        DOI:10.1145/3637453
        Issue’s Table of Contents
        Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        Published: 12 December 2023
        Published in POMACS Volume 7, Issue 3

        Permissions

        Request permissions for this article.

        Check for updates

        Author Tags

        1. carbon-aware load shifting
        2. k-search
        3. online algorithms
        4. online pause and resume
        5. switching costs

        Qualifiers

        • Research-article

        Funding Sources

        Contributors

        Other Metrics

        Bibliometrics & Citations

        Bibliometrics

        Article Metrics

        • Downloads (Last 12 months)188
        • Downloads (Last 6 weeks)42

        Other Metrics

        Citations

        Cited By

        View all
        • (2024)The Online Pause and Resume Problem: Optimal Algorithms and An Application to Carbon-Aware Load ShiftingACM SIGMETRICS Performance Evaluation Review10.1145/3673660.365508652:1(47-48)Online publication date: 13-Jun-2024
        • (2024)The Online Pause and Resume Problem: Optimal Algorithms and An Application to Carbon-Aware Load ShiftingAbstracts of the 2024 ACM SIGMETRICS/IFIP PERFORMANCE Joint International Conference on Measurement and Modeling of Computer Systems10.1145/3652963.3655086(47-48)Online publication date: 10-Jun-2024
        • (2024)LACS: Learning-Augmented Algorithms for Carbon-Aware Resource Scaling with Uncertain DemandProceedings of the 15th ACM International Conference on Future and Sustainable Energy Systems10.1145/3632775.3661942(27-45)Online publication date: 4-Jun-2024

        View Options

        Get Access

        Login options

        Full Access

        View options

        PDF

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader

        Media

        Figures

        Other

        Tables

        Share

        Share

        Share this Publication link

        Share on social media