WO2011009345A1 - Method and device for smoothing data processing - Google Patents

Method and device for smoothing data processing Download PDF

Info

Publication number
WO2011009345A1
WO2011009345A1 PCT/CN2010/073664 CN2010073664W WO2011009345A1 WO 2011009345 A1 WO2011009345 A1 WO 2011009345A1 CN 2010073664 W CN2010073664 W CN 2010073664W WO 2011009345 A1 WO2011009345 A1 WO 2011009345A1
Authority
WO
WIPO (PCT)
Prior art keywords
task
data processing
time
execution
expected
Prior art date
Application number
PCT/CN2010/073664
Other languages
French (fr)
Chinese (zh)
Inventor
龚力
李蕊
杨建军
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2011009345A1 publication Critical patent/WO2011009345A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements

Definitions

  • the present invention relates to data processing techniques in the field of communications, and more particularly to a method and apparatus for smoothing data processing. Background technique
  • the invention discloses a method for smoothing data processing, the method comprising:
  • the data processing amount of the task is determined by the fitting function according to the expected execution time of the task; the execution of the task is controlled according to the determined data processing amount.
  • the fitting function is used to describe the amount of data processing corresponding to the expected execution time of the data processing amount and the data processing time.
  • the method further includes: presetting a forced end time of the task, determining whether the task execution time exceeds the forced end time during the task execution; forcibly ending the task when the determination is exceeded; and continuing execution when the determination is not exceeded The task until the end of the task.
  • the method further includes: at the end of the task, recording the actual end time of the task, and correcting the fit function based on the actual end time of the record.
  • the expected execution time of the task is determined according to the execution time of the task of the history, or is determined by the difference between the expected end time of the set task and the current time.
  • the present invention also provides an apparatus for smoothing data processing, the apparatus comprising:
  • the function is used to describe the data processing amount and the data processing time.
  • the data processing amount determining module is further configured to substitute the expected execution time of the task into the fitting function. A data processing amount corresponding to the expected execution time is obtained.
  • the apparatus further includes: a function correction module, configured to: at the end of the execution of the task, record an actual end time of the task, correct the fitting function according to the actual end time of the record, and provide the modified fitting function A module for data throughput determination.
  • a function correction module configured to: at the end of the execution of the task, record an actual end time of the task, correct the fitting function according to the actual end time of the record, and provide the modified fitting function A module for data throughput determination.
  • a method and apparatus for smoothing data processing provided by the present invention, using time versus data
  • the metric is predicted, and the appropriate data processing amount is calculated according to the expected processing time, which can smooth the processing of the data, and realize the control of the task processing time, so that the actual processing time of the data is close to the expected processing time;
  • online correction according to the actual processing time realizes the system's self-adaptation, reduces the volatility of task execution, and is beneficial to improve the stability and predictability of data processing in large-capacity systems.
  • FIG. 1 is a flow chart of a method for smoothing data processing according to the present invention
  • FIG. 1 is a schematic structural diagram of a device for smooth data processing according to the present invention. detailed description
  • the core idea of the present invention is: according to the expected execution time of the task, and determining the data processing amount of the task through the fitting function, and then controlling the execution of the task according to the determined data processing amount, thereby realizing the task Control of processing time.
  • the fitting function is used to describe the relationship between the data processing amount and the data processing time.
  • the expected execution time of the task is substituted into the fitting function, that is, the data processing amount corresponding to the expected execution time can be obtained.
  • the actual end time of the task may be recorded, and the fitting function is corrected according to the actual end time of the record, and the modified fitting function is applied to subsequent task processing; , can achieve dynamic adaptive adjustment of the fitting function to achieve the purpose of reducing the volatility of task execution.
  • the expected execution time of the task may be an absolute time set by the user, that is, the expected execution time of the task is determined by the difference between the expected end time of the task and the current time; of course, according to a specific algorithm.
  • Obtaining the expected execution time of the task for example:
  • the present invention provides a method for smoothing data processing, as shown in FIG. 1 As shown, it mainly includes the following steps:
  • Step 101 Set an expected end time of the task.
  • the user sets the corresponding expected end time according to the task to be performed.
  • Step 102 Obtain a difference between an expected end time of the task and the current time, and record it as At.
  • the set expected end time is subtracted from the current time to get At, At is the expected execution time of the task, which is used to indicate the expected time span of the task execution.
  • Step 103 Substituting the obtained expected execution time At into the fitting function to obtain a data processing amount.
  • the fitting function is denoted as F ( ), F ( ) is used to describe the relationship between the data processing amount and the data processing time.
  • Substituting At into F ( ) can obtain the data processing amount corresponding to At.
  • F ( ) can give an empirical value in the process of implementation, and correct it in the subsequent operation; and F ( ) is not limited to the function, but can also be realized by the calculation processing method such as process.
  • the invention uses the data processing amount calculated by the fitting function F ( ) as the actual data processing amount of the task, and thereby controls the actual execution time of the task, thereby improving the stability and predictability of the data processing.
  • the task is executed according to the obtained data processing amount, and when the actual data processing amount of the task reaches the above data processing amount, the operation of the control task execution ends, and the task execution time is recorded.
  • Step 105 Compare the recorded task execution time with the preset forced end time, and determine whether the task execution time exceeds the forced end time. If yes, execute step 106; otherwise, perform step 107.
  • Step 106 When it is determined that the task execution time exceeds the forced end time, the task is forcibly ended, and the process proceeds to step 107.
  • Step 107 At the end of the task, record the actual end time of the task, and correct the fitting function according to the actual end time of the task. 7
  • Step 106 the actual end time of the task is the forced end time; proceed to step 105, if the task execution time does not exceed the forced end time, the task continues to execute, if the task continues during the execution of the task If the execution time reaches the forced end time, the task is forcibly terminated.
  • the forced end time is the actual end time of the task. Alternatively, the actual end time of the task is recorded until the forced end time has not been reached until the task is completed.
  • the present invention forcibly ends the task when the task execution time exceeds the set forced end time, thereby achieving absolute controllability of the task execution time.
  • the actual end time of the task is subtracted from the time when the task starts executing, and the actual execution time of the task is obtained, and the fitting function is corrected according to the function relationship between the actual execution time of the task and the data processing amount.
  • the fit function can track the actual situation in time, thus more effectively fitting the functional relationship between data processing time and data throughput.
  • the dynamic adaptive correction of the fit function can be used, but not limited to, a linear fit.
  • the present invention further provides an apparatus for smoothing data processing.
  • the apparatus includes: a data processing amount determining module 10 and a task execution control module 20.
  • the data processing amount determining module 10 is configured to determine, according to an expected execution time of the task, a data processing amount of the task by using a fitting function; the fitting function is used to describe a function relationship between the data processing amount and the data processing time, and corresponding
  • the data processing amount determining module 10 substitutes the expected execution time of the task into the fitting function, that is, obtains the data processing amount corresponding to the expected execution time.
  • the task execution control module 20 is connected to the data processing amount determining module 10 for using the data processing amount. The execution of the data throughput control task determined by the module 10 is determined.
  • the apparatus further includes a determination module 30 and a function correction module 40 on the basis of the above modules.
  • the determining module 30 is configured to connect the task execution control module 20, configured to determine whether the task execution time exceeds a predetermined forced end time during the execution of the task, and notify the task execution control module 20 to end the task when the determination is exceeded, to implement the task.
  • the execution time is absolutely controllable.
  • the resulting fit function is provided to the data throughput determination module 10 to effect dynamic adaptive adjustment of the fit function.
  • the dynamic adaptive correction of the fit function can be used, but not limited to, a linear fit.
  • the method and apparatus of the present invention use time to predict the amount of data processing, and calculate an appropriate amount of data processing according to the expected processing time, which can smooth the processing of data and achieve control of task processing time.
  • the actual processing time of the data is close to the expected processing time; the fitting function is proposed, and the online correction is performed according to the actual processing time, the system is adaptive, the volatility of the task execution is reduced, and the data processing of the large-capacity system is improved. Stability and predictability.

