CN103677654B - The method and electronic equipment of a kind of data storage - Google Patents

The method and electronic equipment of a kind of data storage Download PDF

Info

Publication number
CN103677654B
CN103677654B CN201210359243.5A CN201210359243A CN103677654B CN 103677654 B CN103677654 B CN 103677654B CN 201210359243 A CN201210359243 A CN 201210359243A CN 103677654 B CN103677654 B CN 103677654B
Authority
CN
China
Prior art keywords
data
data type
stored
memory cell
type
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.)
Active
Application number
CN201210359243.5A
Other languages
Chinese (zh)
Other versions
CN103677654A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201210359243.5A priority Critical patent/CN103677654B/en
Publication of CN103677654A publication Critical patent/CN103677654A/en
Application granted granted Critical
Publication of CN103677654B publication Critical patent/CN103677654B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of method of data storage and electronic equipment, the electronic equipment includes being used for the first memory cell for storing the first data type data, and include from the second memory cell for storing second data type data different with first data type, methods described:Obtain data to be stored;Determine the data type of the data to be stored;The data type is judged for first data type or second data type, obtains a judged result;When it is first data type that the judged result, which shows the data type, by the first memory cell described in the data Cun Chudao to be stored;When it is second data type that the judged result, which shows the data type, by the second memory cell described in the data Cun Chudao to be stored.

Description

