高级检索
    邢宝平, 吕梦圆, 金培权, 黄国锐, 岳丽华. 面向绿色数据中心的能耗有效查询优化技术[J]. 计算机研究与发展, 2019, 56(9): 1821-1831. DOI: 10.7544/issn1000-1239.2019.20180670
    引用本文: 邢宝平, 吕梦圆, 金培权, 黄国锐, 岳丽华. 面向绿色数据中心的能耗有效查询优化技术[J]. 计算机研究与发展, 2019, 56(9): 1821-1831. DOI: 10.7544/issn1000-1239.2019.20180670
    Xing Baoping, Lü Mengyuan, Jin Peiquan, Huang Guorui, Yue Lihua. Energy-Efficiency Query Optimization for Green Datacenters[J]. Journal of Computer Research and Development, 2019, 56(9): 1821-1831. DOI: 10.7544/issn1000-1239.2019.20180670
    Citation: Xing Baoping, Lü Mengyuan, Jin Peiquan, Huang Guorui, Yue Lihua. Energy-Efficiency Query Optimization for Green Datacenters[J]. Journal of Computer Research and Development, 2019, 56(9): 1821-1831. DOI: 10.7544/issn1000-1239.2019.20180670

    面向绿色数据中心的能耗有效查询优化技术

    Energy-Efficiency Query Optimization for Green Datacenters

    • 摘要: 降低能耗开销、建设绿色数据中心,已经成为目前大规模数据中心的重要需求.在绿色数据中心,如何使数据库系统在满足性能需求的前提下尽量地节约能耗,即如何提高数据库系统的能耗有效性,是目前研究的重点.数据库系统中的能耗有效性旨在使用更少的电能来提供相同的服务.能耗有效性越高,说明数据库系统可以用更少的能耗就能够响应同样数量的操作,换句话说,可以用更少的能耗达到同样的性能.据此提出了一种面向绿色数据中心的能耗有效查询优化方法.该方法首先利用回归分析建立操作符层的功耗预测模型,从而可以准确地预测给定查询在执行过程中的平均功耗.接着,在PostgreSQL查询优化器中扩充了结合预测能耗成本和时间成本的新的查询执行代价计算模型,并引入性能退化度因子调节性能和能耗的权重.最后构建了数据库系统能耗测试平台,在PostgreSQL上基于TPC-H和TPC-C基准测试进行了实验.结果表明:所提出的功耗预测模型比已有方法准确度更高.同时,提出的性能退化度因子为数据库系统提供了性能和能耗之间的灵活折中方案,并且通过设置适当的性能退化度因子,可以实现比原始PostgreSQL更高的能耗有效性.

       

      Abstract: Reducing energy consumption and building green datacenters has been one of the major needs of modern large-scale datacenters. In green datacenters, a key research issue is how to lower the energy consumption of database systems while keeping stable performance. This issue is called energy efficiency, and has become a new research frontier recently. Energy efficiency of database systems is defined as using little energy to accomplish as many operations as possible. High energy efficiency means that database systems can use less energy while processing a fixed number of operations. In other words, it uses less energy but achieves the same performance. In this paper, we propose a method for energy-efficient query optimization. First, an operator-level power model is established based on the regression analysis method, which can accurately predict average power consumption during query execution for a given query. Next, a new cost model is proposed for query optimizer, which considers both energy and performance aspects. The new cost model uses a new factor to obtain a better tradeoff between performance and energy costs. A testbed is built for measuring energy consumption of database systems, and the TPC-H and TPC-C benchmarks are used to evaluate the performance of our proposal. The results show that the proposed power model achieves higher precision than existing methods. In addition, the proposed performance-degrade factor can provide flexible trade-offs between performance and energy. Moreover, by setting up an appropriate performance-degrade factor, better energy efficiency can be achieved than the original PostgreSQL.

       

    /

    返回文章
    返回