Abstract

A method for smoothing data processing is provided. The method includes: determining data processing quantity of a task with a fitting function based on an expected execution time of the task; and controlling the execution of the task according to the determined data processing quantity. A device for smoothing data processing is provided as well. This solution predicts the data processing quantity of the task to enable the processing time of the task to be controlled and reduces the passivity of the task executing, thus facilitates improving the stability and predictability of the data processing in the high capacity system.

Description

一种平滑数据处理的方法和装置 技术领域  Method and device for smoothing data processing
本发明涉及通信领域的数据处理技术, 尤其涉及一种平滑数据处理的 方法和装置。 背景技术  The present invention relates to data processing techniques in the field of communications, and more particularly to a method and apparatus for smoothing data processing. Background technique
在智能网系统中, 往往需要在系统的后台配置任务, 来进行用户数据 的处理, 如用户信息的删除等等。 在大容量的系统中, 由于用户数据总量 非常大, 这些任务耗费的时间往往非常的多, 系统的负荷也会非常大。 在 商用的智能网系统中, 由于用户的使用习惯, 在月底或者节日等特殊的日 子常常会产生大量的一次性数据, 造成系统单日处理的数据量起伏较大, 处理时间波动剧烈, 这与商用系统要求的系统稳定性和可预测性产生矛盾, 需要采取措施来平滑这种波动。 发明内容  In an intelligent network system, it is often necessary to configure tasks in the background of the system to process user data, such as deletion of user information. In a large-capacity system, because the total amount of user data is very large, these tasks often take a lot of time and the system load is very large. In the commercial intelligent network system, due to the user's usage habits, a large amount of one-time data is often generated at special days such as the end of the month or the holiday, which causes the data volume of the system to be processed in a single day to fluctuate greatly, and the processing time fluctuates drastically. The system stability and predictability required by commercial systems are inconsistent and steps need to be taken to smooth out such fluctuations. Summary of the invention
有鉴于此, 本发明的主要目的在于提供一种平滑数据处理的方法和装 置, 以平滑智能网系统中的数据处理量和处理时间的波动。  In view of this, it is a primary object of the present invention to provide a method and apparatus for smoothing data processing to smooth fluctuations in data throughput and processing time in an intelligent network system.
为达到上述目的, 本发明的技术方案是这样实现的:  In order to achieve the above object, the technical solution of the present invention is achieved as follows:
本发明公开了一种平滑数据处理的方法, 该方法包括:  The invention discloses a method for smoothing data processing, the method comprising:
根据任务的预期执行时间, 通过拟合函数确定任务的数据处理量; 按照所确定的数据处理量控制所述任务的执行。  The data processing amount of the task is determined by the fitting function according to the expected execution time of the task; the execution of the task is controlled according to the determined data processing amount.
进一步地, 所述拟合函数用以描述数据处理量与数据处理时间的函数 述预期执行时间相对应的数据处理量。 该方法进一步包括: 预先设定任务的强制结束时间, 在所述任务执行 过程中, 判断任务执行时间是否超出所述强制结束时间; 在判定超出时, 强制结束任务; 判定未超出时, 继续执行所述任务, 直到任务结束。 Further, the fitting function is used to describe the amount of data processing corresponding to the expected execution time of the data processing amount and the data processing time. The method further includes: presetting a forced end time of the task, determining whether the task execution time exceeds the forced end time during the task execution; forcibly ending the task when the determination is exceeded; and continuing execution when the determination is not exceeded The task until the end of the task.
该方法进一步包括: 在所述任务结束时, 记录任务的实际结束时间, 并根据记录的实际结束时间对所述拟合函数进行修正。  The method further includes: at the end of the task, recording the actual end time of the task, and correcting the fit function based on the actual end time of the record.
进一步地, 所述任务的预期执行时间根据历史记录的所述任务的执行 时间来确定, 或者由设定的任务的预期结束时间与当前时间的差值来确定。  Further, the expected execution time of the task is determined according to the execution time of the task of the history, or is determined by the difference between the expected end time of the set task and the current time.
本发明还提供了一种平滑数据处理的装置, 该装置包括:  The present invention also provides an apparatus for smoothing data processing, the apparatus comprising:
数据处理量确定模块, 用于根据任务的预期执行时间, 通过拟合函数 确定任务的数据处理量;  a data processing quantity determining module, configured to determine a data processing amount of the task by using a fitting function according to an expected execution time of the task;
任务执行控制模块, 用于按照所确定的数据处理量控制所述任务的执 行。  The task execution control module is configured to control execution of the task according to the determined data processing amount.
其中, 所述拟合函数用以描述数据处理量与数据处理时间的函数关系; 相应的, 所述数据处理量确定模块进一步用于, 将所述任务的预期执 行时间代入所述拟合函数, 得到与所述预期执行时间相对应的数据处理量。  The function is used to describe the data processing amount and the data processing time. Correspondingly, the data processing amount determining module is further configured to substitute the expected execution time of the task into the fitting function. A data processing amount corresponding to the expected execution time is obtained.
该装置进一步包括: 判断模块, 用于在所述任务执行过程中判断任务 执行时间是否超出预定的强制结束时间, 并在判定超出时, 通知所述任务 执行控制模块强制结束任务; 在判定未超出时, 通知所述任务执行控制模 块继续执行所述任务, 直到任务执行结束。  The device further includes: a determining module, configured to determine whether the task execution time exceeds a predetermined forced end time during the execution of the task, and notify the task execution control module to forcibly end the task when the determination is exceeded; At the time, the task execution control module is notified to continue executing the task until the task execution ends.
该装置进一步包括: 函数修正模块, 用于在所述任务执行结束时, 记 录任务的实际结束时间, 根据记录的实际结束时间对所述拟合函数进行修 正, 并将修正后的拟合函数提供给数据处理量确定模块。  The apparatus further includes: a function correction module, configured to: at the end of the execution of the task, record an actual end time of the task, correct the fitting function according to the actual end time of the record, and provide the modified fitting function A module for data throughput determination.
所述任务的预期执行时间由历史记录的执行时间, 或由设定的任务的 预期结束时间与当前时间的差值来确定。  The expected execution time of the task is determined by the execution time of the history, or by the difference between the expected end time of the set task and the current time.
本发明所提供的一种平滑数据处理的方法和装置, 利用时间对数据处 理量进行预测, 根据预期处理时间计算出合适的数据处理量, 可以起到平 滑处理数据的目的, 并实现对任务处理时间的控制, 使数据的实际处理时 间接近预期处理时间; 提出拟合函数, 并根据实际处理时间对进行在线的 修正, 实现了系统的自适应, 降低了任务执行的波动性, 有利于提高大容 量系统数据处理的稳定性和可预测性。 附图说明 A method and apparatus for smoothing data processing provided by the present invention, using time versus data The metric is predicted, and the appropriate data processing amount is calculated according to the expected processing time, which can smooth the processing of the data, and realize the control of the task processing time, so that the actual processing time of the data is close to the expected processing time; And online correction according to the actual processing time, realizes the system's self-adaptation, reduces the volatility of task execution, and is beneficial to improve the stability and predictability of data processing in large-capacity systems. DRAWINGS
图 1为本发明一种平滑数据处理的方法流程图;  1 is a flow chart of a method for smoothing data processing according to the present invention;
图 1为本发明一种平滑数据处理的装置的组成结构示意图。 具体实施方式  FIG. 1 is a schematic structural diagram of a device for smooth data processing according to the present invention. detailed description
下面结合附图和具体实施例对本发明的技术方案进一步详细阐述。 为实现平滑的数据处理, 本发明的核心思想是: 根据任务的预期执行 时间, 并通过拟合函数确定任务的数据处理量, 再按照所确定的数据处理 量控制任务的执行, 从而实现对任务的处理时间的控制。 其中, 拟合函数 用以描述数据处理量与数据处理时间的函数关系, 相应的, 将任务的预期 执行时间代入拟合函数, 即能得到与预期执行时间相对应的数据处理量。 较佳的, 在任务执行结束时, 可以记录任务的实际结束时间, 并根据记录 的实际结束时间对拟合函数进行修正, 将修正的拟合函数应用于后续的任 务处理; 通过这样的循环操作, 能够实现对拟合函数的动态自适应调整, 以达到降低任务执行的波动性的目的。  The technical solutions of the present invention are further elaborated below in conjunction with the accompanying drawings and specific embodiments. In order to achieve smooth data processing, the core idea of the present invention is: according to the expected execution time of the task, and determining the data processing amount of the task through the fitting function, and then controlling the execution of the task according to the determined data processing amount, thereby realizing the task Control of processing time. The fitting function is used to describe the relationship between the data processing amount and the data processing time. Correspondingly, the expected execution time of the task is substituted into the fitting function, that is, the data processing amount corresponding to the expected execution time can be obtained. Preferably, at the end of the task execution, the actual end time of the task may be recorded, and the fitting function is corrected according to the actual end time of the record, and the modified fitting function is applied to subsequent task processing; , can achieve dynamic adaptive adjustment of the fitting function to achieve the purpose of reducing the volatility of task execution.
在实际应用中, 任务的预期执行时间可以是用户设定的绝对时间, 即 由任务的预期结束时间与当前时间的差值确定得到任务的预期执行时间; 当然, 也可以根据某种特定的算法得到任务的预期执行时间, 例如: 根据 基于上述的思想, 本发明所提供的一种平滑数据处理的方法, 如图 1 所示, 主要包括以下步驟: In an actual application, the expected execution time of the task may be an absolute time set by the user, that is, the expected execution time of the task is determined by the difference between the expected end time of the task and the current time; of course, according to a specific algorithm. Obtaining the expected execution time of the task, for example: According to the above idea, the present invention provides a method for smoothing data processing, as shown in FIG. 1 As shown, it mainly includes the following steps:
步驟 101 , 设定任务的预期结束时间。  Step 101: Set an expected end time of the task.
用户根据需要执行的任务设定对应的预期结束时间。  The user sets the corresponding expected end time according to the task to be performed.
步驟 102 , 获取任务的预期结束时间与当前时间的差值, 记为 At。 将设定的预期结束时间与当前时间相减得到 At, At即为任务的预期执 行时间, 用以表示任务执行的预期时间跨度。  Step 102: Obtain a difference between an expected end time of the task and the current time, and record it as At. The set expected end time is subtracted from the current time to get At, At is the expected execution time of the task, which is used to indicate the expected time span of the task execution.
步驟 103 , 将得到的预期执行时间 At代入拟合函数, 得出数据处理量。 该拟合函数记为 F ( ), F ( )用以描述数据处理量与数据处理时间的函 数关系, 将 At代入 F ( ) 中既能得到与 At相对应的数据处理量。 其中, F ( )可以在具体实施的过程中给出一个经验值, 并在后续的操作中进行修 正; 且 F ( ) 不仅限于函数, 也可以由过程等计算处理方法来实现。  Step 103: Substituting the obtained expected execution time At into the fitting function to obtain a data processing amount. The fitting function is denoted as F ( ), F ( ) is used to describe the relationship between the data processing amount and the data processing time. Substituting At into F ( ) can obtain the data processing amount corresponding to At. Among them, F ( ) can give an empirical value in the process of implementation, and correct it in the subsequent operation; and F ( ) is not limited to the function, but can also be realized by the calculation processing method such as process.
本发明将拟合函数 F ( )计算得出的数据处理量作为任务的实际数据处 理量, 并以此控制任务的实际执行时间, 从而提高数据处理的稳定性和可 预测性。  The invention uses the data processing amount calculated by the fitting function F ( ) as the actual data processing amount of the task, and thereby controls the actual execution time of the task, thereby improving the stability and predictability of the data processing.
步驟 104,按照得出的数据处理量控制任务的执行, 并记录任务执行时 间。  Step 104: Control the execution of the task according to the obtained data processing amount, and record the task execution time.
按照得出的数据处理量执行任务, 并在任务的实际数据处理量达到上 述的数据处理量时, 控制任务执行的操作结束, 记录下任务执行时间。  The task is executed according to the obtained data processing amount, and when the actual data processing amount of the task reaches the above data processing amount, the operation of the control task execution ends, and the task execution time is recorded.
步驟 105 , 将记录的任务执行时间与预设的强制结束时间进行比较, 判 断任务执行时间是否超出强制结束时间,如果超出,则执行步驟 106;否贝' J , 执行步驟 107。  Step 105: Compare the recorded task execution time with the preset forced end time, and determine whether the task execution time exceeds the forced end time. If yes, execute step 106; otherwise, perform step 107.
步驟 106, 判定任务执行时间超出强制结束时间时, 强制结束任务, 且 转到步驟 107。  Step 106: When it is determined that the task execution time exceeds the forced end time, the task is forcibly ended, and the process proceeds to step 107.
步驟 107, 任务结束时, 记录任务的实际结束时间, 并依据任务的实际 结束时间修正拟合函数。 7|接步驟 106, 任务的实际结束时间即为所述的强制结束时间; 承接步驟 105 , 如果任务执行时间没有超出强制结束时间时, 则任务继 续执行, 如果在任务继续执行的过程中, 任务执行时间达到了强制结束时 间, 则强制结束任务, 该强制结束时间即为任务的实际结束时间; 或者, 直到任务执行完毕还没有达到强制结束时间, 则记录下任务的实际结束时 间。 Step 107: At the end of the task, record the actual end time of the task, and correct the fitting function according to the actual end time of the task. 7 | Step 106, the actual end time of the task is the forced end time; proceed to step 105, if the task execution time does not exceed the forced end time, the task continues to execute, if the task continues during the execution of the task If the execution time reaches the forced end time, the task is forcibly terminated. The forced end time is the actual end time of the task. Alternatively, the actual end time of the task is recorded until the forced end time has not been reached until the task is completed.
本发明通过设定强制结束时间, 在任务执行时间超出设定的强制结束 时间时, 强制结束任务, 从而实现对任务执行时间的绝对可控。  By setting the forced end time, the present invention forcibly ends the task when the task execution time exceeds the set forced end time, thereby achieving absolute controllability of the task execution time.
将任务的实际结束时间与任务开始执行时的时间相减, 得到任务的实 际执行时间, 并根据任务的实际执行时间和数据处理量的函数关系, 对拟 合函数进行修正。 通过使用实际执行时间来动态修正拟合函数, 可以使拟 合函数及时跟踪实际的情况, 从而更有效的拟合数据处理时间和数据处理 量的函数关系。 拟合函数的动态自适应修正可以采用但不仅限于线性拟合 的方式。  The actual end time of the task is subtracted from the time when the task starts executing, and the actual execution time of the task is obtained, and the fitting function is corrected according to the function relationship between the actual execution time of the task and the data processing amount. By using the actual execution time to dynamically correct the fit function, the fit function can track the actual situation in time, thus more effectively fitting the functional relationship between data processing time and data throughput. The dynamic adaptive correction of the fit function can be used, but not limited to, a linear fit.
在后续的任务执行时, 重复执行上述步驟 101~107的操作, 只是将使 用修正后的拟合函数。 由此可以看出, 通过这样的循环操作, 能够实现对 拟合函数的动态自适应调整, 从而得出更加符合实际情况的拟合函数, 以 更好的达到降低任务执行的波动性的目的。  During the subsequent task execution, the above steps 101~107 are repeated, except that the modified fitting function will be used. It can be seen that through such a cyclic operation, dynamic adaptive adjustment of the fitting function can be realized, thereby obtaining a fitting function more in line with the actual situation, so as to better achieve the purpose of reducing the volatility of task execution.
为实现上述平滑数据处理的方法, 本发明还提供一种平滑数据处理的 装置, 如图 2所示, 该装置包括: 数据处理量确定模块 10和任务执行控制 模块 20。 其中, 数据处理量确定模块 10, 用于根据任务的预期执行时间, 并通过拟合函数确定任务的数据处理量; 该拟合函数用以描述数据处理量 与数据处理时间的函数关系, 相应的, 数据处理量确定模块 10将任务的预 期执行时间代入拟合函数, 即得到与预期执行时间相对应的数据处理量。 任务执行控制模块 20, 连接数据处理量确定模块 10, 用于按照数据处理量 确定模块 10所确定的数据处理量控制任务的执行。 In order to implement the above method for smoothing data processing, the present invention further provides an apparatus for smoothing data processing. As shown in FIG. 2, the apparatus includes: a data processing amount determining module 10 and a task execution control module 20. The data processing amount determining module 10 is configured to determine, according to an expected execution time of the task, a data processing amount of the task by using a fitting function; the fitting function is used to describe a function relationship between the data processing amount and the data processing time, and corresponding The data processing amount determining module 10 substitutes the expected execution time of the task into the fitting function, that is, obtains the data processing amount corresponding to the expected execution time. The task execution control module 20 is connected to the data processing amount determining module 10 for using the data processing amount. The execution of the data throughput control task determined by the module 10 is determined.
较佳的, 该装置在上述模块的基础上进一步包括判断模块 30和函数修 正模块 40。 判断模块 30, 连接任务执行控制模块 20, 用于在任务执行过程 中判断任务执行时间是否超出预定的强制结束时间, 并在判定超出时, 通 知任务执行控制模块 20强制结束任务,以实现对任务执行时间的绝对可控。 函数修正模块 40, 连接数据处理量确定模块 10和任务执行控制模块 20, 用于在任务执行结束时, 记录任务的实际结束时间, 根据记录的实际结束 时间对拟合函数进行修正, 并将修正后的拟合函数提供给数据处理量确定 模块 10, 从而实现对拟合函数的动态自适应调整。 拟合函数的动态自适应 修正可以采用但不仅限于线性拟合的方式。  Preferably, the apparatus further includes a determination module 30 and a function correction module 40 on the basis of the above modules. The determining module 30 is configured to connect the task execution control module 20, configured to determine whether the task execution time exceeds a predetermined forced end time during the execution of the task, and notify the task execution control module 20 to end the task when the determination is exceeded, to implement the task. The execution time is absolutely controllable. The function correction module 40, the connection data processing amount determining module 10 and the task execution control module 20, for recording the actual end time of the task at the end of the task execution, correcting the fitting function according to the actual end time of the record, and correcting The resulting fit function is provided to the data throughput determination module 10 to effect dynamic adaptive adjustment of the fit function. The dynamic adaptive correction of the fit function can be used, but not limited to, a linear fit.
综上所述, 本发明的方法和装置利用时间对数据处理量进行预测, 根 据预期处理时间计算出合适的数据处理量, 可以起到平滑处理数据的目的, 并实现对任务处理时间的控制, 使数据的实际处理时间接近预期处理时间; 提出拟合函数, 并根据实际处理时间对进行在线的修正, 实现了系统的自 适应, 降低了任务执行的波动性, 有利于提高大容量系统数据处理的稳定 性和可预测性。  In summary, the method and apparatus of the present invention use time to predict the amount of data processing, and calculate an appropriate amount of data processing according to the expected processing time, which can smooth the processing of data and achieve control of task processing time. The actual processing time of the data is close to the expected processing time; the fitting function is proposed, and the online correction is performed according to the actual processing time, the system is adaptive, the volatility of the task execution is reduced, and the data processing of the large-capacity system is improved. Stability and predictability.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims

