在许多多服务器系统中实现高性能需要找到工作线程到服务器的良好分配,并有效地将每个服务器的资源分配给其分配的线程。这个问题的分配和分配组件已被广泛研究,但在文献中主要是分开的。在本文中,我们介绍了分配和分配(AA)的问题,它旨在同时找到一个分配和分配,最大限度地提高线程的总效用。与传统上单独执行这些步骤相比,一起执行和分配线程可以产生更好的总体效用。我们通过效用函数对每个线程进行建模,将其性能作为其分配资源的函数。我们首先证明了AA问题是NP困难的。然后,我们提出了一个凹效用函数的$2 (\sqrt{2}-1) > 0.828$因子近似算法,它运行在$O(mn^2 + n (\log mC)^2)$时间为$n$线程和$m$服务器与$C$的资源量。在相同的逼近比和$O(n (\log mC)^2)$时间复杂度下,给出了一个更快的算法.然后,我们将问题扩展到两个更一般的设置。首先,我们考虑具有非凹效用函数的螺纹,并给出一个1/2因子的近似算法。接下来,我们给出了一个算法的线程使用多种类型的资源,并显示该算法取得了良好的经验性能。我们进行了广泛的实验,以测试我们的算法的性能与合成和现实的效用函数的线程,并发现他们平均达到92%以上的最佳效用。我们还比较了我们的算法与一些实用的算法,并发现我们的算法实现了高达9倍的总效用。
英文摘要:
Achieving high performance in many multi-server systems requires finding a good assignment of worker threads to servers and also effectively allocating each server's resources to its assigned threads. The assignment and allocation components of this problem have been studied extensively but largely separately in the literature. In this paper, we introduce the assign and allocate (AA) problem, which seeks to simultaneously find an assignment and allocation that maximizes the total utility of the threads. Assigning and allocating the threads together can result in substantially better overall utility than performing the steps separately, as is traditionally done. We model each thread by a utility function giving its performance as a function of its assigned resources. We first prove that the AA problem is NP-hard. We then present a $2 (\sqrt{2}-1) > 0.828$ factor approximation algorithm for concave utility functions, which runs in $O(mn^2 + n (\log mC)^2)$ time for $n$ threads and $m$ servers with $C$ amount of resources each. We also give a faster algorithm with the same approximation ratio and $O(n (\log mC)^2)$ time complexity. We then extend the problem to two more general settings. First, we consider threads with nonconcave utility functions, and give a 1/2 factor approximation algorithm. Next, we give an algorithm for threads using multiple types of resources, and show the algorithm achieves good empirical performance. We conduct extensive experiments to test the performance of our algorithms on threads with both synthetic and realistic utility functions, and find that they achieve over 92\% of the optimal utility on average. We also compare our algorithms with a number of practical heuristics, and find that our algorithms achieve up to 9 times higher total utility.
A Local-Ratio-Based Power Control Approach for Capacitated Access Points in Mobile Edge Computing
终端设备(TD)通过集成到边缘服务器中的接入点(AP)连接到网络。这为TD将任务上传到云数据中心或卸载到边缘服务器执行提供了先决条件。在这个过程中,信号覆盖、数据传输和任务执行都要消耗能量,信号覆盖的能耗随着半径的增大而急剧增加。较低的功率导致在给定时间段内的较少的能量消耗。因此,AP的功率控制对于降低能耗至关重要。我们的目标是确定功率分配为每个AP具有相同的容量约束,使所有的TD被覆盖,总功率最小化。我们定义这个问题为一个\emph{minimum power capacitated cover }(MPCC)的问题,并提出了一个\emph{minimum local ratio}(MLR)的功率控制方法,这个问题在多项式时间获得准确的结果。权力分配是在一系列回合中选择的。在每一轮中,我们选择功率分配,使其功率与其包含的当前未覆盖TD的数量之比最小化。在平局的情况下,我们选择实现最小比率的任意功率分配。我们继续选择功率分配,直到覆盖所有TD。最后通过实验验证了该方法的有效性。
Joint Model Assignment and Resource Allocation for Cost-Effective Mobile Generative Services
School of Electronic Information and Communications, Huazhong University of Science and Technology(华中科技大学电子信息与通信学院);School of Computer Science and Engineering, Central South University(中南大学计算机科学与工程学院);University of Windsor(温莎大学)