CN1684041A - Data preserving method for random storage - Google Patents
Data preserving method for random storage Download PDFInfo
- Publication number
- CN1684041A CN1684041A CNA200410034508XA CN200410034508A CN1684041A CN 1684041 A CN1684041 A CN 1684041A CN A200410034508X A CNA200410034508X A CN A200410034508XA CN 200410034508 A CN200410034508 A CN 200410034508A CN 1684041 A CN1684041 A CN 1684041A
- Authority
- CN
- China
- Prior art keywords
- log
- random access
- access memory
- control block
- data
- 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.)
- Granted
Links
Images
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Mobile Radio Communication Systems (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The present invention relates to communication and discloses data preserving method for random memory. In condition of no power down and accurate content in the log area, the system can hold the original log controlling block and preserve the original log content. The data preserving method includes: A. dividing the log memory area in the random memory into log area for storing log, and log control block for storing the first and the last pointer of log memory area, the first pointer and the last pointer; B. storing the log into the log area while increasing check word data section for each log item and increasing check bit in the log control block; C. checking the content in the log control block and the log area during reset and proceeding to step D. if the check result is correct; and D. maintaining the original content in the log control block and the log area in the random memory.
Description
Technical field
The present invention relates to the communications field, particularly the data storage technology in the base station of mobile communication system.
Background technology
Global system for mobile communications (Global System of Mobile communications is called for short " GSM ") mainly is made up of four parts: network subsystem, base station sub-system, operation maintenance center and a large amount of transfer tables.
The construction of mobile communication base station is the pith of mobile communication carrier investment, and the construction of mobile communication base station generally all is to carry out around coverage rate, speech quality, returns of investment, construction difficulty or ease, key element such as easy to maintenance.Mainly be responsible for and wireless relevant various functions base station in the mobile communication system, for transfer table provides the interface of connecting system, directly is connected by wireless with transfer table.This shows that in the system break down and will whole mobile network be produced a very large impact in the base station.
The reason that causes the base station fault roughly can be divided into four classes: the fault that causes because of transmission problem, the fault that causes because of the base station software problem, the fault that causes because of BTS hardware and the fault that causes because of various interference.
Any unusual for what occur in the system, system can in time be put down in writing by journal file, so that carry out the location and the processing of problem in inspection is after this analyzed.The maintainer can carefully check syslog file after fault occurs, still be to be caused by software fault with judgement by hardware fault.The daily record of base station is stored in the random access memory (Random Access Memory is called for short " RAM ") one by one, is regularly extracted by system.BTS log provides very big convenience to the maintenance and management of base station.
Storer is the important process parts in the base station system, and its effect is to deposit program and data.Storer is divided into internal storage and external storage according to the difference of job specification.Internal storage is called for short internal memory, is made up of large scale integrated chip.Internal memory can with the direct swap data of CPU (central processing unit), so access speed is fast, but capacity is less, price is more expensive.Generally be used to deposit the program of moving.Internal memory is divided into ROM (read-only memory) (Read Only Memory is called for short " ROM ") and random access memory (Random Access Memory is called for short " RAM ") again by the function difference.But the characteristics of RAM are not only can read but also writing information, promptly have read-write property, in case but power down information wherein can all lose, promptly have volatibility again.RAM is divided into static RAM (Static Random Access Memory is called for short " SRAM ") and dynamic RAM (Dynamic Random Access Memory is called for short " DRAM ") again, and usually said memory bar promptly refers to DRAM.SRAM speed is than DRAM piece, but the SRAM integrated level is lower, and capacity does not increase.SRAM generally has a spot of high-speed cache that is used as because of costing an arm and a leg in top-grade computer, be used for depositing at once and will use but also otiose program and data.The characteristics of ROM (read-only memory) are that can only read can not writing information, promptly have read-only property, but can not lose wherein information because of power down, promptly have to be difficult for losing property.Therefore often the basic input and output configurator ROM BIOS (Basic Input Output System, i.e. " Basic Input or Output System (BIOS) ") with computing machine is solidificated among the ROM, and start-up system and system hardware are provided with etc. when being used to start shooting.In base station system, as internal memory, internal memory is divided into two parts to normal use Synchronous Dynamic Random Access Memory (Synchronous Dynamic Random Access Memory is called for short " SDRAM "), wherein a part is used for putting down in writing the base station running log, and system regularly extracts.
In the prior art, when base station resets, RAM can reinitialize, and with the log area zero clearing.
In actual applications, there is following problem in such scheme: if system does not extract daily record before base station resets, and the back log area zero clearing that resets, the logout of this base station can be lost, thereby makes troubles for understanding base station ruuning situation and positioning problems.
Cause the main cause of this situation to be, after base station resets, when reinitializing RAM, removed log area.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of data save method of random access memory, makes under the situation of not power down, if the content in daily record zone is still accurate, then original log control block can be inherited by system, keeps original daily record.
For achieving the above object, the invention provides a kind of data save method of random access memory, comprise following steps:
A divides into the log area that is used for storing daily record with the log store in the random access memory, and is used for the initial pointer of storing daily record memory block, reaches the pointer log control block of daily record the latest the earliest;
B for each bar daily record increases the check word data segments, and increases check bit in described log control block when depositing daily record in described log area;
When C resets when startup, the content of log control block in the described random access memory and log area is carried out verification,, then enter step D if check results is correct;
D keeps the former meaningful of log control block and log area in the described random access memory.
Wherein, in described steps A, with last 256 directly regional contents in log store district as log control block.
If in step C,,, and reinitialize described log control block then with the content zero clearing in the described random access memory if check results is incorrect.
Described random access memory is a synchronous dynamic random access memory.
Described random access memory is the Double Data Rate synchronous dynamic random access memory.
Among the described step C, adopt 4 byte cyclic redundancy check methods to carry out verification.
In described step C, adopt the banner word method of calibration to carry out verification.
By relatively finding, technical scheme difference with the prior art of the present invention is, the present invention has increased log control block in log area, and increased check bit after every daily record and in the controll block, judge after the system reset log area content still accurately the time by verification, inherit original log control block and keep original log content.
Difference on this technical scheme has brought comparatively significantly beneficial effect, has promptly reduced the inconvenience that the loss of vital data under the situation of not power down of system brings for system maintenance and localization of fault to greatest extent.
Description of drawings
The interface synoptic diagram of MPC860 and SDRAM in the data save method of Fig. 1 random access memory according to an embodiment of the invention;
Fig. 2 is that the dynamic storage log area and the log control block of the data save method of random access memory according to an embodiment of the invention divided synoptic diagram;
Fig. 3 is the data save method process flow diagram of random access memory according to an embodiment of the invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing.
The RAM that the present invention can be applied to the similar memory attribute of any SDRAM of having system not the data under the power-off reset situation preserve.Except being applied to the base station system that this example is mentioned, the data that can also be applied in the electronic computer system RAM behind the power-off reset not reliably keep.Promptly the requirement to RAM is by constantly refreshing, to keep data under the situation of not power down.In the present embodiment, the CPU of base station master control veneer is MPC860, and RAM is 16M SDRAM, and the interface of MPC860 and SDRAM as shown in Figure 1.Those of ordinary skill in the art are appreciated that Double Data Rate synchronous dynamic random access memory (Dual Data Rate SDRSM is called for short " DDR ") also can be used as RAM and is applied among the present invention.
In order to realize the function of above-mentioned maintenance data, the significant data district with RAM repartitions in the present embodiment.As shown in Figure 2, important data division is the daily record zone among the RAM in base station system, need be original daily record zone, tell one again and be used for depositing log control block, in the present embodiment, that RAM uses is SDRAM commonly used in the base station system, and there is 6M in the log store zone of the SDRAM of 16M, wherein 256 bytes are used for storing daily record controll block, deposit the initial pointer in log store district, the pointer of daily record the earliest, the information such as pointer of daily record the latest in the log control block.In actual applications, the size of the size of RAM and the data area that will keep under power-down conditions not can be selected and is provided with according to actual conditions.Secondly, increase the check word data segments in every the daily record that writes, also increase check bit in the controll block, in the present embodiment, can adopt the method for banner word verification to the verification of log control block content, can adopt the 4 byte cyclic redundancy check (CRC) method of (Cyclical Redundancy Check is called for short " CRC ") to the verification of log area log content, verification is carried out in daily record one by one.Like this, the physical length of every daily record is the length that original log content length adds the checking data section.
Below with reference to Fig. 3, describe in detail and how not utilize memory characteristics to preserve data available under the power-off reset situation in system.
In step 100, after system situation occurred and resets, system judged at first whether reset is power-off reset not.If power-off reset is followed the storage principle according to RAM, the content among the RAM can't refresh under power-down conditions, to keep data, therefore directly enters step 500, and system carries out zero clearing to RAM, and reinitializes log control block.If otherwise power-off reset not then enters step 200.
In step 200, system carries out verification to log control block in the storer and log area.In the present embodiment, after base station resets started, system did not carry out any operation to the log store district among the SDRAM, no longer directly with log store zone zero clearing, but earlier the content of log control block and the log content of log area was carried out verification.The SDRAM device provides the characteristic that refreshes automatically, can keep the data of having stored when not power down.The characteristic that refreshes automatically of SDRAM needs the external world that trigger pip is provided, and the base station is configured to SDRAM to refresh automatically when the allocate memory controller, is come to provide to SDRAM by Memory Controller Hub and refreshes needed trigger pip automatically.Therefore similar herein, if the RAM of other type can not refresh legacy data behind the power-off reset automatically yet, keep legacy data, then can use this data reservation method.Though SDRAM can keep the data of having stored in the present embodiment when not power down, in order to ensure the reliable of data and effectively, in the present invention, increased verification to daily record and log control block.System is when producing every daily record, for every daily record has generated check code simultaneously.Because after every daily record the checking data section is arranged all, when the verification log content, system is verification one by one.System during storing daily record, can add checking data after each storage in SDRAM, can accelerate verification speed like this when carrying out verification, and than will all data that will keep only being added a checking data section, it is fast to carry out whole verification speed during verification.The verification of daily record data can be adopted different check codes, in present embodiment, mention the CRC check sign indicating number, can also use simple banner word verification etc., different check code length differences, can be as the case may be and the factors such as unfailing performance that need choose different check code types.
Then enter step 300, judge whether that the verification of log control block and log content is all correct.If correct, enter step 400, otherwise, if find that by verification any one data is wrong, all enter step 500.By this step, system has increased the validity and the availability of the data that keep.
In step 400, because system has verified the correctness of log control block and log content by step 300, therefore in this step, the original log control block of system inherited has kept original log content.In this case, system keeps to greatest extent and has utilized original data, has reduced because the inconvenience that understanding and base station maintenance to base station ruuning situation bring is lost in daily record.
In step 500, because the data judged in step 300 among the RAM are wrong, the content in the daily record is unreliable, so in this step, system is the whole zero clearings of content among the RAM, and reinitializes log control block.
By above step, system can preserve important data at least as much as possible under the situation of not power down, reduced loss.
Though by reference some preferred embodiment of the present invention, the present invention is illustrated and describes, but those of ordinary skill in the art should be understood that, can do various changes to it in the form and details, and the spirit and scope of the present invention that do not depart from appended claims and limited.
Claims (7)
1. the data save method of a random access memory is characterized in that comprising following steps:
A divides into the log area that is used for storing daily record with the log store in the random access memory, and is used to store the initial pointer in described log store district, reaches the pointer log control block of daily record the latest the earliest;
B for each bar daily record increases the check word data segments, and increases check bit in described log control block when depositing daily record in described log area;
When C resets when startup, the content of log control block in the described random access memory and log area is carried out verification,, then enter step D if check results is correct;
D keeps the former meaningful of log control block and log area in the described random access memory.
2. the data save method of random access memory according to claim 1 is characterized in that, in described steps A, with last 256 directly regional contents as log control block in log store district.
3. the data save method of random access memory according to claim 1 is characterized in that, if in step C, if check results is incorrect, then with the content zero clearing in the described random access memory, and reinitializes described log control block.
4. the data save method of random access memory according to claim 1 is characterized in that, described random access memory is a synchronous dynamic random access memory.
5. the data save method of random access memory according to claim 1 is characterized in that, described random access memory is the Double Data Rate synchronous dynamic random access memory.
6. the data save method of random access memory according to claim 1 is characterized in that, among the described step C, adopts 4 byte cyclic redundancy check methods to carry out verification.
7. the data save method of random access memory according to claim 1 is characterized in that, in described step C, adopts the banner word method of calibration to carry out verification.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB200410034508XA CN100340989C (en) | 2004-04-14 | 2004-04-14 | Data preserving method for random storage |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB200410034508XA CN100340989C (en) | 2004-04-14 | 2004-04-14 | Data preserving method for random storage |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1684041A true CN1684041A (en) | 2005-10-19 |
CN100340989C CN100340989C (en) | 2007-10-03 |
Family
ID=35263399
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB200410034508XA Expired - Fee Related CN100340989C (en) | 2004-04-14 | 2004-04-14 | Data preserving method for random storage |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100340989C (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092719A (en) * | 2011-10-28 | 2013-05-08 | 浙江大华技术股份有限公司 | Power-off protection method for file system |
CN103377095A (en) * | 2012-04-24 | 2013-10-30 | 华为技术有限公司 | Running log storage method and device |
CN103927251A (en) * | 2014-03-18 | 2014-07-16 | 烽火通信科技股份有限公司 | Log management method for embedded system |
CN104169981A (en) * | 2012-03-09 | 2014-11-26 | 日本电气英富醍株式会社 | Pos device |
CN106033363A (en) * | 2015-03-16 | 2016-10-19 | 中兴通讯股份有限公司 | Upgrade method and upgrade device for application program of embedded system |
WO2021232699A1 (en) * | 2020-05-20 | 2021-11-25 | 歌尔股份有限公司 | Data reading method, apparatus and device, and readable storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5533190A (en) * | 1994-12-21 | 1996-07-02 | At&T Global Information Solutions Company | Method for maintaining parity-data consistency in a disk array |
JPH09289507A (en) * | 1996-04-23 | 1997-11-04 | Oki Electric Ind Co Ltd | Frame pulse inspecting circuit for synchronism protection of frame synchronizing device |
CN1211980C (en) * | 2003-07-31 | 2005-07-20 | 港湾网络有限公司 | Extension storage method of journal information |
-
2004
- 2004-04-14 CN CNB200410034508XA patent/CN100340989C/en not_active Expired - Fee Related
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092719A (en) * | 2011-10-28 | 2013-05-08 | 浙江大华技术股份有限公司 | Power-off protection method for file system |
CN103092719B (en) * | 2011-10-28 | 2016-09-07 | 浙江大华技术股份有限公司 | A kind of power-off protection method of file system |
CN104169981B (en) * | 2012-03-09 | 2016-08-24 | Nec平台株式会社 | POS terminal |
CN104169981A (en) * | 2012-03-09 | 2014-11-26 | 日本电气英富醍株式会社 | Pos device |
US9129275B2 (en) | 2012-03-09 | 2015-09-08 | Nec Platforms, Ltd. | POS device |
US9323593B2 (en) | 2012-04-24 | 2016-04-26 | Huawei Technologies Co., Ltd. | Method and device for saving running log of an operating system during a soft reset |
CN103377095A (en) * | 2012-04-24 | 2013-10-30 | 华为技术有限公司 | Running log storage method and device |
CN103377095B (en) * | 2012-04-24 | 2016-12-07 | 华为技术有限公司 | The store method of a kind of running log and equipment |
CN103927251A (en) * | 2014-03-18 | 2014-07-16 | 烽火通信科技股份有限公司 | Log management method for embedded system |
CN103927251B (en) * | 2014-03-18 | 2017-02-01 | 烽火通信科技股份有限公司 | Log management method for embedded system |
CN106033363A (en) * | 2015-03-16 | 2016-10-19 | 中兴通讯股份有限公司 | Upgrade method and upgrade device for application program of embedded system |
CN106033363B (en) * | 2015-03-16 | 2020-02-14 | 中兴通讯股份有限公司 | Upgrading method and upgrading device for application program of embedded system |
WO2021232699A1 (en) * | 2020-05-20 | 2021-11-25 | 歌尔股份有限公司 | Data reading method, apparatus and device, and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN100340989C (en) | 2007-10-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11636038B2 (en) | Method and apparatus for controlling cache line storage in cache memory | |
CN102792285B (en) | For the treatment of the apparatus and method of data | |
US20160085585A1 (en) | Memory System, Method for Processing Memory Access Request and Computer System | |
US8689080B2 (en) | Preemptive memory repair based on multi-symbol, multi-scrub cycle analysis | |
US20050028038A1 (en) | Persistent volatile memory fault tracking | |
US20130054869A1 (en) | Methods and apparatus to access data in non-volatile memory | |
US11237928B2 (en) | Method for a reliability, availability, and serviceability-conscious huge page support | |
CN101046765A (en) | Method for positioning fault of software | |
CN102194009A (en) | Database hosting method and database hosting platform system | |
CN106910528A (en) | A kind of optimization method and device of solid state hard disc data routing inspection | |
US9092357B2 (en) | Remapping of inoperable memory blocks | |
CN100340989C (en) | Data preserving method for random storage | |
CN112346659B (en) | Storage method, equipment and storage medium for distributed object storage metadata | |
US8972629B2 (en) | Low-contention update buffer queuing for large systems | |
CN115718620A (en) | Code program migration method, device, equipment and storage medium | |
CN107632779B (en) | Data processing method and device and server | |
CN106708439A (en) | Node selection and calculation method and system in distributed file system | |
CN100485627C (en) | Method for protecting system data without powerdown | |
CN114265637A (en) | Archive management system configuration method, system, electronic device and storage medium | |
CN101634968B (en) | Method for constructing mass data high-speed butters for backup systems | |
CN111611104A (en) | InfluxDB data backup method, system and terminal equipment | |
KR20190052490A (en) | Semiconductor memory module, semiconductor memory system, and access method of accessing semiconductor memory module | |
US9015522B2 (en) | Implementing DRAM failure scenarios mitigation by using buffer techniques delaying usage of RAS features in computer systems | |
US9229872B2 (en) | Semiconductor chip with adaptive BIST cache testing during runtime | |
McObject | Database Persistence, Without the Performance Penalty |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20071003 Termination date: 20200414 |
|
CF01 | Termination of patent right due to non-payment of annual fee |