The method and electronic equipment of a kind of data storage
Technical field
The present invention relates to the method and electronic equipment of field of computer technology, more particularly to a kind of data storage.
Background technology
With the continuous development of computer technology, the high speed of memory technology and storage market expands, FLASH type memories Dosage also increases rapidly.Moreover, FLASH chip species is a lot, it is the most commonly used for NOR-type and NAND, generally, NOR-type ratio Relatively it is adapted to store program codes, its random read-write speed is fast, but capacity is typically smaller, and cost is higher, and, NAND is held For amount up to more than 1GB, cost is comparatively relatively low, is adapted to data storage, generally requires monoblock read-write data, the access to data It is the operation serial access data by register.
As people increase demand data, the bottleneck of storage system is more and more obvious.And moved in built-in field Under the adverse circumstances such as equipment and industrial automatic control, conventional hard mechanical structure can not meet to require, and it is all this Cut as the arrival of solid-state storage (SSD) is changed.
Solid state hard disc is made up of control unit and memory cell.
Wherein, the memory cell of solid state hard disc is divided into two kinds, and one kind is to use flash memory(FLASH chip)It is single as storage Member, another kind are as memory cell using DRAM.
Solid state hard disc based on flash memory(IDE FLASH DISK、Serial ATA Flash Disk):Using FLASH cores For piece as memory cell, its outward appearance can be made into a variety of apperances, such as:It is laptop hard, micro harddisk, storage card, excellent The patterns such as disk.This SSD solid state hard discs biggest advantage can exactly move, and data protection can fit not by power supply Should be in various environment.In the solid state hard disc based on flash memory, memory cell is divided into two classes again:SLC(Single Layer Cell Single layer cell)And MLC(Multi-Level Cell multilevel-cells).The characteristics of SLC is that cost is high, capacity is small but speed is fast, And the characteristics of MLC is that the big cost of capacity is low, but speed is slow.MLC each unit is 2bit, whole more with respect to for SLC One times.But, because the data deposited in each MLC memory cell is more, thus capacity is bigger, so structure is relatively multiple Miscellaneous, the probability of error can increase, it is necessary to carry out error correction, it is simple in construction that this action causes its performance significantly to lag behind SLC Flash.It is up to 100,000 times in addition, the advantages of SLC Flash is manifolding number, it is higher than MLC flash 10 times.In addition, in order to ensure MLC life-span, control chip all verify and intelligent wear leveling technique algorithm so that the write-in number of each memory cell can be with Share out equally, reach 1,000,000 hours time between failures.
Certainly, such memory cell also has TLC, QLC etc., these memory cell compared to MLC for, read or write speed meeting Slower, the life-span can be shorter, and the data of preservation also can be shorter, but cost is all relatively low compared to for SLC or MLC.
But present inventor has found above-mentioned technology extremely during inventive technique scheme in realizing the embodiment of the present application Following technical problem less be present:
Current industry meets the multi-party of capacity, performance and life-span using different memory cell in different applications Demand, all individually realized using a kind of memory cell, some schemes propose to mix different memory cell to meet to want Ask, but do not carry out the support of self-application, this mixed structure can be used only in NAND interiors of products, if only by the use of SLC as buffering, Or only cached with TLC, it is difficult to two aspect advantages of high power capacity and long-life of overall product.Exist in the prior art: Due to there is no identification data type, and all data are all stored in a type of memory cell, so, height can only be realized Capacity or the technical problem the advantages of long-life can only be realized.
The content of the invention
By providing the method and electronic equipment of a kind of data storage, solve does not have the embodiment of the present application in the prior art Identification data type, all data are all stored in a type of memory cell, high power capacity can only be realized or can only be real The technical problem of the advantages of existing long-life, and then realize while meet high power capacity and the advantages of the long-life.
The embodiment of the present application provides a kind of method of data storage, applied to an electronic equipment, in the electronic equipment Including the first memory cell for storing the first data type data, and it is different with first data type from for storing The second data type data the second memory cell, methods described includes:Obtain data to be stored;Determine the number to be stored According to data type;The data type is judged for first data type or second data type, is obtained one and is judged As a result;When it is first data type that the judged result, which shows the data type, by the data storage to be stored Into first memory cell;When it is second data type that the judged result, which shows the data type, by institute State in the second memory cell described in data Cun Chudao to be stored.
Further, the data type for determining the data to be stored, it is specially:Obtain data to be stored it Afterwards, based on the corresponding relation between data storage and data type, it is determined that data type corresponding with the data to be stored.
Further, it is described to judge that the data type for first data type or second data type, obtains A judged result is obtained, is specially:Based on the identification information for identification data type included in the data to be stored, judge It is first data type or second data type to go out the data to be stored, obtains a judged result;Or based on institute The file suffixes information for identification data type of data to be stored is stated, judges the data to be stored for the described first number According to type or second data type, a judged result is obtained.
Further, it is described by the first memory cell described in the data Cun Chudao to be stored after, methods described Also include:Whether the data type for detecting the data to be stored is changed to second data type;Being changed to When stating the second data type, by the second memory cell described in the data Cun Chudao to be stored.
Further, whether it is changed to second data class in the data type of the detection data to be stored After type, methods described also includes:When being changed to three data types, the data Cun Chudao to be stored is used to store In 3rd memory cell of the 3rd data type data;Wherein, the 3rd data type is and the described the first, the second number According to all different data type of type, the 3rd memory cell is the storage all different with the first, the second memory cell Unit.
Further, it is described by the second memory cell described in the data Cun Chudao to be stored after, methods described Also include:Whether the data type for detecting the data to be stored is changed to first data type;Being changed to When stating the first data type, by the first memory cell described in the data Cun Chudao to be stored.
Further, whether it is changed to first data class in the data type of the detection data to be stored After type, methods described also includes:When being changed to three data types, the data Cun Chudao to be stored is used to store In 3rd memory cell of the 3rd data type data;Wherein, the 3rd data type is and the described the first, the second number According to all different data type of type, the 3rd memory cell is the storage all different with the first, the second memory cell Unit.
Another embodiment of the application provides following technical scheme:
A kind of electronic equipment, the electronic equipment include:Acquisition module, for obtaining data to be stored;Determining module, use In it is determined that the data type of the data to be stored;Judge module, for judging the data type for first data class Type or second data type, obtain a judged result;First memory module, for showing the number in the judged result When according to type being first data type, by the first memory cell described in the data Cun Chudao to be stored;Second storage Module, for when it is second data type that the judged result, which shows the data type, by the data to be stored Store in second memory cell.
Further, the judge module specifically includes:First judging submodule, for based in the data to be stored Comprising the identification information for identification data type, it is first data type or described to judge the data to be stored Second data type, obtain a judged result;Second judging submodule, for based on the data to be stored be used for identify number According to the file suffixes information of type, it is first data type or second data class to judge the data to be stored Type, obtain a judged result.
Further, the electronic equipment also includes:First detection module, for detecting the data of the data to be stored Whether type is changed to second data type;First processing module, for being changed to second data type When, by the second memory cell described in the data Cun Chudao to be stored.
Further, the electronic equipment also includes:Second processing module, for being changed to the 3rd data type When, the data Cun Chudao to be stored is used to store in the 3rd memory cell of the 3rd data type data, wherein, institute It is the data type all different with the first, the second data type to state the 3rd data type, the 3rd memory cell be with The all different memory cell of the first, the second memory cell.
Further, the electronic equipment also includes:Second detection module, for detecting the data of the data to be stored Whether type is changed to first data type;3rd processing module, for being changed to first data type When, by the first memory cell described in the data Cun Chudao to be stored.
The one or more technical schemes provided in the embodiment of the present application, have at least the following technical effects or advantages:
1st, as a result of the data type according to data to be stored, the data Cun Chudao of different types of data is correspondingly deposited Technical scheme in storage unit, so, efficiently solving in the prior art does not have identification data type, and all data are all stored Into a type of memory cell, the technical problem for the advantages of high power capacity can only be realized or the long-life can only be realized, and then Realize while meet high power capacity and the technique effect of long-life.
2nd, it is corresponding with data to be stored to determine as a result of the corresponding relation based on data storage and data type Data type, so as to which data type be classified, efficiently solving in the prior art does not have identification data type, by all numbers According to being stored in the memory cell of same type so that the technical problem that the memory cell can not be utilized effectively, and then realize Effective identification data type, improve the technique effect of memory cell utilization rate.
3rd, as a result of when the first data type being stored in the first memory cell is changed to the second data type, By the technical scheme in the memory cell of data Cun Chudao second of the second data type in the memory cell, efficiently solve existing There is the technical problem do not redistributed in technology to the data of data Type Change, and then realize and treat data storage Effective management technique effect.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the method for data storage in the embodiment of the present application;
Fig. 2 is the module map of a kind of electronic equipment in the embodiment of the present application.
Embodiment
The embodiment of the present application solves in the prior art by providing the method and a kind of electronic equipment of a kind of data storage There is no identification data type, all data are all stored in a type of memory cell, high power capacity or only can only be realized The technical problem for the advantages of long-life can be realized.And then realize while meet high power capacity and the technique effect of long-life.
Technical scheme in the embodiment of the present application is to solve the above problems, general thought is as follows:
When obtaining data to be stored, first have to determine the data type of the data to be stored, then according to treating The data type of data storage, memory cell corresponding with data type is found, then, different data types is stored in not In same memory cell.Such as when data type to be stored is file type, or system program type etc., just by file Type is stored into a kind of memory cell, by the storage of system program type into another memory cell.
In order to be better understood from above-mentioned technical proposal, below in conjunction with Figure of description and specific embodiment to upper Technical scheme is stated to be described in detail.
The embodiment of the application one provides a kind of method of data storage, and methods described is applied in an electronic equipment, described Electronic equipment can be notebook computer, tablet personal computer, mobile phone etc..It is which kind of electronic equipment for the electronic equipment, this Application is not restricted.
As shown in figure 1, the method for the data storage comprises the following steps:
S10:Obtain data to be stored.
In specific implementation process, described data to be stored can obtain from outside other equipment, such as, network Download, the data obtained by server;Mobile hard disk;Or file automatically generated by editing computer program etc..
In addition, in specific implementation process, the data to be stored that are either obtained by which kind of mode have different Data type.So after S10, S20 is just performed:The data type of the data to be stored is determined, specifically:Determine institute Stating the implementation of the data type of data to be stored can be:Based on data storage relation corresponding with data type, really Fixed data type corresponding with the data to be stored.
In specific implementation process, for example, the data type of data to be stored can be common text files type, than Such as, text information file, picture file, audio files, html file(Checked using web browser)Deng.It can also be system File type, such as, configuration file, lock file(For detecting some program, some equipment or resource be just performing either Using), software package manager file(For installing software)Etc..It is, of course, also possible to be program and script file type, than Such as, C programmer sound code file, C Plus Plus program source code file, program object file, dynamic link library file etc..
In the method for the embodiment of the present application, after the data type of data to be stored is determined by S20, S30 is put into: Data type is judged for the first data type or the second data type, obtains a judged result.
In a specific embodiment, for how to judge that data type for the first data type or the second data type, obtains A judged result is obtained, there are two kinds of implementations:
First way:Based on the identification information for identification data type included in data to be stored, judge to treat Data storage is the first data type or the second data type, obtains a judged result.
With reference to example, the specific implementation process of first way is as follows:
For example, include spacial size in the attribute of text, the position of storage, be it is read-only can or readable The information content such as write;When the data of the storage are Application Type, the data of the Program Type just not only contain routine Attribute, also include the attributes such as compatibility, the method for operation.
For example, a text, wherein, in its attribute, size 26KB, type is readable writeable, waits mark Information.For example, an application program is browser program, in its attribute, include compatibility, that is, operating system exists During change, if can be compatible;Also conventional attribute also includes size 4KB of space-consuming etc..
The second way:The file suffixes information for identification data type based on data to be stored, judges to wait to deposit Storage data are the first data type or the second data type, obtain a judged result.
With reference to example, the specific implementation process of the second way is as follows:
For example the suffix of our most common texts is .txt, the suffix of picture file can have .gif or .jpg etc., the suffix of audio file can be .mp3 or .wav etc..During for programming, for example, doing webpage During design, static page is write, there are .html files, there is .css files, also .JSP files etc.;Simultaneously for backstage Write, also to have configuration file, such as .xml .cfg etc..Also it is used for the file for compressing or packing, for example, suffix is .tar(The file packed using tar, tar xf flename can be used to unpack)It is .tgz etc. with suffix.
It can be seen that pass through such scheme, it becomes possible to the identification information or suffix information of data type are carried based on these, Obtain the data type of data to be stored.In the embodiment of the present application method, it is determined that after the data type of data to be stored, go back Data to be stored are classified, wherein the standard classified is, whether the data type is frequently changed, can according to this standard It is following several so that data type to be divided into:
The first, the first data type, more retrofits, this class file is such as height in the embodiment of the present application:Text, Such as:Suffix information is the file of the form such as .txt .doc.For audio file, due to being read-only file, so, to audio text The change of part is exactly to delete, and is replicated, stickup or shearing etc..
Second, the second data type, more retrofited to be low in the embodiment of the present application, this class file is such as:Operating system, deposit It will not be changed substantially after storage.The operating system is identified with due to the attribute of operating system file, that is, in identification information is Individual system file, only fill once during installation, the operating system can be seldom modified.For example also have some shared files, Such as the file that suffix is .ddl, these files may be shared by some other application program, cannot delete, and be base This is constant.
The third, the 3rd data type, more retrofits in the embodiment of the present application, and this class file is such as:Application program, example Such as it is used for the instrument CAD to draw, or OFFICE softwares for editor etc., their suffix are mostly .exe, user need not The program often changed, in the case of no networking, user just belongs on a small quantity more without being updated to these application programs The program changed.
Certainly, the division for data type is not limited to content mentioned above, does not do have in the embodiment of the present application Body limits.
So according to the data type of the above-mentioned data to be stored obtained by identification information or suffix information, will be frequent The data of change are divided into the first data type, and the data being basically unchanged are divided into the second data type.So as to be judged As a result.
Subsequently enter S40:When it is the first data type that judged result, which shows data type, by data Cun Chudao to be stored In first memory cell.
In a particular embodiment, as described above, when data to be stored are the files of descriptive text information, Huo Zhetu When needing the ordinary file often changed of piece file, audio file etc., these are just needed into the data Cun Chudao that frequently changes In first memory cell, wherein, the first memory cell is the memory cell of SLC types, and the memory cell of the SLC types is individual layer Unit, it the advantages of be read-write number up to 100,000 times, speed is also than very fast, but cost is of a relatively high.SLC frameworks are due to every Cell only deposits 1bit data, therefore only high and low two kinds of level states, can just be driven using 1.8V voltages.Moreover, once SLC only has 0 and 1 two states in read-write, and this technology can provide quick programming and read-write, and only both shapes State, work can be highly stable, and when one of Cell is damaged, influence is there will not be on the performance of entirety.Certainly, for these For text, picture file, audio file etc., it is necessary to capacity also will not be very big.
Certainly, there are the data of the second data type in addition to the first data type data, so, for the second data Type, perform S50:When it is the second data type that judged result, which shows data type, data Cun Chudao second to be stored is deposited In storage unit.
In a particular embodiment, the second memory cell is the memory cell of TLC types, because each unit stores 3bit capacity, so the TLC memory cell memory capacity is much bigger compared to for SLC, and cost is also than less expensive, So be applied on the NAND Flash products of low order, such as low speed flash memory, small memory card or USB flash disk etc. more.But It is the read or write speed of TLC memory cell with regard to slow.So the data that will less change substantially, for example, by operating system journey Sequence is stored into the memory cell of TLC types, both can guarantee that the storage of Large Copacity, and and can ensures basic in the range of certain time It will not change.Beneficial to the life-span of the memory cell of the TLC types.
So in embodiments herein, can possess simultaneously in NAND Flash SLC types memory cell and The memory cell of TLC types.The judgement of garbage reclamation and loss balancing further according to the control unit of SSD solid state hard discs, will not In the different types of memory cell of data Cun Chudao of same type.Memory cell is made full use of, and reaches respective Effective rate of utilization.
Certainly, the data type of these data is not unalterable, sometimes, due to use of the user to the data time Number it is not high, or sometimes commonly using when, data type can all change.Therefore, data Cun Chudao first to be stored is stored After unit, whether the data type for detecting data to be stored is changed to the second data type, is being changed to the second data During type, by the memory cell of data Cun Chudao second to be stored.
In a particular embodiment, for example, text files memory works as text in the memory cell of SLC types When a very long time is all without being accessed or being modified, so, the control unit in SSD solid state hard discs can be according to rubbish The statistics for the frequency that conducted interviews with loss balancing process to the data being stored in the memory cell of SLC types is reclaimed, when wherein Text visiting frequency less than visiting frequency and substantially zeroed visiting frequency needed for SLC type storage units when, should Control unit just takes out this article this document from the memory cell of SLC types, again the memory cell of storage to TLC types In.Certainly, not exclusively only text understands change data type, other, including the common text such as picture file, audio file Part all can be changed to the second data type in different times.The embodiment of the present application is simultaneously not construed as limiting.
After the data type for detecting data to be stored is changed to the second data type, the data type of the data When being changed to three data types again, the data Cun Chudao to be stored is used for the 3rd storage of the 3rd data type data of storage In unit;Wherein, the 3rd data type is the data type all different with the first, the second data type, the 3rd memory cell For the memory cell all different with the first, the second memory cell.
In a particular embodiment, such as, the text mentioned in upper example, originally in storage, it is stored in the In one memory cell, when being changed to the second data type, after storing in the memory cell to TLC types, control unit In garbage reclamation and loss balancing detect that the visiting frequency of this article this document has reached certain preset value again, the preset value Be between changing and being basically unchanged frequently, so, just this article this document is stored into the 3rd memory cell, the 3rd deposits Storage unit is the memory cell of MLC types(Multilevel-cell), the memory cell of the MLC types can once store more than 4 Charge value, therefore possess relatively good storage density, the memory cell of MLC types can only bear the data of about 10,000 times in theory Write-in, and each Cell needs to deposit multiple bit, i.e. and level will at least be divided into 4 grades, so needing 3.3V and the electricity of the above Pressure could drive.So MLC just needs to precisely control the charging voltage of each memory cell when storing, so during read-write just The longer time is needed to preserve the reliability of data.Certainly, picture file or audio file also still can be changed to the 3rd Data type, in the embodiment of the present application and it is not especially limited.
After in the memory cell of data Cun Chudao second to be stored, whether the data type for detecting data to be stored is changed For the first data type, when being changed to the first data type, by the memory cell of data Cun Chudao first to be stored.
In specific implementation process, for example, the application program in the memory cell of TLC types is stored in, when networking, Some application programs need to need to be updated at regular intervals, will be by the number of the application program when user needs change It is the first data type according to Type Change.Such as the application program of the browser skin management of download, if user can daily The skin of browser is modified, it is necessary to the application program is modified, when the frequency of the modification reaches certain pre- If during frequency, the browser application just needs to deposit in the memory cell of SLC types, certainly, in the implementation of the application In mode, it is not limited in the change of the data type of the application program of browser skin management, many application programs, such as, For the DreamWeaver of webpage design, or the application software such as CAD for mechanical drawing can all have the possibility of renewal.
Certainly, by after the memory cell of data Cun Chudao first of change, the data type of the data still may be more Other data types are changed to, wherein, when being changed to three data types, data Cun Chudao to be stored is used to store the 3rd In 3rd memory cell of data type.
In a particular embodiment, as above described in example, when these application programs need to update, still, the number of renewal It is between frequently changing and being basically unchanged, then, just the application program is retrieved again, stored to the 3rd memory cell In, that is, store in the memory cell of MLC types.For example, the application program of the browser skin management in above-mentioned example, If it can all change daily, then modification frequency is just very high, and works as user every a period of time, e.g., one week or one month, changes Once, it is such to change frequency just neither frequently changing, nor be basically unchanged, thus the application program just belongs to the 3rd number According to type, it is necessary to be taken out from the first memory cell, that is, the memory cell of SLC types, store to the 3rd memory cell, Be exactly MLC types memory cell in.Certainly, the embodiment of the present application is not limited only to application program mentioned above, also has Configuration file or program's code file etc. are different in the period of, due to the change for the number that user uses, data type Can correspondingly it change simultaneously.
In order to more clearly allow those of ordinary skill in the art to understand the method in the embodiment of the present application, below in conjunction with one Individual specific example, the implementation process of the method in the embodiment of the present application is described in detail.First, it is assumed that what user used Online antivirus software, it is just no to use the antivirus software because user does not network for a long time when storage is most started, Judge that the antivirus software is to belong to the number that is basically unchanged in the garbage reclamation and loss balancing of the control unit of SSD solid state hard discs According to thus being stored in the memory cell of TLC types, when user starts to network, and browse different websites for a long time Information etc., the antivirus software is just needed often to update, thus the antivirus software is taken out, again the storage of storage to SLC types In unit.Can also be updated without many viruses, the antivirus software when sometimes, but the number updated be not it is a lot, because And at this moment, just the antivirus software is taken out from the memory cell of SLC types, in the memory cell for storing MLC types.
One or more technical schemes that the application provides, have at least the following technical effects or advantages:
1st, as a result of the data type according to data to be stored, the data Cun Chudao of different types of data is correspondingly deposited Technical scheme in storage unit, so, efficiently solving in the prior art does not have identification data type, and all data are all stored Into a type of memory cell, the technical problem for the advantages of high power capacity can only be realized or the long-life can only be realized, and then Realize while meet high power capacity and the technique effect of long-life.
2nd, it is corresponding with data to be stored to determine as a result of the corresponding relation based on data storage and data type Data type, so as to which data type be classified, efficiently solving in the prior art does not have identification data type, by all numbers According to being stored in the memory cell of same type so that the technical problem that the memory cell can not be utilized effectively, and then realize Effective identification data type, improve the technique effect of memory cell utilization rate.
3rd, as a result of when the first data type being stored in the first memory cell is changed to the second data type, By the technical scheme in the memory cell of data Cun Chudao second of the second data type in the memory cell, efficiently solve existing There is the technical problem do not redistributed in technology to the data of data Type Change, and then realize and treat data storage Effective management technique effect.
The embodiment of the present application additionally provides a kind of electronic equipment, as shown in Fig. 2 the electronic equipment includes:Acquisition module 10, For obtaining data to be stored;Determining module 20, for determining the data type of data to be stored;Judge module 30, for sentencing Disconnected data type is the first data type or the second data type, obtains a judged result;First memory module 40, for sentencing Disconnected result shows data type when being the first data type, by the memory cell of data Cun Chudao first to be stored;Second storage Module 50, for when it is the second data type that judged result, which shows data type, data Cun Chudao second to be stored to be stored In unit.
Wherein, the judge module 30 specifically includes:First judging submodule, for based on the use included in data to be stored In the identification information of identification data type, it is the first data type or the second data type to judge data to be stored, obtains one Judged result;Second judging submodule, for the file suffixes information for identification data type based on data to be stored, sentence Breaking, data to be stored be the first data type or the second data type, obtains a judged result.
Meanwhile the electronic equipment also includes:First detection module, for detect data to be stored data type whether by It is changed to the second data type;First processing module, for when being changed to the second data type, by data storage to be stored Into the second memory cell.
Further, the electronic equipment also includes:Second processing module, for when being changed to three data types, inciting somebody to action Data Cun Chudao to be stored is used in the 3rd memory cell of the 3rd data type data of storage, wherein, the 3rd data type is The all different data type with the first, the second data type, the 3rd memory cell are all different with the first, the second memory cell Memory cell.
Further, the electronic equipment also includes:Second detection module, for detect data to be stored data type whether It is changed to the first data type;3rd processing module, for when being changed to the first data type, data to be stored to be deposited Store up into the first memory cell.
The electronic equipment introduced by the present embodiment to implement the method for the application data storage used by electronics set Standby, so the method based on the data storage described in the embodiment of the present application, those skilled in the art can understand this The embodiment of the electronic equipment of embodiment and its various change form, so no longer detailed for the electronic equipment herein It is thin to introduce.As long as those skilled in the art implement electronic equipment used by the method for the application data storage, belong to The scope to be protected of the application.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more Usable storage medium(Including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)The computer program production of upper implementation The form of product.
The present invention is with reference to method according to embodiments of the present invention, equipment(System)And the flow of computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (10)

