[go: up one dir, main page]

CN100461120C - Method for managing field data-protection memory - Google Patents

Method for managing field data-protection memory Download PDF

Info

Publication number
CN100461120C
CN100461120C CNB2006100804516A CN200610080451A CN100461120C CN 100461120 C CN100461120 C CN 100461120C CN B2006100804516 A CNB2006100804516 A CN B2006100804516A CN 200610080451 A CN200610080451 A CN 200610080451A CN 100461120 C CN100461120 C CN 100461120C
Authority
CN
China
Prior art keywords
data
protection
field
memory
initialization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2006100804516A
Other languages
Chinese (zh)
Other versions
CN101075202A (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.)
HANGZHOU GOOD-HOOD TECHNOLOGY Co Ltd
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CNB2006100804516A priority Critical patent/CN100461120C/en
Publication of CN101075202A publication Critical patent/CN101075202A/en
Application granted granted Critical
Publication of CN100461120C publication Critical patent/CN100461120C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Storage Device Security (AREA)

Abstract

An internal-memory managing method used for protecting on-site data includes loading on-site protection program onto DRAM and carrying out operation of on-site protection program after system is reset in order to carry out treatment on protection data of SRAM by on-site protection program then starting to operate operation system and application program.

Description

The EMS memory management process that is used for field data-protection
Technical field
The present invention relates to the management method of memory source, particularly system stability is required to be used for than higher system the EMS memory management process of field data-protection.
Background technology
At present, the EMS memory management process of operating system mainly is by optimizing internal storage data structure or algorithm, and the virtual mechanism of perhaps sampling enlarges method such as memory headroom and reduces memory fragmentation, improves Memory Allocation and release rate, with the elevator system performance etc.For example:
A. number of patent application: 01139150.2 publication number: CN 1427342A
Patent name: a kind of internal storage management system and distribution method thereof
Main contents: it provides a kind of internal storage management system and distribution method thereof, adapting to the application program of frequent use Dram, thereby has significantly reduced the fragment of system's generation in service.
B. number of patent application: 02151120.9 publication number: CN 1505330A
Patent name: a kind of EMS memory management process
Main contents: it is will repeatedly apply for internal memory in order to solve communication apparatus in the transmission course of message, the copy low problem of transfer efficiency that causes of message and take a kind of management method of internal memory optimization.
C. number of patent application: 200310110344.X publication number: CN 1635482A
Patent name: a kind of method of managing embedded system memory
Main contents: it provides a kind of memory pool data structure, reduces the Installed System Memory fragment by the optimization to the internal memory pool structure.
From top technical situation, the pattern of memory management is based on the computer organization of Fig. 1 in view of logic, and system comprises CPU (central processing unit), internal memory (RAM) and hard disk or FLASH memory devices such as (flash memories).
Analyze roughly on the internal memory operating characteristic, internal memory divides two kinds, and one is the internal memory that needs the periodic refresh content: dynamic ram, i.e. and DRAM (as SDRAM, DDR etc.), another kind is not need content refresh: static RAM (SRAM), i.e. SRAM.For SRAM, as long as power supply, the information in the internal memory can not lost.And if dynamic ram does not carry out the periodic refresh content, being kept at internal memory the inside information will lose.
In stability requirement than higher system, such as the base station equipment of wireless telecommunications.Because the fault of the fault of system software itself or long-time back system hardware may cause collapse.After the system crash, if reset again, the information that is kept among the DRAM will be lost, cause some fault not reappear, this has stayed very big hidden danger for the operation of equipment, particularly a new system initial stage, because software and hardware is all unreliable, this situation has been brought very big trouble to localization of fault.
Summary of the invention
In order to overcome above-mentioned defective; the object of the present invention is to provide a kind of in memory management technology; after the system crash; the EMS memory management process of the field data-protection that the data that system need preserve when resetting are not destroyed; this method is according to the field data of preserving, reason that can the Precise Position System collapse.
In order to achieve the above object, a kind of EMS memory management process that is used for field data-protection of the present invention may further comprise the steps:
A) after system start-up, CPU loading field protection handling procedure is to non-protection area or the Dram and the operation of static memory;
B) the scene protection handling procedure is protected processing to the field data-protection district of static memory;
C) system runs application;
Described step B) specifically be divided into following steps:
Step B1) whether the scene protection handling procedure is effective according to effective detection zone detection static memory of static memory, if invalid, then enters step B2); If effectively, enter step B3);
Step B2) system carries out entering step C after the initialization to whole static memory);
Step B3) the scene protection handling procedure is judged according to the data message of effective detection zone of static memory, if the scene protection data field only comprises data field 2, enters step C); If only comprise data field 1, or not only comprise data field 1 but also comprise data field 2, then, the scene protection data are protected processing according to the configuration of system, enter step C).
Wherein, described step B2) be specially: system carries out initialization to whole static memory, rewrites effective detection zone of static memory, the address space of designation data district 1, data field 2 and non-protection area.
Wherein, the data in the described data field 1 are can be by the data of system initialization, and the data in the described data field 2 are can not be by the data of system initialization.
Wherein, described step B3) in, protect processing to be specially to the scene protection data: data are moved on to the another one memory headroom; read field data with order Deng system start-up after finishing; perhaps write hard disk or flash memory device, perhaps print to serial ports, perhaps abandon.
System architecture of the present invention and EMS memory management process have solved the problem that the system for field data can not be recovered after the system reset, by the recovery of field data, help the system equipment failure location.
Description of drawings
Fig. 1 is the system logic illustraton of model of memory management of the prior art.
Fig. 2 is the system logic illustraton of model of the present invention's memory management of being used for field data-protection.
Fig. 3 is the division figure of memory headroom of the system of the present invention's memory management of being used for field data-protection.
Fig. 4 is a data topology example figure of the data field 1 divided of memory headroom shown in Figure 3.
Fig. 5 is that the application system of the present invention's EMS memory management process of being used for field data-protection starts process flow diagram.
Embodiment
As shown in Figure 2, the applied system of EMS memory management process of the present invention includes: memory devices such as CPU and SRAM, DRAM, hard disk or FLASH, for the field data after the collapse of energy saved system, must there be SRAM in this system.If the memory headroom that system software needs is little, can be as long as a SRAM.
For the data that keep the scene intact, need divide the sram memory space, as shown in Figure 3.As can be seen from Figure 3, SRAM is divided into validity detection zone, field data-protection district and non-protection area, and wherein the validity surveyed area comprises the information of Magic sign and each data field of SRAM.The memory headroom of the non-protection area of DRAM memory headroom and SRAM uses for operating system or upper level applications.The field data-protection district needs data recovered after the system crash; can ruined characteristic divide after system starts once more according to data; comprise two class data; one class is can be by the data of system initialization; (for example progress information piece, mission bit stream piece, system resource allocation situation etc.); these information can be covered (below can be called for short data field 1 by the data field of system initialization, the structure of data field 1 as shown in Figure 4) by new data after system starts once more.Another kind of is can not be by the data of system initialization (such as abnormal log, as long as not initialization should the zone after system started once more, system journal can not be modified, and can not be called for short data field 2 by the data of system initialization below).
According to system configuration, three kinds of situations of scene protection data separation:
First kind situation: include only data field 2;
The second class situation: include only data field 1;
The 3rd class situation: comprise data field 1 and data field 2.
Detailed step following (as shown in Figure 5):
Step 501: after the system reset, the CPU loading field is protected the non-protection area memory headroom of handling procedure to DRAM memory headroom or SRAM, and carries out this program;
Step 502: whether the scene protection handling procedure is effective according to effective detection zone detection SRAM of SRAM, if effectively, information according to effective detection zone, if judge first kind situation in the scene protection data field, not initialization SRAM then, directly enter step 505, if second class and the 3rd class situation then enter step 504; If invalid, then enter step 503;
Step 504:, the scene protection data are protected processing according to system configuration.The difference of system configuration, processing mode are also different; For example, can move on to the another one memory headroom to data, read field data with order after waiting system start-up to finish, perhaps write hard disk or Flash equipment, perhaps print to serial ports or other output devices, perhaps abandon or the like, and then enter step 505;
Step 503: system data may be destroyed or system cut-off restart, the initialization sram memory, according to system configuration information, the whole sram memory of initialization is write the effective surveyed area of SRAM, the address space of designation data district 1, data field 2 and non-protection area;
Step 505: start the operating system and application program.
In the startup of operating system and application program; requirement is according to the configuration of system; the field data that configuration needs protection; with the address of each data structure in internal memory; such as 1 form (as shown in Figure 4) in the data field; the data that need protection have the mission bit stream piece, progress information piece and system resource utilize the situation record sheet.After system reset started, in the step 504 of Fig. 5, these data will take appropriate measures according to the requirement of protection.
Except data field 1 and data field 2, other all physical memories of system can be supplied with program and operating system and call, and total size comprises the non-protection area of DRAM internal memory and SRAM.The management method of these internal memories common management method of can sampling is such as memory pool or chained list management etc.
As can be seen from the above, this method for designing of sampling, after system crash, when resetting again, the data in the time of can obtaining system crash, the problem that field data is lost when having solved system reset helps the location of the system failure.

