CN107329694A - Data storage control method, control device and storage device - Google Patents

Data storage control method, control device and storage device Download PDF

Info

Publication number
CN107329694A
CN107329694A CN201710478857.8A CN201710478857A CN107329694A CN 107329694 A CN107329694 A CN 107329694A CN 201710478857 A CN201710478857 A CN 201710478857A CN 107329694 A CN107329694 A CN 107329694A
Authority
CN
China
Prior art keywords
data
target
memory region
capacity
target memory
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
CN201710478857.8A
Other languages
Chinese (zh)
Other versions
CN107329694B (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.)
Suzhou naiteli Intelligent Technology Co.,Ltd.
Original Assignee
Suzhou Delivery Electronic Technology Co Ltd
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 Suzhou Delivery Electronic Technology Co Ltd filed Critical Suzhou Delivery Electronic Technology Co Ltd
Priority to CN201710478857.8A priority Critical patent/CN107329694B/en
Publication of CN107329694A publication Critical patent/CN107329694A/en
Application granted granted Critical
Publication of CN107329694B publication Critical patent/CN107329694B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0616Improving the reliability of storage systems in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0631Configuration or reconfiguration of storage systems by allocating resources to storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of data storage control method, control device and storage device, the control method includes:Receive target data storage;The target data storage is write to the target memory region of setting;Judge whether the data capacity in target memory region reaches default capacity threshold, if it is not, the target data storage next time to be received such as then;If so, then according to the sector capacity of storage device, a certain amount of data are sequentially obtained from target memory region as data to be stored, the size of the data to be stored is the integral multiple of the sector capacity;The data to be stored are moved to storage device from target memory region.The present invention utilizes buffer memory memory technology, will meet the data one-time write storage device of certain capacity threshold value, reduces the erasable number of times of storage device;On the other hand, file is deleted using numbering, chronograph mechanism, extends the erase-write cycles of storage device, considerably increase the service life of storage device.

Description