权利要求书 Claim
1、 一种平滑数据处理的方法, 其特征在于, 该方法包括:  A method for smoothing data processing, the method comprising:
根据任务的预期执行时间, 通过拟合函数确定任务的数据处理量; 按照所确定的数据处理量控制所述任务的执行。  The data processing amount of the task is determined by the fitting function according to the expected execution time of the task; the execution of the task is controlled according to the determined data processing amount.
2、 根据权利要求 1所述平滑数据处理的方法, 其特征在于, 所述拟合 函数用以描述数据处理量与数据处理时间的函数关系; 相应的, 将所述任 务的预期执行时间代入所述拟合函数, 得到与所述预期执行时间相对应的 数据处理量。  2. The method of smoothing data processing according to claim 1, wherein the fitting function is used to describe a relationship between a data processing amount and a data processing time; and correspondingly, the expected execution time of the task is substituted into the The fitting function is obtained to obtain a data processing amount corresponding to the expected execution time.
3、 根据权利要求 1所述平滑数据处理的方法, 其特征在于, 该方法进 一步包括: 预先设定任务的强制结束时间, 在所述任务执行过程中, 判断 任务执行时间是否超出所述强制结束时间; 在判定超出时, 强制结束任务; 判定未超出时, 继续执行所述任务, 直到任务结束。  The method of smoothing data processing according to claim 1, wherein the method further comprises: presetting a forced end time of the task, and determining whether the task execution time exceeds the forced end during the task execution process Time; when the judgment is exceeded, the task is forcibly terminated; when the judgment is not exceeded, the task is continued until the task ends.
4、 根据权利要求 3所述平滑数据处理的方法, 其特征在于, 该方法进 一步包括: 在所述任务结束时, 记录任务的实际结束时间, 并根据记录的 实际结束时间对所述拟合函数进行修正。  4. The method of smoothing data processing according to claim 3, wherein the method further comprises: at the end of the task, recording an actual end time of the task, and comparing the fitting function according to the actual end time of the record. Make corrections.
5、根据权利要求 1至 4任一项所述平滑数据处理的方法,其特征在于, 所述任务的预期执行时间根据历史记录的所述任务的执行时间来确定, 或 者由设定的任务的预期结束时间与当前时间的差值来确定。  The method for smoothing data processing according to any one of claims 1 to 4, wherein the expected execution time of the task is determined according to an execution time of the history recorded task, or by a set task The difference between the expected end time and the current time is determined.
6、 一种平滑数据处理的装置, 其特征在于, 该装置包括:  6. A device for smoothing data processing, the device comprising:
数据处理量确定模块, 用于根据任务的预期执行时间, 通过拟合函数 确定任务的数据处理量;  a data processing quantity determining module, configured to determine a data processing amount of the task by using a fitting function according to an expected execution time of the task;
任务执行控制模块, 用于按照所确定的数据处理量控制所述任务的执 行。  The task execution control module is configured to control execution of the task according to the determined data processing amount.
7、 根据权利要求 6所述平滑数据处理的装置, 其特征在于, 所述拟合 函数用以描述数据处理量与数据处理时间的函数关系; 相应的, 所述数据处理量确定模块进一步用于, 将所述任务的预期执 行时间代入所述拟合函数, 得到与所述预期执行时间相对应的数据处理量。 7. The apparatus for smoothing data processing according to claim 6, wherein the fitting function is used to describe a function relationship between a data processing amount and a data processing time; Correspondingly, the data processing amount determining module is further configured to substitute the expected execution time of the task into the fitting function to obtain a data processing amount corresponding to the expected execution time.
8、 根据权利要求 6所述平滑数据处理的装置, 其特征在于, 该装置进 超出预定的强制结束时间, 并在判定超出时, 通知所述任务执行控制模块 强制结束任务; 在判定未超出时, 通知所述任务执行控制模块继续执行所 述任务, 直到任务执行结束。  8. The apparatus for smoothing data processing according to claim 6, wherein the device enters a predetermined forced end time, and when the determination is exceeded, notifying the task execution control module to forcibly end the task; when the determination is not exceeded Notifying the task execution control module to continue executing the task until the task execution ends.
9、 根据权利要求 8所述平滑数据处理的装置, 其特征在于, 该装置进 一步包括: 函数修正模块, 用于在所述任务执行结束时, 记录任务的实际 结束时间, 根据记录的实际结束时间对所述拟合函数进行修正, 并将修正 后的拟合函数提供给数据处理量确定模块。  9. The apparatus for smoothing data processing according to claim 8, wherein the apparatus further comprises: a function correction module, configured to record an actual end time of the task at the end of execution of the task, according to an actual end time of the record The fitting function is corrected, and the modified fitting function is provided to the data processing amount determining module.
10、 根据权利要求 6至 9任一项所述平滑数据处理的装置, 其特征在 于, 所述任务的预期执行时间由历史记录的执行时间, 或由设定的任务的 预期结束时间与当前时间的差值来确定。  10. The apparatus for smoothing data processing according to any one of claims 6 to 9, characterized in that the expected execution time of the task is from the execution time of the history, or the expected end time and current time of the set task. The difference is determined.
PCT/CN2010/073664 2009-07-23 2010-06-08 Method and device for smoothing data processing WO2011009345A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910089782.XA CN101615135B (en) 2009-07-23 2009-07-23 A kind of method and apparatus of smoothed data process
CN200910089782.X 2009-07-23

