计算机应用 ›› 2019, Vol. 39 ›› Issue (1): 205-212.DOI: 10.11772/j.issn.1001-9081.2018051055

• 数据科学与技术 • 上一篇    下一篇

基于SSD数据库负载的SQL能耗感知模型

李树1, 于炯1,2, 国冰磊2, 蒲勇霖2, 杨德先2, 刘粟2   

  1. 1. 新疆大学 软件学院, 乌鲁木齐 830008;
    2. 新疆大学 信息科学与工程学院, 乌鲁木齐 830046
  • 收稿日期:2018-05-22 修回日期:2018-07-17 出版日期:2019-01-10 发布日期:2019-01-21
  • 通讯作者: 于炯
  • 作者简介:李树(1993-),男,安徽蚌埠人,硕士研究生,CCF会员,主要研究方向:绿色计算、机器学习;于炯(1964-),男,北京人,教授,博士生导师,博士,CCF高级会员,主要研究方向:网络安全、网格计算、分布式计算;国冰磊(1991-),女,湖北襄阳人,博士研究生,CCF会员,主要研究方向:绿色计算;蒲勇霖(1991-),男,山东淄博人,博士研究生,CCF会员,主要研究方向:绿色计算、分布式计算;杨徳先(1991-),男,新疆塔城人,博士研究生,CCF会员,主要研究方向:绿色计算;刘粟(1994-),女,吉林吉林人,硕士研究生,CCF会员,主要研究方向:分布式计算、内存计算。
  • 基金资助:
    国家自然科学基金资助项目(61462079,61562078,61562086);国家科技支撑项目(2015BAH02F01)。

SQL energy consumption perception model for database load based on SSD

LI Shu1, YU Jiong1,2, GUO Binglei2, PU Yonglin2, YANG Dexian2, LIU Su2   

  1. 1. School of Software, Xinjiang University, Urumqi Xinjiang 830008, China;
    2. School of Information Science and Engineering, Xinjiang University, Urumqi Xinjiang 830046, China
  • Received:2018-05-22 Revised:2018-07-17 Online:2019-01-10 Published:2019-01-21
  • Supported by:
    This work is partially supported by the National Natural Science Foundation of China (61462079,61562078,61562086), the Science and Technology Support Projects of Ministry of National Science and Technology (2015BAH02F01).

摘要: 面对大数据带来的能耗及环境方面的严峻问题,构建节能的绿色数据库系统已成为关键需求和重要挑战。针对现有数据库系统主要以性能优化为目标,缺少对能耗的感知及优化的问题,提出基于数据库负载的能耗感知模型,并将模型应用于基于固态硬盘(SSD)的数据库系统中。首先,将数据库负载执行过程中对主要系统资源(CPU、固态硬盘)的消耗解析为时间开销和功耗开销,并基于SSD数据库负载的基本I/O类型构建时间开销模型和功耗开销模型,实现为数据库构建资源开销单位统一的能耗感知模型;然后,利用多元线性回归实现对模型的求解,并分别在独占环境和竞争环境下,验证模型对不同I/O类型的数据库负载能耗估算的准确性;最后,分析实验结果,并讨论了影响模型准确性的因素。经实验验证模型准确度较高,在DBMS独占系统资源情况下的平均误差为5.15%,绝对误差不超过9.8%;竞争环境下的准确率相对下降,但平均误差也低于12.21%,可有效构建能耗感知的绿色数据库系统。

关键词: 能耗感知模型, 固态硬盘, 绿色计算

Abstract: For energy consumption and severe environmental problems brought by big data, building an energy-efficient green database system has become a key requirement and an important challenge. To solve the problem that traditional database systems mainly focus on performance, and are lack of energy consumption perception and optimization, an energy consumption perception model based on database workload was proposed and applied to the database system based on Solid-State Drive (SSD). Firstly, the consumption of major system resources (CPU, SSD) during database workload execution was quantified as time overhead and power consumption overhead. Based on basic I/O type of SSD database workload, a time cost model and a power consumption overhead model were built, and an energy consumption perception model with uniform resource unit was implemented. Then, multi-variable linear regression mathematical tools were used to solve the model, and in the exclusive environment and competitive environment, the energy estimation accuracy of the model for different I/O types of database workload was verified. Finally, the experimental results were analyzed and the factors that affect the model accuracy were discussed. The experimental results show that the model accuracy is relatively high. Under ideal conditions that DBMS monopolized system resources, the average error is 5.15% and the absolute error is no more than 9.8%. Although the accuracy in competitive environment is reduced, the average error is less than 12.21%.The model can effectively build an energy-aware green database system.

Key words: energy consumption perception model, Solid-State Drive (SSD), green computing

中图分类号: