arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1507.01101cs.DC
收藏

多服务器系统中效用最优的线程分配和资源分配

Utility Optimal Thread Assignment and Resource Allocation in Multi-Server Systems

Pan Lai, Rui Fan, Xiao Zhang, Wei Zhang, Fang Liu, Joey Tianyi Zhou

摘要:

在许多多服务器系统中实现高性能需要找到工作线程到服务器的良好分配,并有效地将每个服务器的资源分配给其分配的线程。这个问题的分配和分配组件已被广泛研究,但在文献中主要是分开的。在本文中,我们介绍了分配和分配(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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