Claims (4)

1. an EMS memory management process that is used for field data-protection is characterized in that, may further comprise the steps:
A) after system reset, CPU loading field protection handling procedure is to non-protection area or the Dram and the operation of static memory;
B) the scene protection handling procedure is protected processing to the field data-protection district of static memory;
C) start the operating system and application program;
Described step B) specifically be divided into following steps:
Step B1) whether the scene protection handling procedure is effective according to effective detection zone detection static memory of static memory, if invalid, then enters step B2); If effectively, enter step B3);
Step B2) system carries out entering step C after the initialization to whole static memory);
Step B3) the scene protection handling procedure is judged according to the data message of effective detection zone of static memory, if the scene protection data field only comprises and can not be entered step C by the data field of system initialization); Can be if only comprise by the data field of system initialization, or not only comprised and can but also comprise by the data field of system initialization and can not then according to the configuration of system, be protected processing to the scene protection data by the data field of system initialization, enter step C).
2. according to the described EMS memory management process that is used for field data-protection of claim 1; it is characterized in that; described step B2) be specially: system carries out initialization to whole static memory; rewrite effective detection zone of static memory, indication can by the data field of system initialization, can not be by the address space of the data field of system initialization and non-protection area.
3. according to claim 1 or the 2 described EMS memory management process that are used for field data-protection; it is characterized in that; described can be can be by the data of system initialization by the data in the data field of system initialization, and described can not be can not be by the data of system initialization by the data in the data field of system initialization.
4. according to the described EMS memory management process that is used for field data-protection of claim 1; it is characterized in that; described step B3) in; protect processing to be specially to the scene protection data: data are moved on to the another one memory headroom; read field data with order Deng system start-up after finishing; write hard disk or flash memory device, perhaps print to serial ports, perhaps abandon.
CNB2006100804516A 2006-05-16 2006-05-16 Method for managing field data-protection memory Expired - Fee Related CN100461120C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100804516A CN100461120C (en) 2006-05-16 2006-05-16 Method for managing field data-protection memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100804516A CN100461120C (en) 2006-05-16 2006-05-16 Method for managing field data-protection memory

