CN107368363A - A kind of cycle management method and device - Google Patents

A kind of cycle management method and device Download PDF

Info

Publication number
CN107368363A
CN107368363A CN201710594513.3A CN201710594513A CN107368363A CN 107368363 A CN107368363 A CN 107368363A CN 201710594513 A CN201710594513 A CN 201710594513A CN 107368363 A CN107368363 A CN 107368363A
Authority
CN
China
Prior art keywords
dispatching cycle
value
difference
determined
cycle
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.)
Pending
Application number
CN201710594513.3A
Other languages
Chinese (zh)
Inventor
孟庆龙
闫冬冬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710594513.3A priority Critical patent/CN107368363A/en
Publication of CN107368363A publication Critical patent/CN107368363A/en
Pending legal-status Critical Current

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
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The present invention provides a kind of cycle management method and device, and the above method comprises the following steps:According to the current work load value of acquisition, it is determined that corresponding dispatching cycle;According to the dispatching cycle, processing is scheduled to service request.Above-mentioned technical proposal, according to current work load situation, the adaptive adjustment of dispatching cycle is realized, resource utilization is effectively raised while service response is ensured.

Description

A kind of cycle management method and device
Technical field
The invention belongs to cycle management field, more particularly to a kind of cycle management method and device.
Background technology
In cloud computing era, system architecture uses modularization more, and serviceization is designed, and services the fundamental form of realization Formula is finger daemon, receives request using endless form in finger daemon, performs the work such as task, transmission response, and wherein The period frequency of circulation turns into the key factor of service overall performance.
The period frequency of circulation is higher, and service response is faster, and resource occupation is higher;The period frequency of circulation is slower, service Response is slower, and resource occupation is lower.
How according to service current work load, automation adjustment cycle frequencies so that service response makes with resource It is optimized into rate as system function optimization key issue urgently to be resolved hurrily.
The content of the invention
The present invention provides a kind of cycle management method and device, to solve the above problems.
The embodiment of the present invention provides a kind of cycle management method, comprises the following steps:According to the current work load of acquisition Value, it is determined that corresponding dispatching cycle;According to the dispatching cycle, processing is scheduled to service request.
The embodiment of the present invention also provides a kind of cycle management device, including processor, is adapted for carrying out each instruction;Storage is set Standby, suitable for storing a plurality of instruction, the instruction is suitable to be loaded and performed by the processor;
According to the current work load value of acquisition, it is determined that corresponding dispatching cycle;
According to the dispatching cycle, processing is scheduled to service request.
Technical scheme provided in an embodiment of the present invention:According to the current work load value of acquisition, it is determined that corresponding scheduling week Phase;According to the dispatching cycle, processing is scheduled to service request.
Above-mentioned technical proposal, according to current work load situation, the adaptive adjustment of dispatching cycle is realized, ensureing to take Resource utilization is effectively raised while business response.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 show the cycle management method flow diagram of the embodiment of the present invention 1;
Fig. 2 show the cycle management structure drawing of device of the embodiment of the present invention 2.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that do not conflicting In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
The technological innovation of the embodiment of the present invention is:Main Basiss current work load, using current service workload as Input, the dispatching cycle of service optimization is calculated, wherein dispatching cycle is maximum in cycle minimum value MIN _ INTERVAL and cycle Fluctuated between value MAX_INTERVAL.
System, when system workload is high, is tended to MIN_INTERVAL and adjusted dispatching cycle with initial schedule cycling It is whole;When system workload is low, tend to MAX_INTERVAL adjustment dispatching cycle.
By calculating the dispatching cycle of service optimization, the adaptive adjustment of dispatching cycle is realized, is ensureing service response While effectively raise resource utilization.
Specifically:
First, finger daemon service, which is set, initializes dispatching cycle, main to include creating Load objects and complete initially to adjust Spend cycle setting;
Secondly, finger daemon service is adjusted according to current work load, Load objects update_load () method renewal of calling Spend the cycle;
When workload value is more than early warning value, mark current service workload is high, then by dispatching cycle to MIN_ INTERVAL is adjusted;Otherwise, indicate that current service workload is low, then adjust dispatching cycle to MAX_INTERVAL;
Finally, finger daemon service processing current service request, Load objects get_load () method is called to obtain scheduling Cycle, and perform and wait sleep operations, discharge cpu resource.
Fig. 1 show the cycle management method flow diagram of the embodiment of the present invention 1, comprises the following steps:
Step 101:According to the current work load value of acquisition, it is determined that corresponding dispatching cycle;
Step 102:According to the dispatching cycle, processing is scheduled to service request.
Further, according to current work load value, it is determined that corresponding workload value scope, and then adjust corresponding to determining Spend the cycle.With specific reference to shown in table 1.
According to the dispatching cycle, processing is scheduled to service request.
Workload value, workload value scope and mapping table dispatching cycle
Workload value Workload value scope Dispatching cycle
a A≤X < B T1
b B≤X < C T2
c X≥C T3
Table 1
Further, the difference between current work load value and early warning value is obtained, and according to the difference, it is determined that corresponding Period modulation value;
Current dispatching cycle is adjusted according to the period modulation value, obtains the dispatching cycle after adjustment;
According to the dispatching cycle after adjustment, processing is scheduled to service request.
Preferably, according to the difference, it is determined that the process of corresponding period modulation value is:
According to the difference, it is determined that corresponding difference range, and then period modulation value corresponding to determining.
With specific reference to shown in table 2.
Difference, difference range and period modulation value mapping table
Difference Difference range Period modulation value
a1 A1≤X < B1 b
b2 B1≤X < C2 c
c3 X≥C2 d
Table 2
Preferably, according to the difference, it is determined that the process of corresponding period modulation value is:
By the difference divided by unit regulation coefficient, period modulation value is obtained.
Wherein, the unit regulation coefficient can flexibly be set as needed, be not used in restriction the present embodiment herein Protection domain.
Fig. 2 show the cycle management structure drawing of device of the embodiment of the present invention 2, including processor, is adapted for carrying out each instruction; Storage device, suitable for storing a plurality of instruction, the instruction is suitable to be loaded and performed by the processor;
According to the current work load value of acquisition, it is determined that corresponding dispatching cycle;
According to the dispatching cycle, processing is scheduled to service request.
Further, according to current work load value, it is determined that corresponding workload value scope, and then adjust corresponding to determining Spend the cycle;
According to the dispatching cycle, processing is scheduled to service request.
Further, the difference between current work load value and early warning value is obtained, and according to the difference, it is determined that corresponding Period modulation value;
Current dispatching cycle is adjusted according to the period modulation value, obtains the dispatching cycle after adjustment;
According to the dispatching cycle after adjustment, processing is scheduled to service request.
Preferably, according to the difference, it is determined that the process of corresponding period modulation value is:
According to the difference, it is determined that corresponding difference range, and then period modulation value corresponding to determining.
Preferably, according to the difference, it is determined that the process of corresponding period modulation value is:
By the difference divided by unit regulation coefficient, period modulation value is obtained.
Technical scheme provided in an embodiment of the present invention:According to the current work load value of acquisition, it is determined that corresponding scheduling week Phase;According to the dispatching cycle, processing is scheduled to service request.
Above-mentioned technical proposal, according to current work load situation, the adaptive adjustment of dispatching cycle is realized, ensureing to take Resource utilization is effectively raised while business response.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (10)

  1. A kind of 1. cycle management method, it is characterised in that comprise the following steps:
    According to the current work load value of acquisition, it is determined that corresponding dispatching cycle;
    According to the dispatching cycle, processing is scheduled to service request.
  2. 2. according to the method for claim 1, it is characterised in that according to current work load value, it is determined that corresponding work is born Load value scope, and then dispatching cycle corresponding to determination;
    According to the dispatching cycle, processing is scheduled to service request.
  3. 3. according to the method for claim 1, it is characterised in that obtain the difference between current work load value and early warning value Value, and according to the difference, it is determined that corresponding period modulation value;
    Current dispatching cycle is adjusted according to the period modulation value, obtains the dispatching cycle after adjustment;
    According to the dispatching cycle after adjustment, processing is scheduled to service request.
  4. 4. according to the method for claim 3, it is characterised in that according to the difference, it is determined that corresponding period modulation value Process is:
    According to the difference, it is determined that corresponding difference range, and then period modulation value corresponding to determining.
  5. 5. according to the method for claim 3, it is characterised in that according to the difference, it is determined that corresponding period modulation value Process is:
    By the difference divided by unit regulation coefficient, period modulation value is obtained.
  6. 6. a kind of cycle management device, it is characterised in that including processor, be adapted for carrying out each instruction;Storage device, suitable for storage A plurality of instruction, the instruction are suitable to be loaded and performed by the processor;
    According to the current work load value of acquisition, it is determined that corresponding dispatching cycle;
    According to the dispatching cycle, processing is scheduled to service request.
  7. 7. device according to claim 6, it is characterised in that according to current work load value, it is determined that corresponding work is born Load value scope, and then dispatching cycle corresponding to determination;
    According to the dispatching cycle, processing is scheduled to service request.
  8. 8. device according to claim 6, it is characterised in that obtain the difference between current work load value and early warning value Value, and according to the difference, it is determined that corresponding period modulation value;
    Current dispatching cycle is adjusted according to the period modulation value, obtains the dispatching cycle after adjustment;
    According to the dispatching cycle after adjustment, processing is scheduled to service request.
  9. 9. device according to claim 8, it is characterised in that according to the difference, it is determined that corresponding period modulation value Process is:
    According to the difference, it is determined that corresponding difference range, and then period modulation value corresponding to determining.
  10. 10. device according to claim 8, it is characterised in that according to the difference, it is determined that corresponding period modulation value Process is:
    By the difference divided by unit regulation coefficient, period modulation value is obtained.