Data storage control method, control device and storage device
Technical field
The present invention relates to field of storage, more particularly to a kind of data storage control method, control device and storage device.
Background technology
Single chip application field extensively, is developed with the technology of decades now, and the performance more and more higher of single-chip microcomputer is outside Extended capability is more next strong, and simultaneously network technology, the development of data storage medium technology brings new approaches to whole industry, The network of high speed, big data are stored in some industries into demand, then some high performance plug-in Large Copacities of single-chip microcomputer Storage device into the thing that when the water comes, a channel is formed, and the plug-in SD card of single-chip microcomputer be one of them (log content is short and small but preserves frequency It is numerous, cause the erasable number of times of SD card frequent).
General SD card has the limitation of erasing times life-span, and conservative point says SD card erasing life-span few several of commercial type Thousand times, many up to ten thousand times, if these SD cards are applied in some long-plays, the equipment of frequent read-write data, just not Obtain and do not face a problem:How SD card restricted lifetime, could allow the SD card of equipment to increase the service life.
Our working environments of many equipment are more severe, and temperature is high, vibrations are big, and 100,000 erasable SD cards have arrived me Some equipment on, may being just reduced to thousands of erasing and writing lifes, (conservative estimation 4000 times, the commercial SD card having may not have also Have so many).Assuming that erasable 10 times of the sector one day of SD card one, discounting for this problem of life-span, it is average must less than 2 years Change SD card, although SD card price do not include it is too expensive, this strong influence usage experience of client, add the maintenance of client into This, also leaves bad impression to client.
The content of the invention
In order to solve problem of the prior art, the invention provides a kind of data storage control method, control device and deposit Equipment is stored up, the technical scheme is as follows:
On the one hand, the invention provides a kind of data storage control method, including:
Receive target data storage;
The target data storage is write to the target memory region of setting;
Judge whether the data capacity in target memory region reaches default capacity threshold, if it is not, under then etc. to be received Target data storage once;
If so, then according to the sector capacity of storage device, a certain amount of data sequentially being obtained from target memory region and are made For data to be stored, the size of the data to be stored is the integral multiple of the sector capacity;
The data to be stored are moved to storage device from target memory region.
Further, the default capacity threshold is less than the capacity in target memory region, and more than single sector capacity, The maximum capacity of single target data storage is less than the difference between the capacity in target memory region and default capacity threshold.
Further, it is described the data to be stored are moved to storage device from target memory region before also include:
Judge whether current sector to be written is empty in storage device, if it is not, then obtaining the residue of current sector to be written Capacity, and sequentially obtain from target memory region the data of respective volume as filling data, by the filling data from mesh Mark region of memory is moved to sector to be written.
Further, also include before the reception target data storage:
Judge whether the residual capacity of current goal region of memory is more than target data storage, if it is not, then by the target Data storage write storage device, or, the target data storage is write into the second region of memory.
Further, the target data storage is the data capacity in journal file, the judgement target memory region Also include before whether reaching default capacity threshold:
Judge whether the time reaches zero point, if so, newly-built system journal, and the data in current goal region of memory are write Enter storage device.
Another further aspect, present invention also offers second of data storage control method, it is characterised in that including:
Receive target data storage;
The target data storage is write to the target memory region of setting;
Judge whether the data capacity in target memory region reaches default capacity threshold, if it is not, under then etc. to be received Target data storage once;
If so, then by the data one-time write storage device in target memory region, and empty the target memory area Data in domain.
Another further aspect, the invention provides a kind of data recording control apparatus, including:
Receiving module, for receiving target data storage;
Memory storage module, the target memory region for the target data storage to be write to setting;
Whether judge module, the data capacity for judging in target memory region reaches default capacity threshold;
Receiving module is waited, default capacity threshold is not up to for responding the data capacity in target memory region, then Etc. target data storage next time to be received;
Module to be stored, for the sector capacity according to storage device, sequentially obtains a certain amount of from target memory region Data as data to be stored, the sizes of the data to be stored is the integral multiple of the sector capacity;
First writing module, for the data to be stored to be moved into storage device from target memory region.
Further, described device also includes filling fan area module, including:
Statistic unit, the residual capacity for obtaining current sector to be written;
Extraction unit, for sequentially obtaining the data of respective volume from target memory region as filling data;
Second writing module, for the filling data to be moved into sector to be written from target memory region.
Another further aspect, present invention also offers second of data recording control apparatus, including:
Second receiving module, for receiving target data storage;
Second memory storage module, the target memory region for the target data storage to be write to setting;
Whether the second judge module, the data capacity for judging in target memory region reaches default capacity threshold;
Second waits receiving module, and default capacity threshold is not up to for responding the data capacity in target memory region Value, then the target data storage next time to be received such as;
3rd writing module, default capacity threshold is reached for responding the data capacity in target memory region, then will Data one-time write storage device in target memory region;
Module is emptied, write operation is performed for responding said write module, empties the number in the target memory region According to.
Another further aspect, the invention provides a kind of storage device, the storage device includes data storage as described above Control device, the storage device carries out data storage under the control of the data recording control apparatus.
What the technical scheme that the present invention is provided was brought has the beneficial effect that:
1) the life-span overwhelming majority of SD card depends on erasable number of times, because the erasable number of times of SD card is limited, by slow Memory storage technology is rushed, the erasable number of times of SD card is reduced, extends SD card and write the life-span;
2) on the premise of current sector filling is complete, by unit mobile data of sector capacity to depositing from buffer memory Store up in equipment, the erasable number of times of single sector is preferably minimized.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is to carry out the temporary erasable number of times example schematic of single sector of data without using buffer memory in the prior art;
Fig. 2 is the first pass figure of data storage control method provided in an embodiment of the present invention;
Fig. 3 is the second flow chart of data storage control method provided in an embodiment of the present invention;
Fig. 4 is the 3rd flow chart of data storage control method provided in an embodiment of the present invention;
Fig. 5 is the 4th flow chart of data storage control method provided in an embodiment of the present invention;
Fig. 6 is the 5th flow chart of data storage control method provided in an embodiment of the present invention;
Fig. 7 is the 6th flow chart of data storage control method provided in an embodiment of the present invention;
Fig. 8 is the first module frame chart of data recording control apparatus provided in an embodiment of the present invention;
Fig. 9 is the second module frame chart of data recording control apparatus provided in an embodiment of the present invention;
Figure 10 is the erasable number of times schematic diagram of utilization caching technology provided in an embodiment of the present invention in the ideal situation;
Figure 11 is erasable number of times schematic diagram of the utilization caching technology provided in an embodiment of the present invention under nonideality.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, should all belong to the model that the present invention is protected Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so using Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover Lid is non-exclusive to be included, for example, the process, method, device, product or the equipment that contain series of steps or unit are not necessarily limited to Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product Or the intrinsic other steps of equipment or unit.
Nowadays the most of all supports multifile operation of file system that professional uses on single-chip microcomputer, but multifile behaviour Make also restricted, such as to set can be while the maximum number of files opened, also has some mutual exclusion protection mechanisms.In view of single at present The Reliability status of piece machine field file system does not have authenticating authority, is supported using multifile, but simultaneously only using a file, So reliability meeting is a little high, and which kind of single specifically used mode must be determined by technical staff.The present invention is grasped just for monofile Make (i.e. whole synchronization only one of which file is opened), the use environment of multifile read-write., can be with because multifile is operated A point data need not be write and be shut off file, data forced synchronism to SD card would not be used by being not related to closed file, then SD card sector Erasing times will greatly reduce, need not use the present invention method.
Embodiment 1
In one embodiment of the invention there is provided a kind of data storage control method, referring to Fig. 2, methods described bag Include below scheme:
S101, reception target data storage.
Wherein, in the present embodiment, the data storage control method is to be used to control this storage device of SD card, especially It is the plug-in SD card of single-chip microcomputer, the SD card is used to preserve daily record (it can be seen from practical application, wall scroll daily record is no more than j bytes).
Therefore, the reception target data storage in S1 is reception log information.
S102, the target memory region by target data storage write-in setting.
Specifically, it is that (buffer memory does not consider in erasing and writing life, optional system one piece of region of memory of the extra configuration of SD card Deposit), the region of memory can carry out data communication with SD card, i.e., described target memory region is used as SD card information to be written Staging area.
Whether S103, the data capacity judged in target memory region reach default capacity threshold.
Specifically, the data capacity in the target memory region is the capacity used in current memory region, meter For i bytes, capacity threshold is that sector capacity is generally the 512 bytes (sector capacity of other specifications in preset value m bytes, SD card Similarly).
The total capacity in target memory region is c bytes, then 512 < m < c, and j necessarily meets j < (c-m), thus may be used See, on the premise of relation above is met, m is the bigger the better, m is preferably that 512 integral multiple, i.e. capacity threshold are preferably arranged to list The integral multiple (one times or many times) of individual sector capacity.
When meeting i >=m, S104 and S105 is performed, S106 is otherwise performed.
S104, data to be stored are sequentially obtained from target memory region.
The data to be stored are by being defined as below:According to the sector capacity of storage device, from target memory region sequentially A certain amount of data are obtained as data to be stored, it is described it is a certain amount of be defined as the sector capacity integral multiple (one times or Many times).
S105, data to be stored from target memory region are moved to storage device.
The data to be stored of the integer multiple data amount of the sector capacity are copied to storage device from target memory region, And delete it from target memory region.
S106, etc. target data storage next time to be received.
If the capacity i used in current memory region is not up to default capacity threshold m, then it represents that region of memory it is surplus Covolume amount places next journal file enough, then is not eager the data in internal memory writing SD card, but continue waiting for next Bar journal file, is stored in region of memory, and carries out i and m comparison again, that is, repeats step S101-S103.
Fig. 1 is schematically illustrated and is not utilized cache, the erasable process of single sector:SD card first has to be wiped before writing data Action, first sector erasing, then write-in numbering is data 1., before write-in numbering is data 2., first to the fan Area carries out second and wiped, and 1. and 2. then data write to the sector together, repeats to act above always, until to the sector Carry out the tenth once to wipe, numbering 1-11 data are then write into the full sector together, it is 11 times to count the number of times wiped, and is write Number of times be 11 times.
Fig. 9 schematically illustrates the erasable number of times of the buffered data write-in SD card sector of n times of sector, ideally, and the of write-in One sector is an empty sector, then buffered data just fills full n sector, then erasable number of times is n times;In unreasonably Think under state, first sector of write-in is not an empty sector, then buffered data needs n+1 sector, then erasable number of times It is n+1 times, when n is 1, using the method for the caching data of the present invention, the data of a sector capacity write SD card, Erasable number of times is up to 2 times, greatly reduces erasable number of times.
Embodiment 2
In order to overcome above-mentioned nonideality, there is provided second of data storage control in one embodiment of the invention Method processed, referring to Fig. 3, methods described includes below scheme:
S201, reception target data storage.
S202, the target memory region by target data storage write-in setting.
Whether S203, the data capacity judged in target memory region reach default capacity threshold, if so, then performing S205 and S206, otherwise performs S204.
S204, etc. target data storage next time to be received.
S205, data to be stored are sequentially obtained from target memory region.
S206, judge in storage device whether current sector to be written is empty, if so, then performing S207, otherwise perform S208-S210。
S207, data to be stored from target memory region are moved to storage device.
S208, the residual capacity for obtaining current sector to be written.
S209, the acquisition filling data from target memory region.
S210, filling data from target memory region are moved to sector to be written.
After S210 is completed, return and perform S201 and its subsequent step, such as Fig. 3, or, return and perform S205, that is, exist Complete after filling, on the premise of remaining data are more than 512 bytes in target memory region, therefrom sequentially extract sector capacity whole The data of several times, storage device (not shown) is moved to by it from target memory region, is according to above technical side The corresponding conversion adjustment that case is made, it is not necessary to pay creative work, the protection domain of the application should be belonged to.
Embodiment 3
With being fanned before data to be stored are moved into storage device from target memory region each time in embodiment 2 to SD card The mode that area is detected and filled is different, in the present embodiment, first disposable to finish the filling of sector remaining space, subsequently need not It is detected again, referring to Fig. 4, methods described flow includes:
S301, judge in storage device whether current sector to be written is empty, if so, then performing S305, otherwise perform S302 to S305.
S302, the residual capacity for obtaining current sector to be written.
S303, the acquisition filling data from target memory region.
S304, filling data from target memory region are moved to sector to be written.
S305, reception target data storage.
S306, the target memory region by target data storage write-in setting.
Whether S307, the data capacity judged in target memory region reach default capacity threshold, if so, then performing S309 and S310, otherwise performs S308.
S308, etc. target data storage next time to be received.
S309, data to be stored are sequentially obtained from target memory region.
S310, data to be stored from target memory region are moved to storage device.
After S310 or S308 is completed, return and perform S305 and its subsequent step, such as Fig. 4.
Embodiment 4
The target data storage received from limiting single in above-described embodiment has unlike the byte upper limit, the present embodiment In, the file of reception varies, therefore, it is impossible to ensure total amount of memory and default capacity threshold as above-described embodiment The file that only poor enough storages are received next time, in one embodiment of the invention, it is proposed that one kind is adapted to not of uniform size Data storage control method, referring to Fig. 5, methods described flow includes:
S401, reception target data storage.
S402, judge current goal region of memory residual capacity whether be more than target data storage, if so, then performing S404 and S405, otherwise performs S403.
S403, by the target data storage write storage device.
S404, the target memory region by target data storage write-in setting.
Whether S405, the data volume judged in target memory region reach default capacity threshold, if so, then performing S407 And S408, otherwise, perform S406.
S406, etc. target data storage next time to be subjected.
S407, data to be stored are sequentially obtained from target memory region.
S408, data to be stored from target memory region are moved to storage device.
After S403, S406 or S408 is completed, return and perform S401 and its subsequent step, such as Fig. 5, the present embodiment S403 In when detecting region of memory remaining space and being not enough to store next storage file, write direct SD card, except this, Second region of memory can be set, the storage file second region of memory is stored in, second region of memory is as preceding The supplement in one target memory region, can be after the capacity in target memory region be vacated, by the file content of the second region of memory Target memory region, or the second region of memory are transferred to as independent region of memory, using embodiment 1-3 technical scheme Storage control (not shown) is carried out, above is the corresponding conversion made according to above technical scheme is adjusted, it is not necessary to pay Creative work, should belong to the protection domain of the application.
Embodiment 5
On the basis of above-described embodiment, in the present embodiment, it is further provided force the control method of storage, ginseng in limited time See Fig. 6, methods described flow includes:
S501, reception target data storage.
S502, the target memory region by target data storage write-in setting.
S503, judge whether the time reaches zero point, if so, then performing S504 and S505, otherwise perform S506.
S504, newly-built system journal.
S505, by the data write storage device in current goal region of memory.
Whether S506, the data capacity judged in target memory region reach default capacity threshold, if so, then performing S508 and S509, otherwise performs S507.
S507, etc. target data storage next time to be received.
S508, data to be stored are sequentially obtained from target memory region.
S509, data to be stored from target memory region are moved to storage device.
On the premise of target data storage is daily record, daily zero point understands the daily record of this automatic newly-built day, in this situation Under, it can now control to deposit all data (even if not up to default capacity threshold) write-in in current goal region of memory Equipment is stored up, and empties target memory region.
Embodiment 6
As different from Example 1, it is not to extract after the data capacity in judging target memory region is more than threshold value In the data Cun Chudao SD cards of sector capacity integral multiple, but stored using following methods, referring to Fig. 7, methods described stream Journey includes:
S601, reception target data storage.
S602, the target memory region by target data storage write-in setting.
Whether S603, the data capacity judged in target memory region reach default capacity threshold, if so, then performing S604 and S605, otherwise performs S606.
S604, by the data one-time write storage device in target memory region.
If the capacity i used in current memory region has reached default capacity threshold m, by the number of the capacity i According to one-time write storage device SD card.
S605, the data emptied in target memory region.
S606, etc. target data storage next time to be received.
Complete to write the data in internal memory after SD card, empty the data in the target memory region;Or to mesh Data in mark region of memory are copied, then all data in delete target region of memory, then the data of copy are write Enter SD card.The present invention does not make specific restriction to the sequencing for writing and deleting between both.
Utilize the data storage control method in the present embodiment, although erasable time of the nonideality such as Figure 11 occurs Number, but when data write, without being controlled to write-in byte number.Preferably, default capacity threshold is more than 512 bytes (memory capacity of a sector).
Embodiment 7
In one embodiment of the invention there is provided a kind of data recording control apparatus, referring to Fig. 8, described device bag Include:
Receiving module, for receiving target data storage;
Memory storage module, the target memory region for the target data storage to be write to setting;
Whether judge module, the data capacity for judging in target memory region reaches default capacity threshold;
Receiving module is waited, default capacity threshold is not up to for responding the data capacity in target memory region, then Etc. target data storage next time to be received;
Module to be stored, for the sector capacity according to storage device, sequentially obtains a certain amount of from target memory region Data as data to be stored, the sizes of the data to be stored is the integral multiple of the sector capacity;
First writing module, for the data to be stored to be moved into storage device from target memory region.
In a preferred embodiment of the invention, described device also includes filling fan area module, the filling fan area module bag Include:
Statistic unit, the residual capacity for obtaining current sector to be written;
Extraction unit, for sequentially obtaining the data of respective volume from target memory region as filling data;
Second writing module, for the filling data to be moved into sector to be written from target memory region.
In embodiments of the present invention, accordingly there is provided a kind of storage device, the storage device utilizes above-mentioned data storage Control device is accordingly controlled, and the storage device carries out data storage according to corresponding control method.
It should be noted that:Above-described embodiment provide data recording control apparatus carry out storage control when, only more than The division progress of each functional module is stated for example, in practical application, as needed can distribute above-mentioned functions by difference Functional module complete, i.e., the internal structure of data recording control apparatus is divided into different functional modules, more than completion The all or part of function of description.In addition, data recording control apparatus embodiment and above-described embodiment that the present embodiment is provided The data storage control method of offer belongs to same design, and it implements process and refers to embodiment of the method, repeats no more here.
Embodiment 8
In one embodiment of the invention there is provided another data recording control apparatus, referring to Fig. 9, described device Including:
Second receiving module, for receiving target data storage;
Second memory storage module, the target memory region for the target data storage to be write to setting;
Whether the second judge module, the data capacity for judging in target memory region reaches default capacity threshold;
Second waits receiving module, and default capacity threshold is not up to for responding the data capacity in target memory region Value, then the target data storage next time to be received such as;
3rd writing module, default capacity threshold is reached for responding the data capacity in target memory region, then will Data one-time write storage device in target memory region;
Module is emptied, write operation is performed for responding said write module, empties the number in the target memory region According to.
In embodiments of the present invention, accordingly there is provided a kind of storage device, the storage device utilizes above-mentioned data storage Control device is accordingly controlled, and the storage device carries out data storage according to corresponding control method.
It should be noted that:Above-described embodiment provide data recording control apparatus carry out storage control when, only more than The division progress of each functional module is stated for example, in practical application, as needed can distribute above-mentioned functions by difference Functional module complete, i.e., the internal structure of data recording control apparatus is divided into different functional modules, more than completion The all or part of function of description.In addition, data recording control apparatus embodiment and above-described embodiment that the present embodiment is provided The data storage control method of offer belongs to same design, and it implements process and refers to embodiment of the method, repeats no more here.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.

