CN104423892A - Data writing method, disk module and data writing system - Google Patents

Data writing method, disk module and data writing system Download PDF

Info

Publication number
CN104423892A
CN104423892A CN201310384445.XA CN201310384445A CN104423892A CN 104423892 A CN104423892 A CN 104423892A CN 201310384445 A CN201310384445 A CN 201310384445A CN 104423892 A CN104423892 A CN 104423892A
Authority
CN
China
Prior art keywords
data
data cached
category
cached
those
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.)
Pending
Application number
CN201310384445.XA
Other languages
Chinese (zh)
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.)
Acer Inc
Original Assignee
Acer Inc
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 Acer Inc filed Critical Acer Inc
Priority to CN201310384445.XA priority Critical patent/CN104423892A/en
Publication of CN104423892A publication Critical patent/CN104423892A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/068Hybrid storage device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The invention provides a data writing method, a disk module and a data writing system. The method comprises the steps of writing data in the disk module which comprises a plurality of memorizer units; receiving cache data and determining data categories of the cache data; distributing and writing the cache data in the memorizer units if the data categories of the cache data belong to a first category; writing the cache data in one of the memorizer units if the data categories of the cache data belong to a second category.

Description

Method for writing data, disk module and data writing systems
Technical field
The invention relates to a kind of caching technology, and relate to a kind of method for writing data, hard disc module and data writing systems especially.
Background technology
Current mass storage on the market mainly can be divided into conventional hard (the Hard Driver disk with magnetic head and magnetic sheet composition, hereinafter referred to as HDD) and the solid state hard disc (Solid State Disk, hereinafter referred to as SSD) that forms with storer (memory).In general, because the cost manufacturing conventional hard is lower, therefore the capacity of conventional hard generally can be greater than solid state hard disc.But for data access speed, the data access speed of solid state hard disc but may be more than the several times of conventional hard.Therefore, increasing computer system adopts solid-state hybrid hard disk (Solid State Hybrid Drive, hereinafter referred to as SSHD) hybrid hard disc archetecture, be wherein using conventional hard as basic data storing space, and solid state hard disc is used as spatial cache (cache space).
On existing hybrid hard disc archetecture, the storer of solid state hard disc is made up of multiple memory cell usually, and in order to expedited data access speed, single data splitly can be split into the data of many to be accessed by each memory cell simultaneously.The access mode of parallelization can increase reading speed although it is so, but, because data are write to different memory cells by breaing up, and the data slot of each memory cell only storage compartment, therefore memory cell can produce more scratch space (fragmented space).Therefore, when the storage area of storer not enough and refuse collection (GarbageCollection) function of memory management need be carried out time, storer then has high write amplification factor (Write AmplificationFactor, hereinafter referred to as WAF), and then reduce the serviceable life of solid state hard disc.
Base this, how effectively taking into account the high data access speed of solid state hard disc and the serviceable life of solid state hard disc, is then one of relevant dealer important topic when development.
Summary of the invention
The invention provides a kind of method for writing data, hard disc module and data writing systems, it can provide different writing modes according to data cached data category, use and effectively promote data access speed, and extends the serviceable life of hard disc module.
The present invention proposes a kind of method for writing data, is applicable to hard disc module, and wherein hard disc module comprises multiple memory cell, and method for writing data comprises the following steps.Receive data cached, and judge data cached affiliated data category.If data cached data category belongs to first category, then data cached distribution is write in described memory cell.If data cached data category belongs to the second classification, then by data cached one of them that write in described memory cell.
The present invention separately proposes a kind of hard disc module, and it comprises Memory Controller and multiple memory cell.Described memory cell is coupled to Memory Controller respectively by data channel.Wherein, Memory Controller receives data cached, and Bing judges data cached affiliated data category.If data cached data category belongs to first category, then data cached distribution is write in described memory cell.If data cached data category belongs to the second classification, then by data cached one of them that write in described memory cell.
The present invention separately proposes a kind of data writing systems, and it comprises main frame and the first hard disc module, and wherein the first hard disc module is coupled to main frame.First hard disc module comprises Memory Controller and multiple memory cell, and described memory cell is coupled to Memory Controller respectively by data channel.Wherein, Memory Controller from host receives data cached, and judges data cached affiliated data category.If data cached data category belongs to first category, then data cached distribution Bing writes in described memory cell by Memory Controller.If data cached data category belongs to the second classification, then Memory Controller by data cached one of them that write in described memory cell.
Based on above-mentioned, method for writing data of the present invention, hard disc module and data writing systems, can according to data cached data category, and data cached distribution is write to multiple memory cell, or write to same memory cell by data cached, use and effectively promote data access speed, Bing extends the serviceable life of hard disc module.
For above-mentioned feature and advantage of the present invention can be become apparent, special embodiment below, Bing coordinates accompanying drawing explanation to be described in detail below.
Accompanying drawing explanation
Fig. 1 is the data writing systems calcspar illustrated according to one embodiment of the invention;
Fig. 2 is the method for writing data process flow diagram illustrated according to one embodiment of the invention;
Fig. 3 is the data writing systems calcspar illustrated according to one embodiment of the invention;
Fig. 4 is the method for writing data process flow diagram illustrated according to one embodiment of the invention.
Description of reference numerals:
1000,3000: data writing systems;
10,30: main frame;
100, the 300A: the first hard disc module;
110,310: Memory Controller;
121,122,123,124,321,322,323,324: memory cell;
300B: the second hard disc module;
CH1, CH2, CH3, CH4: data channel;
S202, S204, S206, S208, S402, S404, S406, S408, S410, S412, S414: each step of method for writing data.
Embodiment
In solid-state hybrid hard disk, generally data cachedly can be cached in solid state hard disc by higher for frequency of access, promote the data access speed of computer system entirety with the characteristic of the high data access speed by solid state hard disc.And for these accesses to data cached in solid state hard disc, based on use frequent degree, the data cached of usefulness guiding (Performance Orientation) can be distinguished into again further, and reliability guiding (Reliability Orientation) is data cached, wherein the data cached of usefulness guiding needs higher data access speed.If solid state hard disc can, according to above-mentioned data cached data category, write data cached with different writing modes, the serviceable life of data access speed and solid state hard disc certainly will can be taken into account.The present invention is the method for writing data, hard disc module and the data writing systems that propose based on above-mentioned viewpoint.In order to make content of the present invention more clear, below especially exemplified by the example that embodiment can be implemented really according to this as the present invention.
Fig. 1 is the data writing systems calcspar illustrated according to one embodiment of the invention.Please refer to Fig. 1, data writing systems 1000 comprises main frame 10 and the first hard disc module 100.
Main frame 10 is such as desktop computer, notebook computer, panel computer, personal digital assistant (personaldigital assistant, hereinafter referred to as PDA), mobile phone, digital camera, game machine, or the various electronic installation possessing calculation processing power, do not limit its kind at this Bing.In addition, main frame 10 has operating system and central processing unit (Central Processing Unit, hereinafter referred to as CPU), with the hardware of management host 10 and software resource.
First hard disc module 100 can as storing the spatial cache (cache space) placing various data cached (cache data), wherein the first hard disc module 100 is such as the flash memory device using flash memory (flash memory) as storing media, such as solid state hard disc (Solid State Disk, hereinafter referred to as SSD).In addition, the first hard disc module 100 can be arranged at the inside of main frame 10, and is electrically connected with main frame 10.Or, first hard disc module 100 also can utilize external mode and main frame 10 to be electrically connected, such as, by universal serial bus (Universal Serial Bus, hereinafter referred to as USB) etc. various bus-bar and main frame 10 be electrically connected etc., the present invention is not to its restriction.
First hard disc module 100 comprises Memory Controller 110 and multiple memory cell.For convenience of description, at this for memory cell 121,122,123 and 124, but the quantity of the present embodiment Bing not limits storage unit.
Memory Controller 110 can utilize embedded system chip (System On Chip, hereinafter referred to as SOC) realize, it is in order to perform with multiple logic lock of hardware pattern or firmware pattern implementation or steering order, Bing and according to the instruction of main frame 10 carry out in memory cell 121,122,123 and 124 data write, read and the running such as to erase.At this, data can be written into memory cell 121,122,123 and 124 according to the method for writing data of the present embodiment by Memory Controller 110.In addition, Memory Controller 110 can safeguard that a logic turns physical address mapping table (logical to physical addressmapping table), with the mapping relations of the logical address of record buffer memory data and physical address, and when main frame 10 is for accessing a certain logical address, Memory Controller 110 just can turn physical address mapping table according to logic, access data in the memory cell 121,122,123 and 124 of correspondence.
Memory cell 121,122,123 and 124 is such as single-order storage unit (Single LevelCell respectively, SLC) NAND type flash memory, multi-level cell memory (Multi Level Cell, hereinafter referred to as MLC) NAND type flash memory, three rank storage unit (Trinary Level Cell, hereinafter referred to as TLC) NAND type flash memory or other there is the type flash memory of identical characteristics.Wherein, (namely each storage unit of SLCNAND type flash memory can store the data of 1 bit, " 1 " and " 0 "), each storage unit of MLC NAND type flash memory can store the data of 2 bits, and each storage unit of TLCNAND type flash memory can store the data of 3 bits.In addition, memory cell 121,122,123 and 124 can be coupled to Memory Controller 110 respectively by data channel CH1, CH2, CH3 and CH4, and each memory cell 121,122,123 and 124 has the data that multiple physical blocks writes to store main frame 10.Each described physical blocks has multiple physical page respectively, and the physical page wherein belonging to same physical blocks can be written independently and side by side be erased.
In the present embodiment, when the first hard disc module 100 receives from host 10 data cached, Memory Controller 110 can judge this data cached belonging to data category.If this is data cached is belong to when very paying attention to reading speed (i.e. usefulness guiding) data cached, the execution shelves etc. of such as windows application program, then Memory Controller 110 can be data cached by this, write to different memory cells 121,122,123 and 124 by different data channel CH1, CH2, CH3 and CH4, use the usefulness of the high data access speed of performance first hard disc module 100.On the other hand, if this is data cached is belong to non-extreme to pay attention to the data cached of reading speed (i.e. reliability guiding), or this data cached file size exceedes preset value (such as 128KB), then Memory Controller 110 can be data cached by this, write in same memory cell by same data channel, use the serviceable life of prolongation first hard disc module 100 and promote reliability.
Under namely arrange in pairs or groups above-mentioned data writing systems 1000 so that each step of the method for writing data of the present embodiment to be described.Fig. 2 is the method for writing data process flow diagram illustrated according to one embodiment of the invention.Please refer to Fig. 1 and Fig. 2, in step S202, Memory Controller 110 receives data cached.In step S204, Memory Controller 110 can judge data cached affiliated data category.Specifically, the data category belonging to data cached, can be written into the writing mode of memory cell 121,122,123 and 124 according to data cached and be distinguished into first category or the second classification.That is, belong to the data cached of first category, device controller 110 can be stored distribute and write to memory cell 121,122,123 and 124, and other is data cached to belong to Equations of The Second Kind, device controller 110 can be stored and writes to one of them memory cell in memory cell 121,122,123 and 124.In the present embodiment, first category data cached is such as belong to the usefulness guiding of very paying attention to reading speed data cached, and Equations of The Second Kind other data cached be such as belong to non-extreme to pay attention to the data cached of the reliability guiding of reading speed.
It should be noted that, it is first category or the second classification that main frame 10 can set data cached affiliated data category, use setting any data cached be will be stored device controller 110 distribute and write to different memory cells 121,122,123 and 124, or be stored device controller 110 and write to same memory cell.For example, main frame 10 according to data cached file type, file size, frequency of utilization etc., can set data cached data category.Such as, be the execution shelves etc. of windows application program if data cached, then can be set as first category by main frame 10; If data cached, for user's file, (such as its file layout is *.docx, *.pdf or *.xlsx etc.), because described file by frequent probability of opening is less continuously, therefore can be set as the second classification by main frame 10.Again such as, if data cached file size is not more than 128KB, then can be set as first category by main frame 10; If data cached file size is more than 128KB, then can be set as the second classification by main frame 10.Certainly, main frame 10 also can according to the setting of user, very payes attention to the data cached of reading speed be set as first category by belonging to, and the buffer memory money belonging to non-extreme and pay attention to reading speed is set as the second classification.The setting means of above-mentioned data cached data category is for illustrating, the present embodiment is not limited to this.
In the present embodiment, main frame 10 according to data cached file type, file size, frequency of utilization etc., can mark different mark value in data cached predetermined bit, uses the data cached affiliated data category of setting.Thus, Memory Controller 110 just according to the mark value in data cached predetermined bit, can judge that this data cached affiliated data category is first category or the second classification.For example, if the mark value that main frame 10 sets data cached predetermined bit is the first value, such as, be " 0 ", then Memory Controller 110 can judge that data cached affiliated data category is first category.On the other hand, if the mark value that main frame 10 sets data cached predetermined bit is the second value, such as, be " 1 ", then Memory Controller 110 can judge that data cached affiliated data category is the second classification.It must be appreciated, the mark value of the present embodiment is not limited to " 0 " or " 1 ", and Memory Controller 110 also according to data cached middle other marked any aspects, can judge that data cached affiliated data category is first category or the second classification.
Then, in step S204, if Memory Controller 110 judges that data cached data category belongs to first category, then as shown in step S206, Memory Controller 110 is understood data cached distribution and is write in memory cell 121,122,123 and 124.At this, Memory Controller 110 can turn physical address mapping table according to logic, obtain data cached multiple logical addresses (such as, LBA (Logical Block Addressing) (logical block address, hereinafter referred to as LBA) corresponding to multiple first physical addresss, wherein these first physical addresss belong to different memory cells 121,122,123 and 124 respectively.Bing and, Memory Controller 110 can will correspond to multiple data slots of above-mentioned logical address in data cached, according to above-mentioned first physical address, write in different memory cells 121,122,123 and 124 by each data channel CH1, CH2, CH3 and CH4.
For example, beneath table one is illustrate that logic turns the logical address of physical address mapping table and the mapping relations of the first physical address.Please refer to table, suppose data cached in data slot correspond respectively to logical address L (100), L (101), L (102) and L (103), and logical address L (100), L (101), L (102) and L (103) are mapped to the first physical address P (201), P (301), P (401) and P (501) respectively, wherein the first physical address P (201), P (301), P (401) and P (501) sequentially belong to memory cell 121,122,123 and 124.At this, the data slot that Memory Controller 110 can will be positioned on logical address L (100), L (101), L (102) and L (103), according to the first physical address P (201), P (301), P (401) and P (501), and write to memory cell 121,122,123 and 124 respectively.In other words, suppose that data cached file size is 10MB, then Memory Controller 110 can divide into four number certificates by data cached, and wherein the file size of each number certificate is such as 2.5MB, or each number is according to having different file sizes.Bing and, Memory Controller 110 can by this four number according to writing to respectively in memory cell 121,122,123 and 124.Thus, according to the concept that data are distributed, Memory Controller 110 by each data channel CH1, CH2, CH3 and CH4, fast and parallelization ground writes to different memory cells 121,122,123 and 124 by data cached.In addition, when main frame 10 is data cached for reading in the first hard disc module 100, Memory Controller 110 is just by each data channel CH1, CH2, CH3 and CH4, and parallelization ground reads the data cached each data slot being scattered in memory cell 121,122,123 and 124.By this, Memory Controller 110 can improve the speed of accessed cache data.
Table one
Logical address First physical address
L(100) P(201)
L(101) P(301)
L(102) P(401)
L(103) P(501)
It should be noted that, in step S204, the present embodiment does not limit the data cached all memory cells writing to the first hard disc module 100 and have, that is, as long as the data slot in data cached can be written into the plural memory cell in the first hard disc module 100 respectively, all belong to category of the present invention.In addition, in order to promote the speed of accessed cache data, Memory Controller 110 can according to the number of memory cell, by average data cached/non-multiple memory cells being dispensed to the first hard disc module 100 fifty-fifty and having.
On the other hand, if Memory Controller 110 judges that data cached data category belongs to the second classification, then as shown in step S208, Memory Controller 110 can by data cached one of them memory cell write in memory cell 121,122,123 and 124.At this, Memory Controller 110 can turn physical address mapping table according to logic, obtain data cached multiple logical addresses distinguish corresponding multiple second physical addresss, wherein these second physical addresss belong to one of them memory cell (representing with memory cell P) in memory cell 121,122,123 and 124.Bing and, Memory Controller 110 by the multiple data slots in data cached, according to the second physical address, can write in memory cell P.
For example, beneath table two is illustrate that logic turns the logical address of physical address mapping table and the mapping relations of the second physical address.Please refer to table two, suppose data cached in data slot correspond respectively to logical address L (100), L (101), L (102) and L (103), and logical address L (100), L (101), L (102) and L (103) are mapped to the second physical address P (201), P (202), P (203) and P (204) respectively, wherein suppose that the second physical address P (201), P (202), P (203) and P (204) all belong to memory cell 121.At this, the data slot that Memory Controller 110 can will be positioned on logical address L (100), L (101), L (102) and L (103), according to the second physical address P (201), P (202), P (203) and P (204), and write in memory cell 121.In other words, suppose that data cached file size is 10MB, then the data cached of whole 10MB can be write to memory cell 121 by Memory Controller 110.Thus, due to write in same memory cell data cached can be continuous and complete, therefore for the first hard disc module 100, scratch space (fragmented space) can be reduced produce, Bing reduces frequency and the cost of garbage reclamation (Garbage Collection, hereinafter referred to as GC).By this, the present embodiment can reduce the number of times of erasing (Erase count) of the storage unit in the first hard disc module 100, Bing effectively suppresses write amplification factor (Write Amplification Factor, hereinafter referred to as WAF), and then extend the serviceable life of the first hard disc module 100, and improve the reliability of the first hard disc module 100.
Table two
Logical address Second physical address
L(100) P(201)
L(101) P(202)
L(102) P(203)
L(103) P(204)
Based on above-mentioned, Memory Controller 110 can according to data cached data category, with different writing modes, data cached the breaing up belonging to first category (such as usefulness guiding) is write in memory cell 121,122,123 and 124, and write to an identical memory cell by belonging to the data cached of the second classification (such as reliability guiding).Thus, when access usefulness guiding data cached time, the first hard disc module 100 can provide higher data access speed, and when access reliability guiding data cached time, the first hard disc module 100 can effectively suppress write amplification factor.By this, the present embodiment can take into account the serviceable life of data access speed and the first hard disc module 100 simultaneously.
Fig. 3 is the data writing systems calcspar illustrated according to one embodiment of the invention.Please refer to Fig. 3, data writing systems 3000 comprises main frame 30, first hard disc module 300A and the second hard disc module 300B, and wherein the data access speed of the first hard disc module 300A can higher than the second hard disc module 300B.In the present embodiment, the main frame 10 in the function of main frame 30 and the first hard disc module 300A and previous embodiment and the first hard disc module 100 same or similar, therefore not repeat them here.
With previous embodiment unlike, data writing systems 3000 is more configured with the second hard disc module 300B.Second hard disc module 300B is such as the disk storage unit using disk as storing media, such as hard disk (Hard Disk Drive, hereinafter referred to as HDD).In addition, second hard disc module 300B can with the first hard disc module 300A, be integrated into a data memory device combined by any two or plural Storage Media of different pieces of information access speed, such as solid-state hybrid hard disk (Solid StateHybrid Drive, hereinafter referred to as SSHD), store various data for user.In the present embodiment, because the data access speed of the first hard disc module 300A is higher than the data access speed of the second hard disc module 300B, therefore, first hard disc module 300A can place various data cached spatial cache as storage, and the second hard disc module 300B can as the basic storage area storing most data.
Under namely arrange in pairs or groups above-mentioned data writing systems 3000 so that each step of the method for writing data of the present embodiment to be described.Fig. 4 is the method for writing data process flow diagram illustrated according to one embodiment of the invention.Please refer to Fig. 3 and Fig. 4, in step S402, main frame 30 can obtain the data access types for write data.Wherein, main frame 30 is such as according to for the write file type of data, file size, frequency of utilization or write instruction etc., uses the data access types judged for write data, whether belongs to higher data cached of data access speed.In step S404, main frame 30 can according to the data type for write data, and selection will write to the first hard disc module 300A or the second hard disc module 300B for write data.If do not belong to data cached for write data, then as shown in step S406, main frame 30 can write to the second hard disc module 300B for write data.At this, because the second hard disc module 300B can provide higher storage volume, therefore the demand of user to storage volume can be met.
On the other hand, if belong to data cached for write data, then as shown in step S408, main frame 30 can write to the first hard disc module 300A for write data, uses and provides higher data access speed.Then, in step S410, the Memory Controller 310 in the first hard disc module 300A can judge data cached affiliated data category.Further, if Memory Controller 310 judges that data cached data category belongs to first category, then as shown in step S412, Memory Controller 410 is understood data cached distribution and is write to memory cell 421,422,423 and 424.On the other hand, if Memory Controller 310 judges that data cached data category belongs to the second classification, then as shown in step S414, Memory Controller 410 can by data cached one of them memory cell write in memory cell 421,422,423 and 424.Step S202 ~ the S208 of above-mentioned step S408 ~ S414 and previous embodiment is same or similar, therefore does not repeat them here.
In the present embodiment, main frame 30 can suitably be selected will write to the first hard disc module 300A or the second hard disc module 300B for write data, plays the advantage of dissimilar hard disc module accordingly.In addition, write data more can be classified by the first hard disc module 300A further, data to be write in the different memory unit 421,422,423 and 424 in the first hard disc module 300A distributively or same memory cell.By this, the present embodiment can be taken into account data access speed simultaneously and extend the serviceable life of the first hard disc module 300A.
To sum up above-mentioned, in the method for writing data of the present embodiment, hard disc module and data writing systems, main frame can according to the data access types for write data by the data cached hard disc module write to using storer as storing media.Wherein, the Memory Controller of hard disc module can according to data cached data category, judge further this data cached be belong to the data cached of usefulness guiding (i.e. first category) or belong to reliability to lead the data cached of (i.e. the second classification).Bing and, the concept that Memory Controller can utilize data to distribute data cachedly writes to different memory cells by what belong to usefulness guiding, and writes to same memory cell in proper order by belonging to the data cached of reliability guiding.Thus, when hard disc module access usefulness guiding data cached time, hard disc module can provide higher data access speed, and when hard disc module access reliability guiding data cached, hard disc module can effectively suppress write amplification factor.By this, the present invention can take into account the serviceable life of data access speed and hard disc module simultaneously.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that programmed instruction is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (16)

1. a method for writing data, is applicable to a hard disc module, and wherein this hard disc module comprises multiple memory cell, it is characterized in that, comprising:
Receive one data cached;
Judge this data cached affiliated data category;
If this this data cached data category belongs to a first category, then this data cached distribution is write in those memory cells; And
If this this data cached data category belongs to one second classification, then by this one of them writing in those memory cells data cached.
2. method for writing data according to claim 1, is characterized in that, is judging that the step of this data cached this affiliated data category comprises:
According to a mark value, judge this data cached this affiliated data category;
If this mark value belongs to one first value, then judge that this data cachedly belongs to this first category; And
If this mark value belongs to one second value, then judge that this data cachedly belongs to this second classification.
3. method for writing data according to claim 2, is characterized in that, this mark value is decided by this data cached file type, file size or frequency of utilization.
4. method for writing data according to claim 1, is characterized in that, if this this data cached data category belongs to this first category, then by this data cached distribution and the step write in those memory cells comprise:
Turn physical address mapping table according to a logic, obtain multiple first physical addresss corresponding to these data cached multiple logical addresses, wherein those first physical addresss belong to those different memory cells; And
Multiple data slots during this is data cached, according to those the first physical addresss, write in those memory cells.
5. method for writing data according to claim 1, is characterized in that, if this this data cached data category belongs to this second classification, then comprises in the step of one of them write in those memory cells that this is data cached:
Turn physical address mapping table according to a logic, obtain multiple second physical addresss corresponding to these data cached multiple logical addresses, wherein those second physical addresss belong to one of them in those memory cells; And
Multiple data slots during this is data cached, according to those the second physical addresss, write in this memory cell.
6. a hard disc module, is characterized in that, comprising:
One Memory Controller; And
Multiple memory cell, those memory cells are coupled to this Memory Controller respectively by a data channel, wherein this Memory Controller receives one data cached, Bing judges this data cached affiliated data category, if this this data cached data category belongs to a first category, then this data cached distribution is write in those memory cells, if and this this data cached data category belongs to one second classification, then by this one of them writing in those memory cells data cached.
7. hard disc module according to claim 6, this Memory Controller is according to a mark value, judge this data cached this affiliated data category, it is characterized in that, if this mark value belongs to the first value, then this Memory Controller judges that this data cachedly belongs to this first category, and if this mark value belong to the second value, then this Memory Controller judges that this data cachedly belongs to this second classification.
8. hard disc module according to claim 7, is characterized in that, this mark value is decided by this data cached file type, file size, frequency of utilization or a preset value.
9. hard disc module according to claim 6, it is characterized in that, if this this data cached data category belongs to this first category, then this Memory Controller turns physical address mapping table according to a logic, obtain multiple first physical addresss corresponding to these data cached multiple logical addresses, wherein those first physical addresss belong to those different memory cells, and this Memory Controller this is data cached in multiple data slots, according to those the first physical addresss, write in those memory cells.
10. hard disc module according to claim 6, it is characterized in that, if this this data cached data category belongs to this second classification, then this Memory Controller turns physical address mapping table according to a logic, obtain multiple second physical addresss corresponding to these data cached multiple logical addresses, wherein those second physical addresss belong to one of them in those memory cells, and this Memory Controller this is data cached in multiple data slots, according to those the second physical addresss, write in this memory cell.
11. 1 kinds of data writing systems, is characterized in that, comprising:
One main frame; And
One first hard disc module, be coupled to this main frame, this first hard disc module comprises a Memory Controller and multiple memory cell, and those memory cells are coupled to this Memory Controller respectively by a data channel, wherein this Memory Controller receives one data cached from this main frame, and judge this data cached affiliated data category, if this this data cached data category belongs to a first category, then this data cached distribution Bing writes in those memory cells by this Memory Controller, if and this this data cached data category belongs to one second classification, then this Memory Controller is by this one of them writing in those memory cells data cached.
12. data writing systems according to claim 11, it is characterized in that, this Memory Controller is according to a mark value, judge this data cached this affiliated data category, if this mark value belongs to one first value, then this Memory Controller judges that this data cachedly belongs to this first category, and if this mark value belong to one second value, then this Memory Controller judges that this data cachedly belongs to this second classification.
13. data writing systems according to claim 12, is characterized in that, this mark value is decided by this data cached file type, file size, frequency of utilization or a preset value.
14. data writing systems according to right characteristic 11, it is characterized in that, if this this data cached data category belongs to this first category, then this Memory Controller turns physical address mapping table according to a logic, obtain multiple first physical addresss corresponding to these data cached multiple logical addresses, wherein those first physical addresss belong to those different memory cells, and this Memory Controller this is data cached in multiple data slots, according to those the first physical addresss, write in those memory cells.
15. data writing systems according to right characteristic 11, it is characterized in that, if this this data cached data category belongs to this second classification, then this Memory Controller turns physical address mapping table according to a logic, obtain multiple second physical addresss corresponding to these data cached multiple logical addresses, wherein those second physical addresss belong to one of them in those memory cells, and this Memory Controller this is data cached in multiple data slots, according to those the second physical addresss, write in this memory cell.
16. data writing systems according to right characteristic 11, is characterized in that, also comprise:
One second hard disc module, be coupled to this main frame, and a data access speed of this first hard disc module is higher than this second hard disc module, wherein this main frame judges whether one belong to for the data access types of write data that this is data cached, if this wish write data belong to, this is data cached, then this wish write data are write to this first hard disc module by this main frame, if this wish write data do not belong to, this is data cached, then this wish is write data and writes to this second hard disc module by this main frame.
CN201310384445.XA 2013-08-29 2013-08-29 Data writing method, disk module and data writing system Pending CN104423892A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310384445.XA CN104423892A (en) 2013-08-29 2013-08-29 Data writing method, disk module and data writing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310384445.XA CN104423892A (en) 2013-08-29 2013-08-29 Data writing method, disk module and data writing system

Publications (1)

Publication Number Publication Date
CN104423892A true CN104423892A (en) 2015-03-18

Family

ID=52973008

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310384445.XA Pending CN104423892A (en) 2013-08-29 2013-08-29 Data writing method, disk module and data writing system

Country Status (1)

Country Link
CN (1) CN104423892A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775488A (en) * 2016-12-27 2017-05-31 维沃移动通信有限公司 The storage method and mobile terminal of a kind of file
CN111373381A (en) * 2017-10-23 2020-07-03 美光科技公司 Host acceleration operation in managed NAND devices
CN115657972A (en) * 2022-12-27 2023-01-31 北京特纳飞电子技术有限公司 Solid state disk writing control method and device and solid state disk

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5724552A (en) * 1993-07-16 1998-03-03 Kabushiki Kaisha Toshiba Disk array management unit for distributively recording data in a plurality of disks depending on the data access frequency
US20090006725A1 (en) * 2006-12-15 2009-01-01 Takafumi Ito Memory device
TW201042640A (en) * 2009-05-27 2010-12-01 Waremax Electronics Corp Hard disk drive device capable of increasing the execution efficiency, and its read/write method
CN101968754A (en) * 2009-07-27 2011-02-09 英业达股份有限公司 Disk array reconstruction method
CN102023809A (en) * 2009-09-21 2011-04-20 成都市华为赛门铁克科技有限公司 Storage system, method for reading data from storage system and method for writing data to storage system
US20110196833A1 (en) * 2010-02-09 2011-08-11 Alexandre Drobychev Storage of Data In A Distributed Storage System

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5724552A (en) * 1993-07-16 1998-03-03 Kabushiki Kaisha Toshiba Disk array management unit for distributively recording data in a plurality of disks depending on the data access frequency
US20090006725A1 (en) * 2006-12-15 2009-01-01 Takafumi Ito Memory device
TW201042640A (en) * 2009-05-27 2010-12-01 Waremax Electronics Corp Hard disk drive device capable of increasing the execution efficiency, and its read/write method
CN101968754A (en) * 2009-07-27 2011-02-09 英业达股份有限公司 Disk array reconstruction method
CN102023809A (en) * 2009-09-21 2011-04-20 成都市华为赛门铁克科技有限公司 Storage system, method for reading data from storage system and method for writing data to storage system
US20110196833A1 (en) * 2010-02-09 2011-08-11 Alexandre Drobychev Storage of Data In A Distributed Storage System

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775488A (en) * 2016-12-27 2017-05-31 维沃移动通信有限公司 The storage method and mobile terminal of a kind of file
CN111373381A (en) * 2017-10-23 2020-07-03 美光科技公司 Host acceleration operation in managed NAND devices
US10936250B2 (en) 2017-10-23 2021-03-02 Micron Technology, Inc. Host accelerated operations in managed NAND devices
CN111373381B (en) * 2017-10-23 2021-10-26 美光科技公司 Host acceleration operation in managed NAND devices
US11385838B2 (en) 2017-10-23 2022-07-12 Micron Technology, Inc. Host accelerated operations in managed NAND devices
CN115657972A (en) * 2022-12-27 2023-01-31 北京特纳飞电子技术有限公司 Solid state disk writing control method and device and solid state disk

Similar Documents

Publication Publication Date Title
US9098395B2 (en) Logical block management method for a flash memory and control circuit storage system using the same
US8892814B2 (en) Data storing method, and memory controller and memory storage apparatus using the same
US8090900B2 (en) Storage device and data management method
US9372802B2 (en) Data writing method, hard disc module, and data writing system
US9665481B2 (en) Wear leveling method based on timestamps and erase counts, memory storage device and memory control circuit unit
US9880742B2 (en) Valid data merging method, memory controller and memory storage apparatus
US20090172255A1 (en) Wear leveling method and controller using the same
US8489942B1 (en) Memory management method, and memory controller and memory storage device using the same
CN111158579B (en) Solid state disk and data access method thereof
US9141530B2 (en) Data writing method, memory controller and memory storage device
US10620874B2 (en) Memory management method, memory control circuit unit and memory storage apparatus
US10283196B2 (en) Data writing method, memory control circuit unit and memory storage apparatus
US8037236B2 (en) Flash memory writing method and storage system and controller using the same
US9946476B2 (en) Memory management method, memory control circuit unit and memory storage apparatus
CN105278875A (en) Hybrid heterogeneous NAND solid state device
TW201339958A (en) Memory controller, memory storage device, and method for writing data
KR20220077573A (en) Memory system and operation method thereof
US20130332653A1 (en) Memory management method, and memory controller and memory storage device using the same
US8943264B2 (en) Data storing method, and memory controller and memory storage apparatus using the same
US9298610B2 (en) Data writing method, memory control circuit unit and memory storage apparatus
CN110471612B (en) Memory management method and memory controller
US20140089566A1 (en) Data storing method, and memory controller and memory storage apparatus using the same
CN112230849B (en) Memory control method, memory storage device and memory controller
CN104423892A (en) Data writing method, disk module and data writing system
US9778862B2 (en) Data storing method for preventing data losing during flush operation, memory control circuit unit and memory storage apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150318

WD01 Invention patent application deemed withdrawn after publication