CN1275156C - Wake and sleep mode switchover control method and system for batch data processing - Google Patents

Wake and sleep mode switchover control method and system for batch data processing Download PDF

Info

Publication number
CN1275156C
CN1275156C CN 03157382 CN03157382A CN1275156C CN 1275156 C CN1275156 C CN 1275156C CN 03157382 CN03157382 CN 03157382 CN 03157382 A CN03157382 A CN 03157382A CN 1275156 C CN1275156 C CN 1275156C
Authority
CN
China
Prior art keywords
data
data processing
processing unit
packet
module
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.)
Expired - Fee Related
Application number
CN 03157382
Other languages
Chinese (zh)
Other versions
CN1598775A (en
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.)
Inventec Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CN 03157382 priority Critical patent/CN1275156C/en
Publication of CN1598775A publication Critical patent/CN1598775A/en
Application granted granted Critical
Publication of CN1275156C publication Critical patent/CN1275156C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to a method and a system for switching and controlling an awaking mode and a sleep mode for batch data processing, which at least comprises a data temporary storage module, a data access module, a monitoring module of a first temporary storage state, a data processing monitoring module and a monitoring module of a second temporary storage state. The present invention is used for embarking to an information platform, such as a network server so as to switch and control the whole batch of the sleep mode and the awaking mode of a data processing unit in the information platform. The mode switching frequency of the data processing unit is reduced, but the integral data processing efficiency is increased. The method and the system are characterized in that the data processing unit is switched back to the sleep mode from the awaking mode after the processing of a data packet of the whole batch is completed, unlike the prior art that the data processing unit is switched back to the sleep mode after the processing of each data packet is completed. Thus, the mode switching frequency of the data processing unit can be reduced and the integral data processing efficiency is increased by the present invention.

Description