Claims (10)

1. a kind of data storage control method, it is characterised in that including:
Receive target data storage;
The target data storage is write to the target memory region of setting;
Judge whether the data capacity in target memory region reaches default capacity threshold, if it is not, then etc. it is to be received next time Target data storage;
If so, then according to the sector capacity of storage device, a certain amount of data are sequentially obtained from target memory region as treating Data storage, the size of the data to be stored is the integral multiple of the sector capacity;
The data to be stored are moved to storage device from target memory region.
2. according to the method described in claim 1, it is characterised in that the default capacity threshold is less than target memory region Capacity, and more than single sector capacity, the maximum capacity of single target data storage be less than the capacity in target memory region with it is pre- If capacity threshold between difference.
3. according to the method described in claim 1, it is characterised in that described to move the data to be stored from target memory region Move also includes to before storage device:
Judge whether current sector to be written is empty in storage device, if it is not, the residual capacity of current sector to be written is then obtained, And the data of respective volume are sequentially obtained from target memory region as filling data, by the filling data from target memory Region is moved to sector to be written.
4. according to the method described in claim 1, it is characterised in that the target that the target data storage is write to setting Also include before region of memory:
Judge whether the residual capacity of current goal region of memory is more than target data storage, if it is not, then storing the target Data write storage device, or, the target data storage is write into the second region of memory.
5. according to the method described in claim 1, it is characterised in that the target data storage is journal file, the judgement Data capacity in target memory region also includes before whether reaching default capacity threshold:
Judge whether the time reaches zero point, if so, newly-built system journal, and the data write-in in current goal region of memory is deposited Store up equipment.
6. a kind of data storage control method, it is characterised in that including:
Receive target data storage;
The target data storage is write to the target memory region of setting;
Judge whether the data capacity in target memory region reaches default capacity threshold, if it is not, then etc. it is to be received next time Target data storage;
If so, then by the data one-time write storage device in target memory region, and empty in the target memory region Data.
7. a kind of data recording control apparatus, it is characterised in that including:
Receiving module, for receiving target data storage;
Memory storage module, the target memory region for the target data storage to be write to setting;
Whether judge module, the data capacity for judging in target memory region reaches default capacity threshold;
Receiving module is waited, default capacity threshold is not up to for responding the data capacity in target memory region, then waits Receive target data storage next time;
Module to be stored, for the sector capacity according to storage device, sequentially obtains a certain amount of number from target memory region According to as data to be stored, the size of the data to be stored is the integral multiple of the sector capacity;
First writing module, for the data to be stored to be moved into storage device from target memory region.
8. device according to claim 7, it is characterised in that described device also includes filling fan area module, including:
Statistic unit, the residual capacity for obtaining current sector to be written;
Extraction unit, for sequentially obtaining the data of respective volume from target memory region as filling data;
Second writing module, for the filling data to be moved into sector to be written from target memory region.
9. a kind of data recording control apparatus, it is characterised in that including:
Second receiving module, for receiving target data storage;
Second memory storage module, the target memory region for the target data storage to be write to setting;
Whether the second judge module, the data capacity for judging in target memory region reaches default capacity threshold;
Second waits receiving module, is not up to default capacity threshold for responding the data capacity in target memory region, then Etc. target data storage next time to be received;
3rd writing module, reaches default capacity threshold, then by target for responding the data capacity in target memory region Data one-time write storage device in region of memory;
Module is emptied, write operation is performed for responding said write module, empties the data in the target memory region.
10. a kind of storage device, it is characterised in that including the data storage control as described in any one in claim 7-9 Device, the storage device carries out data storage under the control of the data recording control apparatus.
CN201710478857.8A 2017-06-22 2017-06-22 Data storage control method, control device and storage equipment Active CN107329694B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710478857.8A CN107329694B (en) 2017-06-22 2017-06-22 Data storage control method, control device and storage equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710478857.8A CN107329694B (en) 2017-06-22 2017-06-22 Data storage control method, control device and storage equipment

