CN103677654A - Method and electronic equipment for storing data - Google Patents

Method and electronic equipment for storing data Download PDF

Info

Publication number
CN103677654A
CN103677654A CN201210359243.5A CN201210359243A CN103677654A CN 103677654 A CN103677654 A CN 103677654A CN 201210359243 A CN201210359243 A CN 201210359243A CN 103677654 A CN103677654 A CN 103677654A
Authority
CN
China
Prior art keywords
data
data type
stored
storage unit
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.)
Granted
Application number
CN201210359243.5A
Other languages
Chinese (zh)
Other versions
CN103677654B (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

Images

Landscapes

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

Abstract

The invention discloses a method and electronic equipment for storing data. The electronic equipment comprises a first storage unit used for storing data of a first data type and a second storage unit used for storing data of a second data type, wherein the data of the second data type are different from the data of the first data. The method includes the steps of obtaining data to be stored, determining the data type of the data to be stored, judging whether the data type is the first data type or the second data type and obtaining a judgment result, storing the data to be stored to the first storage unit if the judgment result shows that the data type is the first data type, and storing the data to be stored to the second storage unit if the judgment result shows that the data type is the second data type.

Description

A kind of method and electronic equipment of storing data
Technical field
The present invention relates to field of computer technology, relate in particular to a kind of method and electronic equipment of storing data.
Background technology
Along with the development of computer technology, the high speed of memory technology and storage market expands, and the consumption of FLASH type storer also increases rapidly.And FLASH chip kind is a lot, the most conventional is NOR type and NAND type, conventionally, NOR type is relatively applicable to program code stored, and its random read-write speed is fast, but capacity is generally smaller, and cost is higher, and, more than NAND type capacity can reach 1GB, cost is lower comparatively speaking, being applicable to storage data, generally needing monoblock to read and write data, is operation serial access data by register to the access of data.
Along with people are to the increasing of demand data, the bottleneck of storage system is more and more obvious.And under the rugged surroundings such as built-in field mobile device and industrial automatic control, conventional hard physical construction cannot meet the demands, and all these arrivals along with solid-state storage (SSD) have obtained change.
Solid state hard disc is comprised of control module and storage unit.
Wherein, the storage unit of solid state hard disc is divided into two kinds, and a kind of is to adopt flash memory (FLASH chip) as storage unit, and another kind is to adopt DRAM as storage unit.
Solid state hard disc based on flash memory (IDE FLASH DISK, Serial ATA Flash Disk): adopt FLASH chip as storage unit, its outward appearance can be made into multiple apperance, such as: the patterns such as notebook hard disk, micro harddisk, storage card, flash disk.The advantage of this SSD solid state hard disc maximum can move exactly, and data protection do not control by power supply, can be adapted to various environment.In the solid state hard disc based on flash memory, storage unit is divided into again two classes: SLC(Single Layer Cell single layer cell) and MLC(Multi-Level Cell multilevel-cell).That the feature of SLC is cost is high, but the little speed of capacity is fast, and the feature of MLC is capacity, large cost is low, but speed is slow.Each unit of MLC is 2bit, relatively SLC totally how one times.But, because the data of depositing in each MLC storage unit is more, thereby volume ratio is larger, so structure relative complex, the probability of makeing mistakes can increase, and must carry out error correction, and this action causes its performance significantly to lag behind SLC flash memory simple in structure.In addition, the advantage of SLC flash memory is to make carbon copies number of times up to 100,000 times, higher 10 times than MLC flash memory.In addition, in order to guarantee the life-span of MLC, control chip is verification and intelligence wearing and tearing balancing technique algorithm all, makes writing indegree and can sharing out equally of each storage unit, reaches 1,000,000 hours time between failures.
Certainly, such storage unit also has TLC, QLC etc., and these storage unit are compared to MLC, and read or write speed can be slower, and the life-span can be shorter, and the data of preservation also can be shorter, but cost is all lower compared to SLC or MLC.
But in the process of present inventor's invention technical scheme in realizing the embodiment of the present application, find that above-mentioned technology at least exists following technical matters:
Current industry adopts different storage unit to meet the demand in many ways in capacity, performance and life-span in different application, all adopt separately a kind of storage unit to realize, some scheme proposes to mix different storage unit and meets the demands, but do not carry out the support of self-application, this mixed structure can only be used in NAND interiors of products, if only use SLC as buffering, or only make buffer memory with TLC, be difficult to high power capacity and long-life two aspect advantages of overall product.Be to exist in prior art: owing to there is no identification data type, and all data are all stored in the storage unit of a type, so, high power capacity can only be realized or the technical matters of long-life advantage can only be realized.
Summary of the invention
The embodiment of the present application is by providing a kind of method and electronic equipment of storing data, solved and in prior art, there is no identification data type, all data are all stored in the storage unit of a type, can only realize high power capacity or can only realize the technical matters of long-life advantage, and then realize and meet high power capacity and long-life advantage simultaneously.
The embodiment of the present application provides a kind of method of storing data, be applied to an electronic equipment, described electronic equipment comprises for storing the first storage unit of the first data type data, and from for storing the second storage unit of the second data type data different with described the first data type, described method comprises: obtain data to be stored; Determine the data type of described data to be stored; Judge that described data type is described the first data type or described the second data type, obtain a judged result; When described judged result shows that described data type is described the first data type, described data to be stored are stored in described the first storage unit; When described judged result shows that described data type is described the second data type, described data to be stored are stored in described the second storage unit.
Further, the described data type of determining described data to be stored, is specially: after obtaining data to be stored, the corresponding relation based between storage data and data type, determines the data type corresponding with described data to be stored.
Further, the described data type of described judgement is described the first data type or described the second data type, obtain a judged result, be specially: the identification information for identification data type based on comprising in described data to be stored, judging described data to be stored is described the first data type or described the second data type, obtains a judged result; Or the file suffixes information for identification data type based on described data to be stored, judging described data to be stored is described the first data type or described the second data type, obtains a judged result.
Further, described store described data to be stored into described the first storage unit in after, described method also comprises: whether the data type that detects described data to be stored is modified as described the second data type; When being modified as described the second data type, described data to be stored are stored in described the second storage unit.
Further, after whether the data type of the described data to be stored of described detection is modified as described the second data type, described method also comprises: being modified while being the 3rd data type, described data to be stored are stored into for storing the 3rd storage unit of described the 3rd data type data; Wherein, described the 3rd data type is the data type neither same with described the first, the second data type, and described the 3rd storage unit is the storage unit neither same with described the first, the second storage unit.
Further, described store described data to be stored into described the second storage unit in after, described method also comprises: whether the data type that detects described data to be stored is modified as described the first data type; When being modified as described the first data type, described data to be stored are stored in described the first storage unit.
Further, after whether the data type of the described data to be stored of described detection is modified as described the first data type, described method also comprises: being modified while being the 3rd data type, described data to be stored are stored into for storing the 3rd storage unit of described the 3rd data type data; Wherein, described the 3rd data type is the data type neither same with described the first, the second data type, and described the 3rd storage unit is the storage unit neither same with described the first, the second storage unit.
The application another embodiment provide following technical scheme:
An electronic equipment, described electronic equipment comprises: acquisition module, for obtaining data to be stored; Determination module, for determining the data type of described data to be stored; Judge module, for judging that described data type is described the first data type or described the second data type, obtains a judged result; The first memory module, for when described judged result shows that described data type is described the first data type, stores described data to be stored in described the first storage unit into; The second memory module, for when described judged result shows that described data type is described the second data type, stores described data to be stored in described the second storage unit into.
Further, described judge module specifically comprises: the first judgement submodule, for the identification information for identification data type comprising based on described data to be stored, judging described data to be stored is described the first data type or described the second data type, obtains a judged result; The second judgement submodule, for the file suffixes information for identification data type based on described data to be stored, judging described data to be stored is described the first data type or described the second data type, obtains a judged result.
Further, described electronic equipment also comprises: whether first detection module, be modified as described the second data type for detection of the data type of described data to be stored; The first processing module, for when being modified as described the second data type, stores described data to be stored in described the second storage unit into.
Further, described electronic equipment also comprises: the second processing module, for being modified while being the 3rd data type, described data to be stored are stored into for storing the 3rd storage unit of described the 3rd data type data, wherein, described the 3rd data type is the data type neither same with described the first, the second data type, described the 3rd storage unit is the storage unit neither same with described the first, the second storage unit.
Further, described electronic equipment also comprises: whether the second detection module, be modified as described the first data type for detection of the data type of described data to be stored; The 3rd processing module, for when being modified as described the first data type, stores described data to be stored in described the first storage unit into.
The one or more technical schemes that provide in the embodiment of the present application, at least have following technique effect or advantage:
1, due to the data type having adopted according to data to be stored, store the data of different types of data into technical scheme in corresponding stored unit, so, efficiently solve and in prior art, there is no identification data type, all data are all stored in the storage unit of a type, can only realize high power capacity or can only realize the technical matters of long-life advantage, and then realize and meet high power capacity and long-life technique effect simultaneously.
2, due to the corresponding relation having adopted based on storage data and data type, determine the data type corresponding with data to be stored, thereby data type is classified, efficiently solve and in prior art, there is no identification data type, all data are all stored in the storage unit of same type, the technical matters that this storage unit can not effectively be utilized, and then realized effective identification data type, improve the technique effect of storage unit utilization factor.
3, owing to having adopted the first data type in being stored in the first storage unit to change to the second data type, store the data of the second data type in this storage unit into technical scheme in the second storage unit, efficiently solve the technical matters of data of data Type Change not being redistributed in prior art, and then realized the technique effect to effective management of data to be stored.
Accompanying drawing explanation
Fig. 1 is a kind of process flow diagram of storing the method for data 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 is by providing a kind of method and a kind of electronic equipment of storing data, solved and in prior art, there is no identification data type, all data are all stored in the storage unit of a type, can only realize high power capacity or can only realize the technical matters of long-life advantage.And then realized and met high power capacity and long-life technique effect simultaneously.
Technical scheme in the embodiment of the present application is for addressing the above problem, and general thought is as follows:
When having obtained data to be stored, first to determine the data type of the data that this is to be stored, then according to the data type of data to be stored, find the storage unit corresponding with data type, then, different data types is stored in different storage unit.Such as, when data type to be stored is file type, or system program type etc., just file type is stored in a kind of storage unit, by system program type stores in another storage unit.
In order better to understand technique scheme, below in conjunction with Figure of description and concrete embodiment, technique scheme is described in detail.
The application one embodiment provides a kind of method of storing data, and described method is applied in an electronic equipment, and described electronic equipment can be notebook computer, panel computer, mobile phone etc.For described electronic equipment, be which kind of electronic equipment, the application is not restricted.
As shown in Figure 1, the method for described storage data comprises the 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 is downloaded, the data that obtain by server; Portable hard drive; Or the file automatically generating by editor's computer program etc.
In addition, in concrete implementation process, no matter be the data to be stored that obtain by which kind of mode, there is different data types.So, after S10, just carry out S20: determine the data type of described data to be stored, concrete: the implementation of determining the data type of described data to be stored can be: the corresponding relation based on storage data with data type, determine the data type corresponding with these data to be stored.
In concrete implementation process, for example, the data type of data to be stored can be common text files type, such as, Word message file, picture file, audio files, html file (using WEB browser to check) etc.Can also be system file type, such as, configuration file, lock file (carrying out or certain equipment or resource are used for detection of certain program), software package manager file (for mounting software) etc.Certainly, can also be program and script file type, such as, C programmer sound code file, C Plus Plus program's source code file, program object file, dynamic link library file etc.
In the method for the embodiment of the present application, by S20, determining after the data type of data to be stored, just enter S30: judgement data type is the first data type or the second data type, obtains a judged result.
In embodiment, for how judging that data type is the first data type or the second data type, obtain a judged result, there are two kinds of implementations:
First kind of way: the identification information for identification data type based on comprising in data to be stored, judging data to be stored is the first data type or the second data type, obtains a judged result.
In conjunction with example, the specific implementation process of first kind of way is as follows:
For example, include spacial size in the attribute of text, the position of storage, is the read-only or readable information content such as write; When the data of this storage are Application Type, the data of this Program Type have just not only comprised conventional attribute, also include the attributes such as compatibility, the method for operation.
For example, a text, wherein, in its attribute, size is 26KB, type is readable writing, and waits flag information.For example, an application program is browser program, in its attribute, includes compatibility, and namely whether operating system, can be compatible when changing; Big or small 4KB that also has conventional attribute also to include to take up room etc.
The second way: the file suffixes information for identification data type based on data to be stored, judging data to be stored is the first data type or the second data type, obtains a judged result.
In conjunction with example, the specific implementation process of the second way is as follows:
Such as, the suffix of our modal text is .txt, and the suffix of picture file can have .gif or .jpg etc., and the suffix of audio file can be .mp3 or .wav etc.In process for programming, for example, when doing webpage design, to writing of static page, there is .html file, have .css file, also have .JSP file etc.; While writes for backstage, also will have configuration file, as .xml, and .cfg etc.Also be useful on the file of compression or packing, for example, suffix is the file that .tar(is used tar packing, can use tar xf flename to unpack) and suffix be .tgz etc.
Visible by such scheme, identification information or the suffix information that just can carry data type based on these, obtain the data type of data to be stored.In the embodiment of the present application method, after determining the data type of data to be stored, also data to be stored to be classified, wherein the standard of classification is, frequently whether this data type change, according to this standard, data type can be divided into several as follows:
The first, the first data type, more retrofits for height in the embodiment of the present application, and this class file is as text, as: suffix information is .txt, the file of the forms such as .doc.For audio file, owing to being read-only file, so, the change of audio file is deleted exactly, copy stickup or shearing etc.
The second, the second data type, is low more remodeling in the embodiment of the present application, this class file, as operating system, can not changed after storage substantially.Due to the attribute of operating system file, namely in identification information sign to have this operating system be system file, during installation, only fill once, seldom can change this operating system.Such as also having some shared files, as the file that suffix is .ddl, these files may be shared by some other application program, cannot delete, and are substantially constant.
The third, the 3rd data type, remodeling more in being in the embodiment of the present application, this class file for example, as application program, the instrument CAD for drawing, or for OFFICE software of editing etc., their suffix mostly is .exe, and user does not need the often program of change, in the situation that not networking, user, without these application programs are upgraded, just belongs to the program of a small amount of change.
Certainly, for the division of data type, be not limited to the above-mentioned content of mentioning, be not specifically limited in the embodiment of the present application.
So, according to the data type of above-mentioned these data to be stored by identification information or suffix information acquisition, the data of frequently change are divided into the first data type, substantially constant data are divided into the second data type.Thereby acquisition judged result.
Then enter S40: when judged result shows that data type is the first data type, data to be stored are stored in the first storage unit.
In concrete embodiment, as mentioned above, when data to be stored are files of descriptive text information, or picture file, the needs of audio file etc. are often during the ordinary file of change, just need the data of frequent change to store in the first storage unit these, wherein, the first storage unit is the storage unit of SLC type, the storage unit of this SLC type is single layer cell, its advantage is that read-write number of times can reach 100,000 times, and speed is also than comparatively fast, but cost is relatively high.SLC framework, because every Cell only deposits 1bit data, therefore only have high and low two kinds of level states, is used 1.8V voltage just can drive.And SLC only has 0 and 1 two states in once reading and writing, this technology can provide programming and read-write fast, and only has this two states, and work can be highly stable, when one of them Cell damages, whole performance do not had to impact yet.Certainly, for these texts, picture file, audio file etc., the capacity needing can be very not large yet.
Certainly, except the first data type data, also have the data of the second data type, so, for the second data type, carry out S50: when judged result shows that data type is the second data type, data to be stored are stored in the second storage unit.
In concrete embodiment, the second storage unit is the storage unit of TLC type, capacity due to each unit storage 3bit, so this TLC cell stores capacity is much bigger compared to SLC, and cost is also cheaper, so be applied on the NAND Flash product of low order more, such as low speed flash memory, small memory card or USB flash disk etc.But the read or write speed of TLC storage unit is just slow.For example, so the data by substantially less changing,, store operating system program in the storage unit of TLC type, can guarantee jumbo storage, can guarantee again substantially can not revise within the scope of certain hour.Be beneficial to the life-span of the storage unit of this TLC type.
So, in the application's embodiment, can in NAND Flash, have the storage unit of SLC type and the storage unit of TLC type simultaneously.According to the judgement of the garbage reclamation of the control module of SSD solid state hard disc and loss balancing, dissimilar data are stored in dissimilar storage unit again.Storage unit can be made full use of, and reach effective rate of utilization separately.
Certainly, the data type of these data is not unalterable, and sometimes, because user is not high to the access times of these data, or while often using sometimes, data type all can change.Therefore, after storing data to be stored into first storage unit, whether the data type that detects data to be stored is modified is the second data type, being modified while being the second data type, these data to be stored is stored in the second storage unit.
In concrete embodiment, for example, text files memory is in the storage unit of SLC type, when text does not all have accessed or while being modified in a very long time, like this, control module in SSD solid state hard disc can be according to garbage reclamation and loss balancing process to being stored in the conduct interviews statistics of frequency of data in the storage unit of SLC type, when the visiting frequency of text is wherein zero substantially lower than the required visiting frequency in SLC type stores unit and visiting frequency, this control module just takes out text file from the storage unit of SLC type, again store in the storage unit of TLC type.Certainly, be not only to only have text can change data type, other, comprise picture file, the ordinary files such as audio file all can change to the second data type at different times.The embodiment of the present application is also not construed as limiting.
When detecting after the data type of data to be stored is modified and is the second data type, when the data type of these data changes to again the 3rd data type, these data to be stored are stored into for storing the 3rd storage unit of the 3rd data type data; Wherein, the 3rd data type is the data type neither same with the first, the second data type, and the 3rd storage unit is the storage unit neither same with the first, the second storage unit.
In concrete embodiment, such as, the text of mentioning in upper example, originally when storage, to be stored in the first storage unit, when changing to the second data type, after in the storage unit that stores TLC type into, the visiting frequency that garbage reclamation in control module and loss balancing detect again text file has reached certain preset value, this preset value be between frequent change and substantially constant between, so, just text file is stored in the 3rd storage unit, the 3rd storage unit is the storage unit (multilevel-cell) of MLC type, the storage unit of this MLC type can once be stored 4 above charge value, therefore have reasonable storage density, the storage unit of MLC type can only be born in theory the data of approximately 10,000 times and be write, and each Cell need to deposit a plurality of bit, be that level at least will be divided into 4 grades, so need 3.3V and above voltage to drive.So just need to control more accurately the charging voltage of each storage unit during MLC storage, so reliability of time save data that just need to be longer while reading and writing.Certainly, picture file or audio file also still can change to the 3rd data type, do not do in the embodiment of the present application concrete restriction.
After data to be stored store in the second storage unit, whether the data type that detects data to be stored changes to the first data type, when changing to the first data type, these data to be stored is stored in the first storage unit.
In concrete implementation process, for example, be stored in the application program in the storage unit of TLC type, when networking, some application program need to need to upgrade at set intervals, when user need to change, the data type of this application program will be changed to the first data type.Such as, the application program of the browser skin management of downloading, if user can change the skin of browser every day, just need to modify to this application program, when the frequency of this modification reaches certain default frequency, this browser application just need to be deposited in the storage unit of SLC type, certainly, in the application's embodiment, be not limited in the change of data type of the application program of browser skin management, many application programs, such as, DreamWeaver for webpage design, or the possibility that all can have renewal for the application software such as CAD of mechanical drawing.
Certainly, after storing the data of change into first storage unit, the data type of these data still may change to other data types, wherein, being modified while being the 3rd data type, data to be stored are stored into for storing the 3rd storage unit of the 3rd data type.
In concrete embodiment, as above described in example, when these application programs need to upgrade, but, the number of times upgrading be between frequent change and substantially constant between, so, just this application program is retrieved again, store in the 3rd storage unit, namely store in the storage unit of MLC type.For example, the application program of the browser skin management in above-mentioned example, if all can revise every day, revise so frequency just very high, and when user is every a period of time, as, one week or one month, to revise once, such modification frequency is just neither frequently revise, neither be substantially constant, thereby this application program just belongs to the 3rd data type, need to, from the first storage unit, namely in the storage unit of SLC type, take out, store the 3rd storage unit into, namely in the storage unit of MLC type.Certainly, the embodiment of the present application is not limited only to the above-mentioned application program of mentioning, and also has some configuration files or program's code file etc. in different periods, the change of the number of times using due to user, and data type also can correspondingly change simultaneously.
In order more clearly to allow those of ordinary skills understand the method in the embodiment of the present application, below in conjunction with a concrete example, the implementation procedure of the method in the embodiment of the present application is described in detail.First, suppose, the online antivirus software that user uses, when starting most storage, due to user's not networking for a long time, just do not use this antivirus software, at the garbage reclamation of the control module of SSD solid state hard disc and loss balancing, judging this antivirus software is the data that belong to substantially constant, thereby be just stored in the storage unit of TLC type, when user starts networking, and browse for a long time different site information etc., this antivirus software just needs often to upgrade, thereby this antivirus software is taken out, again store in the storage unit of SLC type.When not a lot of viral sometimes, this antivirus software also can upgrade, but the number of times upgrading not is a lot, thereby at this moment, just this antivirus software is taken out from the storage unit of SLC type, stores in the storage unit of MLC type.
One or more technical schemes that the application provides, at least have following technique effect or advantage:
1, due to the data type having adopted according to data to be stored, store the data of different types of data into technical scheme in corresponding stored unit, so, efficiently solve and in prior art, there is no identification data type, all data are all stored in the storage unit of a type, can only realize high power capacity or can only realize the technical matters of long-life advantage, and then realize and meet high power capacity and long-life technique effect simultaneously.
2, due to the corresponding relation having adopted based on storage data and data type, determine the data type corresponding with data to be stored, thereby data type is classified, efficiently solve and in prior art, there is no identification data type, all data are all stored in the storage unit of same type, the technical matters that this storage unit can not effectively be utilized, and then realized effective identification data type, improve the technique effect of storage unit utilization factor.
3, owing to having adopted the first data type in being stored in the first storage unit to change to the second data type, store the data of the second data type in this storage unit into technical scheme in the second storage unit, efficiently solve the technical matters of data of data Type Change not being redistributed in prior art, and then realized the technique effect to effective management of data to be stored.
The embodiment of the present application also provides a kind of electronic equipment, and as shown in Figure 2, this electronic equipment comprises: acquisition module 10, for obtaining data to be stored; Determination module 20, for determining the data type of data to be stored; Judge module 30, for judging that data type is the first data type or the second data type, obtains a judged result; The first memory module 40, when showing that in judged result data type is the first data type, stores data to be stored in the first storage unit into; The second memory module 50, when showing that in judged result data type is the second data type, stores data to be stored in the second storage unit into.
Wherein, this judge module 30 specifically comprises: the first judgement submodule, and for the identification information for identification data type comprising based on data to be stored, judging data to be stored is the first data type or the second data type, obtains a judged result; The second judgement submodule, for the file suffixes information for identification data type based on data to be stored, judging data to be stored is the first data type or the second data type, obtains a judged result.
Meanwhile, this electronic equipment also comprises: first detection module, and whether for detection of the data type of data to be stored, be modified is the second data type; The first processing module, for being modified while being the second data type, stores data to be stored in the second storage unit into.
Further, this electronic equipment also comprises: the second processing module, for being modified while being the 3rd data type, data to be stored are stored into for storing the 3rd storage unit of the 3rd data type data, wherein, the 3rd data type is the data type neither same with the first, the second data type, the 3rd storage unit is the storage unit neither same with the first, the second storage unit.
Further, this electronic equipment also comprises: the second detection module, and whether for detection of the data type of data to be stored, be modified is the first data type; The 3rd processing module, for being modified while being the first data type, stores data to be stored in the first storage unit into.
The electronic equipment of introducing due to the present embodiment is stored the electronic equipment that the method for data adopts for implementing the application, so method of the storage data based on introducing in the embodiment of the present application, those skilled in the art can understand the present embodiment electronic equipment embodiment with and various version, so introduce no longer in detail for this electronic equipment at this.As long as those skilled in the art implement the electronic equipment that method that the application stores data adopts, all belong to the scope of the application institute wish protection.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware implementation example, implement software example or in conjunction with the form of the embodiment of software and hardware aspect completely.And the present invention can adopt the form that wherein includes the upper computer program of implementing of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) of computer usable program code one or more.
The present invention is with reference to describing according to process flow diagram and/or the block scheme of the method for the embodiment of the present invention, equipment (system) and computer program.Should understand can be in computer program instructions realization flow figure and/or block scheme each flow process and/or the flow process in square frame and process flow diagram and/or block scheme and/or the combination of square frame.Can provide these computer program instructions to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction of carrying out by the processor of computing machine or other programmable data processing device is produced for realizing the device in the function of flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computing machine or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame on computing machine or other programmable devices.
Although described the preferred embodiments of the present invention, once those skilled in the art obtain the basic creative concept of cicada, can make other change and modification to these embodiment.So claims are intended to all changes and the modification that are interpreted as comprising preferred embodiment and fall into the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.

