CN105549723A - Electricity saving control method and device of server, and energy-saving control device of electronic equipment - Google Patents

Electricity saving control method and device of server, and energy-saving control device of electronic equipment Download PDF

Info

Publication number
CN105549723A
CN105549723A CN201511023854.2A CN201511023854A CN105549723A CN 105549723 A CN105549723 A CN 105549723A CN 201511023854 A CN201511023854 A CN 201511023854A CN 105549723 A CN105549723 A CN 105549723A
Authority
CN
China
Prior art keywords
memory
subassembly
server
memory subassembly
electronic equipment
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
CN201511023854.2A
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201511023854.2A priority Critical patent/CN105549723A/en
Publication of CN105549723A publication Critical patent/CN105549723A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3215Monitoring of peripheral devices
    • G06F1/3225Monitoring of peripheral devices of memory devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3275Power saving in memory, e.g. RAM, cache

Landscapes

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

Abstract

The invention discloses an electricity saving control method and device of a server, and an energy-saving control device of electronic equipment. The electricity saving control method of the server comprises the following steps: when a server memory conforms to a preset electricity saving condition, determining a first memory element which needs to be closed by a server, and a second memory element which needs to be reserved; carrying out a preset data transferring operation, and transferring current data stored in the first memory element to the second memory element; and then, controlling the first memory element to be subjected to outage. Obviously, on the basis of memory data transfer, one part of memory bank which is unnecessary to operate is closed to realize the electricity saving of the server. The electricity saving control method of the server is applied to overcome the problem of low energy saving efficiency since the idle memory bank can not be completely closed in the prior art or the problems of long time consumption for startup and shutdown, big startup fault risks and the like since one part of server in a server cluster is directly turned off in the prior art.

Description