Publications (2)

Publication Number Publication Date
CN107329694A true CN107329694A (en) 2017-11-07
CN107329694B CN107329694B (en) 2021-05-18

Family

ID=60194657

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710478857.8A Active CN107329694B (en) 2017-06-22 2017-06-22 Data storage control method, control device and storage equipment

Country Status (1)

Country Link
CN (1) CN107329694B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109815005A (en) * 2017-11-22 2019-05-28 华为技术有限公司 A kind of method, apparatus and storage system of managing internal memory
CN110442310A (en) * 2019-08-06 2019-11-12 惠州Tcl移动通信有限公司 Application data processing method, device, storage medium and terminal device
CN110597830A (en) * 2018-05-25 2019-12-20 北京京东尚科信息技术有限公司 Real-time index generation method and system, electronic device and storage medium
CN111142786A (en) * 2019-11-29 2020-05-12 苏州浪潮智能科技有限公司 Data writing method and device and computer readable storage medium
CN111897744A (en) * 2019-05-05 2020-11-06 北京兆易创新科技股份有限公司 Data writing method and device, electronic equipment and storage medium
CN111914116A (en) * 2019-05-09 2020-11-10 浙江宇视科技有限公司 Video data storage method and device, terminal equipment and readable storage medium
CN113741820A (en) * 2021-09-18 2021-12-03 青岛海信传媒网络技术有限公司 Method for refreshing data from memory to eMMC memory and display equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101014929A (en) * 2004-07-30 2007-08-08 美国联合包裹服务公司 Systems, methods, computer readable medium and apparatus for memory management using nvram
CN101727299A (en) * 2010-02-08 2010-06-09 北京同有飞骥科技有限公司 RAID5-orientated optimal design method for writing operation in continuous data storage
CN103714010A (en) * 2013-12-24 2014-04-09 华为技术有限公司 Storage device write-in method and storage device
CN104536699A (en) * 2014-12-11 2015-04-22 中国科学院声学研究所 Streamed data write-in method based on embedded file system
CN104898989A (en) * 2015-06-04 2015-09-09 宁波市江东精诚自动化设备有限公司 Large-volume data storage equipment, large-volume data storage method and large-volume data storage device
CN105224237A (en) * 2014-05-26 2016-01-06 华为技术有限公司 A kind of date storage method and device
CN105389124A (en) * 2015-10-16 2016-03-09 联想(北京)有限公司 Information processing method and electronic equipment
CN105511802A (en) * 2015-11-24 2016-04-20 北京达沃时代科技有限公司 Buffer memory writing method and apparatus and synchronizing method and apparatus for disk cache region
CN105677258A (en) * 2016-02-23 2016-06-15 浪潮(北京)电子信息产业有限公司 Method and system for managing log data
CN106371764A (en) * 2016-08-23 2017-02-01 浪潮(北京)电子信息产业有限公司 Virtual block device-based data processing method and apparatus
CN106873904A (en) * 2016-12-30 2017-06-20 北京联想核芯科技有限公司 Method for writing data and solid state hard disc

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101014929A (en) * 2004-07-30 2007-08-08 美国联合包裹服务公司 Systems, methods, computer readable medium and apparatus for memory management using nvram
CN101727299A (en) * 2010-02-08 2010-06-09 北京同有飞骥科技有限公司 RAID5-orientated optimal design method for writing operation in continuous data storage
CN103714010A (en) * 2013-12-24 2014-04-09 华为技术有限公司 Storage device write-in method and storage device
CN105224237A (en) * 2014-05-26 2016-01-06 华为技术有限公司 A kind of date storage method and device
CN104536699A (en) * 2014-12-11 2015-04-22 中国科学院声学研究所 Streamed data write-in method based on embedded file system
CN104898989A (en) * 2015-06-04 2015-09-09 宁波市江东精诚自动化设备有限公司 Large-volume data storage equipment, large-volume data storage method and large-volume data storage device
CN105389124A (en) * 2015-10-16 2016-03-09 联想(北京)有限公司 Information processing method and electronic equipment
CN105511802A (en) * 2015-11-24 2016-04-20 北京达沃时代科技有限公司 Buffer memory writing method and apparatus and synchronizing method and apparatus for disk cache region
CN105677258A (en) * 2016-02-23 2016-06-15 浪潮(北京)电子信息产业有限公司 Method and system for managing log data
CN106371764A (en) * 2016-08-23 2017-02-01 浪潮(北京)电子信息产业有限公司 Virtual block device-based data processing method and apparatus
CN106873904A (en) * 2016-12-30 2017-06-20 北京联想核芯科技有限公司 Method for writing data and solid state hard disc

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109815005A (en) * 2017-11-22 2019-05-28 华为技术有限公司 A kind of method, apparatus and storage system of managing internal memory
CN110597830A (en) * 2018-05-25 2019-12-20 北京京东尚科信息技术有限公司 Real-time index generation method and system, electronic device and storage medium
CN110597830B (en) * 2018-05-25 2024-06-18 北京京东尚科信息技术有限公司 Real-time index generation method and system, electronic equipment and storage medium
CN111897744A (en) * 2019-05-05 2020-11-06 北京兆易创新科技股份有限公司 Data writing method and device, electronic equipment and storage medium
CN111914116A (en) * 2019-05-09 2020-11-10 浙江宇视科技有限公司 Video data storage method and device, terminal equipment and readable storage medium
CN111914116B (en) * 2019-05-09 2024-04-05 浙江宇视科技有限公司 Video data storage method, device, terminal equipment and readable storage medium
CN110442310A (en) * 2019-08-06 2019-11-12 惠州Tcl移动通信有限公司 Application data processing method, device, storage medium and terminal device
CN111142786A (en) * 2019-11-29 2020-05-12 苏州浪潮智能科技有限公司 Data writing method and device and computer readable storage medium
CN111142786B (en) * 2019-11-29 2022-07-12 苏州浪潮智能科技有限公司 Data writing method and device and computer readable storage medium
CN113741820A (en) * 2021-09-18 2021-12-03 青岛海信传媒网络技术有限公司 Method for refreshing data from memory to eMMC memory and display equipment
CN113741820B (en) * 2021-09-18 2023-10-03 青岛海信传媒网络技术有限公司 Method for refreshing data from memory to eMMC memory and display device