Claims (12)

1. a method of storing data, be applied to an electronic equipment, it is characterized in that, described electronic equipment comprises for storing the first storage unit of the first data type data, and from for storing the second storage unit of the second data type data different with described the first data type, described method comprises:
Obtain data to be stored;
Determine the data type of described data to be stored;
Judge that described data type is described the first data type or described the second data type, obtain a judged result;
When described judged result shows that described data type is described the first data type, described data to be stored are stored in described the first storage unit;
When described judged result shows that described data type is described the second data type, described data to be stored are stored in described the second storage unit.
2. the method for claim 1, is characterized in that, the described data type of determining described data to be stored, is specially:
After obtaining data to be stored, the corresponding relation based between storage data and data type, determines the data type corresponding with described data to be stored.
3. method as claimed in claim 1 or 2, is characterized in that, the described data type of described judgement is described the first data type or described the second data type, obtains a judged result, is specially:
The identification information for identification data type based on comprising in described data to be stored, judging described data to be stored is described the first data type or described the second data type, obtains a judged result; Or
The file suffixes information for identification data type based on described data to be stored, judging described data to be stored is described the first data type or described the second data type, obtains a judged result.
4. the method for claim 1, is characterized in that, described store described data to be stored into described the first storage unit in after, described method also comprises:
Whether the data type that detects described data to be stored is modified as described the second data type;
When being modified as described the second data type, described data to be stored are stored in described the second storage unit.
5. the method for claim 1, is characterized in that, after whether the data type of the described data to be stored of described detection is modified as described the second data type, described method also comprises:
Being modified while being the 3rd data type, described data to be stored are stored into for storing the 3rd storage unit of described the 3rd data type data;
Wherein, described the 3rd data type is the data type neither same with described the first, the second data type, and described the 3rd storage unit is the storage unit neither same with described the first, the second storage unit.
6. the method for claim 1, is characterized in that, described store described data to be stored into described the second storage unit in after, described method also comprises:
Whether the data type that detects described data to be stored is modified as described the first data type;
When being modified as described the first data type, described data to be stored are stored in described the first storage unit.
7. method as claimed in claim 6, is characterized in that, after whether the data type of the described data to be stored of described detection is modified as described the first data type, described method also comprises:
Being modified while being the 3rd data type, described data to be stored are stored into for storing the 3rd storage unit of described the 3rd data type data;
Wherein, described the 3rd data type is the data type neither same with described the first, the second data type, and described the 3rd storage unit is the storage unit neither same with described the first, the second storage unit.
8. an electronic equipment, is characterized in that, described electronic equipment comprises:
Acquisition module, for obtaining data to be stored;
Determination module, for determining the data type of described data to be stored;
Judge module, for judging that described data type is described the first data type or described the second data type, obtains a judged result;
The first memory module, for when described judged result shows that described data type is described the first data type, stores described data to be stored in described the first storage unit into;
The second memory module, for when described judged result shows that described data type is described the second data type, stores described data to be stored in described the second storage unit into.
9. electronic equipment as claimed in claim 8, is characterized in that, described judge module specifically comprises:
The first judgement submodule, for the identification information for identification data type comprising based on described data to be stored, judging described data to be stored is described the first data type or described the second data type, obtains a judged result;
The second judgement submodule, for the file suffixes information for identification data type based on described data to be stored, judging described data to be stored is described the first data type or described the second data type, obtains a judged result.
10. electronic equipment as claimed in claim 8, is characterized in that, described electronic equipment also comprises:
Whether first detection module, be modified as described the second data type for detection of the data type of described data to be stored;
The first processing module, for when being modified as described the second data type, stores described data to be stored in described the second storage unit into.
11. electronic equipments as claimed in claim 8, is characterized in that, described electronic equipment also comprises:
The second processing module, for being modified while being the 3rd data type, described data to be stored are stored into for storing the 3rd storage unit of described the 3rd data type data, wherein, described the 3rd data type is and described first, the data type that the second data type is neither same, described the 3rd storage unit is the storage unit neither same with described the first, the second storage unit.
12. electronic equipments as claimed in claim 8, is characterized in that, described electronic equipment also comprises:
Whether the second detection module, be modified as described the first data type for detection of the data type of described data to be stored;
The 3rd processing module, for when being modified as described the first data type, stores described data to be stored in described the first storage unit into.
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 true CN103677654A (en) 2014-03-26
CN103677654B 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)

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104035897A (en) * 2014-06-12 2014-09-10 上海新储集成电路有限公司 Storage controller
CN104881259A (en) * 2015-06-29 2015-09-02 联想(北京)有限公司 Data processing method and device and storage device
CN104978324A (en) * 2014-04-03 2015-10-14 腾讯科技(深圳)有限公司 Data processing method and device
CN104978361A (en) * 2014-04-11 2015-10-14 深圳中兴力维技术有限公司 Storage method and device of dynamic environment real-time monitoring data
CN104991736A (en) * 2015-06-15 2015-10-21 联想(北京)有限公司 Method and device for typing in data and storage equipment
CN105045523A (en) * 2014-04-15 2015-11-11 三星电子株式会社 Storage controller, storage device, storage system and method of operating the storage controller
CN105426117A (en) * 2015-10-27 2016-03-23 浪潮(北京)电子信息产业有限公司 System performance optimization method and apparatus
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
CN106254947A (en) * 2016-08-05 2016-12-21 青岛海信电器股份有限公司 Process extended method and the device of resource
CN106293495A (en) * 2015-05-22 2017-01-04 中兴通讯股份有限公司 The date storage method of terminal unit and terminal unit
CN106354425A (en) * 2015-07-13 2017-01-25 三星电子株式会社 Data property-based data placement in a nonvolatile memory device
WO2017080383A1 (en) * 2015-11-12 2017-05-18 华为技术有限公司 Method and device for loading software module
CN107453948A (en) * 2017-07-28 2017-12-08 北京邮电大学 The storage method and system of a kind of network measurement data
CN108733577A (en) * 2017-04-21 2018-11-02 群联电子股份有限公司 Storage management method, memorizer control circuit unit and memory storage apparatus
CN109673017A (en) * 2018-12-03 2019-04-23 武汉虹信通信技术有限责任公司 RRU automated testing method and device
CN109743362A (en) * 2018-12-17 2019-05-10 南京东大智能化系统有限公司 A kind of date 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
CN110308861A (en) * 2018-03-20 2019-10-08 浙江宇视科技有限公司 Storing data store method, device, electronic equipment and readable storage medium storing program for executing
CN110377233A (en) * 2019-07-22 2019-10-25 深圳忆联信息系统有限公司 SSD reading performance optimization method, device, computer equipment and storage medium
CN110825662A (en) * 2019-11-04 2020-02-21 深圳芯邦科技股份有限公司 Data updating method, system and related device
CN110941398A (en) * 2019-11-29 2020-03-31 维沃移动通信有限公司 Data storage method and electronic equipment
CN111026674A (en) * 2019-11-29 2020-04-17 维沃移动通信有限公司 Data storage method and electronic equipment
CN111506262A (en) * 2020-03-25 2020-08-07 华为技术有限公司 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
CN111858604A (en) * 2020-07-24 2020-10-30 平安证券股份有限公司 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 (6)

* 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
JPH09160812A (en) * 1995-12-05 1997-06-20 Nec Corp Swapping device
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

Patent Citations (6)

* 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
JPH09160812A (en) * 1995-12-05 1997-06-20 Nec Corp Swapping device
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

Cited By (38)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978324A (en) * 2014-04-03 2015-10-14 腾讯科技(深圳)有限公司 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
CN104978361A (en) * 2014-04-11 2015-10-14 深圳中兴力维技术有限公司 Storage method and device of dynamic environment real-time monitoring data
CN105045523B (en) * 2014-04-15 2020-11-24 三星电子株式会社 Memory controller, memory device and system, and method of operating memory controller
CN105045523A (en) * 2014-04-15 2015-11-11 三星电子株式会社 Storage controller, storage device, storage system and method of operating the storage controller
CN104035897A (en) * 2014-06-12 2014-09-10 上海新储集成电路有限公司 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
CN104881259A (en) * 2015-06-29 2015-09-02 联想(北京)有限公司 Data processing method and device and storage device
CN106354425B (en) * 2015-07-13 2021-06-29 三星电子株式会社 Data attribute-based data layout method and system
CN106354425A (en) * 2015-07-13 2017-01-25 三星电子株式会社 Data property-based data placement in a nonvolatile memory device
US11461010B2 (en) 2015-07-13 2022-10-04 Samsung Electronics Co., Ltd. Data property-based data placement in a nonvolatile memory device
CN105426117A (en) * 2015-10-27 2016-03-23 浪潮(北京)电子信息产业有限公司 System performance optimization method and apparatus
CN105426117B (en) * 2015-10-27 2018-11-16 浪潮(北京)电子信息产业有限公司 A kind of system function optimization method and device
WO2017080383A1 (en) * 2015-11-12 2017-05-18 华为技术有限公司 Method and device 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
CN106254947A (en) * 2016-08-05 2016-12-21 青岛海信电器股份有限公司 Process extended method and the device of resource
CN108733577A (en) * 2017-04-21 2018-11-02 群联电子股份有限公司 Storage management method, memorizer control circuit unit and memory storage apparatus
CN107453948A (en) * 2017-07-28 2017-12-08 北京邮电大学 The storage method and system of a kind of network measurement data
CN110308861A (en) * 2018-03-20 2019-10-08 浙江宇视科技有限公司 Storing data store method, device, electronic equipment and readable storage medium storing program for executing
CN109673017A (en) * 2018-12-03 2019-04-23 武汉虹信通信技术有限责任公司 RRU automated testing method and device
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
CN109743362A (en) * 2018-12-17 2019-05-10 南京东大智能化系统有限公司 A kind of date 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
CN110377233A (en) * 2019-07-22 2019-10-25 深圳忆联信息系统有限公司 SSD reading performance optimization method, 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
CN111506262A (en) * 2020-03-25 2020-08-07 华为技术有限公司 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
CN111858604A (en) * 2020-07-24 2020-10-30 平安证券股份有限公司 Data storage method and device, electronic equipment and 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

