CN108170254B - A Policy Scheduling Method Based on Sporadic Requests - Google Patents
A Policy Scheduling Method Based on Sporadic Requests Download PDFInfo
- Publication number
- CN108170254B CN108170254B CN201711500130.1A CN201711500130A CN108170254B CN 108170254 B CN108170254 B CN 108170254B CN 201711500130 A CN201711500130 A CN 201711500130A CN 108170254 B CN108170254 B CN 108170254B
- Authority
- CN
- China
- Prior art keywords
- sporadic
- request
- disk
- scheduling
- requests
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/325—Power saving in peripheral device
- G06F1/3268—Power saving in hard disk drive
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
技术领域technical field
本发明涉及计算机技术领域,尤其涉及一种基于零星请求的策略调度方法。The invention relates to the field of computer technology, in particular to a strategy scheduling method based on sporadic requests.
背景技术Background technique
磁盘是用于存储计算机数据的一种载体,存储在磁盘中的数据可以反复使用。在磁盘使用过程中,无论是突发性时段还是非突发性时段,都会存在零星请求。传统的磁盘在面对零星请求时,其感知方面存在不足,未能及时响应零星请求。A disk is a carrier used to store computer data, and the data stored on the disk can be used repeatedly. During disk usage, there will be sporadic requests during both bursty and non-bursty periods. Traditional disks have insufficient perception in the face of sporadic requests, and cannot respond to sporadic requests in a timely manner.
发明内容Contents of the invention
本发明实施例提出一种基于零星请求的策略调度方法,在保证磁盘性能的前提下,最大限度地降低磁盘的能耗。The embodiment of the present invention proposes a strategy scheduling method based on sporadic requests, which can minimize the energy consumption of the disk on the premise of ensuring the performance of the disk.
本发明实施例提供一种基于零星请求的策略调度方法,包括:An embodiment of the present invention provides a policy scheduling method based on sporadic requests, including:
获取云存储系统的历史综合记录,建立基于零星请求的调度策略代价模型;所述历史综合记录包括:存储资源利用率记录、系统负载记录和磁盘的能耗状态记录;Obtain historical comprehensive records of the cloud storage system, and establish a scheduling policy cost model based on sporadic requests; the historical comprehensive records include: storage resource utilization records, system load records and disk energy consumption status records;
当侦测到磁盘I/O口中的第一零星请求时,根据所述调度策略代价模型,判断是否执行所述第一零星请求;When the first sporadic request in the disk I/O port is detected, according to the scheduling policy cost model, it is judged whether to execute the first sporadic request;
如果是,则执行所述第一零星请求;否则,根据预设的调度策略,将所述第一零星请求调度给其他磁盘。If so, execute the first sporadic request; otherwise, schedule the first sporadic request to other disks according to a preset scheduling policy.
进一步的,所述获取云存储系统的历史综合记录,建立基于零星请求的调度策略代价模型,具体为:Further, the acquisition of the historical comprehensive records of the cloud storage system, and the establishment of a scheduling policy cost model based on sporadic requests are specifically:
根据获取的云存储系统的历史综合记录,确定存储资源利用率、I/O负载的读写比例、零星请求的历史个数和磁盘的能耗状态,并根据所述存储资源利用率、I/O负载的读写比例、零星请求的历史个数和磁盘的能耗状态,建立基于零星请求的调度策略代价模型。According to the historical comprehensive records of the cloud storage system obtained, determine the utilization rate of storage resources, the read/write ratio of I/O load, the historical number of sporadic requests, and the energy consumption status of disks, and according to the utilization rate of storage resources, I/O Based on the read-write ratio of O load, the historical number of sporadic requests, and the energy consumption status of disks, a scheduling strategy cost model based on sporadic requests is established.
进一步的,所述根据所述调度策略代价模型,判断是否执行所述第一零星请求,具体为:Further, according to the scheduling policy cost model, it is judged whether to execute the first sporadic request, specifically:
根据所述调度策略代价模型,计算执行所述第一零星请求的代价成本,如果所述代价成本低于预设阈值,则确定执行所述第一零星请求;否则,确定不执行所述第一零星请求。According to the scheduling policy cost model, calculate the cost cost of executing the first sporadic request, if the cost cost is lower than a preset threshold, determine to execute the first sporadic request; otherwise, determine not to execute the First sporadic request.
进一步的,所述侦测到磁盘I/O口中的第一零星请求,具体为:Further, the detection of the first sporadic request in the disk I/O port is specifically:
获取块数据的历史系统行为,构建所述块数据的行为分析数学模型;所述行为分析数学模型记录了若干个突发性访问行为的描述信息和评估机制;所述行为分析数学模型用于跟踪和预测系统中的突发性访问行为;Obtain the historical system behavior of the block data, and construct the behavior analysis mathematical model of the block data; the behavior analysis mathematical model records the description information and evaluation mechanism of several unexpected access behaviors; the behavior analysis mathematical model is used to track and predict sudden access behavior in the system;
通过所述行为分析数学模型,侦测所述磁盘I/O口中的第一零星请求。The first sporadic request in the disk I/O port is detected through the behavior analysis mathematical model.
进一步的,所述获取块数据的历史系统行为,具体为:Further, the historical system behavior of acquiring block data is specifically:
通过Trace日志文件,获取块数据的历史系统行为。Obtain the historical system behavior of block data through the Trace log file.
实施本发明实施例,具有如下有益效果:Implementing the embodiment of the present invention has the following beneficial effects:
本发明实施例提供的基于零星请求的策略调度方法,先获取云存储系统的历史综合记录,建立基于零星请求的调度策略代价模型;当侦测到磁盘I/O口中的第一零星请求时,根据调度策略代价模型,判断是否执行所述第一零星请求;如果是,则执行第一零星请求;否则,根据预设的调度策略,将第一零星请求调度给其他磁盘。相比于现有技术面对零星请求的感知力不足,本发明技术方案通过代价模型衡量是否执行零星请求,在保证磁盘性能的前提下,最大限度地降低磁盘的能耗。The sporadic request-based policy scheduling method provided by the embodiment of the present invention first obtains the historical comprehensive records of the cloud storage system, and establishes a sporadic request-based scheduling policy cost model; when the first sporadic request in the disk I/O port is detected , according to the scheduling strategy cost model, judge whether to execute the first sporadic request; if yes, execute the first sporadic request; otherwise, schedule the first sporadic request to other disks according to a preset scheduling strategy. Compared with the lack of perception of sporadic requests in the prior art, the technical solution of the present invention measures whether to execute sporadic requests through a cost model, and minimizes the energy consumption of the disk on the premise of ensuring disk performance.
附图说明Description of drawings
图1是本发明提供的基于零星请求的策略调度方法的一种实施例的流程示意图。Fig. 1 is a schematic flow chart of an embodiment of a policy scheduling method based on sporadic requests provided by the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
参见图1,是本发明提供的基于零星请求的策略调度方法的一种实施例的流程示意图,该方法包括步骤101至步骤104,各步骤具体如下:Referring to FIG. 1 , it is a schematic flowchart of an embodiment of a sporadic request-based policy scheduling method provided by the present invention. The method includes steps 101 to 104, and each step is specifically as follows:
步骤101:获取云存储系统的历史综合记录,建立基于零星请求的调度策略代价模型;历史综合记录包括:存储资源利用率记录、系统负载记录和磁盘的能耗状态记录。Step 101: Obtain historical comprehensive records of the cloud storage system, and establish a scheduling strategy cost model based on sporadic requests; historical comprehensive records include: storage resource utilization records, system load records, and disk energy consumption status records.
在本实施例中,步骤101具体为:根据获取的云存储系统的历史综合记录,确定存储资源利用率、I/O负载的读写比例、零星请求的历史个数和磁盘的能耗状态,并根据存储资源利用率、I/O负载的读写比例、零星请求的历史个数和磁盘的能耗状态,建立基于零星请求的调度策略代价模型。调度策略代价模型用于以多目标优化理论来综合衡量系统中I/O负载的读写比例、零星请求的个数、磁盘的不同能耗状态等多个因素对调度策略的影响。In this embodiment, step 101 is specifically: according to the obtained historical comprehensive record of the cloud storage system, determine storage resource utilization, I/O load read/write ratio, historical number of sporadic requests, and disk energy consumption status, And according to the utilization rate of storage resources, the ratio of read and write of I/O load, the historical number of sporadic requests and the energy consumption state of the disk, a scheduling policy cost model based on sporadic requests is established. The scheduling policy cost model is used to comprehensively measure the influence of multiple factors on the scheduling policy, such as the ratio of I/O load reads and writes, the number of sporadic requests, and different energy consumption states of disks, in the system based on multi-objective optimization theory.
步骤102:当侦测到磁盘I/O口中的第一零星请求时,根据调度策略代价模型,判断是否执行第一零星请求;如果是,则执行步骤103;否则,执行步骤104。Step 102: When the first sporadic request in the disk I/O port is detected, judge whether to execute the first sporadic request according to the scheduling policy cost model; if yes, execute step 103; otherwise, execute step 104.
在本实施例中,步骤102中的侦测到磁盘I/O口中的第一零星请求,具体为:获取块数据的历史系统行为,构建块数据的行为分析数学模型;行为分析数学模型记录了若干个突发性访问行为的描述信息和评估机制;行为分析数学模型用于跟踪和预测系统中的突发性访问行为;通过该行为分析数学模型,侦测磁盘I/O口中的第一零星请求。In this embodiment, the detection of the first sporadic request in the disk I/O port in step 102 is specifically: obtaining the historical system behavior of the block data, constructing a behavior analysis mathematical model of the block data; and recording the behavior analysis mathematical model The description information and evaluation mechanism of several sudden access behaviors are provided; the behavior analysis mathematical model is used to track and predict the sudden access behavior in the system; through the behavior analysis mathematical model, the first disk I/O port is detected Sporadic requests.
在本实施例中,获取块数据的历史系统行为,具体为:通过Trace日志文件,获取块数据的历史系统行为。In this embodiment, acquiring the historical system behavior of the block data is specifically: acquiring the historical system behavior of the block data through a Trace log file.
在本实施例中,步骤102中根据调度策略代价模型,判断是否执行所述第一零星请求,具体为:根据调度策略代价模型,计算执行第一零星请求的代价成本,如果代价成本低于预设阈值,则确定执行第一零星请求;否则,确定不执行第一零星请求。预设阈值的大小可根据系统的实际情况进行设置。In this embodiment, in step 102, according to the scheduling policy cost model, it is judged whether to execute the first sporadic request, specifically: according to the scheduling policy cost model, the cost cost of executing the first sporadic request is calculated, if the cost cost is low If it is less than the preset threshold, it is determined to execute the first sporadic request; otherwise, it is determined not to execute the first sporadic request. The size of the preset threshold can be set according to the actual situation of the system.
步骤103:执行第一零星请求。Step 103: Execute the first sporadic request.
步骤104:根据预设的调度策略,将第一零星请求调度给其他磁盘。Step 104: According to a preset scheduling strategy, schedule the first sporadic request to other disks.
在本实施例中,预设的调度策略为根据各磁盘的负载情况和存储资源利用率,将第一零星请求调度给负载最低或者存储资源利用率最低的磁盘,也可综合考虑并进行权重计算后,调度给权重最高的磁盘。In this embodiment, the preset scheduling strategy is to schedule the first sporadic request to the disk with the lowest load or the lowest storage resource utilization according to the load of each disk and the utilization rate of storage resources. It can also be considered comprehensively and weighted After calculation, schedule to the disk with the highest weight.
由上可见,本发明实施例提供的基于零星请求的策略调度方法,先获取云存储系统的历史综合记录,建立基于零星请求的调度策略代价模型;当侦测到磁盘I/O口中的第一零星请求时,根据调度策略代价模型,判断是否执行所述第一零星请求;如果是,则执行第一零星请求;否则,根据预设的调度策略,将第一零星请求调度给其他磁盘。相比于现有技术面对零星请求的感知力不足,本发明技术方案通过代价模型衡量是否执行零星请求,在保证磁盘性能的前提下,最大限度地降低磁盘的能耗。As can be seen from the above, the strategy scheduling method based on sporadic requests provided by the embodiment of the present invention first obtains the historical comprehensive records of the cloud storage system, and establishes a scheduling policy cost model based on sporadic requests; For sporadic requests, judge whether to execute the first sporadic request according to the scheduling strategy cost model; if yes, execute the first sporadic request; otherwise, schedule the first sporadic request to other disks. Compared with the lack of perception of sporadic requests in the prior art, the technical solution of the present invention measures whether to execute sporadic requests through a cost model, and minimizes the energy consumption of the disk on the premise of ensuring disk performance.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random AccessMemory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM) and the like.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。The above description is a preferred embodiment of the present invention, it should be pointed out that for those skilled in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications are also considered Be the protection scope of the present invention.
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711500130.1A CN108170254B (en) | 2017-12-30 | 2017-12-30 | A Policy Scheduling Method Based on Sporadic Requests |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711500130.1A CN108170254B (en) | 2017-12-30 | 2017-12-30 | A Policy Scheduling Method Based on Sporadic Requests |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108170254A CN108170254A (en) | 2018-06-15 |
CN108170254B true CN108170254B (en) | 2019-12-06 |
Family
ID=62516834
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711500130.1A Active CN108170254B (en) | 2017-12-30 | 2017-12-30 | A Policy Scheduling Method Based on Sporadic Requests |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108170254B (en) |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102736725B (en) * | 2012-05-18 | 2016-03-30 | 华为技术有限公司 | A kind of energy saving of hard disks control method, device and central processing unit |
CN103106152B (en) * | 2012-12-13 | 2015-09-23 | 深圳先进技术研究院 | Based on the data dispatching method of level storage medium |
CN103576835B (en) * | 2013-10-30 | 2016-06-29 | 华为技术有限公司 | The data manipulation method of a kind of dormancy disk and device |
CN103647823A (en) * | 2013-12-11 | 2014-03-19 | 浪潮电子信息产业股份有限公司 | Storage resource scheduling method in cloud computing operating system |
CN104714753A (en) * | 2013-12-12 | 2015-06-17 | 中兴通讯股份有限公司 | Data access and storage method and device |
CN104580447B (en) * | 2014-12-29 | 2019-04-09 | 中国科学院计算机网络信息中心 | A spatiotemporal data service scheduling method based on access heat |
CN104965674B (en) * | 2015-06-08 | 2018-01-19 | 暨南大学 | A kind of low energy consumption disk-scheduling method and system based on block association |
-
2017
- 2017-12-30 CN CN201711500130.1A patent/CN108170254B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN108170254A (en) | 2018-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106886485B (en) | System capacity analysis and prediction method and device | |
US7415453B2 (en) | System, method and program product for forecasting the demand on computer resources | |
CN103810048B (en) | Automatic adjusting method and device for thread number aiming to realizing optimization of resource utilization | |
WO2021174811A1 (en) | Prediction method and prediction apparatus for traffic flow time series | |
US8701118B2 (en) | Adjusting thread priority to optimize computer system performance and the utilization of computer system resources | |
US20150066598A1 (en) | Predicting service delivery costs under business changes | |
CN103106152A (en) | Data scheduling method based on gradation storage medium | |
CN106897178A (en) | A kind of slow disk detection method and system based on extreme learning machine | |
CN118628161B (en) | Supply chain demand prediction method and system | |
CN110333991B (en) | Method for predicting maximum resource utilization rate of cloud platform tasks | |
CN109960573A (en) | A kind of cross-domain calculating task dispatching method and system based on Intellisense | |
CN115454322A (en) | Workload management using trained models | |
CN104679444B (en) | The dynamic adjusting method and device of virtualized memory resource | |
CN108255671A (en) | The monitoring of the application of computer system and aposematic mechanism | |
CN108170254B (en) | A Policy Scheduling Method Based on Sporadic Requests | |
CN114594909A (en) | Disk processing method and device, electronic equipment and storage medium | |
CN119166354A (en) | A cloud computing resource allocation method based on dynamic optimization, a computer device and a storage medium | |
CN103647823A (en) | Storage resource scheduling method in cloud computing operating system | |
CN106406766A (en) | A data storage method and device | |
TWI718252B (en) | Task scheduling method and device | |
KR20190057854A (en) | Apparatus Detecting I/O Data Saturation and Method thereof | |
CN104883273A (en) | Method and system for processing service influence model in virtualized service management platform | |
CN108227901B (en) | A Disk Power Consumption State Switching Method Based on Sporadic Requests | |
Jehangiri et al. | Distributed predictive performance anomaly detection for virtualised platforms | |
CN115297018B (en) | Operation and maintenance system load prediction method based on active detection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 510000 No. 293 Shipai Zhongshan Avenue, Tianhe District, Guangzhou City, Guangdong Province Applicant after: Guangdong Normal University of Technology Address before: 510665 293 Zhongshan Avenue, Tianhe District, Guangzhou, Guangdong. Applicant before: Guangdong Technical Normal College |
|
GR01 | Patent grant | ||
GR01 | Patent grant |