Also Published As

Publication number Publication date
CN107329694B (en) 2021-05-18

Similar Documents

Publication Publication Date Title
CN107329694A (en) Data storage control method, control device and storage device
CN106776362B (en) The control method and device of memory
CN104820641B (en) The method for reducing FLASH erasing times
CN106775436B (en) Data access method, memorizer control circuit unit and memory
CN109753443A (en) A kind of data processing method, device and electronic equipment
CN103501398B (en) Chip, imaging cartridge and chip and the means of communication of imaging device
EP2115595A2 (en) Memory device performance enhancement through pre-erase mechanism
CN101656106A (en) Method for writing data into EEPROM and device thereof
CN101963912A (en) Implementation method for storing and checking hardware configuration information of system
CN106469122A (en) Valid data merging method, Memory Controller and memorizer memory devices
CN102063939B (en) Method and device for implementing electrically erasable programmable read-only memory
CN104881259A (en) Data processing method and device and storage device
CN105988950B (en) Storage management method, memorizer control circuit unit and memory storage apparatus
US20110055430A1 (en) Method for establishing a communication channel between a host device and a memory device, associated memory device and controller thereof, and associated host device and host device application
CN102479549A (en) Semiconductor storage device
CN107479833A (en) Key value storage-oriented remote nonvolatile memory access and management method
CN103577119B (en) For the system and method for out-of-order transfer data in next-generation solid-state hard disk controller
CN104898989B (en) A kind of Mass Data Storage Facility, method and device
CN105224238B (en) Storage management method, memory storage apparatus and memorizer control circuit unit
CN101321250A (en) Television set important data storage method
CN108646987A (en) A kind of management method of file volume, device, storage medium and terminal
CN106775479A (en) Storage management method, memorizer memory devices and memorizer control circuit unit
CN109389287A (en) A kind of performance accounting system for circular knitting machine
CN104731710B (en) Storage management method, memorizer control circuit unit and memorizer memory devices
CN109426436A (en) Rubbish recovering method and device based on variable length bulk

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20210420

Address after: 215000 unit 5-b502, creative industry park, 328 Xinghu street, Suzhou Industrial Park, Jiangsu Province

Applicant after: Suzhou naiteli Intelligent Technology Co.,Ltd.

Address before: 215163 No. 350 Qingcheng Mountain Road, Suzhou hi tech Zone, Jiangsu, Suzhou

Applicant before: SUZHOU JIAOYUN ELECTRONIC TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant