CN103970637A - Method for recovering from system data underload abnormality automatically - Google Patents
Method for recovering from system data underload abnormality automatically Download PDFInfo
- Publication number
- CN103970637A CN103970637A CN201310139988.5A CN201310139988A CN103970637A CN 103970637 A CN103970637 A CN 103970637A CN 201310139988 A CN201310139988 A CN 201310139988A CN 103970637 A CN103970637 A CN 103970637A
- Authority
- CN
- China
- Prior art keywords
- underload
- address
- read pointer
- abnormal
- 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
- 238000000034 method Methods 0.000 title claims abstract description 16
- 230000005856 abnormality Effects 0.000 title abstract 4
- 230000002159 abnormal effect Effects 0.000 claims description 33
- 230000009191 jumping Effects 0.000 claims description 4
- 238000012952 Resampling Methods 0.000 claims description 3
- 230000015556 catabolic process Effects 0.000 abstract 1
- 238000011084 recovery Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
Landscapes
- Memory System Of A Hierarchy Structure (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The invention provides a method for recovering from a system data underload abnormality automatically. A read pointer B and an automatic recovering module are added on an existing cache structure. When a system suffers from cache underload, a read pointer A is no longer increased according to read enable signals and generates a needed data address for underload, the read pointer B is used for keeping judging whether a cache is recovered or not and recording the number of underload data according to read enable changes, and the two read pointers are kept pace with each other after the system is recovered automatically. The method has the advantages that automatic recovering from the system data underload abnormality is achieved, resources of a central processing unit do not need to be occupied, requirements on real-time operational capabilities of the CPU and the system are lowered, breakdown and system hang-up during underload abnormality are avoided, interrupt and CPU interference are avoided, system cost is saved, system complexity is lowered, and a wider application prospect is achieved.
Description
Technical field
The present invention relates to a kind of automatic method from the underload abnormal restoring of system data; to utilize a kind of novel caching system to solve short-term Buffer Under Run problem specifically, make system without primary processor intervention, can be automatically detect and recover and can continue operation from unusual condition.
Background technology
In embedded system, system can be due to bandwidth problem or limited processing ability, cannot produce in time or write the data content needing, and simultaneously data read end and still need to continue sense data, and now data buffer storage occurs underload abnormal.For example in display system, do not produce the content of demonstration or cannot write demonstration input-buffer on time, thereby cause showing collapse and even crash.Conventionally the data buffer storage in system is processed and is not had underload restore funcitons, easily causes the system even system of makeing mistakes to hang dead.
Prior art: US Patent No. 5819114 Interrupption recovery and resynchronization of events in a computer, this patent has been used a underload counter and has been filled a record buffer memory with interrupting notification processor, but it need to take central processing unit resource, and cannot recovery from abnormal automatically.
Summary of the invention
The invention solves technical matters is in prior art, data buffer storage in common system is processed does not have underload restore funcitons, easily cause the system even system of makeing mistakes to hang dead shortcoming, put forward a kind of novel caching system and solve short-term Buffer Under Run problem, make system without primary processor intervention, can be automatically recover and can continue operation from unusual condition.
For solving the problems of the technologies described above, the present invention proposes a kind of automatic method from the underload abnormal restoring of system data, comprise the following steps:
Step 1, underload abnormal when system data, buffer memory is empty or when underload, and read pointer A stops and read pointer B continues to increase;
Step 2, read pointer A is used as accessing between the abnormal emergence period address of internal data cache module, address or use underload abnormal front last address occurs, address or jumping to a default address uses preset content and data;
Step 3, buffer memory empty and automatically recover module according to read pointer A, read pointer B, there is address and the write pointer preserved when underload, produce buffer memory spacing wave and restoring signal automatically;
Step 4, shows that in the time that write pointer equals read pointer B display buffer recovers, and buffer memory is empty and automatically to recover the automatic restoring signal that module produces effective;
Step 5, in the time receiving restoring signal, generates new read pointer A according to the automatic resampling of read pointer B, and system is resumed operation automatically, and when the normal operation of system does not occur when underload, read pointer A and read pointer B change simultaneously, reads to enable when effective to add one at every turn.
Further, a kind of aforesaid automatic method from the underload abnormal restoring of system data, in step 2, address is to use underload abnormal front last address occurs, underload last front address is repeated to read, system continuation operation.
Further; a kind of aforesaid automatic method from the underload abnormal restoring of system data; in step 2, address is to jump to a default address to use preset content and data; default address is extra address of preserving while there is Buffer Under Run, the processing of state or data when preset content is auxiliary abnormal.
Further, aforesaid a kind of automatically from the method for the underload abnormal restoring of system data, in step 4, the bit wide of read pointer B has determined that system can tolerate how long underload, can be greater than normal required buffer memory capacity by processing this length.
The present invention adopts above technical scheme to have following technique effect: the bit wide of read pointer B has determined that system can tolerate how long underload, can be greater than normal required buffer memory capacity by processing this length, increase System Error-tolerance Property, increased the tolerance of system to time delay.Read pointer A or jump to a default address and use preset content and data, or be used as accessing the address of internal data cache module, has reduced CPU and system real-time operation Capability Requirement, has avoided hanging up in underload collapse and system when abnormal.Buffer memory empty and automatically recover module according to described read pointer A, described read pointer B, there is address and the write pointer preserved when underload, produce buffer memory spacing wave and restoring signal automatically, intervene without CPU.There is system when abnormal and can automatically detect recovery, avoid producing and interrupt and CPU intervention, saved system overhead and complexity, do not increase system cost.
Brief description of the drawings
Fig. 1 is that the present invention is automatically from the buffer structure schematic diagram of the underload abnormal restoring of system data.
Embodiment
In order to deepen the understanding of the present invention, below in conjunction with drawings and Examples, the present invention is described in further detail, this embodiment, only for explaining the present invention, does not form and limits protection scope of the present invention.
Essence of the present invention is to have increased described read pointer B and described automatic recovery module.In the time of system generation Buffer Under Run, described read pointer A no longer increases according to reading enable signal, but produce the desired data address when underload, described read pointer B continuation enables to change and is used for keeping judging whether buffer memory has recovered and recorded the quantity that underload data occur, and system is automatically recovered latter two and read pin maintenance synchronously according to reading.
Specific embodiment of the invention process is as follows:
1, when system data is underload abnormal, buffer memory is empty or when underload, and read pointer A stops and read pointer B continues to increase;
2, described read pointer A is used as accessing between the abnormal emergence period address of internal data cache module, described address or use underload abnormal front last address occurs, described address or jumping to a default address uses preset content and data;
In above-mentioned 2: underload abnormal front last address occurs for described address or use, and underload last front address is repeated to read, and system continues to move, there will not be system crash or hang dead; Described address or jumping to a default address uses preset content and data, described default address is extra address of preserving while there is Buffer Under Run, the processing of state or data when described preset content is auxiliary abnormal, for example, show certain content, send particular frame etc.;
3, buffer memory empty and automatically recover module according to described read pointer A, described read pointer B, there is address and the write pointer preserved when underload, produce buffer memory spacing wave and restoring signal automatically;
4, in the time that equaling described read pointer B, described write pointer shows that display buffer recovers, described buffer memory is empty and automatically to recover the automatic restoring signal that module produces effective, the bit wide of described read pointer B has determined that system can tolerate how long underload, can be greater than normal required buffer memory capacity by processing this length, increase System Error-tolerance Property;
5, in the time receiving restoring signal, generate new described read pointer A according to the automatic resampling of described read pointer B, system is resumed operation automatically, when the normal operation of system does not occur when underload, described read pointer A and described read pointer B change simultaneously, read to enable when effective to add one at every turn.
In sum; a kind of automatic method from the underload abnormal restoring of system data involved in the present invention; automatically from abnormal, detection recovers; do not need to take central processing unit resource, reduced CPU and system real-time operation Capability Requirement, avoided hanging up in underload collapse and system when abnormal; avoid producing and interrupt and CPU intervention; save system overhead and complexity, do not increased system cost, had application prospect more widely.
Claims (4)
1. automatically from a method for the underload abnormal restoring of system data, it is characterized in that, comprise the following steps:
Step 1, underload abnormal when system data, buffer memory is empty or when underload, and read pointer A stops and read pointer B continues to increase;
Step 2, described read pointer A is used as accessing between the abnormal emergence period address of internal data cache module, described address or use underload abnormal front last address occurs, described address or jumping to a default address uses preset content and data;
Step 3, buffer memory empty and automatically recover module according to described read pointer A, described read pointer B, there is address and the write pointer preserved when underload, produce buffer memory spacing wave and restoring signal automatically;
Step 4, shows that in the time that described write pointer equals described read pointer B display buffer recovers, and described buffer memory is empty and automatically to recover the automatic restoring signal that module produces effective;
Step 5, in the time receiving restoring signal, generates new described read pointer A according to the automatic resampling of described read pointer B, system is resumed operation automatically, when the normal operation of system does not occur when underload, described read pointer A and described read pointer B change simultaneously, read to enable when effective to add one at every turn.
2. a kind of automatic method from the underload abnormal restoring of system data as claimed in claim 1; it is characterized in that; address described in step 2 is to use underload abnormal front last address occurs, and underload last front address is repeated to read, and system continues operation.
3. a kind of automatic method from the underload abnormal restoring of system data as claimed in claim 1; it is characterized in that; address described in step 2 is to jump to a default address to use preset content and data; described default address is extra address of preserving while there is Buffer Under Run, the processing of state or data when described preset content is auxiliary abnormal.
4. a kind of automatic method from the underload abnormal restoring of system data as claimed in claim 1; it is characterized in that; the bit wide of the B of read pointer described in step 4 has determined that system can tolerate how long underload, can be greater than normal required buffer memory capacity by processing this length.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310139988.5A CN103970637B (en) | 2013-04-22 | 2013-04-22 | A kind of automatically from the method for the underload abnormal restoring of system data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310139988.5A CN103970637B (en) | 2013-04-22 | 2013-04-22 | A kind of automatically from the method for the underload abnormal restoring of system data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103970637A true CN103970637A (en) | 2014-08-06 |
CN103970637B CN103970637B (en) | 2016-12-28 |
Family
ID=51240168
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310139988.5A Expired - Fee Related CN103970637B (en) | 2013-04-22 | 2013-04-22 | A kind of automatically from the method for the underload abnormal restoring of system data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103970637B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111128089A (en) * | 2020-03-27 | 2020-05-08 | 南京芯驰半导体科技有限公司 | Display controller with data underrun self-recovery function and method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5388261A (en) * | 1992-09-30 | 1995-02-07 | Apple Computer, Inc. | Apparatus and method for handling frame overruns in a digital signal processing system |
US5978868A (en) * | 1997-08-28 | 1999-11-02 | Cypress Semiconductor Corp. | System for generating buffer status flags by comparing read and write pointers and determining direction of progression of read pointer with respect to write pointer |
CN1373570A (en) * | 2000-09-15 | 2002-10-09 | 扎尔林克半导体股份有限公司 | Method for detecting and restoring underload and overload slip |
-
2013
- 2013-04-22 CN CN201310139988.5A patent/CN103970637B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5388261A (en) * | 1992-09-30 | 1995-02-07 | Apple Computer, Inc. | Apparatus and method for handling frame overruns in a digital signal processing system |
US5978868A (en) * | 1997-08-28 | 1999-11-02 | Cypress Semiconductor Corp. | System for generating buffer status flags by comparing read and write pointers and determining direction of progression of read pointer with respect to write pointer |
CN1373570A (en) * | 2000-09-15 | 2002-10-09 | 扎尔林克半导体股份有限公司 | Method for detecting and restoring underload and overload slip |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111128089A (en) * | 2020-03-27 | 2020-05-08 | 南京芯驰半导体科技有限公司 | Display controller with data underrun self-recovery function and method |
Also Published As
Publication number | Publication date |
---|---|
CN103970637B (en) | 2016-12-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107624179B (en) | Efficient solid state drive data compression scheme and layout | |
CN102866971A (en) | Data transmission device, system and method | |
KR20170098802A (en) | Fault tolerant automatic dual in-line memory module refresh | |
EP3680787B1 (en) | Method for synchronization between primary database and standby database, database system and device | |
US11784756B2 (en) | Memory access technology and computer system | |
US9792052B2 (en) | Nonvolatile memory interface for metadata shadowing | |
US20100153347A1 (en) | Method and system for preventing corruption of hard disk drive file system | |
CN104407933A (en) | Data backup method and device | |
US9411519B2 (en) | Implementing enhanced performance flash memory devices | |
US9684520B2 (en) | Computing system with non-disruptive fast memory restore mechanism and method of operation thereof | |
US20150019808A1 (en) | Hybrid storage control system and method | |
EP3588913A1 (en) | Data caching method and apparatus | |
CN106897431B (en) | Log export method and system | |
CN109375868B (en) | Data storage method, scheduling device, system, equipment and storage medium | |
CN103970637A (en) | Method for recovering from system data underload abnormality automatically | |
US20130166805A1 (en) | Interrupt cause management device and interrupt processing system | |
CN103631739A (en) | Positioning analysis method for embedded system and embedded system | |
CN203097882U (en) | High-precise pressure gauge for underground data collecting | |
CN203311406U (en) | On-line synchronization backup device | |
CN103064762B (en) | Heavily delete restoration methods and the device of Backup Data | |
CN104239239A (en) | Online synchronous backup system method and online synchronous backup system device | |
US20170123654A1 (en) | Storage volume device and method for increasing write speed for data streams while providing data protection | |
KR102427323B1 (en) | Semiconductor memory module, semiconductor memory system, and access method of accessing semiconductor memory module | |
CN202759536U (en) | Highly reliable vehicle-loaded video storage apparatus and vehicle-loaded video apparatus | |
CN102209042B (en) | Method and device for preventing first input first output (FIFO) queue from overflowing |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20180208 Address after: Room 206, No. 22, Bo Xia Road, Shanghai free trade test area, Pudong New Area, Shanghai Patentee after: Shanghai, Shahu, Mdt InfoTech Ltd Address before: 215011 room 605 of the riverside flower garden, Huqiu District, Suzhou, Jiangsu Patentee before: Gong Huimin |
|
TR01 | Transfer of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20161228 Termination date: 20200422 |
|
CF01 | Termination of patent right due to non-payment of annual fee |