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

Method for protecting data of memory mechanism Download PDF

Info

Publication number
CN101206597A
CN101206597A CNA200710104846XA CN200710104846A CN101206597A CN 101206597 A CN101206597 A CN 101206597A CN A200710104846X A CNA200710104846X A CN A200710104846XA CN 200710104846 A CN200710104846 A CN 200710104846A CN 101206597 A CN101206597 A CN 101206597A
Authority
CN
China
Prior art keywords
storage device
block
guard method
data guard
operating system
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
Application number
CNA200710104846XA
Other languages
Chinese (zh)
Other versions
CN100524239C (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.)
Inventec Corp
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 CNB200710104846XA priority Critical patent/CN100524239C/en
Publication of CN101206597A publication Critical patent/CN101206597A/en
Application granted granted Critical
Publication of CN100524239C publication Critical patent/CN100524239C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention provides a data protection method of a storage device, which is applied to a computer unit. The data protection method includes the following steps: an interrupt management program of the system acquires information of error pattern and address of an error chunk in a first storage device by a hardware control device, and the information is stored into a second storage device; the information of the error pattern and the error chunk of the first storage device is read by a drive service program from the second storage device; the drive service program informs an operating system to search a chunk which can be accessed normally and not destroyed in the first storage device, and the chunk is set as a default chunk; the drive service program transmits the information of the address of the error chunk in the first storage device to the operating system, thereby the operating system copies the data of the error chunk in the first storage device to the default chunk, so that the using capacity of the storage device can be increased, and the reliability of the computer unit can be improved.

Description

The data guard method of storage device
Technical field
The present invention relates to a kind of data guard method of storage device, in more detail, relate to the method for data backup of the storer in a kind of computer equipment that is applied to have storer.
Background technology
Along with economic prosperity and scientific-technical progress, the use of various computers and server is with day by day general, yet storer occupies epochmaking status in computer and server, more crucial role is just being played the part of in influence to system effectiveness, as long as the above mistake of 1bit takes place in the storer, just can make data produce wrong or loss, cause the very big puzzlement of consumer.
Prior art is used mode standard (Standard), three kinds of patterns of standby mode (Spare) and mirror image pattern (Mirror) cooperate hardware controller operation DIMM (Dual In-lineMemory Module), carry out the action of data backup, above-mentioned three kinds of technology are technology that industry is used always, for knowing the technology that this technical field person all knows, so repeat no more, so, though standby mode and mirror image pattern have higher fiduciary level, but needing to take one group of identical storer of size is used for backing up, therefore can only use the memory span of half in the design, cause the waste of money and storer.
Therefore, how to avoid for the data of backup of memory thereby keep one group of equirotal storer more, cause the use capacity of storer to have only original half, cause storer 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; the information of the bad block by the record storage device is copy backup in addition again, and nationality is with use capacity that improves storage device and the fiduciary level that promotes computer equipment.
For reaching above-mentioned and other purpose; the invention provides a kind of data guard method of storage device; system is applied in the computer equipment; this computer equipment system is made up of first storage device, second storage device, driving service routine, hardware controller, system management interrupt program and operating system at least; this first storage device is made up of a plurality of block, and this data guard method system may further comprise the steps:
Make this system break supervisory routine by the wrong kenel of the wrong block in this first storage device of acquisition in this hardware controller and the information of address, and it is stored in second storage device.
Make this driving service routine from second storage device, read the wrong kenel of this first storage device and the information of misaddress.
Make this driving service routine notify this operating system to seek the normally access in this first storage device and do not have the block of damage and be set at default block; And
Make this driving service routine send the information of the address of the wrong block in this first storage device to operating system, thereby make this operating system that the data of the wrong block in this first storage device are copied to default block.
In addition, this data guard method also comprises, makes this mistake block be denoted as the block of having damaged.
Therefore; the data guard method of storage device of the present invention; can effectively avoid prior art because guarantee that data can not lose; back up block and in storage device, keep; and need take one group of identical storer of size and be used for Backup Data; therefore the user can only use the problem of the memory span of half, by the fiduciary level that the present invention can promote computer equipment really, uses capacity with the storer that improves computer equipment.
Description of drawings
Fig. 1 is the corresponding basic framework block schematic diagram of the data guard method of storage device of the present invention;
Fig. 2 is the process step figure of data guard method of the storage device of first embodiment of the invention; And
Fig. 3 is the memory error kenel definition of the data guard method of storage device of the present invention.
The main element symbol description
1 computer equipment
11 first storage devices
12 second storage devices
13 hardware controllers
14 drive service routine
15 system management interrupt programs
16 operating systems
S1, S2, S3, S4 step
Embodiment
Below be that those skilled in the art can understand other advantages of the present invention and effect easily by this instructions institute disclosure by specific instantiation explanation embodiments of the present invention.
See also Fig. 1, it is the corresponding basic framework block schematic diagram of the data guard method of storage device of the present invention, as shown in the figure, this computer equipment 1 is by first storage device 11, second storage device 12, drives service routine 14, hardware controller 13, system management interrupt program 15 (System Manage Interrupt; SMI) form with operating system 16, in order to the pairing basic framework of the data guard method that storage device of the present invention is provided.What this must propose explanation be; the computer equipment 1 of using the data guard method of storage device of the present invention has other various functional unit in addition, is simplicity of illustration and explanation, and framework herein only shows the member relevant with the present invention; input-output device for example, be not shown in this graphic in.Wherein, this computer equipment 1 be PC and server one of them, and this hardware controller 13 is north bridge (North bridge) control chip, in addition, this system management interrupt program 15 is the service routine in the basic input/output system (BIOS).
This basic input/output system (being illustrated at this) can carry out basic functions to this first storage device 11 and set and detecting when start, after determining that first storage device 11 can operate as normal, the interruption generation function that can set this first storage device 11 is activation, just can enter into operating system 16.Wherein, this first storage device 11 is two-sided stitch define storage module (Dual In-line Memory Module; DIMM).
Then, this operating system 16 is being carried out this memory management unit of data access (Memory Control Hub to DIMM; MCH) (it is positioned at north bridge control chip, is illustrated at this) will go automatically to detect whether this first storage device 11 is Un-correct error or Correct error, to produce look-at-me.Wherein, this operating system 16 be Windows and Unix one of them.
See also Fig. 2, process step figure for the data guard method of the storage device of first embodiment of the invention, as shown in the figure, this computer equipment 1 start back to first storage device 11 and hardware controller 13 carry out initialization intact after, promptly enter operating system 16, when operating system 16 begins DIMM is carried out data access and Un-Correct error takes place or during Correct error, smi signal will take place and carry out the SMI handling procedure in system at once, enter to step S1 this moment immediately, make this system break supervisory routine 15 obtain the wrong kenel of the wrong block in this first storage device 11 and the information of address by this hardware controller 13, and will be stored in second storage device 12, and hardware done to set goes to produce one and interrupt (Interrupt) signal and drive service routine (Interrupt Serice Routine so that carry out; ISR) 14, leave the SMI handling procedure then, then proceed to step S2, wherein, this second storage device 12 is non-volatile volatile storage (Non-Volatile Random Access Memory; NVRAM).
In this step S2, make this driving service routine 14 from second storage device 12, read the wrong kenel of this first storage device 11 and the information of misaddress, then proceed to step S3.
In this step S3, make this driving service routine 14 notify this operating system 16 to seek the normally access in these first storage devices 11 and do not have the block of damage and be set at default block, then proceed to step S4.
In this step S4, make this driving service routine 14 send the information of the address of the wrong block in this first storage device 11 to operating system 16, thereby make this operating system 16 that the data of the wrong block in this first storage device 11 are copied to default block.
In addition, this DIMM is made up of by a plurality of blocks of 1k bit size among first embodiment, yet this default block is a normal access data and there is no the block of any damage in first storage device 11.
See also Fig. 3, memory error kenel definition for the data guard method of storage device of the present invention, as shown in the figure, the wrong kenel of this storer has six kinds, be by protected mode (standard and Mirror mode), (Correct Error can correct mistakes; CE) (Un-Correct Error maybe can not correct mistakes; UE) kenel and the source (NormalDimm and Mirror Dimm) of making a mistake, three kinds of wrong kenels that different parameters is arranged in a combination drive service routine 14 and differentiate as the memory error kenel to provide.
In like manner, second embodiment system is roughly the same with previous embodiment, and main difference is that this data guard method process step exists; add a step in the last step; make the block of these wrong bit data, be denoted as and damage block, for the purpose of simplifying the description so no longer with the diagram expression.
Moreover; the 3rd embodiment system is roughly the same with above-mentioned first embodiment; main difference is this data guard method flow process third step is many again a determining step; when this first storage device 11 has not had spendable block; in other words; be exactly that this first storage device 11 has used and taken all blocks; can't provide any block that normally can use again; then make this operating system 16 will utilize disk (for example: hard disc) be modeled to virtual memory; offer operating system 16 and use, for the purpose of simplifying the description so no longer with the diagram expression as storer.
In sum; the data guard method of storage device of the present invention; can effectively solve prior art and keep the backup block because of storage device; need take one group of identical storer of size and be used for Backup Data; cause the user can only use the problems such as memory span of half; therefore; data guard method by storage device of the present invention; the wrong kenel by noting down this mistake block and the information of address; and deposit to second storage device; the default block in this first storage device is sought in order again; copy to default block with data with the wrong block in this first storage device; nationality is with the use capacity of raising storage device, and the fiduciary level of lifting computer equipment.
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, claim is listed as described later.

Claims (10)

