CN101609435B - Method of power failure protection of equipment, electronic equipment and network system - Google Patents

Method of power failure protection of equipment, electronic equipment and network system Download PDF

Info

Publication number
CN101609435B
CN101609435B CN2009100586977A CN200910058697A CN101609435B CN 101609435 B CN101609435 B CN 101609435B CN 2009100586977 A CN2009100586977 A CN 2009100586977A CN 200910058697 A CN200910058697 A CN 200910058697A CN 101609435 B CN101609435 B CN 101609435B
Authority
CN
China
Prior art keywords
data
buffer memory
memory cache
equipment
power
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2009100586977A
Other languages
Chinese (zh)
Other versions
CN101609435A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Symantec Technologies 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 Huawei Symantec Technologies Co Ltd filed Critical Huawei Symantec Technologies Co Ltd
Priority to CN2009100586977A priority Critical patent/CN101609435B/en
Publication of CN101609435A publication Critical patent/CN101609435A/en
Application granted granted Critical
Publication of CN101609435B publication Critical patent/CN101609435B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Power Sources (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The embodiment of the invention discloses a method of power failure of equipment, comprising the following steps: initiating a standby power supply to provide power for equipment, when power failure occurs in the equipment; separating the data writing buffer CACHE separately with image data and the data reading the buffer CACHE in a physical state; carrying out safety protection treatment on the data writing the buffer CACHE. The embodiment of the invention also discloses electronic equipment and a network system. The embodiment of the invention has the advantages of reducing the total power consumption of the equipment when power failure occurs, improving the time of preparing electricity for the standby power supply and reducing cost.

Description

A kind of method of power failure of equipment and electronic equipment
Technical field
The present invention relates to technical field of memory, particularly relate to a kind of method of power failure of equipment, electronic equipment and network system.
Background technology
Generally all the data among the CACHE in the system have been implemented the power down protection measure in the memory device; Promptly in the time of system's power down; Generally through battery to the data among the CACHE or refresh automatically; Data to preserve among the CACHE are not lost, otherwise through battery by going in the data-moving among the CACHE to the proof box.Great majority all are tending towards adopting a kind of method in back at present, promptly going in the data-moving among the CACHE to the proof box.And the data among the general CACHE can be divided into this plate and write CACHE, and to the plate mirror image, this plate is read three parts of CACHE,
Need come power backup so that write the data among the CACHE in the proof box and to go with battery in the memory device, need to give whole veneer power supply after the power down, comprise CPU, internal memory, proof box, bridge sheet etc.At this moment, main power consumption device is CPU and internal memory.
The inventor finds that there is following shortcoming at least in prior art in realizing process of the present invention:
Data and the data of reading CACHE of writing data and the mirror image of CACHE are can physically not separate in internal memory; If so caused in the system memory bar number more, system is in power down, battery just must be given all memory bar power supplies simultaneously; Power consumption is too big, and cost is too high.
Summary of the invention
The embodiment of the invention proposes a kind of method of power failure of equipment and electronic equipment, the total power consumption of internal memory during with the minimizing device looses power.
A kind of method of power failure of equipment comprises:
When device looses power, start standby power supply to this power devices;
The data of writing buffer memory CACHE are separated with the data line of reading buffer memory CACHE with mirror image data respectively, and in first memory bar, the data storage of writing buffer memory CACHE is in second memory bar with mirror image data and the data storage of reading buffer memory CACHE;
The said data of writing buffer memory CACHE are carried out safe protection treatment.
A kind of electronic equipment comprises:
The detection of power loss unit is used for whether power down detects to this equipment, when detecting this device looses power, starts standby power supply this equipment is supplied power;
The data separating unit; Be used for when device looses power; With the data of writing buffer memory CACHE respectively with mirror image data with read the data separating of buffer memory CACHE, in first memory bar, the data storage of writing buffer memory CACHE is in second memory bar with mirror image data and the data storage of reading buffer memory CACHE;
Write data cached protected location, be used for the data of writing buffer memory CACHE are carried out safe protection treatment.
Compared with prior art; The embodiment of the invention is through starting standby power supply to this power devices; The data of writing buffer memory CACHE are separated on physical aspect with the data of reading buffer memory CACHE with mirror image data respectively, the said data of writing buffer memory CACHE are carried out safe protection treatment, can produce following beneficial effect at least: the total power consumption of internal memory when reducing device looses power; Improve the charging time of standby power supply, reduce cost.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the method for power failure of equipment process flow diagram of the embodiment of the invention one;
Fig. 2 is the another kind of method of power failure of equipment process flow diagram of the embodiment of the invention one;
Fig. 3 is the another kind of method of power failure of equipment process flow diagram of the embodiment of the invention one;
Fig. 4 is the composition synoptic diagram of the electronic equipment of the embodiment of the invention two;
Fig. 5 is another composition synoptic diagram of the electronic equipment of the embodiment of the invention two;
Fig. 6 is another composition synoptic diagram of the electronic equipment of the embodiment of the invention two;
Fig. 7 is that the network system of the embodiment of the invention three is formed synoptic diagram.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer; To combine the accompanying drawing in the embodiment of the invention below; Technical scheme in the embodiment of the invention is carried out clear, intactly description; Obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Embodiment one:
As shown in Figure 1, the method for power failure of equipment of the embodiment of the invention can may further comprise the steps:
Step S102: when device looses power, start standby power supply to this power devices;
In embodiments of the present invention, standby power supply can be a battery etc.; Can trigger by central processor CPU and start standby power supply to this power devices.
Step S104: under the standby power supply powering mode, the data of writing buffer memory CACHE are separated on physical aspect with the data of reading buffer memory CACHE with mirror image data respectively.
In embodiments of the present invention, the data among the buffer memory CACHE generally can be divided into write CACHE, to the plate mirror image with read three parts of CACHE.Such as this device A, two memory bars of B are arranged, data and the mirror image data of writing buffer memory CACHE before the power down are stored among the memory bar A, and the data storage of reading buffer memory CACHE is in memory bar B; After the power down, then will write the data of buffer memory CACHE and separate, mirror image data will be moved among the memory bar B, and make the data of writing buffer memory CACHE be stored in separately among the memory bar A with mirror image data.
Step S106: under the standby power supply powering mode, the said data of writing buffer memory CACHE are carried out safe protection treatment.
In this step, safe protection treatment can be under the standby power supply powering mode the said data of writing buffer memory CACHE to be write proof box, perhaps can be that following of standby power supply powering mode refreshes the said data of writing buffer memory CACHE automatically.The data of writing buffer memory CACHE such as being stored in separately among the memory bar A write proof box, perhaps only the data of writing buffer memory CACHE that are stored in separately among the memory bar A are refreshed automatically, reach the effect of power saving thus.
Further, as shown in Figure 2, in embodiments of the present invention, before step S104, can also comprise:
Step 202: under the standby power supply powering mode, the data in the internal memory are distinguished according to the data of writing buffer memory CACHE, mirror image data and the data of reading buffer memory CACHE.
Data among the buffer memory CACHE generally can be divided into write CACHE, to the plate mirror image with read three parts of CACHE.This three part possibly not be separated from each other on the physical store before separating on the physical aspect.Can this three partial datas identification be made a distinction through step 202.
Further, as shown in Figure 3, in embodiments of the present invention, after step S104, can also comprise:
Step S302: mirror image data and the data of reading buffer memory CACHE are merged on physical aspect.
The equipment of the embodiment of the invention can be: computing machine, server, switch, router, base station, memory device, gateway, terminal etc.
Embodiment of the invention method can be adjusted each sequence of steps according to actual needs.
Through the embodiment of the invention, the total power consumption of internal memory in the time of can reducing device looses power, the charging time of raising standby power supply reduces cost.
Embodiment two:
As shown in Figure 4, the embodiment of the invention a kind of electronic equipment is provided, can comprise:
Standby power supply 402 is used for when device looses power, this equipment being supplied power;
Data separating unit 404 is used for when device looses power, under the standby power supply powering mode, the data of writing buffer memory CACHE is separated on physical aspect with the data of reading buffer memory CACHE with mirror image data respectively;
Write data cached protected location 406, be used under the standby power supply powering mode, the data of writing buffer memory CACHE are carried out safe protection treatment.
Writing data cached protected location execution safe protection treatment specifically can be under the standby power supply powering mode; The said data of writing buffer memory CACHE are write proof box; Perhaps, can be under the standby power supply powering mode, the said data of writing buffer memory CACHE are refreshed automatically.
Further, as shown in Figure 5, alternatively, this electronic equipment can also comprise:
Discrimination unit 502 is used under the standby power supply powering mode, and the data in the internal memory are distinguished according to the data of writing buffer memory CACHE, mirror image data and the data of reading buffer memory CACHE; After data, the mirror image data of writing buffer memory CACHE and the data of reading buffer memory CACHE were distinguished, the trigger data separative element separated data.
Further, as shown in Figure 6, alternatively, this electronic equipment can further include:
Detection of power loss unit 602 is used for whether power down detects to this equipment, when detecting this device looses power, starts standby power supply, triggers said separative element 404, and perhaps the trigger region subdivision 502.
The equipment of the embodiment of the invention can be: computing machine, server, switch, router, base station, memory device, gateway, terminal etc.
Each unit of the embodiment of the invention can be integrated in one, and also can separate deployment.Said units can be merged into a unit, also can further split into a plurality of subelements.
Through the embodiment of the invention, the total power consumption of internal memory in the time of can reducing device looses power, the charging time of raising standby power supply reduces cost.
Embodiment three:
The embodiment of the invention provides a kind of network system, and is as shown in Figure 7, and this network system can comprise: computing machine 701, router 702, server 703 and memory device 704.In network system shown in Figure 7, any one electronic equipment in computing machine 701, router 702, server 703 and the memory device 704 can comprise: standby power supply, data separating unit and write data cached protected location.Wherein the effect of each unit and embodiment two are similar, no longer are repeated in this description here.
Those skilled in the art can set up other electronic equipments such as switch, base station in network system shown in Figure 7, and any one the electronic equipment of setting up can comprise standby power supply, data separating unit and write data cached protected location etc.
Each unit of embodiment of the invention system can be integrated in a device, also can be distributed in multiple arrangement.Said units can be merged into a unit, also can further split into a plurality of subelements.
A kind of method of power failure of equipment, electronic equipment and network system that the embodiment of the invention proposes; Through starting standby power supply to this power devices; The data of writing buffer memory CACHE are separated on physical aspect with the data of reading buffer memory CACHE with mirror image data respectively, the said data of writing buffer memory CACHE are carried out safe protection treatment, the total power consumption of internal memory in the time of can reducing device looses power; Improve the charging time of standby power supply, reduce cost.
The unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein; Can realize with electronic hardware, computer software or the combination of the two; For the interchangeability of hardware and software clearly is described, the composition and the step of each example described prevailingly according to function in above-mentioned explanation.These functions still are that software mode is carried out with hardware actually, depend on the application-specific and the design constraint of technical scheme.The professional and technical personnel can use distinct methods to realize described function to each certain applications, but this realization should not thought and exceeds scope of the present invention.
The software module that the method for describing in conjunction with embodiment disclosed herein or the step of algorithm can use hardware, processor to carry out, perhaps the combination of the two is implemented.Software module can place random access memory (RAM), internal memory, ROM (read-only memory) (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or the storage medium of other form arbitrarily.
The above only is an embodiment of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be regarded as protection scope of the present invention.

Claims (6)

1. a method of power failure of equipment is characterized in that, comprising:
When device looses power, start standby power supply to this power devices;
With the data of writing buffer memory CACHE respectively with mirror image data with read the data separating of buffer memory CACHE, in first memory bar, the data storage of writing buffer memory CACHE is in second memory bar with mirror image data and the data storage of reading buffer memory CACHE;
The said data of writing buffer memory CACHE are carried out safe protection treatment.
2. method of power failure of equipment according to claim 1 is characterized in that, the said data that will write buffer memory CACHE also comprise before the data separating of buffer memory CACHE with reading with mirror image data respectively:
Data in the internal memory are distinguished according to the data of writing buffer memory CACHE, mirror image data and the data of reading buffer memory CACHE.
3. method of power failure of equipment according to claim 1 is characterized in that, saidly the data of writing buffer memory CACHE are carried out safe protection treatment comprises:
The said data of writing buffer memory CACHE are write proof box, perhaps
The said data of writing buffer memory CACHE are refreshed automatically.
4. an electronic equipment is characterized in that, comprising:
The detection of power loss unit is used for whether power down detects to this equipment, when detecting this device looses power, starts standby power supply this equipment is supplied power;
The data separating unit; Be used for when device looses power; With the data of writing buffer memory CACHE respectively with mirror image data with read the data separating of buffer memory CACHE, in first memory bar, the data storage of writing buffer memory CACHE is in second memory bar with mirror image data and the data storage of reading buffer memory CACHE;
Write data cached protected location, be used for the data of writing buffer memory CACHE are carried out safe protection treatment.
5. electronic equipment as claimed in claim 4 is characterized in that, also comprises:
Discrimination unit is used for the data of internal memory are distinguished according to the data of writing buffer memory CACHE, mirror image data and the data of reading buffer memory CACHE; The trigger data separative element separates data.
6. electronic equipment as claimed in claim 4 is characterized in that, saidly writes data cached protected location and is used for the said data of writing buffer memory CACHE are write proof box, perhaps, is used for the said data of writing buffer memory CACHE are refreshed automatically.
CN2009100586977A 2009-03-24 2009-03-24 Method of power failure protection of equipment, electronic equipment and network system Active CN101609435B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100586977A CN101609435B (en) 2009-03-24 2009-03-24 Method of power failure protection of equipment, electronic equipment and network system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100586977A CN101609435B (en) 2009-03-24 2009-03-24 Method of power failure protection of equipment, electronic equipment and network system

Publications (2)

Publication Number Publication Date
CN101609435A CN101609435A (en) 2009-12-23
CN101609435B true CN101609435B (en) 2012-01-04

Family

ID=41483194

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100586977A Active CN101609435B (en) 2009-03-24 2009-03-24 Method of power failure protection of equipment, electronic equipment and network system

Country Status (1)

Country Link
CN (1) CN101609435B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938361A (en) * 2010-06-08 2011-01-05 中兴通讯股份有限公司 Storage method of data information of optical network and embedded equipment
CN102375765A (en) * 2010-08-19 2012-03-14 鸿富锦精密工业(深圳)有限公司 Server power failure detection system and method
CN102732823A (en) * 2012-07-25 2012-10-17 刘张红 Liquid nitridation process of 2108 ductile cast iron crankshafts
CN102915282A (en) * 2012-09-28 2013-02-06 浪潮(北京)电子信息产业有限公司 Block device data cache management method and system for memory system
CN103942160B (en) * 2014-04-03 2018-08-21 华为技术有限公司 Storage system, storage device and date storage method
CN105045370A (en) * 2015-07-01 2015-11-11 三星半导体(中国)研究开发有限公司 Method for executing sleep state management in electronic terminal and electronic terminal for same
CN105930520A (en) * 2016-05-23 2016-09-07 浪潮电子信息产业股份有限公司 Cache protection method based on cluster file system
CN109597720A (en) * 2018-12-10 2019-04-09 浪潮(北京)电子信息产业有限公司 A kind of EMS memory management process, device, equipment and medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1940876A (en) * 2005-09-30 2007-04-04 联想(北京)有限公司 Memory backup device and method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1940876A (en) * 2005-09-30 2007-04-04 联想(北京)有限公司 Memory backup device and method

Also Published As

Publication number Publication date
CN101609435A (en) 2009-12-23

Similar Documents

Publication Publication Date Title
CN101609435B (en) Method of power failure protection of equipment, electronic equipment and network system
CN101630293B (en) Data protection method, power-fail protection device and storage device
JP5048741B2 (en) Method, device and system for storing data in cache in case of power failure
US10459837B2 (en) Data storage device with production state awareness and non-volatile memory operating method with production state awareness
CN104331254A (en) Dual-active storage system design method based on dual-active logical volumes
CN101458668A (en) Caching data block processing method and hard disk
US9465426B2 (en) Method for backing up data in a case of power failure of storage system, and storage system controller
EP2889773A1 (en) Method for backing up data during memory system power-down, and memory system controller
CN106155943B (en) A kind of method and device of the power down protection of dual control storage equipment
CN103942160A (en) Storage system, storage device and data storage method
CN105786400A (en) Heterogeneous hybrid memory module, system and storage method
AU2003303412A1 (en) Memory controller and method for writing to a memory
US20170322611A1 (en) Host memory protection via powered persistent store
CN103914397A (en) Flash memory device and management method thereof
CN103544097B (en) The log storing method of embedded system, system and log read method and system
CN102789422B (en) The method for writing data of solid state hard disc
TW201911063A (en) Data storage system and method for volatile memory
CN104881249B (en) A kind of reading/writing method and device of eMMC
WO2003083661A8 (en) Memory-access management method and system for synchronous dynamic random-access memory or the like
CN103823640A (en) High-efficiency storage method of Flash storage
CN111880636B (en) Power-off protection method and related device for storage array
CN100492323C (en) Method and apparatus for protecting caching content and caching controller thereof
TW201250473A (en) Backup device and running method of backup device
CN103984645A (en) Data erasing-writing method based on cache coherency of double control
CN106909477A (en) A kind of storage server IO stack internal storage data guard methods and device

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
C56 Change in the name or address of the patentee

Owner name: HUAWEI DIGITAL TECHNOLOGY (CHENGDU) CO., LTD.

Free format text: FORMER NAME: CHENGDU HUAWEI SYMANTEC TECHNOLOGIES CO., LTD.

CP01 Change in the name or title of a patent holder

Address after: 611731 Chengdu high tech Zone, Sichuan, West Park, Qingshui River

Patentee after: HUAWEI DIGITAL TECHNOLOGIES (CHENG DU) Co.,Ltd.

Address before: 611731 Chengdu high tech Zone, Sichuan, West Park, Qingshui River

Patentee before: CHENGDU HUAWEI SYMANTEC TECHNOLOGIES Co.,Ltd.

CP03 Change of name, title or address

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 611731 Qingshui River District, Chengdu hi tech Zone, Sichuan, China

Patentee before: HUAWEI DIGITAL TECHNOLOGIES (CHENG DU) Co.,Ltd.

CP03 Change of name, title or address