Lot data is handled and is waken up and sleep pattern method for handover control and system
Technical field
The invention relates to a kind of electronic information technology, particularly handle and wake up and sleep pattern method for handover control and system about a kind of lot data, it carries to an information platform, the webserver for example, it can according to data batch, sleep pattern (sleep mode) to a data processing unit in this information platform is carried out switching controls with awakening mode (wakeup mode), rather than the processing of each packet is all carried out the switching of sleep pattern and awakening mode, reduce the mode switch frequency whereby, promote whole data processing usefulness.
Background technology
Because the data volume that the webserver is handled is very huge, the therefore common great data memory device of configuration capacity, for example the disc array devices that connects with fiber channel (Fibre Channel) standard interface can be the data, services function that the network user provides vast capacity.
Various data are the forms with packing, just the form of packet is transmitted in network, when the Data Receiving interface of the webserver receives a packet, operating system just can be waken a data processing unit (just this data processing unit being switched to awakening mode from sleep pattern) up, this packet is carried out predetermined handling procedure, for example translator, gunzip, decrypted program, a format conversion program etc.; And after whenever handling a packet, again this data processing unit is switched back sleep pattern.
If the Data Receiving interface receives two or more packets simultaneously, data processing unit at first can be switched into awakening mode from sleep pattern, to handle first packet; After handling first packet, be switched back sleep pattern again; Then owing to also have untreated next packet, data processing unit is switched into awakening mode from sleep pattern again once again, to handle second packet; And after handling second packet, be switched back sleep pattern again; Mode continues to carry out according to this, till all packets are all handled.
An above-mentioned shortcoming of waking up with the sleep pattern switching mode is, if the Data Receiving interface receives large quantities of packets simultaneously, then because data processing unit must switch to awakening mode from sleep pattern at each packet, and after handling each packet, be switched back sleep pattern again, make operating system on mode switch, spend many times, whole data processing usefulness is reduced.
Summary of the invention
For overcoming the shortcoming of above-mentioned prior art, fundamental purpose of the present invention is to provide a kind of lot data to handle and wakes up and sleep pattern method for handover control and system, can reduce the switching frequency that wakes up with sleep pattern, promotes whole data processing usefulness.
Lot data of the present invention is handled to wake up with sleep pattern method for handover control and system and can be carried to an information platform, and this information platform has a data processing unit and a Data Receiving interface; Wherein the Data Receiving interface receives each packet that a Data Source sends; Data processing unit is carried out a predetermined handling procedure, each packet that the deal with data receiving interface is received, and this data processing unit has a sleep pattern (sleep mode) and an awakening mode (wakeup mode).
Lot data of the present invention is handled to wake up with the sleep pattern handover control system and comprised at least: data are kept in module, each packet that its temporal data receiving interface receives; One data access module, it carries out an access program at the temporary module of data, and each packet that the Data Receiving interface is received is stored in the temporary module of data, or each packet in the temporary module of data is taken out by a predefined procedure; One first temporary state monitoring module, when the temporary module of data is stored into first packet under idle condition, the wake-up activation information of sending is to data processing unit, data processing unit is switched to awakening mode from sleep pattern, make first packet that deposits in the temporary module of its deal with data; One data processing monitor module, its monitoring data processing unit is carried out each handling procedure, when data processing unit is whenever handled a packet, sends a temporal data fox message; And, one second temporary state monitoring module, its response data is handled the temporal data fox message that monitor module sends at every turn, checks whether the temporary module of data has been idle condition at present; If not, then make data access module continue the next packet in the temporary module of data is taken out, and send data processing unit to, the handling procedure that it is scheduled to this packet; If, then send a sleep active information to data processing unit, data processing unit is switched back sleep pattern from awakening mode.
Lot data of the present invention is handled the implementation procedure of waking up with the sleep pattern method for handover control: each packet that the Data Receiving interface is received is stored to the temporary module of data; Then, when the temporary module of data deposited first packet at every turn under idle condition, the wake-up activation information of promptly sending switched to awakening mode with data processing unit from sleep pattern to data processing unit; Each packet that then the temporary module of data is stored takes out in regular turn again, and sends the data processing unit under the awakening mode to, carries out a predetermined handling procedure; When data processing unit is whenever handled a packet, check immediately whether the temporary module of data has been idle condition at last; If not, then continue the next packet in the temporary module of data is taken out, and send data processing unit to, the handling procedure of being scheduled to; If, then send a sleep active information to data processing unit, data processing unit is switched back sleep pattern from awakening mode.
In sum, lot data of the present invention is handled and is waken up and sleep pattern changing method and system, can carry out inferior by the gross switching controls to the sleep pattern and the awakening mode of the data processing unit in the information platform, reduce its mode switch frequency whereby, promote whole data processing usefulness.
Description of drawings
Fig. 1 is the system architecture synoptic diagram, shows that lot data of the present invention handles the Object Oriented OO component model that wakes up with the sleep pattern handover control system;
Fig. 2 is the sequential synoptic diagram, shows the present invention and the prior art mode switch time sequence status when handling the inferior packet of lot.
Embodiment
Embodiment
Fig. 1 shows that promptly lot data of the present invention handles the basic framework that wakes up with the Object Oriented OO component model (object-oriented component model) of sleep pattern handover control system (as the included part of frame of broken lines of label 100 indications).As shown in the figure, lot data of the present invention is handled and waken up with sleep pattern handover control system 100 is to carry to an information platform 10 in practical application, the webserver for example, this information platform 10 has a data processing unit 20 and a Data Receiving interface 30.
Data Receiving interface 30, for example the Data Receiving interface of a fiber channel (Fibre Channel) can receive a succession of packet by the gross that a Data Source 40 (for example being an array hard disk unit) sends; 20 of data processing units can be carried out predetermined handling procedure, for example translator, gunzip, decrypted program, a format conversion program etc. to each packet.In addition, data processing unit 20 has a sleep pattern (sleep mode) and an awakening mode (wakeup mode), be that data processing unit 20 must at first be switched to awakening mode, just can carry out its predetermined handling procedure then, in the time need not carrying out its predetermined handling procedure, then be switched to sleep pattern, to save the system resource of information platform 10.During initialization, data processing unit 20 is set to sleep pattern.
Lot data of the present invention is handled and is waken up and sleep pattern handover control system 100, carry out in the process of data processing at data processing unit 20, can be by the switching controls of batch carrying out sleep pattern and awakening mode of packet, it or not the switching of each packet all being carried out sleep pattern and awakening mode, thereby can significantly reduce the mode switch frequency, promote whole data processing usefulness.Object Oriented OO component model of the present invention comprises at least: (a) the temporary module 110 of data; (b) data access module 120; (c) one first temporary state monitoring module 130; (d) a data processing monitor module 140; And (d) one second temporary state monitoring module 150.
Data are kept in module 110, a Data Buffer Memory for example, in the formation mode, first-in first-out (First In First Out for example, FIFO), the Data Receiving interface 30 with information platform 10 is temporary in wherein from each packet that Data Source 40 receives.
Data access module 120 is carried out an access program at the temporary module 110 of above-mentioned data, each packet that Data Receiving interface 30 is received at any time all is stored in the temporary module 110 of data immediately, or the packet that will deposit in the temporary module 110 of these data takes out according to the mode of first in first out.
The first temporary state monitoring module 130 monitors the data storing state of the temporary module 110 of above-mentioned data, when the temporary module 110 of above-mentioned data deposits first packet under idle condition, then send a wake-up activation information WAKEUP_ENABLE to data processing unit 20, data processing unit 20 is switched to awakening mode from sleep pattern; With seasonal data access module 120 first packet in the temporary module 110 of data is taken out, and send data processing unit 20 to, to carry out its predetermined handling procedure.
Data processing monitor module 140 can monitor above-mentioned data processing unit 20 each handling procedure of execution, after data processing unit 20 is whenever handled a packet, promptly send the temporary state monitoring module 150 of a temporal data fox message BUFFER_INSPECT to the second.
The second temporary state monitoring module 150 can respond the temporal data fox message BUFFER_INSPECT that above-mentioned data processing monitor module 140 sends at every turn, checks whether the temporary module 110 of data also keeps in the packet that other is arranged at present; If have, then make data access module 120 continue the next packet in the temporary module 110 of data is taken out, and send the handling procedure that data processing unit 20 is scheduled to; (being that the temporary module 110 of data has been idle condition) if not then sends a sleep active information SLEEP_ENABLE to data processing unit 20, and data processing unit 20 is switched back sleep pattern from awakening mode.
Lot data of the present invention is handled the actual mechanical process that wakes up with the sleep pattern method for handover control: when Data Receiving interface 30 received a packet, data access module 120 just can deposit this packet in the temporary module 110 of data immediately.
If the temporary module 110 of data is to deposit first packet under idle condition in, then the first temporary state monitoring module 130 promptly can monitor this situation, send a wake-up activation information WAKEUP_ENABLE to data processing unit 20, data processing unit 20 is switched to awakening mode from sleep pattern; And then make data access module 120 that first packet in the temporary module 110 of data is taken out, and send data processing unit 20 to, to carry out its predetermined handling procedure.
Handle in the process of first packet at data processing unit 20, if Data Receiving interface 30 receives the another one packet again, then data access module 120 will similarly deposit this packet in the temporary module 110 of data immediately.But because this moment, data processing unit 20 was switched into awakening mode from sleep pattern, therefore the first temporary state monitoring module 130 can not send a wake-up activation information WAKEUP_ENABLE again to data processing unit 20.If the Data Receiving interface receives the 3rd packet 30 this moments again, then data access module 120 also deposits this packet in the temporary module 110 of data immediately; Just handle in the process of first packet at data processing unit 20, all packets that Data Receiving interface 30 receives all can be deposited in the temporary module 110 of data immediately.
After data processing unit 20 is handled first packet, data processing monitor module 140 can monitor this situation, send a temporal data fox message BUFFER_INSPECT to the second immediately and keep in state monitoring module 150, make the second temporary state monitoring module 150 check whether the temporary module 110 of data also keeps in the packet that other is arranged at present; If have, then make data access module 120 continue the next packet in the temporary module 110 of data is taken out, and send the handling procedure that data processing unit 20 is scheduled to; (being that the temporary module 110 of data has been idle condition) otherwise if not then sends a sleep active information SLEEP_ENABLE to data processing unit 20, and data processing unit 20 is switched back sleep pattern from awakening mode.
When data processing unit 20 after awakening mode is switched back sleep pattern, if Data Receiving interface 30 receives a packet again, above operation will repeat once again, be checked through data until the second temporary state monitoring module 150 and keep in module 110 for till the idle condition.
The sequential synoptic diagram of Fig. 2 promptly shows the present invention and the mode switch time sequence status of prior art when the packet (for example being 5 packets) of handling one batch, wherein, the processing procedure of 5 of this batch packets is respectively with processing procedure 1, processing procedure 2, processing procedure 3, processing procedure 4, processing procedure 5 expressions.As shown in the figure, because prior art after handling a packet, is switched back sleep pattern immediately, therefore will make the total processing time of whole batch packet is T 1Because the present invention is just switched back sleep pattern after handling whole batch packet, so will make the total processing time of whole batch packet shorten to T 2, and T 2<T 1Therefore the present invention can promote whole data processing usefulness, has better progressive and practicality than prior art.