CN201710594513.3A 2017-07-20 2017-07-20 A kind of cycle management method and device Pending CN107368363A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710594513.3A CN107368363A (en) 2017-07-20 2017-07-20 A kind of cycle management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710594513.3A CN107368363A (en) 2017-07-20 2017-07-20 A kind of cycle management method and device

Publications (1)

Publication Number Publication Date
CN107368363A true CN107368363A (en) 2017-11-21

Family

ID=60307516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710594513.3A Pending CN107368363A (en) 2017-07-20 2017-07-20 A kind of cycle management method and device

Country Status (1)

Country Link
CN (1) CN107368363A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783211A (en) * 2018-12-14 2019-05-21 成都四方伟业软件股份有限公司 A kind of batch task scheduling system and dispatching method based on business diary

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699368A (en) * 2009-11-02 2010-04-28 中兴通讯股份有限公司 Method and device for adaptive dynamic frequency or voltage adjustment of CPU
CN104978235A (en) * 2015-06-30 2015-10-14 柏斯红 Operating frequency prediction based load balancing method
US20160004564A1 (en) * 2014-07-02 2016-01-07 Samsung Electronics Co., Ltd. Method for task scheduling and electronic device using the same
CN106162639A (en) * 2015-11-25 2016-11-23 北京邮电大学 SDN wireless network management platform based on Floodlight and authentication method
CN106209469A (en) * 2016-07-21 2016-12-07 杭州迪普科技有限公司 The method and device that process is restarted
CN106896897A (en) * 2017-02-24 2017-06-27 郑州云海信息技术有限公司 A kind of cpu performance method of adjustment and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699368A (en) * 2009-11-02 2010-04-28 中兴通讯股份有限公司 Method and device for adaptive dynamic frequency or voltage adjustment of CPU
US20160004564A1 (en) * 2014-07-02 2016-01-07 Samsung Electronics Co., Ltd. Method for task scheduling and electronic device using the same
CN104978235A (en) * 2015-06-30 2015-10-14 柏斯红 Operating frequency prediction based load balancing method
CN106162639A (en) * 2015-11-25 2016-11-23 北京邮电大学 SDN wireless network management platform based on Floodlight and authentication method
CN106209469A (en) * 2016-07-21 2016-12-07 杭州迪普科技有限公司 The method and device that process is restarted
CN106896897A (en) * 2017-02-24 2017-06-27 郑州云海信息技术有限公司 A kind of cpu performance method of adjustment and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783211A (en) * 2018-12-14 2019-05-21 成都四方伟业软件股份有限公司 A kind of batch task scheduling system and dispatching method based on business diary