1. a kind of method of data storage, applied to an electronic equipment, it is characterised in that the electronic equipment includes being used to deposit Store up the first memory cell of the first data type data, and from for storing second data different with first data type The storage density of second memory cell of categorical data, first memory cell and second memory cell, storage speed Different with service life, methods described includes:
Obtain data to be stored;
Determine the data type of the data to be stored;
Based on the identification information for identification data type included in the data to be stored, judge the data type for institute The first data type or second data type are stated, obtains a judged result;The identification information is the data to be stored Attribute information;The criteria for classification of first data type and second data type is the number of the data to be stored Whether frequently changed according to type;
When it is first data type that the judged result, which shows the data type, by the data Cun Chudao to be stored In first memory cell;
When it is second data type that the judged result, which shows the data type, by the data Cun Chudao to be stored In second memory cell.
2. the method as described in claim 1, it is characterised in that the data type for determining the data to be stored, specifically For:
After data to be stored are obtained, based on the corresponding relation between data storage and data type, it is determined that with it is described to be stored Data type corresponding to data.
3. the method as described in claim 1, it is characterised in that deposited described by described in the data Cun Chudao to be stored first After in storage unit, methods described also includes:
Whether the data type for detecting the data to be stored is changed to second data type;
When being changed to second data type, by the second memory cell described in the data Cun Chudao to be stored.
4. method as claimed in claim 3, it is characterised in that the detection data to be stored data type whether It is changed to after second data type, methods described also includes:
When being changed to three data types, the data Cun Chudao to be stored is used to store the 3rd data type number According to the 3rd memory cell in;
Wherein, the 3rd data type is the data type all different with the first, the second data type, first number Criteria for classification according to type, second data type and the 3rd data type is the data type of the data to be stored Whether frequently to change, the 3rd memory cell is the memory cell all different with the first, the second memory cell, described the One memory cell, second memory cell, storage density, storage speed and the service life of the 3rd memory cell are not Together.
5. the method as described in claim 1, it is characterised in that deposited described by described in the data Cun Chudao to be stored second After in storage unit, methods described also includes:
Whether the data type for detecting the data to be stored is changed to first data type;
When being changed to first data type, by the first memory cell described in the data Cun Chudao to be stored.
6. method as claimed in claim 5, it is characterised in that the detection data to be stored data type whether It is changed to after first data type, methods described also includes:
When being changed to three data types, the data Cun Chudao to be stored is used to store the 3rd data type number According to the 3rd memory cell in;
Wherein, the 3rd data type is the data type all different with the first, the second data type, and the described 3rd deposits Storage unit is the memory cell all different with the first, the second memory cell.
7. a kind of electronic equipment, it is characterised in that the electronic equipment includes being used to store the of the first data type data One memory cell, and it is single from the second storage for storing second data type data different with first data type Member, first memory cell is different from storage density, storage speed and the service life of second memory cell, described Electronic equipment includes:
Acquisition module, for obtaining data to be stored;
Determining module, for determining the data type of the data to be stored;
Judge module, for based on the identification information for identification data type included in the data to be stored, judging institute It is first data type or second data type to state data type, obtains a judged result;The identification information is The attribute information of the data to be stored;The criteria for classification of first data type and second data type is, described Whether the data type of data to be stored is frequently changed;
First memory module, for when it is first data type that the judged result, which shows the data type, by institute State in the first memory cell described in data Cun Chudao to be stored;
Second memory module, for when it is second data type that the judged result, which shows the data type, by institute State in the second memory cell described in data Cun Chudao to be stored.
8. electronic equipment as claimed in claim 7, it is characterised in that the electronic equipment also includes:
Whether first detection module, the data type for detecting the data to be stored are changed to second data class Type;
First processing module, for when being changed to second data type, by described in the data Cun Chudao to be stored In second memory cell.
9. electronic equipment as claimed in claim 7, it is characterised in that the electronic equipment also includes:
Second processing module, for when being changed to three data types, the data Cun Chudao to be stored being used to store In 3rd memory cell of the 3rd data type data, wherein, the 3rd data type is and the described the first, the second number According to all different data type of type, first data type, second data type and the 3rd data type Criteria for classification is whether the data type of the data to be stored is frequently changed, the 3rd memory cell be with described first, The all different memory cell of second memory cell, first memory cell, second memory cell, the 3rd storage are single Member storage density, storage speed and service life it is different.
10. electronic equipment as claimed in claim 7, it is characterised in that the electronic equipment also includes:
Whether the second detection module, the data type for detecting the data to be stored are changed to first data class Type;
3rd processing module, for when being changed to first data type, by described in the data Cun Chudao to be stored In first memory cell.
CN201210359243.5A 2012-09-24 2012-09-24 The method and electronic equipment of a kind of data storage Active CN103677654B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210359243.5A CN103677654B (en) 2012-09-24 2012-09-24 The method and electronic equipment of a kind of data storage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210359243.5A CN103677654B (en) 2012-09-24 2012-09-24 The method and electronic equipment of a kind of data storage