Publications (2)

Publication Number Publication Date
CN101075202A CN101075202A (en) 2007-11-21
CN100461120C true CN100461120C (en) 2009-02-11

Family

ID=38976266

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100804516A Expired - Fee Related CN100461120C (en) 2006-05-16 2006-05-16 Method for managing field data-protection memory

Country Status (1)

Country Link
CN (1) CN100461120C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101976112A (en) * 2010-10-26 2011-02-16 浙江大学 Energy-consumption protection method for mobile phone with MeeGo operation system

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193843B (en) * 2010-03-19 2013-05-29 复旦大学 Accelerated method for virtual machine system crash scene saving
CN104714861A (en) * 2013-12-16 2015-06-17 阿里巴巴集团控股有限公司 Scene recovery data saving method and application running method, device and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5680570A (en) * 1991-06-12 1997-10-21 Quantum Corporation Memory system with dynamically allocatable non-volatile storage capability
US6161206A (en) * 1998-04-30 2000-12-12 Credence Systems Corporation Pattern generator for a semiconductor integrated circuit tester
US20020116588A1 (en) * 2000-12-20 2002-08-22 Beckert Richard Dennis Software management systems and methods for automotive computing devices
CN1467625A (en) * 2002-07-08 2004-01-14 尹启凤 Quick starting computer system
CN1489334A (en) * 2002-10-11 2004-04-14 深圳市中兴通讯股份有限公司 Method for storage area management with static and dynamic joint
US6766425B2 (en) * 2002-05-16 2004-07-20 Delphi Technologies, Inc. Calibration method implementing segmented flash memory and RAM overlay
CN1529239A (en) * 2003-09-28 2004-09-15 中兴通讯股份有限公司 Fault-tolerant processing method for embedding device file system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5680570A (en) * 1991-06-12 1997-10-21 Quantum Corporation Memory system with dynamically allocatable non-volatile storage capability
US6161206A (en) * 1998-04-30 2000-12-12 Credence Systems Corporation Pattern generator for a semiconductor integrated circuit tester
US20020116588A1 (en) * 2000-12-20 2002-08-22 Beckert Richard Dennis Software management systems and methods for automotive computing devices
US6766425B2 (en) * 2002-05-16 2004-07-20 Delphi Technologies, Inc. Calibration method implementing segmented flash memory and RAM overlay
CN1467625A (en) * 2002-07-08 2004-01-14 尹启凤 Quick starting computer system
CN1489334A (en) * 2002-10-11 2004-04-14 深圳市中兴通讯股份有限公司 Method for storage area management with static and dynamic joint
CN1529239A (en) * 2003-09-28 2004-09-15 中兴通讯股份有限公司 Fault-tolerant processing method for embedding device file system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101976112A (en) * 2010-10-26 2011-02-16 浙江大学 Energy-consumption protection method for mobile phone with MeeGo operation system

Also Published As

Publication number Publication date
CN101075202A (en) 2007-11-21

Similar Documents

Publication Publication Date Title
US11907200B2 (en) Persistent memory management
KR101687505B1 (en) Method, apparatus and system for responding to a row hammer event
US9772938B2 (en) Auto-commit memory metadata and resetting the metadata by writing to special address in free space of page storing the metadata
US8645811B2 (en) System and method for selective error checking
CN100487658C (en) Method for detecting memory accessing outside
EP1873647A1 (en) Computer system, memory management method, and program thereof
US20080091895A1 (en) Cache data backup method and system for computer clustering systems
CN101110044A (en) Method and system for internal memory monitoring management
CN103262054A (en) Apparatus, system, and method for auto-commit memory
CN102105867A (en) Maintaining data integrity in data servers across data centers
CN111666046B (en) Data storage method, device and equipment
CN112579251B (en) Method and device for virtual machine memory management
CN101878470B (en) Apparatus and method for managing storage copy services systems
CN101123507A (en) Method for protecting data information on storage device and storage device
CN100461120C (en) Method for managing field data-protection memory
CN104850628B (en) The synchronous method and device of a kind of database data
CN111367721A (en) Efficient remote copying system based on nonvolatile memory
CN100492323C (en) Method and device for protecting cache content and cache controller
CN103365792A (en) Information processing apparatus, and method of controlling information processing apparatus
CN113590212A (en) Starting method, device and equipment of database instance
CN118051382A (en) Dual-site disaster recovery method and device, electronic equipment and computer readable storage medium
CN110134545B (en) Method and system for providing virtual NVRAM based on trusted execution environment
CN102521173A (en) Method for automatically writing back data cached in volatile medium
CN111338578A (en) A method and system for optimizing metadata performance based on system disk sharing
CN100485627C (en) Method for protecting system data without powerdown

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
ASS Succession or assignment of patent right

Owner name: HANGZHOU GEHUDA TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: ZTE CORPORATION

Effective date: 20150413

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 518057 SHENZHEN, GUANGDONG PROVINCE TO: 311121 HANGZHOU, ZHEJIANG PROVINCE

TR01 Transfer of patent right

Effective date of registration: 20150413

Address after: Yuhang District, Hangzhou City, Zhejiang Province, 311121 West No. 1500 Building 2 room 628

Patentee after: HANGZHOU GOOD-HOOD TECHNOLOGY CO., LTD.

Address before: 518057, Guangdong Shenzhen hi tech Industrial Park Nanshan District science and technology south road ZTE building 6 floor of the Ministry of law

Patentee before: ZTE Corporation

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090211

Termination date: 20210516