A kind of server power-saving control method, device and electronic equipment electricity-saving control device
Technical field
The invention belongs to the energy-saving application field of data center, particularly relate to a kind of server power-saving control method, device and electronic equipment electricity-saving control device.
Background technology
It is data cached that data center server cluster needs a large amount of internal memories, to tackle the high concurrent request of user.The availability of server physical memory can present larger dynamic fluctuation in every sky in 24 hours with the change of visit capacity, such as access peak period server internal memory utilization rate almost reach 100%, and generally can be less than 20% in the utilization rate of offpeak period server internal memory.In offpeak period, the no-load running of a large amount of memory bar can bring higher power wastage, increases expense expenditure, and therefore internal memory economize on electricity has become the important need of data center server.
Mainly contain two kinds of internal memory power saving schemes at present, one, Memory Controller Hub, when the access frequency of self is lower, realizes economize on electricity by the operating frequency reducing data path and memory bar; Its two, at offpeak period, by the part of server in closing server cluster realize internal memory economize on electricity.The first scheme, owing to not closing idle memory bar completely at offpeak period, cause the idle memory bar of every bar still to there is a small amount of power consumption (being generally about 2W), thus electric energy is lower; There is switching on and shutting down problem comparatively consuming time in first scheme, and due to needs switching on and shutting down frequently, easily brings higher start failure risk, and then bring higher date restoring risk.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of server power-saving control method, device and electronic equipment electricity-saving control device, be intended to the problems referred to above solving the existence of existing power saving scheme, promote the electric energy of server, simultaneously the data service quality of Deterministic service device.
For this reason, the present invention's openly following technical scheme:
A kind of server power-saving control method, comprising:
When server memory meets default brown out condition, determine the first memory subassembly that server need be closed and second memory subassembly that need retain;
Carry out the data transfer operation preset, realize the current data that described first memory subassembly stores to be transferred to described second memory subassembly;
Control described first memory subassembly power-off.
Said method, preferably, described default brown out condition is: current time arrives the offpeak period and the current memory usage of server preset lower than predetermined threshold value.
Said method, preferably, described in the data transfer operation of carrying out presetting comprise:
Control Server quits work;
In described second memory subassembly, it is the corresponding Free Region of current data allocation that described first memory subassembly stores;
The described current data of described first memory subassembly is copied in the described Free Region of described second memory subassembly, and carries out the first memory management of presetting;
Control Server is resumed work.
Said method, preferably, described Control Server quits work and comprises: Control Server stops consumer process, stops I/O I/O operation, closes and interrupt;
Described Control Server is resumed work and is comprised: Control Server recovers to interrupt, and recovers I/O operation, recovers consumer process.
Said method, preferably, described in the first memory management of carrying out presetting comprise:
Based on the EMS memory occupation situation of forward and backward described first memory subassembly of data batchmove, table, page table, segment table and interrupt-descriptor table are taken to physical memory and upgrades;
Based on the EMS memory occupation situation of forward and backward described second memory subassembly of data batchmove, table, described page table, described segment table and described interrupt-descriptor table are taken to described physical memory and upgrades.
Said method, preferably, also comprises:
When server memory meets default wake-up condition, electric control is added to described first memory subassembly;
Detect availability and the health degree of described first memory subassembly; And in detection by rear, carry out the second memory management preset; Wherein, described in, the second memory management of carrying out presetting comprises: based on powering up to described first memory subassembly the situation of waking up, upgrading physical memory and taking table, page table, segment table and interrupt-descriptor table.
A kind of server electricity-saving control device, comprising:
Determination module, during for meeting default brown out condition in server memory, determines the first memory subassembly that server need be closed, and the second memory subassembly bar that need retain;
Data batchmove module, for carrying out the data transfer operation preset, realizes the current data that described first memory subassembly stores to be transferred to described second memory subassembly;
Power-off control module, for controlling described first memory subassembly power-off.
A kind of electronic equipment electricity-saving control device, comprising:
Memory subassembly;
Power-supply system, for providing power supply for each module of electronic equipment;
Processor, for when electronic equipment internal memory meets default brown out condition, determines in described memory subassembly, need first memory subassembly of cutting out and second memory subassembly that need retain; And in the data transfer operation of carrying out presetting, after realizing that the current data that described first memory subassembly stores is transferred to described second memory subassembly, send the first memory subassembly out code;
Data selector MUX, is connected with described power-supply system with described memory subassembly, for when receiving described first memory subassembly out code, carries out power-off to described first memory subassembly.
Said apparatus, preferably, described processor is specifically for carrying out following data transfer operation:
Send electronic equipment to quit work instruction;
In described second memory subassembly, it is the corresponding Free Region of current data allocation that described first memory subassembly stores;
The described current data of described first memory subassembly is copied in the described Free Region of described second memory subassembly, and carries out the first memory management of presetting;
Send electronic equipment to resume work instruction.
Said apparatus, preferably, described processor to quit work instruction transmit operation specifically for carrying out following electronic equipment: send and stop consumer process instruction, sends and stops I/O operational order, sends and closes interrupt instruction;
Described processor to be resumed work instruction transmit operation specifically for carrying out following electronic equipment: send and recover interrupt instruction, sends and recovers I/O operational order, sends and recovers consumer process instruction.
Said apparatus, preferably, described processor is specifically for carrying out the first following memory management:
Based on the EMS memory occupation situation of forward and backward described first memory subassembly of data batchmove, table, page table, segment table and interrupt-descriptor table are taken to physical memory and upgrades;
Based on the EMS memory occupation situation of forward and backward described second memory subassembly of data batchmove, table, described page table, described segment table and described interrupt-descriptor table are taken to described physical memory and upgrades.
Said apparatus, preferably, states processor also for when electronic equipment internal memory meets default wake-up condition, sends the first memory subassembly and power up instruction; And for after described first memory subassembly powers up operation, detect availability and the health degree of described first memory subassembly, and in detection by rear, carry out the second memory management preset; Wherein, described in, the second memory management of carrying out presetting comprises: based on powering up to described first memory subassembly the situation of waking up, upgrading physical memory and taking table, page table, segment table and interrupt-descriptor table;
Described MUX also for when receiving described first memory subassembly and powering up instruction, powers up described first memory subassembly.
Said apparatus, preferably, also comprise the Memory Controller Hub for carrying out memory management to electronic equipment, described power-supply system also for carrying out the management of power use to each module of described electronic equipment under the instruction of described processor, then described MUX realizes especially by following operation the instruction receiving described processor:
Successively by the transfer effect of described Memory Controller Hub and described power-supply system, receive and power up instruction from the first memory subassembly out code of described processor or described first memory subassembly
From above scheme, server power-saving control method disclosed in the present application, when server memory meets default brown out condition, the second memory subassembly determined the first memory subassembly that server need be closed and need retain, and carry out the data transfer operation preset, the current data that described first memory subassembly stores is transferred to described second memory subassembly, controls described first memory subassembly power-off afterwards.Visible, the application by closing the memory bar of a part of inessential operation on the basis of internal storage data transfer, achieve server economize on electricity, application the application method, effectively can overcome the electric energy that prior art causes because not closing idle memory bar completely low, or the switching on and shutting down caused because of the part of server in direct closing server cluster large, the problem such as start failure risk is large consuming time.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
The process flow diagram of a kind of server power-saving control method embodiment one that Fig. 1 provides for the application;
Fig. 2 (a)-Fig. 2 (c) under the application executes the different memory usage situations that example one provides, the result exemplary plot that memory bar is closed and retained;
The process flow diagram of a kind of server power-saving control method embodiment two that Fig. 3 provides for the application;
The process flow diagram of a kind of server power-saving control method embodiment three that Fig. 4 provides for the application;
The structural representation of a kind of server electricity-saving control device embodiment four that Fig. 5 provides for the application;
The structural representation of a kind of electronic equipment electricity-saving control device embodiment five that Fig. 6 provides for the application;
The structural representation of a kind of electronic equipment electricity-saving control device embodiment eight that Fig. 7 provides for the application.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment one
With reference to figure 1, the process flow diagram of a kind of server power-saving control method embodiment one that Fig. 1 provides for the application, the economize on electricity that described method can be applicable to each server in data center server cluster scene controls, also the server economize on electricity that can be applicable in individual server scene controls, as shown in Figure 1, described server power-saving control method can comprise the following steps:
S101: when server memory meets default brown out condition, determines the first memory subassembly that server need be closed and second memory subassembly that need retain.
Described first memory subassembly, the second memory subassembly can be one or more memory bar.The application realizes server economize on electricity especially by the memory bar of the inessential operation of closed portion.
The present embodiment presets described brown out condition: current time arrives ebb (the access ebb of the server) period and the current memory usage of server of presetting lower than predetermined threshold value.
Based on this, when current time arrives the offpeak period preset, the current internal memory service condition of server can be taken into consideration and determine whether that need carry out economize on electricity to server controls, if the current memory usage of server is lower, lower than predetermined threshold value, namely server memory meets described brown out condition, then need to carry out economize on electricity to server to control, in such cases, can continue according to the internal memory service condition of server at present period, determine specifically need close which memory bar, and which memory bar need be retained.
Generally, in order to avoid data access conflict, keep optimum internal memory performance, each memory bar of reservation can be made as far as possible balancedly to be distributed in different main memory accesses, with reference to figure 2 (a)-Fig. 2 (c), under Fig. 2 (a)-Fig. 2 (c) shows different memory usage situation, the result exemplary plot that memory bar is closed and retained.
Otherwise, if the current memory usage of server is higher, such as because visit capacity that server is current is higher and cause memory usage high, do not meet described brown out condition, then need to continue to maintain server memory normally to run, to guarantee the normal data process of server.
S102: carry out the data transfer operation preset, realizes the current data that described first memory subassembly stores to be transferred to described second memory subassembly.
Described brown out condition is met in server memory, and after determining the memory bar that need close and the memory bar that need retain, lose for preventing internal storage data, need back up waiting that the current data of closing in memory bar is transferred in memory bar to be retained, to guarantee the follow-up partial memory bar at closing server, when server is switched to energy-saving mode from normal mode, the field data can reduced in closed memory bar.
S103: control described first memory subassembly power-off.
Carrying out internal storage data transfer, realize treating on the basis that current data reserved memory bar treated on closedown memory bar carries out backing up, the each memory bar can treating closedown carries out power-off control, the power supply of closing memory bar is waited described in cut-out, make its off-line, thus server economize on electricity can be realized, afterwards, server enters energy-saving mode.
From above scheme, server power-saving control method disclosed in the present application, when server memory meets default brown out condition, the second memory subassembly determined the first memory subassembly that server need be closed and need retain, and carry out the data transfer operation preset, the current data that described first memory subassembly stores is transferred to described second memory subassembly, controls described first memory subassembly power-off afterwards.Visible, the application by closing the memory bar of a part of inessential operation on the basis of internal storage data transfer, achieve server economize on electricity, application the application method, effectively can overcome the electric energy that prior art causes because not closing idle memory bar completely low, or the switching on and shutting down caused because of the part of server in direct closing server cluster large, the problem such as start failure risk is large consuming time.
Embodiment two
With reference to the process flow diagram of a kind of server power-saving control method embodiment two that figure 3, Fig. 3 provides for the application, in the present embodiment two, described step S102 specifically can be realized by following steps:
S301: Control Server quits work.
S302: in described second memory subassembly is the corresponding Free Region of current data allocation that described first memory subassembly stores.
S303: the described current data of described first memory subassembly is copied in the described Free Region of described second memory subassembly, and carry out the first memory management of presetting.
S304: Control Server is resumed work.
The present embodiment specifically provides the implementation procedure of transfer memory bar data.
Wherein, first by stopping the consumer process of server, stopping I/O (Input/Output, I/O) operation, closing and interrupt, carry out Control Server and quit work.
The physical memory of order scanning server takies table and page table afterwards, know and wait to close the data that memory bar distributes, wherein, DMA (the DirectionalMemoryAccess that memory bar distributes is closed for waiting, direct memory access) data, then need the memory-mapped algorithm according to presetting, preferential be these type of data distribution continuous print physical memory area in the Free Region treating reserved memory bar, otherwise, the non-DMA data that memory bar distributes are closed for waiting, then can according to the actual free memory situation treating reserved memory bar, for these type of data distribute continuous or discrete physical memory area.
In general, when carrying out data mobile, a good memory-mapped algorithm can not cause data collision, namely can not for waiting that the different pieces of information of closing in internal memory maps an identical region of memory, thus directly can copy the new address of data to described memory-mapped algorithm instruction, what realize data directly moves into position.And for the busy situation of the mapping address accidentally occurred, namely there is the situation (memory-mapped algorithm gives identical output for difference input) of data collision, then can adopt continuous sweep mode, with current mapping address for starting point carries out continuous sweep (with the physical page on memory bar for scan unit) to memory headroom, until obtain a Free Region, back up current data to be transferred.
Complete data batchmove, realize successfully to be transferred to after the Free Region of reserved memory bar wait closing all data on memory bar, need for this data batchmove situation, corresponding memory management is carried out to server memory, particularly, need based on before data batchmove, the EMS memory occupation change of closing memory bar and treating reserved memory bar is waited described in rear, rebuild or upgrade the data structure of memory management, table is taken as rebuild or upgrading physical memory, page table, segment table and interrupt-descriptor table etc., with guarantee memory management data structure can accurately reflect data batchmove after the actual of server memory take situation.
Can resume work by Control Server afterwards, as recovered to interrupt, recover I/O operation, recover consumer process etc., now, server can based on the new suffix certificate in institute's reserved memory bar, and the current memory of memory management data structure accurate recording takies situation, maintains the internal memory field data before memory bar is closed.
Embodiment three
With reference to the process flow diagram of a kind of server power-saving control method embodiment three that figure 4, Fig. 4 provides for the application, in the present embodiment three, described server power-saving method can also comprise the following steps:
S401: when server memory meets default wake-up condition, adds electric control to described first memory subassembly;
S402: the availability and the health degree that detect described first memory subassembly; And in detection by rear, carry out the second memory management preset; Wherein, described in, the second memory management of carrying out presetting comprises: based on powering up to described first memory subassembly the situation of waking up, upgrading physical memory and taking table, page table, segment table and interrupt-descriptor table.
Wherein, described wake-up condition can be the peak period (the server access peak period namely pre-set) that current time arrives expection, or unexpected peak period (the server access peak period detected in real time) etc.
When server memory meets described wake-up condition, can power up the memory bar of off-line, it is made again to resume operation, and detect the availability and the health degree (similar startup self-inspection) that newly power up memory bar, after detection is errorless, stop consumer process, stop I/O operation, close and interrupt, the situation of waking up is powered up afterwards based on these memory bars, corresponding memory management is carried out to it, table is taken by rebuilding or upgrading physical memory, page table, the memory management such as segment table and interrupt-descriptor table data structure, realize carrying out accurate recording to the current service condition of server memory.
On this basis, by recovering to interrupt, recovering I/O, recovering consumer process etc., server is resumed work, thus server returns to normal mode operation from energy-saving mode.
In the data in this application scenarios of heart server cluster, for ease of unified management, can in advance based on the peak of server cluster, ebb access rule, to the offpeak period of server in cluster management node, peak periods etc. carry out relative set, and when the time set by current time arrives, unification sends memory bar power-off or wake request to each server in cluster, each server in cluster upon receiving the request, can based on the internal memory service condition of self, agree to or refuse this time request of cluster management node, and to the relevant information that management node feedback is agreed to or refused, so that management node understands the operation conditions of server in real time.
Such as, suppose arrive preset offpeak period, when a certain server receives the memory bar power down request that cluster management node sends, the memory usage of himself is higher, then server can be refused to respond this request, namely refuse to carry out power-off to memory bar, and to this situation of cluster management node feeding back.
Embodiment four
With reference to figure 5, the structural representation of a kind of server electricity-saving control device embodiment four that Fig. 5 provides for the application, the economize on electricity that described device can be applicable to each server in data center server cluster scene controls, also the server economize on electricity that can be applicable to individual server scene controls, as shown in Figure 5, described server battery saving arrangement can comprise:
Determination module 501, during for meeting default brown out condition in server memory, determines the first memory subassembly that server need be closed, and the second memory subassembly bar that need retain.
Described first memory subassembly, the second memory subassembly can be one or more memory bar.
The present embodiment presets described brown out condition: current time arrives the offpeak period and the current memory usage of server preset lower than predetermined threshold value.
Based on this, when current time arrives the offpeak period preset, the current internal memory service condition of server can be taken into consideration and determine whether that need carry out economize on electricity to server controls, if the current memory usage of server is lower, lower than predetermined threshold value, namely server memory meets described brown out condition, then need to carry out economize on electricity to server to control, in such cases, can continue according to the internal memory service condition of server at present period, determine specifically need close which memory bar, and which memory bar need be retained.
Generally, in order to avoid data access conflict, keep optimum internal memory performance, each memory bar of reservation can be made as far as possible balancedly to be distributed in different main memory accesses, with reference to figure 2 (a)-Fig. 2 (c), under Fig. 2 (a)-Fig. 2 (c) shows different memory usage situation, the result exemplary plot that memory bar is closed and retained.
Otherwise, if the current memory usage of server is higher, such as because visit capacity that server is current is higher and cause memory usage high, do not meet described brown out condition, then need to continue to maintain server memory normally to run, to guarantee the normal data process of server.
Data batchmove module 502, for carrying out the data transfer operation preset, realizes the current data that described first memory subassembly stores to be transferred to described second memory subassembly.
Described brown out condition is met in server memory, and after determining the memory bar that need close and the memory bar that need retain, lose for preventing internal storage data, need back up waiting that the current data of closing in memory bar is transferred in memory bar to be retained, to guarantee the follow-up partial memory bar at closing server, when server is switched to energy-saving mode from normal mode, the field data of closed memory bar can be reduced.
Power-off control module 503, for controlling described first memory subassembly power-off.
Carrying out internal storage data transfer, realize treating reserved memory bar is treated on the basis that the current data of closing memory bar carries out backing up, the each memory bar can treating closedown carries out power-off control, the power supply of closing memory bar is waited described in cut-out, make its off-line, thus server economize on electricity can be realized, afterwards, server enters energy-saving mode.
From above scheme, server electricity-saving control device disclosed in the present application, when server memory meets default brown out condition, the second memory subassembly determined the first memory subassembly that server need be closed and need retain, and carry out the data transfer operation preset, the current data that described first memory subassembly stores is transferred to described second memory subassembly, controls described first memory subassembly power-off afterwards.Visible, the application by closing the memory bar of a part of inessential operation on the basis of internal storage data transfer, achieve server economize on electricity, application the application method, effectively can overcome the electric energy that prior art causes because not closing idle memory bar completely low, or the switching on and shutting down caused because of the part of server in direct closing server cluster large, the problem such as start failure risk is large consuming time.
Embodiment five
With reference to the structural representation of a kind of electronic equipment electricity-saving control device embodiment five that figure 6, Fig. 6 provides for the application, described device can comprise:
Memory subassembly 601;
Power-supply system 602, for providing power supply for each module of electronic equipment;
Processor 603, for when electronic equipment internal memory meets default brown out condition, determines in described memory subassembly, need first memory subassembly of cutting out and second memory subassembly that need retain; And in the data transfer operation of carrying out presetting, after realizing that the current data that described first memory subassembly stores is transferred to described second memory subassembly, send the first memory subassembly out code;
Data selector MUX604, is connected with described power-supply system 602 with described memory subassembly 601, for when receiving described first memory subassembly out code, carries out power-off to described first memory subassembly.
Wherein, described memory subassembly 601 is specially multiple memory bars of corresponding number, and described first memory subassembly, the second memory subassembly can be one or more memory bar.
The present embodiment presets described brown out condition: current time arrives the offpeak period and the current memory usage of electronic equipment preset lower than predetermined threshold value.
Based on this, when current time arrives the offpeak period preset, in conjunction with the internal memory service condition that electronic equipment is current, described processor 603 determines whether that need carry out economize on electricity to electronic equipment controls, if the current memory usage of electronic equipment is lower, lower than predetermined threshold value, namely electronic equipment internal memory meets described brown out condition, then need to carry out economize on electricity to electronic equipment to control, in such cases, can continue according to the internal memory service condition of electronic equipment at present period, determine specifically need close which memory bar, and which memory bar need be retained.
Generally, in order to avoid data access conflict, keep optimum internal memory performance, each memory bar of reservation can be made as far as possible balancedly to be distributed in different main memory accesses, with reference to figure 2 (a)-Fig. 2 (c), under Fig. 2 (a)-Fig. 2 (c) shows different memory usage situation, the result exemplary plot that memory bar is closed and retained.
Otherwise, if the current memory usage of electronic equipment is higher, such as because visit capacity that electronic equipment is current is higher and cause memory usage high, do not meet described brown out condition, then need to continue to maintain electronic equipment internal memory normally to run, to guarantee the normal data process of electronic equipment.
Described brown out condition is met at electronic equipment internal memory, and after determining the memory bar that need close and the memory bar that need retain, lose for preventing internal storage data, described processor 603 need back up waiting that the current data of closing in memory bar is transferred in memory bar to be retained, to guarantee the follow-up partial memory bar closing electronic equipment, when electronic equipment is switched to energy-saving mode from normal mode, the field data can reduced in closed memory bar.
Carrying out internal storage data transfer, realize treating reserved memory bar is treated on the basis that the current data of closing memory bar carries out backing up, processor 603 sends the first memory subassembly out code, described first memory subassembly out code carries out power-off control for each memory bar treating closedown, afterwards, described data selector MUX604 receives described first memory subassembly out code, and respond this instruction, the power supply of closing memory bar is waited described in cut-out, make its off-line, on this basis, electronic equipment enters energy-saving mode, thus achieves and economize on electricity to electronic equipment.
From above scheme, electronic equipment electricity-saving control device disclosed in the present application, when electronic equipment internal memory meets default brown out condition, the second memory subassembly determined the first memory subassembly that electronic equipment need cut out and need retain, and carry out the data transfer operation preset, the current data that described first memory subassembly stores is transferred to described second memory subassembly, controls described first memory subassembly power-off afterwards.Visible, the application by closing the memory bar of a part of inessential operation on the basis of internal storage data transfer, achieve electronic equipment economize on electricity, application the application method, effectively can overcome the electric energy that prior art causes because not closing idle memory bar completely low, or the switching on and shutting down caused because directly closing electronic equipment large, the problem such as start failure risk is large consuming time.
Embodiment six
In the present embodiment six, described processor 603 is specifically for carrying out following data transfer operation: send electronic equipment and to quit work instruction; In described second memory subassembly, it is the corresponding Free Region of current data allocation that described first memory subassembly stores; The described current data of described first memory subassembly is copied in the described Free Region of described second memory subassembly, and carries out the first memory management of presetting; Send electronic equipment to resume work instruction.
The present embodiment specifically provides processor 603 to shift the implementation procedure of memory bar data.
Wherein, processor 603, first by stopping the consumer process of electronic equipment, stopping I/O (Input/Output, I/O) operation, cutting out and interrupt, control electronic equipment and quit work.
The physical memory of order scanning electron equipment takies table and page table afterwards, know and wait to close the data that memory bar distributes, wherein, DMA (the DirectionalMemoryAccess that memory bar distributes is closed for waiting, direct memory access) data, then need the memory-mapped algorithm according to presetting, preferential be these type of data distribution continuous print physical memory area in the Free Region treating reserved memory bar, otherwise, the non-DMA data that memory bar distributes are closed for waiting, then can according to the actual free memory situation treating reserved memory bar, for these type of data distribute continuous or discrete physical memory area.
In general, when carrying out data mobile, a good memory-mapped algorithm can not cause data collision, namely can not for waiting that the different pieces of information of closing in internal memory maps an identical region of memory, thus directly can copy the new address of data to described memory-mapped algorithm instruction, what realize data directly moves into position.And for the busy situation of the mapping address accidentally occurred, namely there is the situation (memory-mapped algorithm gives identical output for difference input) of data collision, then can adopt continuous sweep mode, with current mapping address for starting point carries out continuous sweep (with the physical page on memory bar for scan unit) to memory headroom, until obtain a Free Region, back up current data to be transferred.
Complete data batchmove, realize successfully to be transferred to after the Free Region of reserved memory bar wait closing all data on memory bar, processor 603 need for this data batchmove situation, corresponding memory management control is carried out to electronic equipment internal memory, particularly, described memory management comprises based on before data batchmove, the EMS memory occupation change of closing memory bar and treating reserved memory bar is waited described in rear, rebuild or upgrade the data structure of memory management, table is taken as rebuild or upgrading physical memory, page table, segment table and interrupt-descriptor table etc., with guarantee memory management data structure can accurately reflect data batchmove after the actual of electronic equipment internal memory take situation.
Preprocessor 603 control electronic equipment and resume work, as recovered to interrupt, recover I/O operation, recover consumer process etc., now, electronic equipment can based on the new suffix certificate in institute's reserved memory bar, and the EMS memory occupation situation of memory management data structure accurate recording, maintains the internal memory field data before memory bar is closed.
Embodiment seven
In the present embodiment, described processor 603 also for when electronic equipment internal memory meets default wake-up condition, sends the first memory subassembly and powers up instruction; And for after described first memory subassembly powers up operation, detect availability and the health degree of described first memory subassembly, and in detection by rear, carry out the second memory management preset; Wherein, described in, the second memory management of carrying out presetting comprises: based on powering up to described first memory subassembly the situation of waking up, upgrading physical memory and taking table, page table, segment table and interrupt-descriptor table;
Described MUX604 also for when receiving described first memory subassembly and powering up instruction, powers up described first memory subassembly.
Wherein, described wake-up condition can be the peak period (the electronic equipment internal memory namely pre-set uses peak period) that current time arrives expection, or unexpected peak period (the electronic equipment internal memory detected in real time uses peak period) etc.
When electronic equipment internal memory meets described wake-up condition, processor 603 sends the first memory subassembly and powers up instruction, to realize adding electric control to the memory bar of off-line, after described MUX604 receives this instruction, the memory bar of off-line is powered up, makes it again resume operation.Next, processor 603 detects the availability and health degree that newly power up memory bar, and after detection is errorless, send successively and stop consumer process instruction, stop I/O operational order, close interrupt instruction, quit work to control electronic equipment, the situation of waking up is powered up afterwards based on memory bar, corresponding memory management control is carried out to it, take the memory management data structures such as table, page table, segment table and interrupt-descriptor table by rebuilding or upgrading physical memory, realize carrying out accurate recording to the current service condition of electronic equipment internal memory.
On this basis, processor 603 can continue through and send recovery interrupt instruction, recovers I/O instruction, and recover consumer process instruction etc., controlling electronic equipment resumes work, thus electronic equipment returns to normal mode operation from energy-saving mode.
Embodiment eight
With reference to the structural representation of a kind of electronic equipment electricity-saving control device embodiment eight that figure 7, Fig. 7 provides for the application.
In the present embodiment, described electronic equipment electricity-saving control device also comprises the Memory Controller Hub 605 for carrying out memory management to electronic equipment, described power-supply system 602 also for carrying out the management of power use to each module of described electronic equipment under the instruction of described processor 603, then described MUX604 realizes especially by following operation the instruction receiving described processor 603:
Successively by the transfer effect of described Memory Controller Hub 605 and described power-supply system 602, receive and power up instruction from the first memory subassembly out code of described processor 603 or described first memory subassembly.
Namely particularly, Memory Controller Hub 605 is responsible for memory bar power-off that receiving processor 603 sends or is powered up instruction, and by the described command of reception to power-supply system 602, power-supply system 602 responds this instruction by described MUX604, realizes carrying out power-off to correspondence memory bar or powering up.
It should be noted that, each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.
For convenience of description, various module or unit is divided into describe respectively with function when describing above system or device.Certainly, the function of each unit can be realized in same or multiple software and/or hardware when implementing the application.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the mode that the application can add required general hardware platform by software and realizes.Based on such understanding, the technical scheme of the application can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the application or embodiment.
Finally, also it should be noted that, in this article, the relational terms of such as first, second, third and fourth etc. and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (13)

1. a server power-saving control method, is characterized in that, comprising:
When server memory meets default brown out condition, determine the first memory subassembly that server need be closed and second memory subassembly that need retain;
Carry out the data transfer operation preset, realize the current data that described first memory subassembly stores to be transferred to described second memory subassembly;
Control described first memory subassembly power-off.
2. method according to claim 1, is characterized in that, described default brown out condition is: current time arrives the offpeak period and the current memory usage of server preset lower than predetermined threshold value.
3. method according to claim 1, is characterized in that, described in the data transfer operation of carrying out presetting comprise:
Control Server quits work;
In described second memory subassembly, it is the corresponding Free Region of current data allocation that described first memory subassembly stores;
The described current data of described first memory subassembly is copied in the described Free Region of described second memory subassembly, and carries out the first memory management of presetting;
Control Server is resumed work.
4. method according to claim 3, is characterized in that, described Control Server quits work and comprises: Control Server stops consumer process, stops I/O I/O operation, closes and interrupt;
Described Control Server is resumed work and is comprised: Control Server recovers to interrupt, and recovers I/O operation, recovers consumer process.
5. method according to claim 3, is characterized in that, described in the first memory management of carrying out presetting comprise:
Based on the EMS memory occupation situation of forward and backward described first memory subassembly of data batchmove, table, page table, segment table and interrupt-descriptor table are taken to physical memory and upgrades;
Based on the EMS memory occupation situation of forward and backward described second memory subassembly of data batchmove, table, described page table, described segment table and described interrupt-descriptor table are taken to described physical memory and upgrades.
6. the method according to claim 1-5, is characterized in that, also comprises:
When server memory meets default wake-up condition, electric control is added to described first memory subassembly;
Detect availability and the health degree of described first memory subassembly; And in detection by rear, carry out the second memory management preset; Wherein, described in, the second memory management of carrying out presetting comprises: based on powering up to described first memory subassembly the situation of waking up, upgrading physical memory and taking table, page table, segment table and interrupt-descriptor table.
7. a server electricity-saving control device, is characterized in that, comprising:
Determination module, during for meeting default brown out condition in server memory, determines the first memory subassembly that server need be closed, and the second memory subassembly bar that need retain;
Data batchmove module, for carrying out the data transfer operation preset, realizes the current data that described first memory subassembly stores to be transferred to described second memory subassembly;
Power-off control module, for controlling described first memory subassembly power-off.
8. an electronic equipment electricity-saving control device, is characterized in that, comprising:
Memory subassembly;
Power-supply system, for providing power supply for each module of electronic equipment;
Processor, for when electronic equipment internal memory meets default brown out condition, determines in described memory subassembly, need first memory subassembly of cutting out and second memory subassembly that need retain; And in the data transfer operation of carrying out presetting, after realizing that the current data that described first memory subassembly stores is transferred to described second memory subassembly, send the first memory subassembly out code;
Data selector MUX, is connected with described power-supply system with described memory subassembly, for when receiving described first memory subassembly out code, carries out power-off to described first memory subassembly.
9. device according to claim 8, is characterized in that, described processor is specifically for carrying out following data transfer operation:
Send electronic equipment to quit work instruction;
In described second memory subassembly, it is the corresponding Free Region of current data allocation that described first memory subassembly stores;
The described current data of described first memory subassembly is copied in the described Free Region of described second memory subassembly, and carries out the first memory management of presetting;
Send electronic equipment to resume work instruction.
10. device according to claim 9, is characterized in that, described processor to quit work instruction transmit operation specifically for carrying out following electronic equipment: send and stop consumer process instruction, sends and stops I/O operational order, sends and closes interrupt instruction;
Described processor to be resumed work instruction transmit operation specifically for carrying out following electronic equipment: send and recover interrupt instruction, sends and recovers I/O operational order, sends and recovers consumer process instruction.
11. devices according to claim 9, is characterized in that, described processor is specifically for carrying out the first following memory management:
Based on the EMS memory occupation situation of forward and backward described first memory subassembly of data batchmove, table, page table, segment table and interrupt-descriptor table are taken to physical memory and upgrades;
Based on the EMS memory occupation situation of forward and backward described second memory subassembly of data batchmove, table, described page table, described segment table and described interrupt-descriptor table are taken to described physical memory and upgrades.
12. devices according to Claim 8 described in-11 any one, it is characterized in that, described processor also for when electronic equipment internal memory meets default wake-up condition, sends the first memory subassembly and powers up instruction; And for after described first memory subassembly powers up operation, detect availability and the health degree of described first memory subassembly, and in detection by rear, carry out the second memory management preset; Wherein, described in, the second memory management of carrying out presetting comprises: based on powering up to described first memory subassembly the situation of waking up, upgrading physical memory and taking table, page table, segment table and interrupt-descriptor table;
Described MUX also for when receiving described first memory subassembly and powering up instruction, powers up described first memory subassembly.
13. devices according to claim 12, it is characterized in that, also comprise the Memory Controller Hub for carrying out memory management to electronic equipment, described power-supply system also for carrying out the management of power use to each module of described electronic equipment under the instruction of described processor, then described MUX realizes especially by following operation the instruction receiving described processor:
Successively by the transfer effect of described Memory Controller Hub and described power-supply system, receive and power up instruction from the first memory subassembly out code of described processor or described first memory subassembly.
CN201511023854.2A 2015-12-30 2015-12-30 Electricity saving control method and device of server, and energy-saving control device of electronic equipment Pending CN105549723A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511023854.2A CN105549723A (en) 2015-12-30 2015-12-30 Electricity saving control method and device of server, and energy-saving control device of electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511023854.2A CN105549723A (en) 2015-12-30 2015-12-30 Electricity saving control method and device of server, and energy-saving control device of electronic equipment

Publications (1)

Publication Number Publication Date
CN105549723A true CN105549723A (en) 2016-05-04

Family

ID=55828950

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511023854.2A Pending CN105549723A (en) 2015-12-30 2015-12-30 Electricity saving control method and device of server, and energy-saving control device of electronic equipment

Country Status (1)

Country Link
CN (1) CN105549723A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108153491A (en) * 2017-12-22 2018-06-12 深圳市瑞驰信息技术有限公司 A kind of storage method and framework for closing part server
CN108984217A (en) * 2018-07-06 2018-12-11 郑州云海信息技术有限公司 A kind of host work state adjustment method and system
CN109408130A (en) * 2018-12-18 2019-03-01 广东浪潮大数据研究有限公司 A kind of starting method, activation system and the relevant apparatus of BIOS
CN109471724A (en) * 2018-10-23 2019-03-15 郑州云海信息技术有限公司 A kind of method and system of switch operating amount of memory
CN112685177A (en) * 2020-12-25 2021-04-20 联想(北京)有限公司 Task allocation method and device for server nodes

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103885569A (en) * 2014-04-11 2014-06-25 珠海全志科技股份有限公司 Management method and device of memories
US20140181558A1 (en) * 2012-12-22 2014-06-26 Qualcomm Incorporated Reducing power consumption of volatile memory via use of non-volatile memory
CN104978233A (en) * 2014-04-11 2015-10-14 郑建锋 Method and device for dynamically using memory

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140181558A1 (en) * 2012-12-22 2014-06-26 Qualcomm Incorporated Reducing power consumption of volatile memory via use of non-volatile memory
CN103885569A (en) * 2014-04-11 2014-06-25 珠海全志科技股份有限公司 Management method and device of memories
CN104978233A (en) * 2014-04-11 2015-10-14 郑建锋 Method and device for dynamically using memory

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108153491A (en) * 2017-12-22 2018-06-12 深圳市瑞驰信息技术有限公司 A kind of storage method and framework for closing part server
CN108984217A (en) * 2018-07-06 2018-12-11 郑州云海信息技术有限公司 A kind of host work state adjustment method and system
CN109471724A (en) * 2018-10-23 2019-03-15 郑州云海信息技术有限公司 A kind of method and system of switch operating amount of memory
CN109408130A (en) * 2018-12-18 2019-03-01 广东浪潮大数据研究有限公司 A kind of starting method, activation system and the relevant apparatus of BIOS
CN112685177A (en) * 2020-12-25 2021-04-20 联想(北京)有限公司 Task allocation method and device for server nodes

Similar Documents

Publication Publication Date Title
CN101470518B (en) Method and device for service independent of operating system
KR101519082B1 (en) Sleep processor
EP2075666B1 (en) A system and method to establish and dynamically control energy consumption in large-scale datacenters or IT infrastructures
US7337333B2 (en) System and method for strategic power supply sequencing in a computer system with multiple processing resources and multiple power supplies
CN105549723A (en) Electricity saving control method and device of server, and energy-saving control device of electronic equipment
US7325050B2 (en) System and method for strategic power reduction in a computer system
CN1163813C (en) Power controlling circuit possessing computer system with several power source management state
US8977880B2 (en) Method for managing power supply of multi-core processor system involves powering off main and slave cores when master bus is in idle state
CN101802750B (en) Apparatus and method for reducing power consumption in system on chip
US20110283119A1 (en) System and Method for Providing Energy Efficient Cloud Computing
US8041970B2 (en) Cluster system with reduced power consumption and power management method thereof
CN111625080B (en) Server energy saving method and device, electronic equipment and storage medium
CN102025509A (en) Power-off control method and device
CN103135731A (en) Method and device for intelligent power supply control for portable computer
CN103076868B (en) The electronic system of method for managing power supply and application the method
US8504215B1 (en) Systems and methods for using alternate power sources to manage the power draw on a power grid
WO2012016463A1 (en) Method, apparatus and system for device management
CN104168122A (en) Server power supply redundancy method for reducing light-load power consumption of system
CN110633152A (en) Method and device for realizing horizontal scaling of service cluster
CN113765679A (en) Computer network awakening method and system
CN104978233A (en) Method and device for dynamically using memory
US10649515B2 (en) Power management of computing and communications systems during power fluctuation and sudden power failure events
JP2019510284A (en) Use of volatile memory as non-volatile memory
CN102681650B (en) The storage system of a kind of Energy control power-economizing method and correspondence thereof
CN112944565A (en) Outdoor unit awakening method and device and multi-split air conditioning system

Legal Events

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

Application publication date: 20160504

RJ01 Rejection of invention patent application after publication