Publications (2)

Publication Number Publication Date
CN103677654A CN103677654A (en) 2014-03-26
CN103677654B true CN103677654B (en) 2018-03-23

Family

ID=50315367

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210359243.5A Active CN103677654B (en) 2012-09-24 2012-09-24 The method and electronic equipment of a kind of data storage

Country Status (1)

Country Link
CN (1) CN103677654B (en)

Families Citing this family (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978324B (en) * 2014-04-03 2020-06-16 腾讯科技(深圳)有限公司 Data processing method and device
CN104978361B (en) * 2014-04-11 2019-12-20 深圳力维智联技术有限公司 Method and device for storing real-time monitoring data of power environment
KR102289919B1 (en) * 2014-04-15 2021-08-12 삼성전자주식회사 Storage controller, storage device, storage system and method of operation of the storage controller
CN104035897B (en) * 2014-06-12 2018-04-24 上海新储集成电路有限公司 A kind of storage control
CN106293495A (en) * 2015-05-22 2017-01-04 中兴通讯股份有限公司 The date storage method of terminal unit and terminal unit
CN104991736A (en) * 2015-06-15 2015-10-21 联想(北京)有限公司 Method and device for typing in data and storage equipment
CN104881259B (en) * 2015-06-29 2018-07-24 北京联想核芯科技有限公司 A kind of data processing method and device and storage device
US11461010B2 (en) * 2015-07-13 2022-10-04 Samsung Electronics Co., Ltd. Data property-based data placement in a nonvolatile memory device
CN105426117B (en) * 2015-10-27 2018-11-16 浪潮(北京)电子信息产业有限公司 A kind of system function optimization method and device
CN110413339A (en) * 2015-11-12 2019-11-05 华为技术有限公司 The method and apparatus for loading software module
CN105677257A (en) * 2016-02-04 2016-06-15 联想(北京)有限公司 Data storage method and electronic equipment
CN105893174A (en) * 2016-03-28 2016-08-24 联想(北京)有限公司 Data storage method and device as well as electronic equipment
CN106254947B (en) * 2016-08-05 2019-09-17 青岛海信电器股份有限公司 The extended method and device of process resource
CN108733577B (en) * 2017-04-21 2021-10-22 群联电子股份有限公司 Memory management method, memory control circuit unit and memory storage device
CN107453948A (en) * 2017-07-28 2017-12-08 北京邮电大学 The storage method and system of a kind of network measurement data
CN110308861B (en) * 2018-03-20 2023-07-21 浙江宇视科技有限公司 Storage data storage method, device, electronic equipment and readable storage medium
CN109673017B (en) * 2018-12-03 2022-04-19 武汉虹信科技发展有限责任公司 RRU automatic testing method and device
CN109743362B (en) * 2018-12-17 2024-04-16 南京东大智能化系统有限公司 Data storage method applied to full-format data structure
CN110018788A (en) * 2019-03-01 2019-07-16 平安科技(深圳)有限公司 It is classified storage method, device, electronic equipment and computer readable storage medium
CN110377233B (en) * 2019-07-22 2022-03-29 深圳忆联信息系统有限公司 SSD (solid State disk) reading performance optimization method and device, computer equipment and storage medium
CN110825662A (en) * 2019-11-04 2020-02-21 深圳芯邦科技股份有限公司 Data updating method, system and related device
CN111026674A (en) * 2019-11-29 2020-04-17 维沃移动通信有限公司 Data storage method and electronic equipment
CN110941398A (en) * 2019-11-29 2020-03-31 维沃移动通信有限公司 Data storage method and electronic equipment
CN111506262B (en) * 2020-03-25 2021-12-28 华为技术有限公司 Storage system, file storage and reading method and terminal equipment
CN111737404A (en) * 2020-06-26 2020-10-02 豆盟(北京)科技股份有限公司 Data processing method, device, equipment and computer storage medium
CN111858604B (en) * 2020-07-24 2022-11-04 平安证券股份有限公司 Data storage method and device, electronic equipment and storage medium
CN112000749A (en) * 2020-07-31 2020-11-27 恒大智慧科技有限公司 Server, data storage method and computer equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0082903A1 (en) * 1981-12-29 1983-07-06 International Business Machines Corporation Control unit connectable to a pair of memories having different speeds
CN1147648A (en) * 1995-07-31 1997-04-16 株式会社东芝 Data storage apparatus and it storage method
CN101369451A (en) * 2007-08-14 2009-02-18 三星电子株式会社 Solid state memory (ssm), computer system including an ssm, and method of operating an ssm
CN201707662U (en) * 2009-04-09 2011-01-12 青岛海信移动通信技术股份有限公司 Embedded type equipment supporting JAVA technology
CN102624547A (en) * 2011-12-31 2012-08-01 成都市华为赛门铁克科技有限公司 Method, device and system for managing IM (Instant Messaging) online behavior

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2701817B2 (en) * 1995-12-05 1998-01-21 日本電気株式会社 Swapping equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0082903A1 (en) * 1981-12-29 1983-07-06 International Business Machines Corporation Control unit connectable to a pair of memories having different speeds
CN1147648A (en) * 1995-07-31 1997-04-16 株式会社东芝 Data storage apparatus and it storage method
CN101369451A (en) * 2007-08-14 2009-02-18 三星电子株式会社 Solid state memory (ssm), computer system including an ssm, and method of operating an ssm
CN201707662U (en) * 2009-04-09 2011-01-12 青岛海信移动通信技术股份有限公司 Embedded type equipment supporting JAVA technology
CN102624547A (en) * 2011-12-31 2012-08-01 成都市华为赛门铁克科技有限公司 Method, device and system for managing IM (Instant Messaging) online behavior

Also Published As

Publication number Publication date
CN103677654A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
CN103677654B (en) The method and electronic equipment of a kind of data storage
CN108287669B (en) Date storage method, device and storage medium
Sethi et al. RecShard: statistical feature-based memory optimization for industry-scale neural recommendation
CN109784058A (en) Version strong consistency method of calibration, client, server and storage medium
CN102236750A (en) Right control method and device for cloud computing system
CN105630418A (en) Data storage method and device
KR20100062954A (en) Optimization of data distribution and power consumption in a datacenter
CN101960442B (en) Method and apparatus for inputting/outputting data using virtualization technique
CN111414228B (en) Method and related device for managing storage space based on Kubernetes
CN110968554A (en) Block chain storage method, storage system and storage medium based on file chain blocks
CN105075223A (en) Tracking application usage in a computing environment
CN103154891B (en) Virtual machine stage detects
CN106021566A (en) Method, device and system for improving concurrent processing capacity of single database
CN106155580B (en) A kind of storage method and system based on embedded multi-media card eMMC
Mai et al. Dynamic Data Migration in Hybrid Main Memories for In‐Memory Big Data Storage
CN106020717B (en) Data processing method and electronic equipment
Park et al. Memory Access Characteristics of Neural Network Workloads and Their Implications
CN106470218A (en) The method and apparatus that under a kind of network platform, resource content reclaims
CN111427863B (en) Data migration method, device and equipment based on domain model
CN111488316A (en) File cache recovery method and device
Chen et al. Refinery swap: An efficient swap mechanism for hybrid DRAM–NVM systems
Yang et al. Improving f2fs performance in mobile devices with adaptive reserved space based on traceback
CN103544302B (en) The partition maintenance method and device of database
CN104461754B (en) A kind of method and apparatus for monitoring eMMC
CN105138294B (en) A kind of hard disc apparatus and information processing method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant