CN103019961A - Cache flash processing method and device - Google Patents

Cache flash processing method and device Download PDF

Info

Publication number
CN103019961A
CN103019961A CN2012105544830A CN201210554483A CN103019961A CN 103019961 A CN103019961 A CN 103019961A CN 2012105544830 A CN2012105544830 A CN 2012105544830A CN 201210554483 A CN201210554483 A CN 201210554483A CN 103019961 A CN103019961 A CN 103019961A
Authority
CN
China
Prior art keywords
data
network equipment
buffer memory
chinese ink
brush dipped
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
CN2012105544830A
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.)
CHUANGXINKE SOFTWARE TECHNOLOGY (SHENZHEN) Co Ltd
UIT STORAGE TECHNOLOGY (SHENZHEN) Co Ltd
Original Assignee
CHUANGXINKE SOFTWARE TECHNOLOGY (SHENZHEN) Co Ltd
UIT STORAGE TECHNOLOGY (SHENZHEN) 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 CHUANGXINKE SOFTWARE TECHNOLOGY (SHENZHEN) Co Ltd, UIT STORAGE TECHNOLOGY (SHENZHEN) Co Ltd filed Critical CHUANGXINKE SOFTWARE TECHNOLOGY (SHENZHEN) Co Ltd
Priority to CN2012105544830A priority Critical patent/CN103019961A/en
Publication of CN103019961A publication Critical patent/CN103019961A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Power Sources (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a cache flash processing method and device. The method comprises the following steps of: monitoring network equipment in real time; when the network equipment is monitored to reach a preset setting condition, inquiring and recording the data amount X stored by the cache of the network equipment, and trigging the enabling of a battery backup unit (BBU) of the network equipment; if X is more than a first set number value, flashing the data stored by the cache to a memory area with a permanent data storage function in the BBU enabled time of the network equipment; and restarting the network equipment, and flashing the data stored in the memory area to a data hard disk. According to the invention, data in the cache can be processed in time when the BBU is started, data in the cache is processed in time, and the data in the cache is prevented from being lost.

Description

Buffer memory is write with a brush dipped in Chinese ink disposal route and device
Technical field
The application relates to data processing technique, and particularly buffer memory is write with a brush dipped in Chinese ink disposal route and device.
Background technology
The network equipment has standby battery unit (BBU) at present, and this BBU is not activated when the network equipment is normal, and when the network equipment cut off the power supply, it was activated, and miscellaneous part normally moves except hard disk for temporarily supporting.
When BBU is activated, if this moment, buffer memory had data such as ROM card the inside, because buffer memory can not the persistence data, its electricity and BBU when also being consumed under the network equipment will obliterated datas, based on this, just need to during BBU is activated, in time process the data in the buffer memory.But prior art does not have a kind of method can process data in the buffer memory during BBU is activated.
Summary of the invention
The application provides buffer memory to write with a brush dipped in Chinese ink disposal route and device, to be implemented between the BBU time suitable to moulding, in time processes the data in the buffer memory, avoids the loss of data in the buffer memory.
The technical scheme that the application provides comprises:
A kind of buffer memory is write with a brush dipped in Chinese ink disposal route, comprising:
The Real Time Monitoring network equipment arrives inquiry when preseting condition and records the data volume X that the buffer memory of the described network equipment is stored monitoring the network equipment, and the standby battery unit BBU that triggers the described network equipment enables;
If described X sets numerical value greater than first, the data of then between the BBU of described network equipment time suitable to moulding described buffer memory being stored are write with a brush dipped in Chinese ink to the memory block with permanent storage data function;
Restart the described network equipment, the data of described storage area stores are write with a brush dipped in Chinese ink to the data hard disk.
A kind of buffer memory is write with a brush dipped in Chinese ink treating apparatus, and this device comprises:
The first monitoring unit is used for the Real Time Monitoring network equipment;
The first processing unit is used for monitoring the network equipment at described monitoring unit and arrives inquiry when preseting condition and record the data volume X that the buffer memory of the described network equipment is stored, and the standby battery unit BBU that triggers the described network equipment enables;
First writes with a brush dipped in Chinese ink the unit, is used for when the X of described processing unit record sets numerical value greater than first, and the data of between the BBU of described network equipment time suitable to moulding described buffer memory being stored are write with a brush dipped in Chinese ink to the memory block with permanent storage data function;
Second writes with a brush dipped in Chinese ink the unit, is used for when the described network equipment is restarted, and writes with a brush dipped in Chinese ink the unit with described first and writes with a brush dipped in Chinese ink to the data of described memory block and write with a brush dipped in Chinese ink to the data hard disk.
As can be seen from the above technical solutions, among the present invention, by the Real Time Monitoring network equipment, arrive inquiry when preseting condition and record the data volume X that the buffer memory of the described network equipment is stored monitoring the network equipment, and the standby battery unit BBU that triggers the described network equipment enables, afterwards, if described X sets numerical value greater than first, the data of then between the BBU of described network equipment time suitable to moulding described buffer memory being stored are write with a brush dipped in Chinese ink to the memory block with permanent storage data function, and when restarting the described network equipment, the data of described storage area stores are write with a brush dipped in Chinese ink to the data hard disk, realized between the BBU time suitable to moulding, in time process the data in the buffer memory, guarantee the purpose of data in the persistence buffer memory, avoided the loss of data in the buffer memory.
Description of drawings
The method flow diagram that Fig. 1 provides for the embodiment of the invention;
The other method process flow diagram that Fig. 2 provides for the embodiment of the invention;
The structure drawing of device that Fig. 3 provides for the embodiment of the invention.
Embodiment
In order to make the purpose, technical solutions and advantages of the present invention clearer, describe the present invention below in conjunction with the drawings and specific embodiments.
The method that the embodiment of the invention provides, can be implemented between the BBU time suitable to moulding of the network equipment, in time buffer memory is write with a brush dipped in Chinese ink to the memory block with permanent storage data function such as in the DOM card such as the data in the ROM card, and when the network equipment restarts, in time the data of described storage area stores are write with a brush dipped in Chinese ink to the data hard disk, guaranteed that the data of buffer memory can not lost.
The below is described the method that the embodiment of the invention provides:
Referring to Fig. 1, the method flow diagram that Fig. 1 provides for the embodiment of the invention.As shown in Figure 1, this flow process can may further comprise the steps:
Step 101, the Real Time Monitoring network equipment arrives inquiry when preseting condition and records the data volume X that the buffer memory of the described network equipment is stored monitoring the network equipment, and the standby battery unit BBU that triggers the described network equipment enables.
Among the present invention, the condition specific implementation of preseting is to can be outage, perhaps is fault.
In addition, among the present invention, for the ease of inquiry and record the data volume X that the buffer memory of the described network equipment is stored, can for the buffer memory of the described network equipment, the counter of a correspondence be set, wherein, be saving resource, the counter of the counter reusable operating system self here.Afterwards, the counter that buffer memory and its of the described network equipment is corresponding is related, by the data volume of the current storage of the described buffer memory of counter real time record; Based on this, in the above-mentioned steps 101, inquiring about and record the data volume X that the buffer memory of the described network equipment stores can comprise:
Inquire about the associated counter of buffer memory of the described network equipment, with the data of the described counter current record data volume X as the current storage of described buffer memory, and record this data volume X.
Step 102, if described X sets numerical value greater than first, the data of then between the BBU of described network equipment time suitable to moulding described buffer memory being stored are write with a brush dipped in Chinese ink to the memory block with permanent storage data function.
Here, described memory block with permanent storage data function can be the DOM card, perhaps is storage unit, and the present invention does not specifically limit.
Step 103 is restarted the described network equipment, and the data of described storage area stores are write with a brush dipped in Chinese ink to the data hard disk.
That is to say that among the present invention, by again writing with a brush dipped in Chinese ink to the data hard disk writing with a brush dipped in Chinese ink between the BBU time suitable to moulding to the data of described memory block, this has guaranteed the purpose that the data of buffer memory are not lost when restarting the described network equipment.
So far, finish flow process shown in Figure 1.
Preferably, among the present invention, when step 103 is write with a brush dipped in Chinese ink the data of described storage area stores to the data hard disk, also can further carry out flow process shown in Figure 2:
Referring to Fig. 2, the other method process flow diagram that Fig. 2 provides for the embodiment of the invention.As shown in Figure 2, this flow process can may further comprise the steps:
Step 201, Real Time Monitoring and record are write with a brush dipped in Chinese ink to the data volume Y of described data hard disk from described memory block.
Step 202, more described Y and the data volume X that records in step 101 before, if both are consistent, then execution in step 203, if both are inconsistent, then execution in step 204.
The BBU of the network equipment itself has power-off protection function; this power-off protection function is mainly used in providing the power supply support to the miscellaneous part of the network equipment except hard disk when the network equipment cuts off the power supply; the data of buffer memory are write with a brush dipped in Chinese ink have the permanent storage data function the memory block such as the DOM card; if write with a brush dipped in Chinese ink the data volume X that stores to the data volume Y of described data hard disk and described buffer memory from described memory block consistent; the data that then mean described buffer memory are all read between the BBU time suitable to moulding to described memory block; specifically see step 203, also further verified the power-off protection function that the BBU of the network equipment has.Otherwise, if write with a brush dipped in Chinese ink the data volume X that stores to data volume Y and the described buffer memory of described data hard disk from described memory block inconsistent, the data that then mean described buffer memory are not all read in to described memory block between the BBU time suitable to moulding, fault may appear in the software of the network equipment or hardware, for guaranteeing follow-up no longer loss of data, then need reporting fault, so that the fault of managerial personnel's requester network equipment, and eliminate this fault.
Step 203 determines that the data of described buffer memory are all read in to described memory block between the BBU time suitable to moulding.
Step 203, reporting fault.
So far, finish flow process shown in Figure 2.
More than method provided by the invention is described.The below is described device provided by the invention:
Referring to Fig. 3, the structure drawing of device that Fig. 3 provides for the embodiment of the invention.As shown in Figure 3, this device can comprise:
The first monitoring unit is used for the Real Time Monitoring network equipment;
The first processing unit is used for monitoring the network equipment at described monitoring unit and arrives inquiry when preseting condition and record the data volume X that the buffer memory of the described network equipment is stored, and the standby battery unit BBU that triggers the described network equipment enables;
First writes with a brush dipped in Chinese ink the unit, is used for when the X of described processing unit record sets numerical value greater than first, and the data of between the BBU of described network equipment time suitable to moulding described buffer memory being stored are write with a brush dipped in Chinese ink to the memory block with permanent storage data function;
Second writes with a brush dipped in Chinese ink the unit, is used for when the described network equipment is restarted, and writes with a brush dipped in Chinese ink the unit with described first and writes with a brush dipped in Chinese ink to the data of described memory block and write with a brush dipped in Chinese ink to the data hard disk.
Preferably, among the present invention, as shown in Figure 3, described device further comprises;
Counter is used for the Cache associativity with the described network equipment;
The associated counter of buffer memory that described the first processing unit is inquired about the described network equipment with the data of the described counter current record data volume X as the current storage of described buffer memory, and records this data volume X.
Among the present invention, as shown in Figure 3, described device further comprises:
The second monitoring unit is used for Real Time Monitoring and records described second and write with a brush dipped in Chinese ink the unit and write with a brush dipped in Chinese ink to the data volume Y of described data hard disk from described memory block;
The second processing unit is used for more described Y and X, if both are consistent, determines that then the data of described buffer memory are all read in to described memory block between the BBU time suitable to moulding; If both are inconsistent, reporting fault then.
Preferably, among the present invention, the described condition that presets is outage condition.
Preferably, among the present invention, described memory block is internal memory DOM card.
So far, finish unit describe shown in Figure 2.
As can be seen from the above technical solutions, among the present invention, by the Real Time Monitoring network equipment, arrive inquiry when preseting condition and record the data volume X that the buffer memory of the described network equipment is stored monitoring the network equipment, and the standby battery unit BBU that triggers the described network equipment enables, afterwards, if described X sets numerical value greater than first, the data of then between the BBU of described network equipment time suitable to moulding described buffer memory being stored are write with a brush dipped in Chinese ink to the memory block with permanent storage data function, and when restarting the described network equipment, the data of described storage area stores are write with a brush dipped in Chinese ink to the data hard disk, realized between the BBU time suitable to moulding, in time process the data in the buffer memory, guarantee the purpose of data in the persistence buffer memory, avoided the loss of data in the buffer memory.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, is equal to replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (10)

1. a buffer memory is write with a brush dipped in Chinese ink disposal route, it is characterized in that the method comprises:
The Real Time Monitoring network equipment arrives inquiry when preseting condition and records the data volume X that the buffer memory of the described network equipment is stored monitoring the network equipment, and the standby battery unit BBU that triggers the described network equipment enables;
If described X sets numerical value greater than first, the data of then between the BBU of described network equipment time suitable to moulding described buffer memory being stored are write with a brush dipped in Chinese ink to the memory block with permanent storage data function;
Restart the described network equipment, the data of described storage area stores are write with a brush dipped in Chinese ink to the data hard disk.
2. method according to claim 1 is characterized in that, the method further comprises:
Described buffer memory is related with corresponding counter, with the data volume of the current storage of the described buffer memory of control counter real time record;
Described inquiry is also recorded the data volume X that the buffer memory of the described network equipment stores and is comprised:
Inquire about the associated counter of buffer memory of the described network equipment, with the data of the described counter current record data volume X as the current storage of described buffer memory, and record this data volume X.
3. method according to claim 1 and 2 is characterized in that, the method further comprises:
Real Time Monitoring and record are write with a brush dipped in Chinese ink to the data volume Y of described data hard disk from described memory block;
More described Y and X,
If both are consistent, determine that then the data of described buffer memory are all read in to described memory block between the BBU time suitable to moulding;
If both are inconsistent, reporting fault then.
4. method according to claim 1 is characterized in that, the described condition that presets is outage condition.
5. method according to claim 1 is characterized in that, described memory block is internal memory DOM card.
6. a buffer memory is write with a brush dipped in Chinese ink treating apparatus, it is characterized in that, this device comprises:
The first monitoring unit is used for the Real Time Monitoring network equipment;
The first processing unit is used for monitoring the network equipment at described monitoring unit and arrives inquiry when preseting condition and record the data volume X that the buffer memory of the described network equipment is stored, and the standby battery unit BBU that triggers the described network equipment enables;
First writes with a brush dipped in Chinese ink the unit, is used for when the X of described processing unit record sets numerical value greater than first, and the data of between the BBU of described network equipment time suitable to moulding described buffer memory being stored are write with a brush dipped in Chinese ink to the memory block with permanent storage data function;
Second writes with a brush dipped in Chinese ink the unit, is used for when the described network equipment is restarted, and writes with a brush dipped in Chinese ink the unit with described first and writes with a brush dipped in Chinese ink to the data of described memory block and write with a brush dipped in Chinese ink to the data hard disk.
7. device according to claim 6 is characterized in that, described device further comprises:
Counter is used for the Cache associativity with the described network equipment;
The associated counter of buffer memory that described the first processing unit is inquired about the described network equipment with the data of the described counter current record data volume X as the current storage of described buffer memory, and records this data volume X.
8. according to claim 6 or 7 described devices, it is characterized in that described device further comprises:
The first monitoring unit is used for Real Time Monitoring and records described second and write with a brush dipped in Chinese ink the unit and write with a brush dipped in Chinese ink to the data volume Y of described data hard disk from described memory block;
The second processing unit is used for more described Y and X, if both are consistent, determines that then the data of described buffer memory are all read in to described memory block between the BBU time suitable to moulding; If both are inconsistent, reporting fault then.
9. device according to claim 6 is characterized in that, the described condition that presets is outage condition.
10. device according to claim 6 is characterized in that, described memory block is internal memory DOM card.
CN2012105544830A 2012-12-19 2012-12-19 Cache flash processing method and device Pending CN103019961A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012105544830A CN103019961A (en) 2012-12-19 2012-12-19 Cache flash processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012105544830A CN103019961A (en) 2012-12-19 2012-12-19 Cache flash processing method and device

Publications (1)

Publication Number Publication Date
CN103019961A true CN103019961A (en) 2013-04-03

Family

ID=47968586

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012105544830A Pending CN103019961A (en) 2012-12-19 2012-12-19 Cache flash processing method and device

Country Status (1)

Country Link
CN (1) CN103019961A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109118609A (en) * 2017-06-26 2019-01-01 深圳市道通智能航空技术有限公司 Unmanned plane during flying log recording method, device, storage medium and computer equipment
CN110492594A (en) * 2019-07-29 2019-11-22 北京未动科技有限公司 Method for managing power supply, device and the driving assistance system of driving assistance system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5524203A (en) * 1993-12-20 1996-06-04 Nec Corporation Disk cache data maintenance system
CN101286086A (en) * 2008-06-10 2008-10-15 杭州华三通信技术有限公司 Hard disk power down protection method, device and hard disk, and hard disk power down protection system
CN101458668A (en) * 2008-12-19 2009-06-17 成都市华为赛门铁克科技有限公司 Caching data block processing method and hard disk
CN101630293A (en) * 2009-07-23 2010-01-20 成都市华为赛门铁克科技有限公司 Data protection method, power-fail protection device and storage device
CN102147773A (en) * 2011-03-30 2011-08-10 浪潮(北京)电子信息产业有限公司 Method, device and system for managing high-end disk array data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5524203A (en) * 1993-12-20 1996-06-04 Nec Corporation Disk cache data maintenance system
CN101286086A (en) * 2008-06-10 2008-10-15 杭州华三通信技术有限公司 Hard disk power down protection method, device and hard disk, and hard disk power down protection system
CN101458668A (en) * 2008-12-19 2009-06-17 成都市华为赛门铁克科技有限公司 Caching data block processing method and hard disk
CN101630293A (en) * 2009-07-23 2010-01-20 成都市华为赛门铁克科技有限公司 Data protection method, power-fail protection device and storage device
CN102147773A (en) * 2011-03-30 2011-08-10 浪潮(北京)电子信息产业有限公司 Method, device and system for managing high-end disk array data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109118609A (en) * 2017-06-26 2019-01-01 深圳市道通智能航空技术有限公司 Unmanned plane during flying log recording method, device, storage medium and computer equipment
CN110492594A (en) * 2019-07-29 2019-11-22 北京未动科技有限公司 Method for managing power supply, device and the driving assistance system of driving assistance system

Similar Documents

Publication Publication Date Title
US9946467B2 (en) Data storage method and electronic device
CN102158349B (en) A kind of log management apparatus and method
EP2733617A1 (en) Data buffer device, data storage system and method
CN103902399B (en) Software system repair processing method and software system repair processing device
CN103532731A (en) method and device for preventing network configuration of virtual machine from losing
CN102456240A (en) CAN (controller area network) bus based vehicle-mounted recording device and method for controlling stored data thereof
CN107817950B (en) Data processing method and device
CN103500130A (en) Method for backing up dual-computer hot standby data in real time
CN114168401A (en) Log recording method and device and electronic equipment
CN104215878A (en) Device and method for recording fault waveforms of power distribution lines
CN100530126C (en) Method for recording function for leading to system abnormity
CN104346264A (en) System and method for processing system event logs
CN103037203A (en) Method and device for index recovery based on block storage
CN102024502A (en) Flash device testing method and device as well as board and network equipment
CN103544080A (en) Data protecting method, device and system
CN103049713A (en) Method, device and system for inspecting data in storage device
CN102929794A (en) Storage method for electrically erasable programmable read only memory (EEPROM)
CN103019961A (en) Cache flash processing method and device
CN103544097B (en) The log storing method of embedded system, system and log read method and system
CN102880530A (en) Terminal and terminal backup and recovery method
CN104881249B (en) A kind of reading/writing method and device of eMMC
CN106200860B (en) Hard disk power consumption and hard disk power consumption management service control method and device
CN110543398A (en) method and system for recording fault information
CN108664208A (en) File appending write operation method based on FLASH memory and device
CN111880636B (en) Power-off protection method and related device for storage array

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130403