CN101201773B - Method for protecting data of memory mechanism - Google Patents

Method for protecting data of memory mechanism Download PDF

Info

Publication number
CN101201773B
CN101201773B CN2006101694513A CN200610169451A CN101201773B CN 101201773 B CN101201773 B CN 101201773B CN 2006101694513 A CN2006101694513 A CN 2006101694513A CN 200610169451 A CN200610169451 A CN 200610169451A CN 101201773 B CN101201773 B CN 101201773B
Authority
CN
China
Prior art keywords
storage device
data
block
bit data
computer installation
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
CN2006101694513A
Other languages
Chinese (zh)
Other versions
CN101201773A (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.)
Li Chuangfa
Ma Nannan
Qi Wenxia
Yao Jingjuan
Yuan Erna
Original Assignee
Inventec 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 Inventec Corp filed Critical Inventec Corp
Priority to CN2006101694513A priority Critical patent/CN101201773B/en
Publication of CN101201773A publication Critical patent/CN101201773A/en
Application granted granted Critical
Publication of CN101201773B publication Critical patent/CN101201773B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a data protection method of a storage device and is used for computer devices at least provided with the storage device. The data protection method consists of a plurality of blocks and comprises the following steps: when data is stored into the storage device by a computer device, stored bit data are examined in storage unit of a single bit, and after data with bit error is detected, a block used for storing the detected data with error bit is backed up into a predefined block, thus avoiding occupation of memory capacity of the storage device at the same time of backing up data and improving reliability of the computer device.

Description

The data guard method of storage device
Technical field
The present invention relates to a kind of data guard method of storage device, more detailed it, relate to a kind of data guard method that is applied to have the computer installation of this storage device and in data backup, also can avoids taking the standby memory capacity of this storage device.
Background technology
Along with economic prosperity and scientific-technical progress, the use of various computing machines and server is day by day general, yet in exist and occupy epochmaking status in computing machine and the server, the influence of systemic-function is just being played the part of than more crucial in the past role, as long as the above mistake of 1bit takes place in the internal memory, just can make data produce wrong or loss, cause the very big puzzlement of consumer.
Existing two-sided stitch definition memory modules (Dual In-line Memory Modules; DIMM) the data storing technology uses mode standard (Standard), omission pattern (Spare) and three kinds of patterns of mirror image pattern (Mirror) to carry out the action of data backup, what this must illustrate be, above-mentioned three kinds of technology are technology that electronics industry is used always, so repeat no more, yet,, need to take one group of identical internal memory of size and be used for backing up though these three kinds of patterns have higher fiduciary level, therefore can only use the memory size of half in the design, cause the waste of money and internal memory.
Therefore, how to avoid the data occupancy memory headroom of archive memory, cause the use capacity of internal memory to reduce, cause internal memory to waste, real problem for demanding urgently at present handling.
Summary of the invention
Shortcoming in view of above-mentioned prior art; fundamental purpose of the present invention is to provide a kind of data guard method of storage device; detect by the bit data of desiring to be stored in this storage device; to detect the bad block of this storage device, in data backup, also can avoid taking the standby memory capacity and the fiduciary level that promotes computer installation of this storage device thus.
For reaching above-mentioned and other purpose, the invention provides a kind of data guard method of storage device, it is applied to have in the computer installation of this storage device, this storage device is made up of a plurality of block, this data guard method may further comprise the steps:, with the storage unit of (bit) stored bit data is detected with data storing during in this storage device at this computer installation; And if detect and have wrong bit data, the block that then will be used to store these error bit data backups to predetermined block.
In another embodiment of the data guard method of storage device of the present invention, the data guard method of this storage device comprises that also whether this computer installation add up this number of blocks with error bit data greater than setting value, if greater than then exporting alarm signal.
Whether the detection that this computer installation carried out is handled and is referred to the stored bit data of this storage device, carries out odd-parity detection or even parity and detects, wrong to judge the bit data in the block.
Therefore; the data guard method of storage device of the present invention; can effectively avoid prior art to need to keep in advance the backup block because of this storage device; so that the memory size of reducing storage device; and but the real-time informing user changes the storage device that is about to damage; improve the use capacity of storage device thus, and promote the fiduciary level of computer installation.
Description of drawings
Fig. 1 is the basic framework block schematic diagram of the data guard method of running storage device of the present invention; And
Fig. 2 is the schematic flow sheet of the data guard method of storage device of the present invention.
[primary clustering symbol description]
1 computer installation
11 storage devices
12 basic input/output systems
13 operating systems
14 drivers
S1, S2, S3, S4, S5, S6 step
Embodiment
Below by specific instantiation explanation embodiments of the present invention, those skilled in the art can understand other advantage of the present invention and effect easily by the content that this instructions disclosed.
See also Fig. 1; it is the basic framework block schematic diagram of the data guard method of running storage device of the present invention; as shown in the figure, the computer installation 1 that operates the data guard method of storage device of the present invention is made up of storage device 11, basic input/output system (BIOS) 12, operating system 13 and driver 14.What this must illustrate be; the computer installation 1 of using the data guard method of storage device of the present invention has other various functional unit in addition; be simplicity of illustration and explanation; framework herein only shows the member relevant with the present invention; the hardware structure of south bridge and north bridge etc. for example, be not shown in this graphic in.Wherein, this computer installation 1 for example is personal computer or server.
This basic input/output system 12 can carry out the initialization operation to this storage device 11 when start, also promptly this storage device 11 is carried out function and parameter testing, particularly, the selftest (POST) of starting shooting exactly work, 11 storage volumes that can provide of this storage device and affiliated type of memory thereof for example are provided, and this type of memory for example is types such as DRAM or SRAM, and after definite this storage device 11 can operate as normal, make this computer installation 1 enter into operating system 13, and with the capability notification operating system 13 of storage device 11, wherein, this storage device 11 is two-sided stitch definition memory modules (Dual In-line MemoryModule; DIMM).
Then; this operating system 13 is carried out driver 14 to order about this control output/Input Control Element; control the running of this storage device 11 or expansion board devices such as (not giving icon) at this as south bridge and north bridge chips (not giving icon) at this; for example the memory size that this storage device 11 is provided is carried out data storing work; and in the data storing process; carry out the data guard method of storage device of the present invention; with when detecting this storage device and have the storage block of damage; promptly the data that early desire stored change and are stored in available storage block, improve the use capacity and the fiduciary level that promotes data storing of this storage device thus.Wherein, this operating system 13 is Windows or Unix.
As shown in Figure 2, schematic flow sheet for first embodiment of the data guard method of storage device of the present invention, generally speaking, this computer installation 1 is started shooting and is carried out in start selftests (POST) work by basic input/output system 12, to carry out the initialization operation so that 11 storage volumes that can provide of this storage device and affiliated type of memory thereof to be provided to this storage device 11, afterwards, promptly enter operating system 13, wherein, when operating system 13 begins that this storage device 11 carried out data, enter to step S1 immediately, each bit data that 1 pair of this computer installation desires to be stored in this storage device 11 detects processing, also be, storage unit with one (bit) detects stored bit data, the following mode that comprises is handled in the detection of present embodiment: the one digit number desiring to deposit in according to after being stored in this storage device 11, being read this again and is stored in bit data in this storage device 11, and then whether the bit data that read of contrast is consistent with the bit data of desiring to deposit in; Or, carry out that odd-parity detects or even parity detects to the stored bit data of this storage device 11, and whether wrong to judge the bit data in the block, then proceed to step S2.
In this step S2, whether this computer installation 1 has wrong bit data to judge this storage device 11, if then proceed to step S3 according to the resulting result who detects after handling; Otherwise, then return this step S1.Particularly, whether judge foundation that this storage device 11 has a wrong bit data consistent as a reference with this step S1 contrast bit data that is read and the bit data of desiring to deposit in, if consistent this storage device 11 of then representing of contrast does not have wrong bit data, if inconsistent this storage device 11 of then representing of contrast has wrong bit data.
In this step S3, this computer installation 1 backups to the predetermined block in this storage device 11 with the block that this storage device 11 has the error bit data, then proceeds to step S4.
In this step S4, the quantity of the block of this computer installation 1 this wrong bit data of statistics to obtain statistical value, then proceeds to step S5.
In this step S5, this computer installation 1 relatively this statistical value whether greater than setting value, if then proceed to step S6; Otherwise, then return this step S1.In this step S6, the quantity of the block of this computer installation 1 through relatively learning these storage device 11 wrong bit data greater than the setting value that sets (also is, critical value for the damage number of blocks that can accept this storage device), therefore, must export alarm signal and change this storage device 11, then return this step S1 to notify the user.Particularly, this setting value can be pre-stored in the driver 14 in this computer installation 1, after entering operating system 13 and to carry out driver 14 at this computer installation 1, this driver 14 is carrying out in the process of data storing this storage device 11, except that the detection of the bit data of carrying out aforementioned this step S2 is handled, also can carry out whether abovementioned steps S5 surpasses safety value about the number of blocks of the bit data that makes a mistake comparison.
Among first embodiment of the data guard method of storage device of the present invention; the capacity of this storage device 11 is made up of by a plurality of blocks of 1k position (bits) amount of capacity; yet; backup to predetermined block in this storage device 11 as for the stored data of the block that will have the error bit data and refer to the data that detect at least one position (1bit) in the block of desiring to deposit in the bit data material wrongly and carry out this back-up processing, then be identified as with this block and damage with error bit data.So by the bad block of this storage device of detection, and can remove the backup block that keeps this storage device from, improve the use capacity of storage device thus.
Moreover, this setting value is the critical value of storage device 11 damages, in other words, be storage device 11 acceptable safety values, just set according to this computer installation 1 required data storing fiduciary level, the high more then data storing of this setting value fiduciary level is low more, otherwise the low more then fiduciary level of this setting value is high more.
Moreover, among second embodiment of the data guard method of storage device of the present invention, carry out and also comprise behind this step S3 the block with error bit data is denoted as the block of having damaged, so that the user discerns the available block and the damage block of this storage device.
In sum; the data guard method of storage device of the present invention; can effectively solve prior art and need to keep in advance the backup block because of storage device; so that the memory size of reducing storage device; therefore; data guard method by storage device of the present invention; by whether data storing is damaged to detect the storage block that storage device was provided in the bit data of this storage device; to guarantee that the bit data in this storage device can be stored in the block that can be read; and but the real-time informing user changes the storage device that is about to damage; improve the use capacity of storage device thus, and promote the fiduciary level of computer installation.
The foregoing description is illustrative principle of the present invention and effect thereof only, but not is used to limit the present invention.Any those skilled in the art all can be under spirit of the present invention and category, and the foregoing description is modified and changed.Therefore, the scope of the present invention, the claim scope is listed as described later.

Claims (6)

1. the data guard method of a storage device, it is applied to have at least in the computer installation of this storage device, and this storage device is made up of a plurality of block, and this data guard method may further comprise the steps:
At this computer installation with data storing during in this storage device, storage unit with a bit detects stored bit data, after comprising that the bit data that desire is stored is stored in this storage device, read this again and be stored in bit data in this storage device, whether with bit data that desire store consistent, if inconsistent then the expression has wrong bit data in this block if then contrasting the bit data that is read;
Have wrong bit data if detect, the block that then will be used to store these error bit data backups to predetermined block; And
Whether this computer installation adds up this number of blocks with error bit data greater than setting value, if greater than then exporting alarm signal, if less than then returning above-mentioned detection step.
2. the data guard method of a storage device, it is applied to have at least in the computer installation of this storage device, and this storage device is made up of a plurality of block, and this data guard method may further comprise the steps:
With data storing during, with the storage unit of a bit stored bit data is carried out that odd-parity detects or even parity detects at this computer installation in this storage device, whether wrong to judge the bit data in the block;
Have wrong bit data if detect, the block that then will be used to store these error bit data backups to predetermined block; And
Whether this computer installation adds up this number of blocks with error bit data greater than setting value, if greater than then exporting alarm signal, if less than then returning above-mentioned detection step.
3. the data guard method of storage device according to claim 1 and 2, it comprises that also this computer installation is denoted as the block of having damaged to the block with error bit data.
4. the data guard method of storage device according to claim 1 and 2; wherein; this setting value is the damage number of blocks of this storage device; can just set by the required fiduciary level of foundation computer installation; the high more then data storing of setting value fiduciary level is low more; otherwise the low more then data storing of setting value fiduciary level is high more.
5. the data guard method of storage device according to claim 1 and 2, wherein, this storage device is made up of a plurality of block, and the size of this block is 1k position bits.
6. the data guard method of storage device according to claim 1 and 2, wherein, this storage device is two-sided stitch definition memory modules.
CN2006101694513A 2006-12-15 2006-12-15 Method for protecting data of memory mechanism Expired - Fee Related CN101201773B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2006101694513A CN101201773B (en) 2006-12-15 2006-12-15 Method for protecting data of memory mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006101694513A CN101201773B (en) 2006-12-15 2006-12-15 Method for protecting data of memory mechanism

Publications (2)

Publication Number Publication Date
CN101201773A CN101201773A (en) 2008-06-18
CN101201773B true CN101201773B (en) 2011-06-15

Family

ID=39516948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006101694513A Expired - Fee Related CN101201773B (en) 2006-12-15 2006-12-15 Method for protecting data of memory mechanism

Country Status (1)

Country Link
CN (1) CN101201773B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1598967A (en) * 2003-09-18 2005-03-23 国际商业机器公司 System and method for detecting multiple data bit errors in memory
CN1799104A (en) * 2003-06-05 2006-07-05 皇家飞利浦电子股份有限公司 Integrity control for data stored in a non-volatile memory

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1799104A (en) * 2003-06-05 2006-07-05 皇家飞利浦电子股份有限公司 Integrity control for data stored in a non-volatile memory
CN1598967A (en) * 2003-09-18 2005-03-23 国际商业机器公司 System and method for detecting multiple data bit errors in memory

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开2005-208958A 2005.08.04

Also Published As

Publication number Publication date
CN101201773A (en) 2008-06-18

Similar Documents

Publication Publication Date Title
US20150067277A1 (en) Multiprocessor system for restricting an access request to a shared resource
CN106682162A (en) Log management method and device
CN102915260B (en) The method that solid state hard disc is fault-tolerant and solid state hard disc thereof
US7447943B2 (en) Handling memory errors in response to adding new memory to a system
KR950003999A (en) Information processing systems
JP3376306B2 (en) Data processing apparatus and data processing method
CN101140535A (en) Method for preventing BIOS chip data from missing
CN1173264C (en) Protection of the core part of a computer against external manipulation
EP0125797B1 (en) Interrupt signal handling apparatus
CN101201773B (en) Method for protecting data of memory mechanism
CN101295274B (en) Method and equipment for reducing data error of shared memory
EP0070184B1 (en) A method of testing memory
US7954042B2 (en) Check testing of an address decoder
CN101158920B (en) Method and apparatus for detecting fault of operating system
CN100346296C (en) Design method for avoiding misuse of non-ECC memory
CN113342571A (en) Method for preventing EEPROM data from losing in case of power failure applied to embedded system
CN100524239C (en) Method for protecting data of memory mechanism
TW200826107A (en) Method for protecting data of storage device
CN101661399A (en) Method for modular software removal
CN110476153A (en) The method and electronic equipment of access instruction SRAM
TWI823556B (en) Memory abnormality detection system, motherboard, electronic device and abnormality detection method
JPH0944416A (en) Data protection method in case of power failure of data processing system by computer and data processing system with data protection function in case of power failure
JP3154853B2 (en) Illegal memory access detection method
US7853861B2 (en) Data protecting method of storage device
JP2002073375A (en) Software operation monitoring method in system that contains microcomputer

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
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Yao Jingjuan

Inventor after: Li Chuangfa

Inventor after: Qi Wenxia

Inventor after: Yuan Erna

Inventor after: Ma Nannan

Inventor before: Lu Yingzhi

Inventor before: Zhang Qicong

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20171017

Address after: 3-4-6 No. 11 building, B District, Yicheng copper plant, Linfen, Shanxi

Co-patentee after: Li Chuangfa

Patentee after: Yao Jingjuan

Co-patentee after: Qi Wenxia

Co-patentee after: Yuan Erna

Co-patentee after: Ma Nannan

Address before: Taipei City, Taiwan, China

Patentee before: Inventec 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: 20110615

Termination date: 20171215