Similar Documents

Publication Publication Date Title
US9766933B2 (en) Fine-grained capacity management of computing environments that may support a database
TWI425422B (en) Multi-cpu domain mobile electronic device and operation method thereof
US20200127938A1 (en) Systems and methods for provision of a guaranteed batch
CN102843419B (en) A kind of service resource allocation method and system
US20080307248A1 (en) Cpu Clock Control Device, Cpu Clock Control Method, Cpu Clock Control Program, Recording Medium, and Transmission Medium
CN102779062A (en) Method and device for controlling number of threads accessing system resources
US20180032376A1 (en) Apparatus and method for group-based scheduling in multi-core processor system
CN103345415A (en) Terminal energy-saving method and device for management timer
Min-Allah et al. Optimal task execution times for periodic tasks using nonlinear constrained optimization
CN107797644A (en) A kind of SOC dynamic voltage frequency adjusts implementation method
CN109086194A (en) A kind of thread pool capacity adjustment method, device, equipment and readable storage medium storing program for executing
CN114710563A (en) Cluster energy saving method and device
Bampis et al. Speed scaling with power down scheduling for agreeable deadlines
Xie et al. Schedule length minimization of parallel applications with energy consumption constraints using heuristics on heterogeneous distributed systems
KR101655030B1 (en) Dynamic voltage frequency scaling method using slack-distribution based on task-characteristics, execution program thereof method and recorded medium of the program
Wang et al. Power-aware cpu utilization control for distributed real-time systems
CN107368363A (en) A kind of cycle management method and device
CN100511155C (en) Method for implementing non accumulation inaccuracy and self-adaption timer
Gerards et al. Analytic clock frequency selection for global DVFS
KR101232561B1 (en) Apparatus and method for scheduling task and resizing cache memory of embedded multicore processor
Khan et al. Energy efficient resource allocation in distributed computing systems
Melot et al. Improving energy-efficiency of static schedules by core consolidation and switching off unused cores
CN103826228A (en) Method and device for planning and allocating resources
KR20160018030A (en) Method and apparatus for executing software in a electronic device
US20160179716A1 (en) Timer management apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171121