Claims (9)

1. a lot data is handled and is waken up and the sleep pattern method for handover control, and it is used for an information platform, and this information platform has a data processing unit and a Data Receiving interface; Wherein the Data Receiving interface receives each packet that a Data Source sends; Data processing unit is then carried out a predetermined handling procedure, handle each received packet of this Data Receiving interface, and this data processing unit has a sleep pattern and an awakening mode, it is characterized in that, this lot data is handled to wake up with the sleep pattern method for handover control and comprised at least:
Each packet that the Data Receiving interface is received is stored to the temporary module of data;
When the temporary module of these data deposited first packet at every turn under idle condition, the wake-up activation information of sending immediately switched to awakening mode with data processing unit from sleep pattern to data processing unit;
Each packet that the temporary module of data is stored takes out in order, and sends the data processing unit under the awakening mode, the handling procedure of being scheduled to; And
When data processing unit is whenever handled a packet, check promptly whether the temporary module of data has been idle condition; If not, then continue the next packet in the temporary module of data is taken out, and send the handling procedure that data processing unit is scheduled to; If, then send a sleep active information to data processing unit, data processing unit is switched back sleep pattern from awakening mode.
2. lot data as claimed in claim 1 is handled and is waken up and the sleep pattern method for handover control, it is characterized in that this information platform is a webserver.
3. lot data as claimed in claim 1 is handled and is waken up and the sleep pattern method for handover control, it is characterized in that the Data Receiving interface that this Data Receiving interface is a fiber channel.
4. lot data as claimed in claim 1 is handled and is waken up and the sleep pattern method for handover control, it is characterized in that this Data Source is a hard disk array device.
5. a lot data is handled and is waken up and the sleep pattern handover control system, and it carries to an information platform, and this information platform has a data processing unit and a Data Receiving interface; Wherein the Data Receiving interface receives each packet that a Data Source sends; Data processing unit is then carried out a predetermined handling procedure, handle each received packet of this Data Receiving interface, and this data processing unit has a sleep pattern and an awakening mode, it is characterized in that, this lot data is handled to wake up with the sleep pattern handover control system and comprised at least:
One data are kept in module, each packet that its temporal data receiving interface is received;
One data access module, it carries out an access program at the temporary module of data, and each packet that the Data Receiving interface is received deposits in the temporary module of data, or each packet in the temporary module of data is taken out by a predefined procedure;
One first temporary state monitoring module, when the temporary module of data deposits first packet under idle condition, the wake-up activation information of sending switches to awakening mode with data processing unit from sleep pattern to data processing unit, makes it handle first packet that deposits in the temporary module;
One data processing monitor module, its monitoring data processing unit is carried out each handling procedure, when data processing unit is whenever handled a packet, sends a temporal data fox message; And
One second temporary state monitoring module, its response data is handled the temporal data fox message that monitor module sends at every turn, checks whether the temporary module of data has been idle condition at present; If not, then make data access module continue the next packet in the temporary module of data is taken out, and send data processing unit to, the handling procedure that it is scheduled to this packet; If, then send a sleep active information to data processing unit, data processing unit is switched back sleep pattern from awakening mode.
6. lot data as claimed in claim 5 is handled and is waken up and the sleep pattern handover control system, it is characterized in that this information platform is a webserver.
7. lot data as claimed in claim 5 is handled and is waken up and the sleep pattern handover control system, it is characterized in that this Data Receiving interface is a fiber channel Data Receiving interface.
8. lot data as claimed in claim 5 is handled and is waken up and the sleep pattern handover control system, it is characterized in that this Data Source is an array hard disk unit.
9. lot data as claimed in claim 5 is handled and is waken up and the sleep pattern handover control system, it is characterized in that, this data access module is in the formation mode of first in first out the temporary module of data to be carried out access program.
CN 03157382 2003-09-19 2003-09-19 Wake and sleep mode switchover control method and system for batch data processing Expired - Fee Related CN1275156C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 03157382 CN1275156C (en) 2003-09-19 2003-09-19 Wake and sleep mode switchover control method and system for batch data processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 03157382 CN1275156C (en) 2003-09-19 2003-09-19 Wake and sleep mode switchover control method and system for batch data processing

Publications (2)

Publication Number Publication Date
CN1598775A CN1598775A (en) 2005-03-23
CN1275156C true CN1275156C (en) 2006-09-13

Family

ID=34660282

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 03157382 Expired - Fee Related CN1275156C (en) 2003-09-19 2003-09-19 Wake and sleep mode switchover control method and system for batch data processing

Country Status (1)

Country Link
CN (1) CN1275156C (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102244764B (en) 2011-06-28 2015-08-19 华为终端有限公司 State conversion control method, multipoint control server and video meeting system
CN111104399A (en) * 2019-12-19 2020-05-05 国网安徽省电力有限公司信息通信分公司 Mass power grid data management and storage system

Also Published As

Publication number Publication date
CN1598775A (en) 2005-03-23

Similar Documents

Publication Publication Date Title
CN104239132B (en) A kind of wake up the method for alignment, device and terminal up
CN101588602B (en) Method for reducing power consumption of WAPI mobile terminal and a WAPI mobile terminal
CN1188795C (en) Data processing unit with access to memory of another data processing unit during standby
CN1890638A (en) Method, apparatus and system for proxying, aggregating and optimizing virtual machine information for network-based management
CN1734400A (en) Device and method for continuous screen updates in low-power mode
CN102109899A (en) Computer, displayer, and display method of computer
US20100125726A1 (en) Thin client host wakeup method and thin client host
EP1755036B1 (en) System-independent application state management
CN107220102A (en) The dormancy of virtual machine and awakening method and system
CN1275156C (en) Wake and sleep mode switchover control method and system for batch data processing
CN115981871B (en) GPU resource scheduling method, device, equipment and storage medium
CN106843890A (en) Sensor network, node and its operation method based on intelligent decision
CN110012003A (en) A kind of cloud application grabs screen method and apparatus
CN101055556A (en) Multiple CPU system and method for passing information between CPU
CN103677200A (en) Computer system and power management method
CN102375857A (en) Search method and device
US20070233282A1 (en) System and method to allow non-deterministic execution in a process control system
CN115509769A (en) Kafka deployment method and device in private cloud and electronic equipment
CN1577214A (en) Method for pci express power management using a pci pm mechanism in a computer system
CN112181900B (en) Data processing method and device in server cluster
CN115225484B (en) Management system of DPU networking
CN116743860B (en) Wind tunnel field real-time data distributed multi-line Cheng Caiji architecture
CN101470583B (en) System structure for implementing virtual disk service equipment
EP2083537B1 (en) Data network and method of controlling thereof
CN114390083B (en) Distributed modular electrical safety control terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20060913

Termination date: 20100919