Also Published As

Publication number Publication date
CN103677654B (en) 2018-03-23

Similar Documents

Publication Publication Date Title
CN103677654A (en) Method and electronic equipment for storing data
CN105637470B (en) Method and computing device for dirty data management
CN101840345A (en) Configuration parameter-identifying method, system and embedded equipment
KR101651204B1 (en) Apparatus and Method for synchronization of snapshot image
US10564986B2 (en) Methods and apparatus to suspend and resume computing systems
JP5426576B2 (en) Data input / output method and apparatus using virtualization technology
CN104375933A (en) Unit testing method and device
CN102609305A (en) Method for sharing internal memory in server cluster
CN103902562A (en) Method and device for upgrading terminal databases
JP6042454B2 (en) User-generated data center power saving
Zhang et al. Crftl: cache reallocation-based page-level flash translation layer for smartphones
CN103927215A (en) kvm virtual machine scheduling optimization method and system based on memory disk and SSD disk
US10073851B2 (en) Fast new file creation cache
KR20080098104A (en) Method of storing meta-data and system for storing meta-data
US10025639B2 (en) Energy efficient supercomputer job allocation
US20210200584A1 (en) Multi-processor system, multi-core processing device, and method of operating the same
US9857864B1 (en) Systems and methods for reducing power consumption in a memory architecture
CN105138294A (en) Hard disc equipment and information processing method
KR20170048805A (en) Memory device and the operating method thereof
CN102760061B (en) The method of shielding solid state hard disc memory interface difference and storage system
Jackson et al. An architecture for high performance computing and data systems using byte-addressable persistent memory
CN113032288B (en) Method, device and equipment for determining cold and hot data threshold
CN102707987A (en) Extent virtualization
CN114490442B (en) File fragment adjusting method and electronic equipment
CN114706715B (en) Control method, device, equipment and medium for distributed RAID based on BMC

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