CN104572478A - Data access method and data access device - Google Patents

Data access method and data access device Download PDF

Info

Publication number
CN104572478A
CN104572478A CN201310478872.4A CN201310478872A CN104572478A CN 104572478 A CN104572478 A CN 104572478A CN 201310478872 A CN201310478872 A CN 201310478872A CN 104572478 A CN104572478 A CN 104572478A
Authority
CN
China
Prior art keywords
data
storage unit
storage
storage area
access
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
CN201310478872.4A
Other languages
Chinese (zh)
Other versions
CN104572478B (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 CN201310478872.4A priority Critical patent/CN104572478B/en
Publication of CN104572478A publication Critical patent/CN104572478A/en
Application granted granted Critical
Publication of CN104572478B publication Critical patent/CN104572478B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a data access method and device. The method is applied to electronic equipment, the electronic equipment comprises a storage device, the storage device at least comprises a first storage area and a second storage area, the first storage area has the first access performance, the second storage area has the second access performance, the first access performance is superior to the second access performance, and the first storage area and the second storage area respectively comprise a plurality of storage units. The method comprises the following steps: receiving a data movement command; judging whether the first storage units exist in the first storage area or not, wherein the first storage units are used for storing first data; if the first storage units are judged to be existent, moving the fist data from the first storage units to the second storage units in the second storage area. Therefore, the high-speed data access performance can be realized, and the user experience when the storage device is used is fully improved.

Description

Data access method and data access arrangement
Technical field
The present invention relates to field of computer technology, more specifically, the present invention relates to a kind of data access method and data access arrangement.
Background technology
In recent years, along with the development of computer technology, the various electronic equipments such as such as smart mobile phone, multimedia player, PDA(Personal Digital Assistant), portable computer, tablet computer, personal computer are widely used.In such electronic equipment, the processing power of processing unit constantly strengthens, and simultaneously the memory capacity of memory storage and storage speed have also been obtained corresponding raising.
Along with people are to the increase of data access requirement, use the memory storage of single storage medium cannot meet the demands.Instead, the mixing memory storage adopting multi storage is proposed.At present, adopt the mixing memory storage of two kinds of storage mediums the most common, two kinds of storage mediums wherein often have different access performances.Such as, the first access media can have higher access speed than the second access media, and the second access media can have more cheap Costco Wholesale than the first access media.This mixing memory storage can the different qualities of comprehensive two kinds of storage mediums, thus brings optimum storage to experience for user.
In addition, in order to prevent the misoperation of electronic equipment or fault and cause loss of data, usually need to carry out data backup in the storage device, especially for very important data, often carry out data backup and can reduce the loss that occasional breakage causes, ensure that the system of electronic equipment can recover normal operation from mistake.Such as, the most conventional data back up method system snapshot (Snapshot) technology often.
At present, system snapping technique needs use system hidden partition to store snapshot data.But to memory storage (especially, the memory storage that memory capacity is less), user is often difficult to stand and loses any active volume in order to snapshot functions.
For this reason, a solution of prior art utilizes the headspace in memory storage to realize snapshot.The system headspace that this solution utilizes user to discover well to store snapshot data, thus can not bring any impact to the daily operated storage space of user.
But this solution does not carry out any improvement to current widely popular mixing memory storage, and that is, it does not consider the peculiar problem that may occur in blending agent.Specifically, due to snapshot data often one can not often accessed (such as, amendment or read) " cold data ", if so it takies the region in the first storage medium for a long time, higher access speed cannot be given full play to by causing the first access media.On the contrary, because snapshot data takies the region in the first storage medium for a long time, so often accessed " dsc data " has to be stored in the region in the second storage medium, thus the second storage medium is caused to cause premature loss due to too much access.This have impact on overall performance and the life-span of mixing memory storage undoubtedly.
Therefore, a kind of novel data access method and data access arrangement is needed to solve the problems referred to above.
Summary of the invention
In order to solve the problems of the technologies described above, according to an aspect of the present invention, provide a kind of data access method, described method is applied to electronic equipment, described electronic equipment comprises memory storage, described memory storage at least comprises the first storage area and the second storage area, described first storage area has the first access performance, described second storage area has the second access performance, described first access performance is better than described second access performance, each in described first storage area and described second storage area comprises multiple storage unit, described method comprises: receive data mobile order, judge whether there is the first storage unit in described first storage area, described first storage unit is for storing the first data, if and judge to there is described first storage unit, then described first data are moved to the second storage unit described second storage area from described first storage unit.
In addition, according to a further aspect in the invention, provide a kind of data access arrangement, described data access arrangement is applied to electronic equipment, described electronic equipment comprises memory storage, described memory storage at least comprises the first storage area and the second storage area, described first storage area has the first access performance, described second storage area has the second access performance, described first access performance is better than described second access performance, each in described first storage area and described second storage area comprises multiple storage unit, described data access arrangement comprises: order receiving element, for receiving data mobile order, data determining unit, for judging whether there is the first storage unit in described first storage area, described first storage unit is for storing the first data, and Data Movement Unit, if there is described first storage unit for judging, then described first data are moved to the second storage unit described second storage area from described first storage unit.
Compared with prior art, adopt according to data access method of the present invention, the first data that can not be often accessed can be moved to from access performance preferably the first storage area in the second poor storage area of access performance, discharge the storage space of the first storage area, thus promote serviceable life and the memory property of whole system.Therefore, in the present invention, data access performance at a high speed can being realized, substantially increasing the Consumer's Experience when using memory storage.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from instructions, or understand by implementing the present invention.Object of the present invention and other advantages realize by structure specifically noted in instructions, claims and accompanying drawing and obtain.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for instructions, together with embodiments of the present invention for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 illustrates data access method according to a first embodiment of the present invention.
Fig. 2 illustrates data access method according to a second embodiment of the present invention.
Fig. 3 illustrates store status example according to a second embodiment of the present invention.
Fig. 4 illustrates garbage reclamation operation example according to a second embodiment of the present invention.
Fig. 5 illustrates data access arrangement according to a first embodiment of the present invention.
Fig. 6 illustrates data access arrangement according to a second embodiment of the present invention.
Embodiment
Describe in detail with reference to the accompanying drawings according to each embodiment of the present invention.Here it is to be noted that it in the accompanying drawings, identical Reference numeral is given there is identical or similar structures and function ingredient substantially, and the repeated description of will omit about them.
Hereinafter, will describe in a first embodiment according to data access method of the present invention.
Fig. 1 illustrates data access method according to a first embodiment of the present invention.
Data access method illustrated in Fig. 1 can be applicable to electronic equipment, and described electronic equipment comprises memory storage.
Data access method according to a first embodiment of the present invention can be applied to electronic equipment.Described electronic equipment can be the electronic equipment of such as personal computer, intelligent television, panel computer, mobile phone, digital camera, personal digital assistant, portable computer, intelligent desktop, game machine etc.
Described electronic equipment can comprise memory storage, and described memory storage can be the mixing memory storage adopting multi storage.Such as, described memory storage can be the mixing memory storage of employing two kinds of storage mediums, wherein at least can comprise the first storage area and the second storage area.Described first storage area has the first access performance, and described second storage area has the second access performance, and described first access performance is better than described second access performance.In addition, each in described first storage area and described second storage area comprises multiple storage unit.
Data access method according to a first embodiment of the present invention will be described in following scene, wherein suppose that electronic equipment is notebook, this memory storage is mixing memory storage, and it can combine the physical construction memory technology of such as conventional hard (HDD) and so on and the digital storage technique of such as high speed flash memory (flash) and so on.Such as, this mixing memory storage can be hybrid hard disk, and it carries out data pre-read (Prefetch) by increasing high speed flash memory on mechanical hard disk, to reduce the number of times from hard drives read data, thus improves performance.
At this moment, the first storage area can be high speed flash memory, and the second storage area can be mechanical hard disk.Usually, the access performance of this high speed flash memory is better than the access performance of this mechanical hard disk.Such as, this high speed flash memory technology is novel, and it has the Costco Wholesale of access speed at a high speed, limited serviceable life and costliness; And this mechanical hard disk technology maturation, its access speed is relatively slowly, serviceable life is very long and Costco Wholesale is cheap.
This high speed flash memory can adopt the non-volatile flash technology based on NOR or enable nand gate, and it provides data access service by mapping between logical address and physical address to electronic equipment.
Usually, described high speed flash memory can comprise multiple storage block (block), and each storage block can comprise multiple memory page (page).Carry out in units of memory page in storage block of the read-write operation of high speed flash memory, and the erase/program operations of high speed flash memory is carried out in units of storage block, that is, in high speed flash memory, page is minimum access (read-write) unit, and block is minimum erasing-programming unit.
Specifically, the high speed flash memory of 34 nanometers (nm) flash chip (L63B particle) released to adopt Intel (Intel) company, the capacity of 1 memory page is 4 kilobyte (KB), and 1 storage block is made up of 256 memory pages.
This mechanical hard disk can adopt and move based on magnetic head the mechanical mechanism carrying out addressing, and it finds by LBA (Logical Block Addressing) (LBA) pattern the content that hard disk stores.Under LBA pattern, a data area on hard disk is uniquely determined by the magnetic head at its place, cylinder (namely magnetic track) and sector.
Usually, described mechanical hard disk can comprise multiple sector (Sector).All carry out in units of sector the read-write operation of mechanical hard disk and/or erase operation, that is, in mechanical hard disk, sector is minimum access (read-write) and/or erase unit.
Specifically, the capacity of 1 sector of mechanical hard disk is generally 512 bytes (B).
Due to high speed flash memory and mechanical hard disk at access performance (such as, read or write speed) and physical characteristics is (such as, price, serviceable life) on asymmetric, so compared with the single storage medium of use, this hybrid hard disk can not only provide better performance, also can reduce the read-write number of times of hard disk, thus hard disk power consumption is reduced, particularly make the battery durable ability of electronic equipment improve.In addition, due to the flash memory (such as, the flash memory of 256 megabyte (MB)) of general hybrid hard disk only built-in low capacity, so cost can not significantly improve.Meanwhile, because hybrid hard disk also adopts the design of traditional magnetic hard disk, so there is no the deficiency that high speed flash capacity is little.
It should be noted that, although be described using hybrid hard disk as the example of memory storage in the first embodiment of the present invention, the present invention is not limited thereto.Other memory storage can also be applied to, as long as the access performance comprising multiple storage area and between described multiple storage area is different according to the data access method of the embodiment of the present invention.Such as, the present invention can also be applied to the memory storage be made up of local storage and remote storage (such as, cloud storage space).In addition, the present invention can also be applied to by CD, mechanical hard disk, high speed flash memory, solid state hard disc, in flash disk, floppy disk etc. both or more the memory storage that forms.In addition, in other high speed flash memory, the capacity of a memory page can be 1KB, 2KB, 4KB ... 16KB, even higher, and storage block can comprise the memory page of more more number; And in other mechanical hard disk, the capacity of a sector can be 1KB, 2KB, 4KB etc.
As illustrated in figure 1, described data access method comprises:
In step s 110, data mobile order is received.
As mentioned above, in the first embodiment of the present invention, this electronic equipment (such as, notebook) can comprise memory storage (such as, hybrid hard disk).This hybrid hard disk at least can comprise the storage medium that two kinds have different access performance, the first storage area wherein (or be called, first storage medium) can be high speed flash memory, and the second storage area (or being called, the second storage medium) can be mechanical hard disk.
In notebook, because high speed flash memory has access speed faster, so user often wishes all data to be stored among high speed flash memory.But, because high speed flash memory has expensive price, so user has to use mechanical hard disk, to utilize lower access speed to exchange cheap use cost for.For hybrid hard disk the most common on market, high speed flash memory wherein often only has the capacity of 8 gigabytes (GB), and mechanical hard disk can reach the even higher order of magnitude of 500GB.
After this notebook a period of time of use, or after store important information in notebook, or there is system crash to prevent notebook, user can carry out data backup in the storage device, to prevent the user data that wherein stores and/or system data from losing due to the misoperation of notebook or fault.Such as, this user can use system snapping technique or other technology of data copies to come to perform backup to the various data in memory storage.
After user data and/or system data are backed up, Backup Data will be produced in the storage device.This Backup Data is often shelved in the storage device for a long time.Only have when system crash appears in notebook, or due to other reasons (such as, there is bad storage unit in user misoperation, loss of data, hard disk) and cause user need recover data backup time, this Backup Data just understand be accessed by electronic equipment, for again reducing.
Therefore, often need to access (such as with user, need frequent amendment or read) " dsc data " (such as, system file, boot, hot spot application program, job documentation etc.) compare, this Backup Data often a kind of can not be often accessed " cold data ".
When taking the high speed flash area in hybrid hard disk for a long time at this Backup Data, on the one hand, in high speed flash memory, the memory capacity taken by Backup Data cannot play its outstanding access features, user has to use mechanical hard disk to carry out access data with slower speed more, like this except cause system processing speed slack-off except, also will cause mechanical hard disk in notebook, consume a large amount of electric power, and due to the Physical Interference such as mechanical hard disk is easily vibrated impact, this also causes the security of data access to reduce; And on the other hand, in order to improve processing speed as far as possible, trial uses residual memory space few in number in high speed flash memory to store desired data by user, to the storage space of these parts be caused owing to performing the read-write of too much number of times and premature breakdown like this, and and then cause whole high speed flash memory to lose use value.
Therefore, this electronic equipment can perform a kind of data movement operations, moves in mechanical hard disk for by Backup Data from high-speed cache, the storage space of release high-speed cache, thus the serviceable life and the memory property that promote whole system.
This data movement operations can realize based on user's request, and the time that also can be set according to user by notebook automatically performs.Alternatively, this notebook also regularly or based on user's request can judge whether Backup Data proportion in high speed flash memory exceedes threshold value, and when judged result is affirmative, automatically starts this data movement operations.
In either case, this notebook by reception data movement directive, and carries out subsequent operation according to this data mobile order to the Backup Data in memory storage.
In the step s 120, judge whether there is the first storage unit in the first storage area.
After receiving this data mobile order, perform in the storage device and judge operation, to judge the first storage unit of whether existing in the first storage area (the high speed flash memory in the present embodiment) for storing the first data (such as, the cold data of such as Backup Data and so on).When judging the first storage unit existed in the first storage area for storing the first data, this method proceeds to step S130 and continues to perform; Otherwise, illustrate without the need to performing data movement operations, and this method terminates.
Because in high speed flash memory, memory page is minimum access (read-write) unit and storage block is minimum erasing-programming unit, so when this first data capacity is not high, this first storage unit can be one or more memory page, and when this first data capacity is very high, this first storage unit can be one or more storage block, or even whole flash memory particle.
As " cold data ", these first data can have the first access features being less than threshold value access features.
Particularly, these first data can have be less than threshold number reading times, have be less than threshold frequency reading frequency, there is the write number of times that is less than threshold number and/or there is the write frequency being less than threshold frequency.Such as, these first data can be Backup Datas.
Or, because Backup Data has read only attribute usually in the file management aspect of operating system, so these first data also can be the data with read only attribute.
In addition, when high speed flash memory stores data in storage medium, in order to distinguish, its controller often adds different attribute to these various data.Such as, controller can add effectively (Valid) attribute, so that notebook is normally accessed to the user data of normal use or system data; To delete or data to be deleted add invalid (Invalid) attribute, in units of storage block, perform erase operation to wait for; And add protection (Protect) attribute to Backup Data (such as, snapshot data), deleted by user or system to prevent this Backup Data by mistake.Thus, these first data also can be the data with protection attribute.
In step s 130, which, the first data are moved to the second storage unit the second storage area from the first storage unit.
When judging to there is the first such storage unit in the step s 120, described first data are moved to the second storage unit described second storage area from described first storage unit.
Particularly, the step of described the second storage unit first data moved to the second storage area from the first storage unit can comprise: in described second storage area, distribute described second storage unit; By described first data from described first memory cell replicate to described second storage unit; And described first data are deleted from described first storage unit.
Such as, suppose to judge in high speed flash memory, to there are 10 memory pages just in store backup data, and the address of these 10 memory pages is Block1Page1 to Block1Page10, so, can know that the size of this Backup Data is 10 × 4KB=40KB accordingly.Because in mechanical hard disk, the capacity of a sector is 512B, the data namely storing 40KB need the space of 80 sectors, so can allocation address be 80 sectors of Sector1 to Sector80 in this mechanical hard disk.Then, 10 memory pages of the Backup Data of 40KB from Block1Page1 to Block1Page10 can be copied to 80 sectors of Sector1 to Sector80.Finally, the Backup Data in high speed flash memory can be deleted.
Take storage block as least unit due to the data erase operation in high speed flash memory; so at this moment can only modify to the attribute of Backup Data; by it from protecting attribute modification to be invalid attribute, to delete in garbage reclamation after a while or other operations.
Alternatively, also immediately all valid data stored in this storage block can all be transferred to another one storage block, and this storage block is wiped, operate for other to discharge this storage space.
Pass through aforesaid operations, the first data that can not be often accessed can be moved to from access performance preferably the first storage area in the second poor storage area of access performance, discharge the storage space of the first storage area, thus promote serviceable life and the memory property of whole system.Therefore, in the first embodiment of the present invention, data access performance at a high speed can being realized, substantially increasing the Consumer's Experience when using memory storage.
In step S140, judge in the second storage area, whether there is the 4th storage unit.
Can also find, if user often needs access (such as, need frequent amendment or read) hot spot data take mechanical hard disk region in hybrid hard disk for a long time, then except cause system processing speed slack-off except, also will cause mechanical hard disk in notebook, consume a large amount of electric power, shorten the stand-by time of whole electronic equipment, and hot spot data also can due to often accessed and be more exposed under Physical Interference, loss of data or the probability of makeing mistakes are increased greatly.
Preferably, after executing above-mentioned steps S110 to S130, based on the same idea of first embodiment of the invention, this data movement operations can also be used for hot spot data to move to from mechanical hard disk in high-speed cache, make full use of the access speed of high-speed cache, thus more access experience for user provides.
Such as, after receiving above-mentioned data mobile order, or after receiving special data mobile order, perform correlated judgment operation in the storage device, to judge the 4th storage unit that whether exists in the second storage area (mechanical hard disk in the present embodiment) for storing the 3rd data (such as, hot spot data).When judging to there is the 4th storage unit for storing the 3rd data in the second storage area, this method proceeds to step S150 and continues to perform; Otherwise, illustrate without the need to performing data movement operations, and this method terminates.
Because in mechanical hard disk, sector is minimum access (read-write) unit and/or erase unit, so the 4th storage unit can be one or more sector.
As " dsc data ", the 3rd data can have the second access features being more than or equal to threshold value access features.
Particularly, the 3rd data can have be more than or equal to threshold number reading times, have be more than or equal to threshold frequency reading frequency, there is the write number of times that is more than or equal to threshold number and/or there is the write frequency being more than or equal to threshold frequency.Such as, the 3rd data can be the hot spot datas that user often needs to access.
In step S150, the 3rd data are moved to the 5th storage unit the first storage area from the 4th storage unit.
When judging to there is the 4th such storage unit in step S140, described 3rd data are moved to the 5th storage unit described first storage area from described 4th storage unit.
Particularly, the step of described the 5th storage unit 3rd data moved to the first storage area from the 4th storage unit can comprise: in described first storage area, distribute described 5th storage unit; By described 3rd data from described 4th memory cell replicate to described 5th storage unit; And described 3rd data are deleted from described 4th storage unit.
Such as, suppose to judge that in mechanical hard disk, there are 80 sectors stores hot spot data, and the address of these 80 sectors is Sector1 to Sector80, so, can know that the size of this hot spot data is 80 × 512B=40KB accordingly.Because in high speed flash memory, the capacity of a memory page is 4KB, the data namely storing 40KB need the space of 10 memory pages, so can allocation address be 10 memory pages of Block1Page1 to Block1Page10 in this high speed flash memory.Then, 80 sectors of the hot spot data of 40KB from Sector1 to Sector80 can be copied to 10 memory pages of Block1Page1 to Block1Page10.Finally, the hot spot data in mechanical hard disk directly can be deleted.
Be take sector as least unit due to the data erase operation in mechanical hard disk, so can wipe immediately above-mentioned 80 sectors, operate for other to discharge this storage space.
Pass through aforesaid operations, the 3rd often accessed data can be moved to from poor the second storage area of access performance access performance preferably in the first storage area, thus make the hot spot data of electronic equipment concentrate in high speed storing region, to realize data access performance at a high speed as far as possible.
It should be noted that, although hereinbefore with the specific data access method sequentially described according to a first embodiment of the present invention, the present invention is not limited thereto.Such as, obviously, step S110, step S140 and S150 can independently become independent data access method, or step S140 and S150 also can perform before step S120 and S130 or with them simultaneously.
In addition, although describe data access method according to a first embodiment of the present invention using Backup Data (or snapshot data) as the example of " cold data " hereinbefore, the present invention is not limited thereto.Should " cold data " also can be other system data or user data.
Such as, preferably, electronic equipment can be made to add up for the accessing operation of the data stored in the storage device, and by a certain frequency of access (such as, access in one day 1 time) as threshold value access features, and the first data that its first access feature is more than or equal to this threshold value access features are classified as " dsc data ", the first data of its first access feature this threshold value access features little are classified as " cold data ", to carry out storage optimization.
Hereinafter, will describe in a second embodiment according to data access method of the present invention.
Fig. 2 illustrates data access method according to a second embodiment of the present invention.
Data access method illustrated in Fig. 2 can be applicable to electronic equipment, and described electronic equipment comprises memory storage.
Data access method according to a second embodiment of the present invention can be applied to electronic equipment equally.Described electronic equipment can comprise the mixing memory storage adopting multi storage.
Data access method according to a second embodiment of the present invention will be described in following scene, wherein suppose that electronic equipment is notebook, this memory storage is the digital memeory device of mixing, and it can adopt the different non-volatile flash memory technology based on NOR or enable nand gate.Such as, the digital memeory device of this mixing can be hybrid solid-state hard disk (SSD) etc.
Different from mechanical hard disk, solid state hard disc does not have the LBA of physics, and the chip structure adopted neither spiral track in mechanical hard disk.Alternatively, the mapping of solid state hard disc logic-based address and physical address provides access services, that is, its externally electronic equipment provide logical address to conduct interviews, and realize logical address and physical address translations in inside by the mapping of logical address and physical address, then the service of the actual data access in physical address is provided.
In addition, solid state hard disc is different according to the medium of its storage unit, can be divided into the solid state hard disc adopting flash memory (Flash) or dynamic RAM (DRAM) as storage medium.Wherein, based in the solid state hard disc of flash memory, its storage unit can be divided into multiclass again: single-layer type storage element (SLC), multiple field storage element (MLC), three-layer type storage element (TLC) or even four laminar storage unit (QLC).
Solid state hard disc based on flash memory is commonly used in notebook, panel computer (PAD), digital camera or video camera etc. at present.The maximum advantage of this SSD can move exactly, and data protection is not by Energy control, can be adapted to various environment.But generally speaking, they access speed, serviceable life and Costco Wholesale all different.
In the second embodiment of the present invention, the hybrid solid-state hard disk that this hybrid solid-state hard disk can be made up of two or more in SLC, MLC, TLC and QLC etc.Because QLC is not by extensive commercialization, so such as, in practice, in order to obtain the optimal tradeoff between memory property and Costco Wholesale, this solid state hard disc preferably can comprise SLC storage area and TLC storage area.
At this moment, the first storage area can be SLC region, and the second storage area can be TLC region.Usually, the access performance in this SLC region is better than the access performance in this TLC region.For SLC, its access speed is fast, long service life (about having 100,000 erasing and writing lifes), but has expensive Costco Wholesale (more than 10 times of about TLC price).The access speed of TLC is slow, serviceable life is short (about having 500 erasing and writing lifes), but price is very cheap.
As mentioned above, described solid state hard disc can comprise multiple storage block (block), and each storage block can comprise multiple memory page (page).Carry out in units of memory page in storage block of the read-write operation of solid state hard disc, and the erase/program operations of solid state hard disc is carried out in units of storage block, that is, in solid state hard disc, page is minimum access (read-write) unit, and block is minimum erasing-programming unit.
Due to SLC region and TLC region at access performance (such as, read or write speed) and physical characteristics is (such as, price, serviceable life) on asymmetric, so compared with the single flash media of use, this hybrid solid-state hard disk can not only provide better access performance, also can provide longer serviceable life.
It should be noted that, although be described using the hybrid solid-state hard disk be made up of SLC and TLC as the example of memory storage in the second embodiment of the present invention, the present invention is not limited thereto.Other hybrid solid-state hard disk can also be applied to, as long as the access performance comprising multiple storage area and between described multiple storage area is different according to the data access method of the embodiment of the present invention.Such as, the present invention can also be applied to the memory storage be made up of SLC and MLC, the memory storage etc. be made up of MLC and TLC.In addition, in two storage areas of solid state hard disc, the capacity of a memory page can be 1KB, 2KB, 4KB ... 16KB, even higher, and storage block can comprise the memory page of more more number.In addition, the memory page in two storage areas also may be different with the capacity of storage block.
As illustrated in Figure 2, described data access method comprises:
In step S210, perform data backup operation.
As mentioned above, in the second embodiment of the present invention, this electronic equipment (such as, notebook) can comprise memory storage (such as, hybrid solid-state hard disk).This hybrid solid-state hard disk at least can comprise the storage medium that two kinds have different access performance, the first storage area wherein (or be called, first storage medium) can be SLC region, and the second storage area (or being called, the second storage medium) can be TLC region.
Lose due to the misoperation of notebook or fault to prevent the user data that wherein stores and/or system data, such as, this user can use system snapping technique or other technology of data copies to come to perform backup to the various data in memory storage.Below, go on to say for system snapping technique.
Due to the mapping that the inside of solid state hard disc is undertaken between logical address and physical address by mapping table, so the mapping table in solid-state hard disk controller can be utilized to realize the backup of system snapshot.Such as, the snapshot in solid state hard disc can being realized by the mode of preserving mapping table copy, recovering backed up data when recovering solid state hard disc by recovering mapping table.
Particularly, in the storage device, this data backup operation can be performed by operating as follows: backup reception data order; In described memory storage, store the first address mapping relation, the described first address mapping relation physical address at least indicated for storing the first data is the first storage unit; Protection attribute is added to described first address mapping relation; And add described protection attribute to described first data.
Such as, this data backup operation can realize based on user's request, and the time that also can be set according to user by notebook automatically performs.In either case, this notebook is by reception data backup commands.Then, backup operation can be carried out according to this data backup commands to the various data in memory storage and/or the mapping item that is associated with these data.
In one example, when user wishes to back up a certain system data, first notebook can determine its list item in address mapping table according to this system data in the buffer memory of solid state hard disc, and this list item can indicate the mapping relations between the logical address of this system data and physical address.Then, this list item can be stored in solid state hard disc.In order to prevent the mapping item backed up by invalid without deleting or being labeled as, preferably, this list item can be labeled as " protected " state.Next, can further this system data be stored in solid state hard disc from the buffer memory of solid state hard disc.Further, similarly, this system data is labeled as " protected " state.
Here, it should be noted that, because some solid state hard disc manufacturer does not support by the document data saving of reality in the buffer, therefore, this system data may be stored in solid state hard disc.At this moment, only need this system data to be labeled as " protected " state.
Like this, just successfully in solid state hard disc, create a snapshot data, for this system data preserving user's needs.
As mentioned above, in order to distinguish, the controller of SSD often adds different attribute to these various data.Such as, the storage area that controller can be not taken up by data adds idle (Free) attribute, so that notebook stores various data after a while wherein; To user data or system data interpolation effectively (Valid) attribute of normal use, so that notebook is normally accessed; To delete or data to be deleted add invalid (Invalid) attribute, in units of storage block, perform erase operation to wait for; And add protection (Protect) attribute to snapshot data, deleted by user or system to prevent this snapshot data by mistake.
Fig. 3 illustrates store status example according to a second embodiment of the present invention.
As illustrated in fig. 3, due to the conversation strategy of solid state hard disc, it is when saving system data, some may be kept at SLC, and some is kept at TLC.
For the storer of hybrid storage medium; the SSD of such as, SLC and TLC mixing in the present embodiment; because the performance of SLC and life-span are all better than TLC; if so the data block of " protected " that produce when system does snapshot time is present in SLC region in a large number; by causing, the Free Region in SLC is more and more less, and then the performance of system also can decline.
On the one hand, in SLC region, the memory capacity taken by protected data cannot play its outstanding access features, and user has to use TLC to carry out access data with slower speed more, and system processing speed must be caused so slack-off.On the other hand, in order to improve processing speed as far as possible, the storage space used in TLC is stored the hot spot data of operating system and the data of frequent amendment by user, because TLC only has an appointment 500 erasing and writing lifes, to the storage space of these parts be caused owing to performing the read-write of too much number of times and premature breakdown like this, and and then cause whole TLC to lose use value.
In the second embodiment of the present invention, will take into full account the data of these " protected ", make it be recovered to TLC region, the data space of such SLC can be " released " out as far as possible.System lifetim and performance all can obtain corresponding lifting.In addition, preferably, for the hot spot data of operating system and the data of frequent amendment, also it can be made to leave concentratedly in SLC region by hierarchical algorithm as far as possible, thus strengthen the readwrite performance of total system.
Therefore, the present invention may be advanced to step S220, to perform a kind of data movement operations, moves in TLC from SLC for by protected data.
In step S220, receive data mobile order.
This notebook by reception data movement directive, and carries out subsequent operation according to this data mobile order to the Backup Data in memory storage.
Such as, this data mobile order can realize based on user's request, and the time that also can be set according to user by notebook automatically performs.Preferably, this data mobile order can be the garbage reclamation order in solid state hard disc.
After all SSD free spaces are fully written, the block that the controller of SSD will be labeled as engineering noise by all and page all unification carry out erase operation.These discrete Data Integrations are got up to reset to the block space of " blank ".This operation is just called garbage reclamation.
This garbage reclamation order can be triggered when receiving I/O (I/O) read write command beginning, or also can automatically perform backstage (such as, when the system is idle).
Fig. 4 illustrates garbage reclamation operation example according to a second embodiment of the present invention.
As illustrated in figure 4, when SLC needs garbage reclamation, the data block of " protected " in SLC can be picked out, by data copy to TLC region, wipe the data block of these " protected " in SLC simultaneously.Such SLC part increases new free space, is used for the data that deposit operation system frequently accesses.And then elevator system performance.
In step S230, judge whether there is the first storage unit in the first storage area.
After receiving this data mobile order, perform in the storage device and judge operation, to judge the first storage unit of whether existing in the first storage area (SLC in the present embodiment) for storing the first data (such as, snapshot data).When judging the first storage unit existed in the first storage area for storing the first data, this method proceeds to step S130 and continues to perform; Otherwise, illustrate without the need to performing data movement operations, and this method terminates.
As snapshot data, these first data may be the system datas itself that user will back up, also may be the mapping item that this system data is associated, this mapping item physical address indicated for storing described first data is described first storage unit, and indicates the logical address with this physical address with mapping relations.
In either case, this snapshot data all has protection attribute.Like this, can judge whether to there is snapshot data by determining whether to exist the data with protection attribute in SLC region.
In step S240, the first data are moved to the second storage unit the second storage area from the first storage unit.
When judging to there is the first such storage unit in step S230, described first data are moved to the second storage unit described second storage area from described first storage unit.
In one example, the step of described the second storage unit first data moved in the second storage area (TLC the present embodiment) from the first storage unit can comprise: in described second storage area, distribute described second storage unit; By described first data from described first memory cell replicate to described second storage unit; And described first data are deleted from described first storage unit.
Such as, suppose to judge that in SLC, there are 10 memory pages stores snapshot data, and the address of these 10 memory pages is Block1Page1 to Block1Page10, so, can know that the size of this Backup Data is 10 × 4KB=40KB accordingly.When the memory page of TLC and the memory page capacity of SLC are all 4KB, can allocation address be 10 memory pages of Block2Page1 to Block2Page10 in this TLC.Then, 10 memory pages of the Backup Data of 40KB from Block1Page1 to Block1Page10 can be copied to 10 memory pages of Block2Page1 to Block2Page10.Finally, the Backup Data in high speed flash memory can be deleted.
In another example, the step of described the second storage unit first data moved in the second storage area (TLC the present embodiment) from the first storage unit can comprise: carry out patten transformation to described first storage unit, described first storage unit is converted to described second storage unit.
Such as, along with the development of flash memory technology, special process process can be used to change the physical attribute of flash chip, thus SLC is directly converted to TLC, vice versa.Such as, the conversion ratio of SLC to TLC is generally 1:3, and namely usually, the SLC of 1GB can be converted to the TLC of 3GB, and the TLC of 3GB can be converted to the SLC of 1GB.
At this moment, if time some flash memory manufacturer provides SLC to TLC conversion command, pattern switching can be carried out to the SLC region shared by snapshot protection, make in SLC the protected piece of data block changing TLC into.
In step s 250, the first address mapping relation is revised as the second address mapping relation.
By described first data from after described first storage unit moves to the second storage unit described second storage area, if these first data are mapping items itself, then this step can be omitted.If these first data are the system datas pointed by mapping item, then preferably, also need described first address mapping relation to be revised as the second address mapping relation, the described second address mapping relation physical address at least indicated for storing described first data is described second storage unit.
As mentioned above, due to the mapping that the inside of solid state hard disc is undertaken between logical address and physical address by mapping table, so by snapshot data from after SLC moves to TLC, still this snapshot data can be accessed in order to make electronic equipment, so need to modify to this mapping item, so that original SLC address is updated to up-to-date TLC address.
Such as, the mapping item be associated with the first data can be revised as Block2Page1 to the Block2Page10 in TLC from Block1Page1 to the Block1Page10 SLC.
Pass through aforesaid operations, can by can not be often accessed the first data (such as, snapshot data) move in poor the second storage area (TLC) of access performance from access performance preferably the first storage area (SLC), discharge the storage space of the first storage area, thus promote serviceable life and the memory property of whole system.
In addition, as described in the first embodiment, the 3rd often accessed data can also be moved to from poor the second storage area of access performance access performance preferably in the first storage area, thus make the hot spot data of electronic equipment concentrate in high speed storing region, to realize data access performance at a high speed as far as possible.
Due to " dsc data " is moved to SLC and the similar process " cold data " being moved to TLC from SLC from TLC, and be illustrated in a first embodiment, therefore, omit it and describe in detail.
Table 1 describes data access method of the prior art and the effect contrast figure according to the data access method of the present embodiment.
Table 1 be the present inventor for particular case make about executive system snapshot some analysis results to the SSD life-span.
Can be found out by table 1, in the prior art, when namely realizing snapshot operation in hybrid solid-state hard disk, will produce in SLC and protect block in a large number, and cause the life-span of total system and performance to receive obvious impact.Particularly, when SLC is taken by a large amount of " protection " block, the bulk life time of SLC declines obvious; within 126 years, 63 years are dropped to from residue; TLC drops to 115 years in 115 years from residue, and write amplification also rises to 1.91 from 1.85, it is evident that overall performance is also affected.
When adopting the data access method in the present embodiment, namely after realizing snapshot operation, performing data movement operations further, a large amount of protection blocks produced in SLC are recovered to TLC region, making the data space of SLC to be " released " out.Particularly, when being moved to TLC from SLC by a large amount of " protection " block, the bulk life time of SLC does not decline, and TLC only drops to 110 years for 115 years from residue, and write amplification also only rises to 1.86 from 1.85.
As can be seen here, adopt the data access method of the present embodiment, system lifetim and performance can be significantly improved.
In step S260, perform data modification operation.
Preferably, in one example, after electronic equipment achieves data backup operation and data movement operations, when user no longer needs this snapshot data, can delete this snapshot data.
Particularly; in this hybrid solid-state hard disk; the protection attribute of mapping item can be removed; and it is invalid to be labeled as;, the protection attribute of the system data pointed by this mapping item can be removed meanwhile, and be labeled as invalid; when carrying out data record operation after a while, to wipe them.
In another example, after electronic equipment achieves data backup operation and data movement operations, when user needs to recover Status of Backups, can recover this snapshot data.
Particularly, in this hybrid solid-state hard disk, protected mapping item can be read, use it to replace existing mapping item, to recover Backup Data.Then, if user wishes to continue to retain this snapshot data so that when using in the future, then electronic equipment is without the need to performing any operation.If when this user no longer needs to retain this snapshot data, can and then according to above-mentioned delete procedure, snapshot data be deleted.
In another example, after electronic equipment achieves data backup operation and data movement operations, user can continue to access (such as, revising) operation to the system data be backed up.
Particularly, in this hybrid solid-state hard disk, described second address mapping relation can also be read from described memory storage; Described first data are read from described second storage unit; Be the second data by described first data modification; The 3rd storage unit is distributed in described first storage area; Described second data are stored into described 3rd storage unit; And creating the 3rd address mapping relation, the described 3rd address mapping relation physical address at least indicated for storing described second data is described 3rd storage unit.
Such as, when in step s 250 the first address mapping relation be associated with the first data being revised as the second address mapping relation, particularly, the physical address being used for storing this system data is revised as Block2Page1 to the Block2Page10 in TLC from Block1Page1 to the Block1Page10 SLC, if user wishes to modify to this system data, this system data can be read from physical address Block2Page1 to the Block2Page10 TLC, and this system data is modified, such as, numerical value 2 is revised as from numerical value 1.
Because this system data becomes " dsc data " from " cold data ", so be preferably stored in SLC by this amended system data, instead of in TLC after passing through access.For this reason, can deallocation be 10 memory pages of Block1Page11 to Block1Page20 in this SLC.Physical address is herein only example, and this physical address also can be other addresses, or original physical address Block1Page1 to Block1Page10, as long as its attribute is idle.
Then, amended system data can be stored into Block1Page11 to Block1Page20.Finally, a mapping item can be created for amended system data, for the SLC physical address indicating this amended system data of current storage.
Pass through aforesaid operations, the characteristic of hybrid storage medium can fully taken into account, after by hierarchical algorithm, the data centralization of the hot spot data of operating system and frequent amendment being stored in the storage area with better access performance, snapshot data being left concentratedly to have in the storage area of poor access performance simultaneously, user subsequent treatment carried out to this snapshot data, so that can continue required various operations.
Fig. 5 illustrates data access arrangement according to a first embodiment of the present invention.
Data access arrangement 100 illustrated in Fig. 5 can be applicable to electronic equipment, and described electronic equipment comprises memory storage.
Data access method according to a first embodiment of the present invention illustrated in Fig. 1 can be realized by the data access arrangement 100 illustrated in Fig. 5.This data access arrangement 100 can be applied to electronic equipment.
Described electronic equipment comprises memory storage, described memory storage at least comprises the first storage area and the second storage area, described first storage area has the first access performance, described second storage area has the second access performance, described first access performance is better than described second access performance, and each in described first storage area and described second storage area comprises multiple storage unit.
This data access arrangement 100 may be used for considering that the mixed characteristic of memory storage carries out data access to memory storage, to make the serviceable life and the memory property that promote whole system.
This data access arrangement 100 can be communicated with electronic equipment by any mode.
In one example, this data access arrangement 100 can be integrated in this electronic equipment as a software module and/or hardware module, and in other words, this electronic equipment can comprise this data access arrangement 100.Such as, when electronic equipment is intelligent desktop, this data access arrangement 100 can be a software module in the operating system of this intelligent desktop, or can be aimed at the application program that this intelligent desktop develops; Certainly, this data access arrangement 100 can be one of numerous hardware modules of this intelligent desktop equally.
Alternatively, in another example, this data access arrangement 100 and this electronic equipment also can be the equipment be separated, and this data access arrangement 100 can be connected to this electronic equipment by wired and/or wireless network, and transmit interactive information according to the data layout of agreement.
As illustrated in fig. 5, described data access arrangement 100 comprises: order receiving element 110, data determining unit 120 and Data Movement Unit 130.
This order receiving element 110 is for receiving data mobile order.
This data determining unit 120 is for judging whether there is the first storage unit in described first storage area, and described first storage unit is for storing the first data.
Wherein, described first data can have the first access features being less than threshold value access features.Alternatively, described first data can have protection attribute.
If this Data Movement Unit 130 exists described first storage unit for judging, then described first data are moved to the second storage unit described second storage area from described first storage unit.
Particularly, described Data Movement Unit 130 can by operating the second storage unit described first data moved to from described first storage unit described second storage area as follows: in described second storage area, distribute described second storage unit; By described first data from described first memory cell replicate to described second storage unit; And described first data are deleted from described first storage unit.
In addition, described data determining unit 120 can also be used for judging whether there is the 4th storage unit in described second storage area, described 4th storage unit is for storing the 3rd data, if and described Data Movement Unit 130 can also be used for judging to there is described 4th storage unit, then described 3rd data are moved to the 5th storage unit described first storage area from described 4th storage unit.
Wherein, described 3rd data have the second access features being more than or equal to threshold value access features.
Concrete configuration and the operation of the unit in data access arrangement 100 according to a first embodiment of the present invention are introduced in detail in the information processing method described above with reference to Fig. 1, and therefore, will omit its repeated description.
As can be seen here, adopt data access arrangement according to a first embodiment of the present invention, the first data that can not be often accessed can be moved to from access performance preferably the first storage area in the second poor storage area of access performance, discharge the storage space of the first storage area, thus promote serviceable life and the memory property of whole system.Therefore, in the first embodiment of the present invention, data access performance at a high speed can being realized, substantially increasing the Consumer's Experience when using memory storage.
In addition, the 3rd often accessed data can be moved to from poor the second storage area of access performance access performance preferably in the first storage area, thus make the hot spot data of electronic equipment concentrate in high speed storing region, to realize data access performance at a high speed as far as possible.
Fig. 6 illustrates data access arrangement according to a second embodiment of the present invention.
Data access method according to a second embodiment of the present invention illustrated in Fig. 2 can be realized by the data access arrangement 100 illustrated in Fig. 6.As illustrated in FIG. 6, with in Fig. 5 similarly, this data access arrangement 100 can comprise: order receiving element 110, data determining unit 120 and Data Movement Unit 130.In addition, preferably, this data access arrangement 100 can also comprise: data backup unit 140, mapping amendment unit 150 and/or data modification unit 160.
This data backup unit 140 is for before the order of described reception data mobile; backup reception data order; the first address mapping relation is stored in described memory storage; the described first address mapping relation physical address at least indicated for storing described first data is described first storage unit; add protection attribute to described first address mapping relation, and add described protection attribute to described first data.
This order receiving element 110 is for receiving data mobile order.
This data determining unit 120 is for judging whether there is the first storage unit in described first storage area, and described first storage unit is for storing the first data.
Wherein, described first data can have the first access features being less than threshold value access features.Alternatively, described first data can have protection attribute.
If this Data Movement Unit 130 exists described first storage unit for judging, then described first data are moved to the second storage unit described second storage area from described first storage unit.
Particularly, in one example, described Data Movement Unit 130 can by operating the second storage unit described first data moved to from described first storage unit described second storage area as follows: in described second storage area, distribute described second storage unit; By described first data from described first memory cell replicate to described second storage unit; And described first data are deleted from described first storage unit.
In another example, described Data Movement Unit 130 can by operating the second storage unit described first data moved to from described first storage unit described second storage area as follows: carry out patten transformation to described first storage unit, described first storage unit is converted to described second storage unit.
This mapping amendment unit 150 for described by described first data from after described first storage unit moves to the second storage unit described second storage area, described first address mapping relation is revised as the second address mapping relation, and the described second address mapping relation physical address at least indicated for storing described first data is described second storage unit.
This data modification unit 160 for described described first address mapping relation is revised as the second address mapping relation after, described second address mapping relation is read from described memory storage, described first data are read from described second storage unit, be the second data by described first data modification, the 3rd storage unit is distributed in described first storage area, described second data are stored into described 3rd storage unit, and create the 3rd address mapping relation, the described 3rd address mapping relation physical address at least indicated for storing described second data is described 3rd storage unit.
In addition, described data determining unit 120 can also be used for judging whether there is the 4th storage unit in described second storage area, described 4th storage unit is for storing the 3rd data, if and described Data Movement Unit 130 can also be used for judging to there is described 4th storage unit, then described 3rd data are moved to the 5th storage unit described first storage area from described 4th storage unit.
Wherein, described 3rd data have the second access features being more than or equal to threshold value access features.
Concrete configuration and the operation of the unit in data access arrangement 100 according to a first embodiment of the present invention are introduced in detail in the information processing method described above with reference to Fig. 1, and therefore, will omit its repeated description.
Concrete configuration and the operation of the unit in data access arrangement 100 according to a second embodiment of the present invention are introduced in detail in the information processing method described above with reference to Fig. 2, and therefore, will omit its repeated description.
As can be seen here, adopt data access arrangement according to a second embodiment of the present invention, can by can not be often accessed the first data (such as, snapshot data) move in poor the second storage area (TLC) of access performance from access performance preferably the first storage area (SLC), discharge the storage space of the first storage area, thus promote serviceable life and the memory property of whole system.In addition, the 3rd often accessed data can also be moved to from poor the second storage area of access performance access performance preferably in the first storage area, thus make the hot spot data of electronic equipment concentrate in high speed storing region, to realize data access performance at a high speed as far as possible.
In addition, the characteristic of hybrid storage medium can fully taken into account, after by hierarchical algorithm, the data centralization of the hot spot data of operating system and frequent amendment being stored in the storage area with better access performance, snapshot data being left concentratedly to have in the storage area of poor access performance simultaneously, user subsequent treatment carried out to this snapshot data, so that can continue required various operations.
In addition, although above-mentioned unit is illustrated each embodiment of the present invention as the executive agent of each step herein, those skilled in the art are it is understood that the present invention is not limited thereto.The executive agent of each step can be served as by other one or more units, unit, even module.
Such as, mentioned order receiving element 110, data determining unit 120, Data Movement Unit 130, data backup unit 140, mapping amendment unit 150 and/or each step performed by data modification unit 160 can be realized by the CPU (central processing unit) (CPU) in electronic equipment uniformly.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required hardware platform by means of software and realize, and can certainly all be implemented by software or hardware.Based on such understanding, what technical scheme of the present invention contributed to background technology can embody with the form of software product in whole or in part, this computer software product can be stored in storage medium, as ROM/RAM, disk, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
Each embodiment of the present invention is described in detail above.But, it should be appreciated by those skilled in the art that without departing from the principles and spirit of the present invention, various amendment can be carried out to these embodiments, combination or sub-portfolio, and such amendment should fall within the scope of the present invention.

Claims (20)

1. a data access method, described method is applied to electronic equipment, it is characterized in that, described electronic equipment comprises memory storage, described memory storage at least comprises the first storage area and the second storage area, described first storage area has the first access performance, described second storage area has the second access performance, described first access performance is better than described second access performance, each in described first storage area and described second storage area comprises multiple storage unit, and described method comprises:
Receive data mobile order;
Judge whether there is the first storage unit in described first storage area, described first storage unit is for storing the first data; And
If judge to there is described first storage unit, then described first data are moved to the second storage unit described second storage area from described first storage unit.
2. method according to claim 1, is characterized in that, described first data have the first access features being less than threshold value access features.
3. method according to claim 1, is characterized in that, described first data have protection attribute.
4. method according to claim 1, is characterized in that, the step of described the second storage unit described first data moved to described second storage area from described first storage unit comprises:
Described second storage unit is distributed in described second storage area;
By described first data from described first memory cell replicate to described second storage unit; And
Described first data are deleted from described first storage unit.
5. method according to claim 1, is characterized in that, the step of described the second storage unit described first data moved to described second storage area from described first storage unit comprises:
Patten transformation is carried out to described first storage unit, described first storage unit is converted to described second storage unit.
6. method according to claim 1, is characterized in that, before the step of described reception data mobile order, described method also comprises:
Backup reception data order;
In described memory storage, store the first address mapping relation, the described first address mapping relation physical address at least indicated for storing described first data is described first storage unit;
Protection attribute is added to described first address mapping relation; And
Described protection attribute is added to described first data.
7. method according to claim 6, is characterized in that, described by described first data from after described first storage unit moves to the step of the second storage unit described second storage area, described method also comprises:
Described first address mapping relation is revised as the second address mapping relation, and the described second address mapping relation physical address at least indicated for storing described first data is described second storage unit.
8. method according to claim 7, is characterized in that, described described first address mapping relation is revised as the step of the second address mapping relation after, described method also comprises:
Described second address mapping relation is read from described memory storage;
Described first data are read from described second storage unit;
Be the second data by described first data modification;
The 3rd storage unit is distributed in described first storage area;
Described second data are stored into described 3rd storage unit; And
Create the 3rd address mapping relation, the described 3rd address mapping relation physical address at least indicated for storing described second data is described 3rd storage unit.
9. method according to claim 1, is characterized in that, described method also comprises:
Judge whether there is the 4th storage unit in described second storage area, described 4th storage unit is for storing the 3rd data; And
If judge to there is described 4th storage unit, then described 3rd data are moved to the 5th storage unit described first storage area from described 4th storage unit.
10. method according to claim 9, is characterized in that, described 3rd data have the second access features being more than or equal to threshold value access features.
11. 1 kinds of data access arrangement, described data access arrangement is applied to electronic equipment, it is characterized in that, described electronic equipment comprises memory storage, described memory storage at least comprises the first storage area and the second storage area, described first storage area has the first access performance, described second storage area has the second access performance, described first access performance is better than described second access performance, each in described first storage area and described second storage area comprises multiple storage unit, and described data access arrangement comprises:
Order receiving element, for receiving data mobile order;
Data determining unit, for judging whether there is the first storage unit in described first storage area, described first storage unit is for storing the first data; And
Described first data if there is described first storage unit for judging, are then moved to the second storage unit described second storage area by Data Movement Unit from described first storage unit.
12. devices according to claim 11, is characterized in that, described first data have the first access features being less than threshold value access features.
13. devices according to claim 11, is characterized in that, described first data have protection attribute.
14. devices according to claim 11, it is characterized in that, described Data Movement Unit is by operating the second storage unit described first data moved to from described first storage unit described second storage area as follows: in described second storage area, distribute described second storage unit; By described first data from described first memory cell replicate to described second storage unit; And described first data are deleted from described first storage unit.
15. devices according to claim 11, it is characterized in that, described Data Movement Unit is by operating the second storage unit described first data moved to from described first storage unit described second storage area as follows: carry out patten transformation to described first storage unit, described first storage unit is converted to described second storage unit.
16. devices according to claim 11, is characterized in that, described device also comprises:
Data backup unit; for before the order of described reception data mobile; backup reception data order; the first address mapping relation is stored in described memory storage; the described first address mapping relation physical address at least indicated for storing described first data is described first storage unit; add protection attribute to described first address mapping relation, and add described protection attribute to described first data.
17. devices according to claim 16, is characterized in that, described device also comprises:
Map amendment unit, for described by described first data from after described first storage unit moves to the second storage unit described second storage area, described first address mapping relation is revised as the second address mapping relation, and the described second address mapping relation physical address at least indicated for storing described first data is described second storage unit.
18. devices according to claim 17, is characterized in that, described device also comprises:
Data modification unit, for described described first address mapping relation is revised as the second address mapping relation after, described second address mapping relation is read from described memory storage, described first data are read from described second storage unit, be the second data by described first data modification, the 3rd storage unit is distributed in described first storage area, described second data are stored into described 3rd storage unit, and create the 3rd address mapping relation, the described 3rd address mapping relation physical address at least indicated for storing described second data is described 3rd storage unit.
19. devices according to claim 11, is characterized in that, described data determining unit also for judging whether there is the 4th storage unit in described second storage area, described 4th storage unit for storing the 3rd data, and
If described Data Movement Unit also exists described 4th storage unit for judging, then described 3rd data are moved to the 5th storage unit described first storage area from described 4th storage unit.
20. devices according to claim 19, is characterized in that, described 3rd data have the second access features being more than or equal to threshold value access features.
CN201310478872.4A 2013-10-14 2013-10-14 Data access method and data access device Active CN104572478B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310478872.4A CN104572478B (en) 2013-10-14 2013-10-14 Data access method and data access device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310478872.4A CN104572478B (en) 2013-10-14 2013-10-14 Data access method and data access device

Publications (2)

Publication Number Publication Date
CN104572478A true CN104572478A (en) 2015-04-29
CN104572478B CN104572478B (en) 2018-07-06

Family

ID=53088610

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310478872.4A Active CN104572478B (en) 2013-10-14 2013-10-14 Data access method and data access device

Country Status (1)

Country Link
CN (1) CN104572478B (en)

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138422A (en) * 2015-08-10 2015-12-09 联想(北京)有限公司 Control method and electronic device
CN106227683A (en) * 2016-07-26 2016-12-14 联想(北京)有限公司 Electronic equipment and information processing method
CN106326135A (en) * 2015-06-30 2017-01-11 华为技术有限公司 Method and device for translating data of non-volatile memory NVM
CN106557385A (en) * 2015-09-28 2017-04-05 成都华为技术有限公司 Data snapshot method and storage device
CN106681652A (en) * 2016-08-26 2017-05-17 合肥兆芯电子有限公司 Memory management method, memory control circuit unit and memory storage device
CN107305478A (en) * 2016-04-21 2017-10-31 慧荣科技股份有限公司 Storage device, control unit thereof and data storage method for storage device
CN107357534A (en) * 2017-07-18 2017-11-17 深圳市德名利电子有限公司 A kind of dynamic switching method and system of flash block pattern
CN107608625A (en) * 2017-08-11 2018-01-19 记忆科技(深圳)有限公司 A kind of method for lifting solid storage device reading performance
CN107678981A (en) * 2017-08-24 2018-02-09 北京盛和大地数据科技有限公司 Data processing method and device
CN107870735A (en) * 2016-09-28 2018-04-03 杭州华为数字技术有限公司 Data managing method, device and equipment
CN107943713A (en) * 2017-11-22 2018-04-20 深圳忆联信息系统有限公司 A kind of method and solid state hard disc for lifting solid state hard disc reading performance
CN108228105A (en) * 2017-12-29 2018-06-29 北京联想核芯科技有限公司 A kind of data processing method and device of SSD hard disks
CN108763102A (en) * 2018-05-31 2018-11-06 郑州云海信息技术有限公司 A kind of rubbish recovering method and device of solid state disk
CN109032965A (en) * 2017-06-12 2018-12-18 华为技术有限公司 A kind of method for reading data, host and storage equipment
CN109254722A (en) * 2017-07-13 2019-01-22 爱思开海力士有限公司 Controller and its operating method
CN109408401A (en) * 2017-08-18 2019-03-01 旺宏电子股份有限公司 The management system and management method of memory device
CN109947358A (en) * 2017-12-20 2019-06-28 爱思开海力士有限公司 Storage system and its operating method
CN110297603A (en) * 2019-06-25 2019-10-01 深圳忆联信息系统有限公司 Random write performance method for improving, device and computer equipment based on solid state hard disk
CN111026674A (en) * 2019-11-29 2020-04-17 维沃移动通信有限公司 Data storage method and electronic equipment
TWI698749B (en) * 2019-03-13 2020-07-11 慧榮科技股份有限公司 A data storage device and a data processing method
CN111897744A (en) * 2019-05-05 2020-11-06 北京兆易创新科技股份有限公司 Data writing method and device, electronic equipment and storage medium
CN111897485A (en) * 2019-05-05 2020-11-06 北京兆易创新科技股份有限公司 Data storage method and device, electronic equipment and storage medium
CN112015339A (en) * 2020-08-20 2020-12-01 合肥康芯威存储技术有限公司 Data storage system, data storage method and storage system of memory
CN112416253A (en) * 2020-11-25 2021-02-26 新华三云计算技术有限公司 Storage area dynamic adjustment method and device based on distributed storage
CN112799475A (en) * 2021-01-04 2021-05-14 湖南磐石科技有限公司 Solid state disk with independent system hard disk and computer equipment
CN113452726A (en) * 2020-03-24 2021-09-28 中兴通讯股份有限公司 Data transmission method, terminal and computer readable storage medium
CN114115747A (en) * 2017-10-27 2022-03-01 东芝存储器株式会社 Memory system and control method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101526923A (en) * 2009-04-02 2009-09-09 成都市华为赛门铁克科技有限公司 Data processing method, device thereof and flash-memory storage system
CN103049349A (en) * 2012-11-29 2013-04-17 记忆科技(深圳)有限公司 Snapshot method and system based on tiered storage
CN103106050A (en) * 2013-02-22 2013-05-15 浪潮电子信息产业股份有限公司 Method for achieving layered storage and copy of data of storage system
CN103186350A (en) * 2011-12-31 2013-07-03 北京快网科技有限公司 Hybrid storage system and hot spot data block migration method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101526923A (en) * 2009-04-02 2009-09-09 成都市华为赛门铁克科技有限公司 Data processing method, device thereof and flash-memory storage system
CN103186350A (en) * 2011-12-31 2013-07-03 北京快网科技有限公司 Hybrid storage system and hot spot data block migration method
CN103049349A (en) * 2012-11-29 2013-04-17 记忆科技(深圳)有限公司 Snapshot method and system based on tiered storage
CN103106050A (en) * 2013-02-22 2013-05-15 浪潮电子信息产业股份有限公司 Method for achieving layered storage and copy of data of storage system

Cited By (45)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106326135A (en) * 2015-06-30 2017-01-11 华为技术有限公司 Method and device for translating data of non-volatile memory NVM
CN105138422A (en) * 2015-08-10 2015-12-09 联想(北京)有限公司 Control method and electronic device
CN105138422B (en) * 2015-08-10 2018-09-21 北京联想核芯科技有限公司 Control method and electronic equipment
CN106557385A (en) * 2015-09-28 2017-04-05 成都华为技术有限公司 Data snapshot method and storage device
CN106557385B (en) * 2015-09-28 2020-01-21 成都华为技术有限公司 Data snapshot method and storage device
CN107305478A (en) * 2016-04-21 2017-10-31 慧荣科技股份有限公司 Storage device, control unit thereof and data storage method for storage device
US10042567B2 (en) 2016-04-21 2018-08-07 Silicon Motion, Inc. Storage device and data storing method thereof
CN106227683A (en) * 2016-07-26 2016-12-14 联想(北京)有限公司 Electronic equipment and information processing method
CN106227683B (en) * 2016-07-26 2019-08-27 联想(北京)有限公司 Electronic equipment and information processing method
CN106681652A (en) * 2016-08-26 2017-05-17 合肥兆芯电子有限公司 Memory management method, memory control circuit unit and memory storage device
CN106681652B (en) * 2016-08-26 2019-11-19 合肥兆芯电子有限公司 Storage management method, memorizer control circuit unit and memory storage apparatus
CN107870735B (en) * 2016-09-28 2021-01-05 华为技术有限公司 Data management method, device and equipment
CN107870735A (en) * 2016-09-28 2018-04-03 杭州华为数字技术有限公司 Data managing method, device and equipment
CN109032965A (en) * 2017-06-12 2018-12-18 华为技术有限公司 A kind of method for reading data, host and storage equipment
CN109032965B (en) * 2017-06-12 2021-01-12 华为技术有限公司 Data reading method, host and storage device
CN109254722B (en) * 2017-07-13 2021-08-31 爱思开海力士有限公司 Controller and operation method thereof
CN109254722A (en) * 2017-07-13 2019-01-22 爱思开海力士有限公司 Controller and its operating method
CN107357534A (en) * 2017-07-18 2017-11-17 深圳市德名利电子有限公司 A kind of dynamic switching method and system of flash block pattern
CN107608625B (en) * 2017-08-11 2020-09-11 记忆科技(深圳)有限公司 Method for improving reading performance of fixed storage equipment
CN107608625A (en) * 2017-08-11 2018-01-19 记忆科技(深圳)有限公司 A kind of method for lifting solid storage device reading performance
CN109408401A (en) * 2017-08-18 2019-03-01 旺宏电子股份有限公司 The management system and management method of memory device
CN109408401B (en) * 2017-08-18 2023-03-24 旺宏电子股份有限公司 Management system and management method of memory device
CN107678981A (en) * 2017-08-24 2018-02-09 北京盛和大地数据科技有限公司 Data processing method and device
CN114115747A (en) * 2017-10-27 2022-03-01 东芝存储器株式会社 Memory system and control method
CN114115747B (en) * 2017-10-27 2023-12-22 铠侠股份有限公司 Memory system and control method
CN107943713A (en) * 2017-11-22 2018-04-20 深圳忆联信息系统有限公司 A kind of method and solid state hard disc for lifting solid state hard disc reading performance
CN109947358B (en) * 2017-12-20 2022-05-17 爱思开海力士有限公司 Memory system and operating method thereof
CN109947358A (en) * 2017-12-20 2019-06-28 爱思开海力士有限公司 Storage system and its operating method
CN108228105A (en) * 2017-12-29 2018-06-29 北京联想核芯科技有限公司 A kind of data processing method and device of SSD hard disks
CN108763102B (en) * 2018-05-31 2021-10-29 郑州云海信息技术有限公司 Garbage recycling method and device for solid state disk
CN108763102A (en) * 2018-05-31 2018-11-06 郑州云海信息技术有限公司 A kind of rubbish recovering method and device of solid state disk
TWI698749B (en) * 2019-03-13 2020-07-11 慧榮科技股份有限公司 A data storage device and a data processing method
CN111897485A (en) * 2019-05-05 2020-11-06 北京兆易创新科技股份有限公司 Data storage method and device, electronic equipment and storage medium
CN111897744A (en) * 2019-05-05 2020-11-06 北京兆易创新科技股份有限公司 Data writing method and device, electronic equipment and storage medium
CN110297603A (en) * 2019-06-25 2019-10-01 深圳忆联信息系统有限公司 Random write performance method for improving, device and computer equipment based on solid state hard disk
CN110297603B (en) * 2019-06-25 2023-02-10 深圳忆联信息系统有限公司 Method and device for improving random writing performance based on solid state disk and computer equipment
CN111026674A (en) * 2019-11-29 2020-04-17 维沃移动通信有限公司 Data storage method and electronic equipment
CN113452726A (en) * 2020-03-24 2021-09-28 中兴通讯股份有限公司 Data transmission method, terminal and computer readable storage medium
WO2021190246A1 (en) * 2020-03-24 2021-09-30 中兴通讯股份有限公司 Data transmission method, terminal, and computer-readable storage medium
CN113452726B (en) * 2020-03-24 2024-02-20 中兴通讯股份有限公司 Data transmission method, terminal and computer readable storage medium
CN112015339A (en) * 2020-08-20 2020-12-01 合肥康芯威存储技术有限公司 Data storage system, data storage method and storage system of memory
CN112015339B (en) * 2020-08-20 2024-03-22 合肥康芯威存储技术有限公司 Data storage system, data storage method and data storage system of memory
CN112416253B (en) * 2020-11-25 2022-09-30 新华三云计算技术有限公司 Storage area dynamic adjustment method and device based on distributed storage
CN112416253A (en) * 2020-11-25 2021-02-26 新华三云计算技术有限公司 Storage area dynamic adjustment method and device based on distributed storage
CN112799475A (en) * 2021-01-04 2021-05-14 湖南磐石科技有限公司 Solid state disk with independent system hard disk and computer equipment

Also Published As

Publication number Publication date
CN104572478B (en) 2018-07-06

Similar Documents

Publication Publication Date Title
CN104572478A (en) Data access method and data access device
KR102168838B1 (en) Mapping tables for storage devices
CN100487632C (en) Dual media storage device
US9792227B2 (en) Heterogeneous unified memory
Park et al. A high performance controller for NAND flash-based solid state disk (NSSD)
US8046526B2 (en) Wear leveling method and controller using the same
US20170010832A1 (en) Non-volatile memory systems and methods of managing power of the same
CN104866428B (en) Data access method and data access device
US11354236B2 (en) Garbage collection method for data storage device
US8724392B1 (en) Controller management of memory array of storage device using magnetic random access memory (MRAM)
US8929146B1 (en) Controller management of memory array of storage device using magnetic random access memory (MRAM)
CN103530237B (en) A kind of rubbish recovering method of Solid-state disc array
US20090198875A1 (en) Data writing method for flash memory, and controller and system using the same
CN101494086B (en) Memory device, controller and switching method for flash memory
WO2014074449A2 (en) Wear leveling in flash memory devices with trim commands
US9317206B2 (en) Host-managed logical mass storage device using magnetic random access memory (MRAM)
CN101625897B (en) Data write-in method, storage system and controller used for quick flash memory
US20090132757A1 (en) Storage system for improving efficiency in accessing flash memory and method for the same
CN104778018A (en) Broad-strip disk array based on asymmetric hybrid type disk image and storage method of broad-strip disk array
CN105607862A (en) Solid state disk capable of combining DRAM (Dynamic Random Access Memory) with MRAM (Magnetic Random Access Memory) and being provided with backup power
CN102520885B (en) Data management system for hybrid hard disk
CN112130749A (en) Data storage device and non-volatile memory control method
CN101661431A (en) Block management method for flash memory, flash storage system and controller
CN102160038A (en) Method and an apparatus to manage non-volatile disl cache
CN101339490A (en) Flash memory drive apparatus and method

Legal Events

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