1. the data guard method of a storage device; system is applied in the computer equipment; this computer equipment system is made up of first storage device, second storage device, driving service routine, hardware controller, system management interrupt program and operating system at least; this first storage device is made up of a plurality of block, and this data guard method system may further comprise the steps:
1) makes this system break supervisory routine obtain the wrong kenel of the wrong block in this first storage device and the information of address, and it is stored in second storage device by this hardware controller;
2) make this driving service routine from second storage device, read the wrong kenel of this first storage device and the information of misaddress;
3) make this driving service routine notify this operating system to seek the normally access in this first storage device and do not have the block of damage and be set at default block; And
4) make this driving service routine send the information of the address of the wrong block in this first storage device to operating system, thereby make this operating system that the data of the wrong block in this first storage device are copied to default block.
2. the data guard method of storage device according to claim 1, this data guard method also comprises, makes this mistake block be denoted as the block of having damaged.
3. the data guard method of storage device according to claim 1, wherein, this first storage device is made up of a plurality of block, and the size of this block is 1k bit.
4. the data guard method of storage device according to claim 1, wherein, this first storage device is two-sided stitch define storage module DIMM.
5. the data guard method of storage device according to claim 1, wherein, this second storage device is a nonvolatile memory.
6. the data guard method of storage device according to claim 1, wherein, this system management interrupt program is the service routine in the basic input/output system.
7. the data guard method of storage device according to claim 1, wherein, this default block is a normal access data and there is no the block of any damage in first storage device.
8. the data guard method of storage device according to claim 1, wherein, this hardware controller is a north bridge control chip.
9. the data guard method of storage device according to claim 1, wherein, this mistake kenel has six kinds at least, is by protected mode, can revises the source that maybe can not correct mistakes kenel and make a mistake, three kinds of wrong kenels that are arranged in a combination.
10. the data guard method of storage device according to claim 1; wherein; the step 3) of this data guard method also comprises; when this first storage device has not had spendable block; make this operating system will utilize disk to be modeled to virtual memory, offer operating system and use as storer.
CNB200710104846XA 2006-12-15 2007-05-22 Method for protecting data of memory mechanism Expired - Fee Related CN100524239C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB200710104846XA CN100524239C (en) 2006-12-15 2007-05-22 Method for protecting data of memory mechanism

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN200610169448 2006-12-15
CN200610169448.1 2006-12-15
CNB200710104846XA CN100524239C (en) 2006-12-15 2007-05-22 Method for protecting data of memory mechanism

Publications (2)

Publication Number Publication Date
CN101206597A true CN101206597A (en) 2008-06-25
CN100524239C CN100524239C (en) 2009-08-05

Family

ID=39566828

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB200710104846XA Expired - Fee Related CN100524239C (en) 2006-12-15 2007-05-22 Method for protecting data of memory mechanism

Country Status (1)

Country Link
CN (1) CN100524239C (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102479119A (en) * 2010-11-29 2012-05-30 英业达股份有限公司 Method for dynamically switching memory mode for protecting damaged memory cell data
CN110262522A (en) * 2019-07-29 2019-09-20 北京百度网讯科技有限公司 Method and apparatus for controlling automatic driving vehicle

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102479119A (en) * 2010-11-29 2012-05-30 英业达股份有限公司 Method for dynamically switching memory mode for protecting damaged memory cell data
CN110262522A (en) * 2019-07-29 2019-09-20 北京百度网讯科技有限公司 Method and apparatus for controlling automatic driving vehicle

Also Published As

Publication number Publication date
CN100524239C (en) 2009-08-05

Similar Documents

Publication Publication Date Title
US7360048B2 (en) Storage system with multiple copy targeting and disk failure protection
US8341386B2 (en) Method for updating basic input/output system and method for repairing thereof
US8745443B2 (en) Memory system
JP2004038290A (en) Information processing system and disk control method for use in same system
CN101615162B (en) Memory management unit, image forming apparatus, memory management method, and computer program
JPH07500203A (en) Data backup system for rollback
US20050033933A1 (en) Systems and methods for modifying disk drive firmware in a raid storage system
JP2002529853A (en) Write protected disk cache apparatus and method for subsystem hard disk with large capacity memory
US9250942B2 (en) Hardware emulation using on-the-fly virtualization
US6931499B2 (en) Method and apparatus for copying data between storage volumes of storage systems
CN100524239C (en) Method for protecting data of memory mechanism
KR101258589B1 (en) Information storage medium recording data according to journaling file system, method and apparatus of writing/recovering data using journaling file system
US7600151B2 (en) RAID capacity expansion interruption recovery handling method and system
JP2002229742A (en) Access switching control device and access switching control method
US20100169572A1 (en) Data storage method, apparatus and system for interrupted write recovery
JP2007058873A (en) Device control device using nonvolatile memory
TW201301018A (en) System and method for recovering a master boot record of a disk
JP2006318105A (en) Monitoring system
US12066913B2 (en) Storage system having multiple management controllers for detecting a failure
JP3967073B2 (en) RAID controller
CN107229535A (en) Many copy storage methods of data block, storage device, method for reading data
KR100849224B1 (en) Method and memory card system for supplying power with a memory card of the memory card system
JPH09305491A (en) System and method for caching disk
JPH09101866A (en) Disk array system and its application method
CN114217737A (en) Data storage processing method, data storage processing circuit and electronic equipment

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: 20090805

Termination date: 20190522

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