On dynamic bin packing for resource allocation in the cloud

Dynamic Bin Packing (DBP) is a variant of classical bin packing, which assumes that items may arrive and depart at arbitrary times. Existing works on DBP generally aim to minimize the maximum number of bins ever used in the packing. In this paper, we consider a new version of the DBP problem, namely, the MinTotal DBP problem which targets at minimizing the total cost of the bins used over time. It is motivated by the request dispatching problem arising in cloud gaming systems. We analyze the competitive ratios of the commonly used First Fit, Best Fit, and Any Fit packing (the family of packing algorithms that open a new bin only when no currently opened bin can accommodate the item to be packed) algorithms for the MinTotal DBP problem. We show that the competitive ratio of Any Fit packing cannot be better than the max/min item interval length ratio μ. The competitive ratio of Best Fit packing is not bounded for any given μ. For First Fit packing, if all the item sizes are smaller than W⁄k (W is the bin capacity and k≥1 is a constant), it has a competitive ratio of k⁄k-1μ + 6k⁄k-1 + 1. For the general case, First Fit packing has a competitive ratio of 2μ + 13. We also propose a Modified First Fit packing algorithm that can achieve a competitive ratio of 8⁄7μ + 55⁄7 when μ is not known and can achieve a competitive ratio of μ + 8 when μ is known.

[1]  Eugene L. Lawler,et al.  Sequencing and scheduling: algorithms and complexity , 1989 .

[2]  Edward G. Coffman,et al.  Dynamic Bin Packing , 1983, SIAM J. Comput..

[3]  Prudence W. H. Wong,et al.  Dynamic Bin Packing of Unit Fractions Items , 2005, ICALP.

[4]  Eugene L. Lawler,et al.  Chapter 9 Sequencing and scheduling: Algorithms and complexity , 1993, Logistics of Production and Inventory.

[5]  Errol L. Lloyd,et al.  Fully Dynamic Algorithms for Bin Packing: Being (Mostly) Myopic Helps , 1993, SIAM J. Comput..

[6]  Gwendal Simon,et al.  The brewing storm in cloud gaming: A measurement study on cloud to end-user latency , 2012, 2012 11th Annual Workshop on Network and Systems Support for Games (NetGames).

[7]  Philip Ross,et al.  Cloud Computing's Killer App: Gaming , 2009, IEEE Spectrum.

[8]  Alexander L. Stolyar,et al.  An Infinite Server System with General Packing Constraints , 2012, Oper. Res..

[9]  Prudence W. H. Wong,et al.  On Dynamic Bin Packing: An Improved Lower Bound and Resource Augmentation Analysis , 2008, Algorithmica.

[10]  Allan Borodin,et al.  Online computation and competitive analysis , 1998 .

[11]  Cheng-Hsin Hsu,et al.  GamingAnywhere: an open cloud gaming system , 2013, MMSys.

[12]  Chao Zhang,et al.  vGASA: Adaptive Scheduling Algorithm of Virtualized GPU Resource in Cloud Gaming , 2014, IEEE Transactions on Parallel and Distributed Systems.

[13]  Chun-Ying Huang,et al.  Measuring the latency of cloud gaming systems , 2011, ACM Multimedia.

[14]  David S. Johnson,et al.  Computers and Intractability: A Guide to the Theory of NP-Completeness , 1978 .

[15]  József Békési,et al.  New lower bounds for certain classes of bin packing algorithms , 2010, Theor. Comput. Sci..

[16]  Reuven Bar-Yehuda,et al.  A unified approach to approximating resource allocation and scheduling , 2001, JACM.

[17]  Prudence W. H. Wong,et al.  Optimizing Busy Time on Parallel Machines , 2012, 2012 IEEE 26th International Parallel and Distributed Processing Symposium.

[18]  Steven S. Seiden,et al.  On the online bin packing problem , 2001, JACM.

[19]  Minghua Chen,et al.  Joint VM placement and routing for data center traffic engineering , 2012, 2012 Proceedings IEEE INFOCOM.

[20]  Gianpiero Monaco,et al.  Minimizing total busy time in parallel scheduling with application to optical networks , 2009, 2009 IEEE International Symposium on Parallel & Distributed Processing.

[21]  Alexander L. Stolyar An infinite server system with customer-to-server packing constraints , 2012, 2012 50th Annual Allerton Conference on Communication, Control, and Computing (Allerton).

[22]  Gerhard J. Woeginger,et al.  On-line bin packing — A restricted survey , 1995, Math. Methods Oper. Res..

[23]  Daniele Vigo,et al.  Bin packing approximation algorithms: Survey and classification , 2013 .

[24]  Edward G. Coffman,et al.  Approximation algorithms for bin packing: a survey , 1996 .