Publications (1)

Publication Number Publication Date
WO2011009345A1 true WO2011009345A1 (en) 2011-01-27

Family

ID=41494793

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/073664 WO2011009345A1 (en) 2009-07-23 2010-06-08 Method and device for smoothing data processing

Country Status (2)

Country Link
CN (1) CN101615135B (en)
WO (1) WO2011009345A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101615135B (en) * 2009-07-23 2015-08-12 中兴通讯股份有限公司 A kind of method and apparatus of smoothed data process
CN113296874B (en) * 2020-05-29 2022-06-21 阿里巴巴集团控股有限公司 Task scheduling method, computing device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1538297A (en) * 2003-04-16 2004-10-20 ��ʿͨ��ʽ���� Device for adjusting used of system resource and its method
CN101482944A (en) * 2000-11-09 2009-07-15 Spss公司 System and method for building a time series model
CN101615135A (en) * 2009-07-23 2009-12-30 中兴通讯股份有限公司 The method and apparatus that a kind of smoothed data is handled

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100257613B1 (en) * 1996-10-15 2000-06-01 모리시타 요이찌 Video and audio coding method, coding apparatus, and coding program recording medium
CN101459605B (en) * 2008-12-31 2012-03-21 成都市华为赛门铁克科技有限公司 Method and device for flow control

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101482944A (en) * 2000-11-09 2009-07-15 Spss公司 System and method for building a time series model
CN1538297A (en) * 2003-04-16 2004-10-20 ��ʿͨ��ʽ���� Device for adjusting used of system resource and its method
CN101615135A (en) * 2009-07-23 2009-12-30 中兴通讯股份有限公司 The method and apparatus that a kind of smoothed data is handled

Also Published As

Publication number Publication date
CN101615135B (en) 2015-08-12
CN101615135A (en) 2009-12-30

Similar Documents

Publication Publication Date Title
CN107463424B (en) Virtual machine migration method and device
US20170070954A1 (en) Method and apparatus for controlling power at base station in a communication system
TW201239557A (en) Controlling device and controlling method
CN101201689B (en) Method for automatically supervising CPU power consumption in multitask system
CN110704274A (en) Temperature control method, device and equipment for solid state disk
WO2011009345A1 (en) Method and device for smoothing data processing
CN109026807A (en) A kind of control method and device of rotation speed of the fan
CN109405053A (en) Heating control method and heat supply stove
CN110380982A (en) A kind of flow control methods and relevant apparatus
CN105786034B (en) System and method for controlling content of nitrogen oxides at denitration outlet of boiler
CN103970555A (en) Self-adapting virtual machine start control method and device
CN105827543A (en) Traffic control method and electronic device
CN205427663U (en) Constant temperature heating circuit of adjustable temperature
CA2722051A1 (en) Method and apparatus for variable video bitrate control in which picture bitrate correction is limited to be within a calculated range
JP6963938B2 (en) Heating system
JP2017027389A (en) Control device and control method
JP4355894B2 (en) Automatic injection device for pH adjuster
CN113639470A (en) Water quantity control method and device for water heater, water heater and storage medium
US9389670B2 (en) Portable electronic apparatus and power management method
JP5405907B2 (en) Starting device and starting method
JP4393337B2 (en) Semiconductor substrate processing apparatus and semiconductor device manufacturing method
CN112838592A (en) Load-source coordinated day-ahead scheduling method, device and system
CN108121426B (en) Chip voltage adjusting method, device and system
CN100410842C (en) Central processing unit temperature regulating method and system
KR102539548B1 (en) Disturbance suppression device, disturbance suppression method and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10801904

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10801904

Country of ref document: EP

Kind code of ref document: A1