CN107025061A - The access method of combined type hard disk - Google Patents

The access method of combined type hard disk Download PDF

Info

Publication number
CN107025061A
CN107025061A CN201610061995.1A CN201610061995A CN107025061A CN 107025061 A CN107025061 A CN 107025061A CN 201610061995 A CN201610061995 A CN 201610061995A CN 107025061 A CN107025061 A CN 107025061A
Authority
CN
China
Prior art keywords
storage device
data
cache storage
hard disk
combined type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610061995.1A
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.)
Himelight Technologies Co ltd
Original Assignee
Himelight Technologies Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Himelight Technologies Co ltd filed Critical Himelight Technologies Co ltd
Priority to CN201610061995.1A priority Critical patent/CN107025061A/en
Publication of CN107025061A publication Critical patent/CN107025061A/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/0614Improving the reliability of storage systems
    • G06F3/0616Improving the reliability of storage systems in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • G06F3/0611Improving I/O performance in relation to response time
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/065Replication mechanisms
    • 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/0683Plurality of storage devices
    • G06F3/0685Hybrid storage combining heterogeneous device types, e.g. hierarchical storage, hybrid arrays

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 discloses a kind of access method of combined type hard disk, apply to the combined type hard disk with main storage device and cache storage device.When the data that combined type hard disk Receiving Host writes, cache storage device is preferentially write data into.Combined type hard disk judges whether the capacity for having stored data in cache storage device exceedes door capacity, and when the capacity for having stored data exceedes door capacity, the data syn-chronization of storage beyond part is stored to main storage device.When combined type hard disk persistently write data into the capacity of cache storage device and cache storage device completely when, synchronized data is preferentially deleted from cache storage device, to make new data to be written into cache storage device.

Description

The access method of combined type hard disk
Technical field
The present invention relates to the access method of combined type hard disk, more particularly to combined type hard disk.
Background technology
In existing electronic installation, user must store numerical data by hard disk (Hard-disk Drive, HDD).
Specifically, 7200 turns of general (Revolution Per Minute, RPM disk hard disk) is about 75 IOPS to 100 IOPS in IOPS (Input/Output Operations Per Second) average value under arbitrary access processing, solid state hard disc (Solid State Disk, SSD) is about 20K IOPS to 100K IOPS in the IOPS average values under arbitrary access processing.Because the IOPS average values of solid state hard disc are far above disk hard disk, therefore disk hard disk is gradually eliminated by market.
Above-mentioned solid state hard disc is mainly constituted with non-voltile memory, however, the access efficiency of volatile memory is more better than non-voltile memory in fact.With double data rate SDRAM (Double Data Rate Synchronous Dynamic Random Access Memory, DDR SDRAM) exemplified by, DDR SDRAM are about 200K IOPS to 260K IOPS in the IOPS average values under arbitrary access processing.
In view of this, in the market is it has been proposed that the hybrid hard disk that solid state hard disc (or disk hard disk) and DDR SDRAM are integrated, this kind of hybrid hard disk has than traditional single solid state hard disc or the single faster data access speed of disk hard disk.
Seen hybrid hard disk, is typically when user operates, first to write data into DDR SDRAM, to obtain quick writing speed at present.Also, write before main frame or the hybrid hard disk are powered off, then by the data in DDR SDRAM in solid state hard disc, to ensure that data will not disappear after a loss of power.
However, with the lifting of data volume, DDR usually occurs The phenomenon of SDRAM off-capacity.In in this case, the controller of the hybrid hard disk directly need to be write data into solid state hard disc, thus, it will cause the problem of write-in/reading speed of data declines to a great extent, and then user can be brought not good usage experience.
The content of the invention
In view of this, the main object of the present invention, is to provide a kind of access method of combined type hard disk, it is possible to decrease main storage device is by the number of times of host accessing, while lifting the overall access speed of combined type hard disk.
In order to reach above-mentioned purpose, the present invention provides a kind of access method of combined type hard disk, and the combined type hard disk includes a main storage device and a cache storage device, and the access method includes:
A) data of a main frame are received, the wherein combined type hard disk connects the main frame by a main bus and receives the data;
B) the cache storage device is write the data into, wherein the cache storage device is constituted with volatile memory;
C) judge the capacity for having stored data in the cache storage device whether more than a door capacity;And
If d) capacity for having stored data exceedes the door capacity, it will store data syn-chronization beyond part this and stored to the main storage device.
As described above, wherein further including the following steps:
E) judge whether the cache storage device is full;
If f) the cache storage device is full, the synchronized data of part is deleted in the cache storage device;And
G) the cache storage device write the data into after deleting.
As described above, wherein the cache storage device writes the data with method of first-in, first-out (First In First Out, FIFO).
As described above, wherein the cache storage device records the utilization rate of the synchronized data, and in step f, the cache storage device retains the synchronized data that utilization rate is higher than a setting value.
As described above, wherein further including the following steps:
H) judge whether the cache storage device is full;
I) when the cache storage device is expired, judge whether the quantity of the synchronized data in the cache storage device is more than a threshold value;And
If j) quantity of the synchronized data is more than the threshold value, the synchronized data of part is deleted in the cache storage device, and the cache storage device write the data into after deleting.
As described above, wherein further including the following steps:
K) after step i, if the quantity of the synchronized data is less than the threshold value, the data are write direct into the main storage device.
As described above, wherein the main storage device is solid state hard disc (Solid State Disk, SSD), the cache storage device is by double data rate SDRAM (Double Data Rate Synchronorus Dynamic Random Access Memory, DDR SDRAM) constitute.
As described above, wherein the door capacity is the half of the total capacity of the cache storage device.
As described above, wherein the combined type hard disk further includes a bridge-jointing unit and a cache control unit, the bridge-jointing unit connects the main frame by the main bus and receives the data, and the main storage device and the cache storage device are connected by two devices bus respectively, to write the data into the main storage device or the cache storage device respectively, the cache control unit connects the cache storage device, control the cache storage device that this has been stored into data syn-chronization to store to the main storage device, and delete the synchronized data of part.
As described above, wherein the main bus and the two devices bus are that serial high-tech configures (Serial Advanced Technology Attachment, SATA) bus.
The present invention retains asynchronous not less than the data of the part of the door capacity into the main storage device in the cache storage device, the number of times that the main storage device is written into can be reduced whereby, and then extend the life-span of the main storage device.In addition, high priority data in the cache storage device more than the part of the door capacity is synchronized in the main storage device by the present invention, it can improve whereby in the cache storage device and there is the probability of synchronized data (i.e., the probability (write-in hit rate) in the cache storage device can be written into by improving data), and then lift the overall access speed of the combined type hard disk.
Brief description of the drawings
Fig. 1 is the combined type hard disk block diagram of the first specific embodiment of the present invention;
Fig. 2A writes schematic diagram for the first data of the first specific embodiment of the present invention;
Fig. 2 B write schematic diagram for the second data of the first specific embodiment of the present invention;
Fig. 2 C write schematic diagram for the 3rd data of the first specific embodiment of the present invention;
Fig. 2 D write schematic diagram for the 4th data of the first specific embodiment of the present invention;
Fig. 2 E write schematic diagram for the 5th data of the first specific embodiment of the present invention;
Fig. 3 accesses flow chart for the cache storage device of the first specific embodiment of the present invention;
Fig. 4 accesses flow chart for the cache storage device of the second specific embodiment of the present invention;
Fig. 5 A write schematic diagram for the first data of the second specific embodiment of the present invention;
Fig. 5 B write schematic diagram for the second data of the second specific embodiment of the present invention.
Description of reference numerals
1 ... main frame;
10 ... main buses;
2 ... combined type hard disks;
21 ... bridge-jointing units;
22 ... main storage devices;
220 ... device buses;
23 ... cache storage devices;
230 ... device buses;
231 ... door capacity;
24 ... CPU;
25 ... cache control units;
31 ... have stored data;
32 ... synchronized datas;
S10 ~ S20 ... access steps;
S30 ~ S42 ... access steps.
Embodiment
Hereby with regard to preferable embodiment, coordinate accompanying drawing, describe in detail as after.
It is the combined type hard disk block diagram of the first specific embodiment of the present invention refering to Fig. 1.The invention discloses a kind of access method of combined type hard disk (hereinafter simply referred to as this method), this method applies to a combined type hard disk 2 as shown in Figure 1.
The combined type hard disk 2 mainly includes a bridge-jointing unit 21, a main cache storage device 23 of storage device 22 and one.The main storage device 22 can be mainly disk hard disk (magnetic hard-disk Drive, HDD) or solid state hard disc (Solid State Disk, SSD), and the cache storage device 23 is made up of volatile memory.More specifically, the cache storage device 23 is by double data rate SDRAM (Double Data Rate Synchronorus Dynamic Random Access Memory, DDR SDRAM) constituted, but be not limited.
The bridge-jointing unit 21 connects a main frame 1 of outside by a main bus 10, and the main storage device 22 and the cache storage device 23 are connected by two devices bus 220,230 respectively, the main frame storage device 22 or the cache storage device 23 are respectively written into so as to the data for transmitting the main frame 1.In the present embodiment, the main bus 10 and the two devices bus 220,230 are that serial high-tech configures (Serial Advanced Technology Attachments, SATA) bus, but be not limited.
The combined type hard disk 2 also has a CPU 24 and a cache control unit 25, in the present embodiment, the bridge-jointing unit 21, the CPU 24 and the cache control unit 25 can be integrated in single IC for both (Integrated Circuit, IC in), but it is not limited.
The CPU 24 is electrically connected with the bridge-jointing unit 21.In the present embodiment, the bridge-jointing unit 21 is informed in the address of various data by the CPU 24.Whereby, when the bridge-jointing unit 21 receives data or the instruction that the main frame 1 is transmitted via the main bus 10, it may determine that and store received data to the main storage device 22 or the cache storage device 23, and judge to read the main storage device 22 or the cache storage device 23 according to the instruction received.
In the present invention, the writing speed of the cache storage device 23 is far above the writing speed of the main storage device 22, therefore, before the cache storage device 23 is not yet full, the bridge-jointing unit 21 can be preferentially write data into the cache storage device 23, to obtain optimal writing speed.In addition, the data reading speed of the cache storage device 23 is equally higher than the data reading speed of the main storage device 22, therefore, the probability of data of the combined type hard disk 2 needed for the cache storage device 23 finds the main frame 1 is higher (i.e., hit rate (hit rate) is higher), then the combined type hard disk 2 just has optimal reading speed.
The cache control unit 25 connects the cache storage device 23, to control the cache storage device 23 to store the data syn-chronization stored into the main storage device 22, and the cache storage device 23 is controlled to delete the synchronous data (being detailed later) in part.
It is respectively the first data write-in schematic diagram, the second data write-in schematic diagram, the 3rd data write-in schematic diagram, the 4th data write-in schematic diagram and the 5th data write-in schematic diagram of the first specific embodiment of the present invention please refer to Fig. 2A to Fig. 2 E.
First as shown in Figure 2 A, in the present invention, the cache storage device 23 acquiescence has a door capacity 231.In a preferred embodiment, the door capacity 231 is the half of the total capacity of the cache storage device 23, and the total capacity of the cache storage device 23 is preferably a quarter of the total capacity of the main storage device 22.For example, the main storage device 22 can be 256G solid state hard disc, and the cache storage device 23 can be 64G DDR SDRAM, and the door capacity 231 may be set to 32G.However, the specific implementation example of the present invention is above are only, should not be as limit.
As shown in Figure 2 B, when the combined type hard disk 2 receives the data of the main frame 1 write-in, the combined type hard disk 2 preferentially writes the data into the cache storage device 23, and the data are changed into the data of storage 31 in the cache storage device 23.
Then as shown in Figure 2 C, before the cache storage device 23 is fully written, the combined type hard disk 2 can continue to write direct the data to be write of main frame 1 in the cache storage device 23.And as shown in Figure 2 D, when the capacity that those in the cache storage device 23 have stored data 31 exceedes the door capacity 231, the combined type hard disk 2 can control the cache storage device 23 by the cache control unit 25, so that the synchronous storage of data 31 will have been stored into the main storage device 22 more than this of the part of the door capacity 231, with the synchronized data 32 being changed into the cache storage device 23.
Then, as shown in Figure 2 E, while those have been stored the synchronous storage of data 31 to main storage device 22 by the cache storage device 23, the combined type hard disk 2 is still sustainable to receive the data of the main frame 1, and writes the data into the cache storage device 23.In other words, those have stored data 31 and the foundation of those synchronized datas 32 can be while carry out.
It is noted that in the present embodiment, the cache storage device 23 only can will store the synchronous storage of data 31 to the main storage device 22 more than this of the part of the door capacity 231, to be changed into the synchronized data 32.For example, if the total capacity of the cache storage device 23 is 64G and the door capacity 231 is 32G, then before those have stored the capacity of data 31 also not above 32G, the cache storage device 23 will not store those synchronous storage of data 31 to the main storage device 22.If those capacity for having stored data 31 are 33G, the older 1G data syn-chronizations that the cache storage device 23 can have only been stored those in data 31 are stored to the main storage device 22, and remaining 32G data will not be in being now written into the main storage device 22.
In the present invention, if the cache storage device 23 has been fully written, then because those synchronized datas 32 are already present in the main storage device 22, therefore the combined type hard disk 2 is prior to the synchronized data 32 of deletion part in the cache storage device 23, to make new data to be written into the cache storage device 23.
It is the cache storage device access flow chart of the first specific embodiment of the present invention refering to Fig. 3.This method of the present invention mainly applies to the combined type hard disk 2 disclosed by Fig. 1, and possesses the following steps.
First, the combined type hard disk 2 judges whether the main frame 1 has data to transmit (step S10), and when the main frame 1 has data to transmission, the data (step S12) that the main frame 1 is transmitted are received by the bridge-jointing unit 21, also, directly write the data into the cache storage device 23 (step S14).In the present embodiment, the bridge-jointing unit 21 is to receive the data by the main bus 10, and writes the data into the cache storage device 23 by the device bus 230.
While the data write the cache storage device 23, the combined type hard disk 2 judges whether those capacity for having stored data 31 in the cache storage device 23 exceed the door capacity 231 (step S16) by the cache control unit 25.If those capacity for having stored data 31 have not exceeded the door capacity 231, then the cache control unit 25 does not carry out any processing to the data in the cache storage device 23, and return to step S10, judge whether the main frame 1 has data to transmission with lasting, the data of transmission are write in the cache storage device 23, and the data are changed into those parts for having stored data 31.
If those capacity for having stored data 31 exceed the door capacity 231, then the cache control unit 25 controls the cache storage device 23 to store the synchronous storage of data 31 to the main storage device 22 (step S18) beyond those of the part of the door capacity 231, with a part for those synchronized datas 32 being changed into the cache storage device 23.
After step S18, the combined type hard disk 2 judges whether the data in the cache storage device 23 beyond the door capacity 231 have all synchronously completed (step S20) by the cache control unit 25.If not yet synchronously completing, step S18 is returned to, with lasting progress data syn-chronization program.If synchronously completing, step S10 is returned, judges whether the main frame 1 has data to transmission with lasting.
It is worth mentioning that, the cache storage device 23 can be during data writing program be performed, data syn-chronization program is performed simultaneously, untill all data beyond the door capacity 231 all write the main storage device 22 and are changed into a part for those synchronized datas 32.
Continue referring to Fig. 4, being the cache storage device access flow chart of the second specific embodiment of the present invention.Be with the difference of foregoing first specific embodiment, the present embodiment further consider the cache storage device 23 be fully written after access mode.
As shown in figure 4, the combined type hard disk 2 first receives the data (step S30) of the main frame 1 transmission by the bridge-jointing unit 21, also, first judge whether the cache storage device 23 has been fully written (step S32).If the cache storage device 23 is not yet fully written, the bridge-jointing unit 21 directly writes the data into the cache storage device 23 (step S34), and the data are changed into those parts for having stored data 31.
It is noted that in the present invention, the cache storage device 23 is mainly using method of first-in, first-out (First In First Out, FIFO), therefore the data newly write can turn into those parts for having stored data 31, and previously written part this stored data 31 may by the new write-in data pushing and beyond the door capacity 231, and then stored by synchronous to the main storage device 22, and it is changed into a part for those synchronized datas 32.
If judging in step S32, the cache storage device 23 has been fully written, and the combined type hard disk 2 judges whether the quantity of those synchronized datas 32 in the cache storage device 22 is more than a threshold value (step S36) by the cache control unit 25.If the quantity of those synchronized datas 32 is more than the threshold value, then the bridge-jointing unit 21 deletes the synchronized data 32 (step S38) of part in the cache storage device 23, and the cache storage device 23 (step S34) write the data into after deleting.
It is noted that the cache control unit 25 during the use of the combined type hard disk 2, can record the utilization rate of those synchronized datas 32 in the cache storage device 23, i.e. the main frame 1 reads the number of times of those synchronized datas 32.Also, in above-mentioned step S38, the cache control unit 25 retains those synchronized datas 32 that utilization rate is higher than a setting value in the cache storage device 23, and preferentially deletes those not high synchronized datas 32 of utilization rate.Whereby, the hit rate of the data needed for the main frame 1 is found in the cache storage device 23 can be improved, the number of times that the main storage device 22 is accessed is reduced whereby, to extend the life-span of the main storage device 22, while lifting the overall data access speed of the combined type hard disk 2.
In the present embodiment, it is different that the bridge-jointing unit 21 writes data into the time that the time needed for the cache storage device 23 writes data syn-chronization from the cache storage device 23 needed for the main storage device 22.If by taking DDR SDRAM as an example, the speed that the bridge-jointing unit 21 is write data into the cache storage device 23 is about 200K ~ 260K IOPS.If by taking SSD as an example, the speed that the cache storage device 23 writes data syn-chronization in the main storage device 22 is about 20K ~ 100K IOPS.Therefore, if the cache storage device 23 handles those and has stored data 31 and those synchronized datas 32 simultaneously, data will then be write it is transformed into a little this and stored the speed of data 31, the speed of those synchronized datas 32 can be transformed into than those have been stored into data 31 and to obtain upper many soon.
From the above, if the cache storage device 23 has been fully written, and the quantity of those synchronized datas 32 is less than the threshold value, represents that the cache storage device 23 has little time those having stored the synchronous storage of data 31 to the main storage device 22.Therefore, the data that the bridge-jointing unit 21 directly can transmit the main frame 1 are write in the main storage device 22 (step S40).Whereby, make the cache storage device 23 have enough buffer time that those can have been stored to data 31 and be transformed into a part for those synchronized datas 32, and then make follow-up data to be written into the cache storage device 23.
It is noted that the minimum length for the order that the above-mentioned threshold value can mainly be transmitted for the main frame 1.When the minimum length for the order that the quantity of those synchronized datas 32 is less than the main frame 1, represent do not have enough elastic spaces (i.e. in the cache storage device 23, storage has completed the space of those synchronized datas 32 synchronous and can be deleted), therefore, the data of the main frame 1 can be write direct to the main storage device 22.
Finally, whether persistently the combined type hard disk 2 judges the main frame 1 write-in data (step S42).If so, step S32 is then returned to, persistently to write the data into the cache storage device 23 or the main storage device 22.If it is not, then terminating this method of the present invention.If it is noted that be judged as NO in step S42, but the cache storage device 23 not yet completes the data syn-chronization program, then the cache control unit 25 can control the cache storage device 23 to continuously carry out the data syn-chronization program.
Through the present inventor's experimental result, if this is filled with the cache storage device 23 has stored data 31 and the synchronized data 32 (total utilization rate 100%), the reading hit rate of data is about needed for the main frame 1 reads the combined type hard disk 2 and obtained in the cache storage device 23:Cache storage device total capacity/main storage device total capacity;Writing hit rate is about:(cache storage device total capacity/main storage device total capacity)+there is the probability of synchronized data.
Using the total capacity of the cache storage device 23 as 64G, the total capacity of the main storage device 22 is exemplified by 256G, it is about 25% to read hit rate, and writing hit rate then needs depending on the probability in the cache storage device 23 in the presence of the synchronized data 32.
Specifically, there is the probability of the synchronized data 32 in the cache storage device 23, it is relevant (i.e. with the dense degree of the order of the main frame 1 transmission, whether it is continuously written into), and it is relevant with the speed difference of the writing speed of the cache storage device 23 with the writing speed of the main storage device 22.That is, as long as data can be written into the cache storage device 23, (for example the cache storage device 23 is not yet fully written, or the cache storage device 23 has been fully written but the quantity of the synchronized data 32 is more than the threshold value), it all can be considered write-in hit.
Whereby, can further calculate the combined type hard disk 2 of the invention is in the Mean Speed (IOPS) under arbitrary access:(20K~100K)* miss rate * bridge-jointing units efficiency+(200K~260K)* hit rate.Wherein, miss rate is 100%- hit rates;The ratio that speed of the bridge-jointing unit efficiency caused by the bridge-jointing unit 21 declines.
For example, the main frame 1 is directly by 4K Byte data write the writing speed about 101K of the cache storage device 23 IOPS, and the writing speed that 4K Byte data write the cache storage device 23 is about 90.5K IOPS through the bridge-jointing unit 21 by the main frame 1.Whereby, the speed down ratio caused by can calculating the bridge-jointing unit 21 is about 0.896, that is to say, that the bridge-jointing unit efficiency is 0.896.
It is respectively the first data write-in schematic diagram and the second data write-in schematic diagram of the second specific embodiment of the present invention refering to Fig. 5 A and Fig. 5 B.As shown in Figure 5A, when the main frame 1 will write data, the combined type hard disk 2 can be preferentially write the data into the cache storage device 23.However, when the cache storage device 23 has been fully written, the combined type hard disk 2 need to perform above-mentioned steps S36 determining program by the cache control unit 25.
As shown in Figure 5 B, when the cache storage device 23 has been fully written, and the quantity of those synchronized datas 32 be less than the threshold value when (, the cache storage device 23 performs the speed of the remote low combined type hard disk 2 execution data writing program of speed of the data syn-chronization program), the data that the bridge-jointing unit 21 directly can transmit the main frame 1 are write in the main storage device 22.
The present invention is by the setting of the door capacity 231, and making the cache storage device 23, first by partial data, synchronously storage, to the main storage device 22, and after being fully written, preferentially deletes synchronous data before not being fully written also.Consequently, it is possible to which the probability that data can be written into the cache storage device 23 can be increased.Whereby, the number of times that the main storage device 22 is accessed by the main frame 1 can be effectively reduced, while lifting the overall access speed of the combined type hard disk 2.
The preferred embodiments of the present invention are the foregoing is only, are not thereby the scope of the claims for limiting to the present invention, therefore the equivalence changes carried out by every utilization present invention, similarly all it is included within the scope of the present invention, Chen Ming is given in conjunction.

Claims (10)

1. a kind of access method of combined type hard disk, the combined type hard disk includes a main storage device and a cache storage device, it is characterised in that the access method includes:
A) data of a main frame are received, the wherein combined type hard disk connects the main frame by a main bus and receives the data;
B) the cache storage device is write the data into, wherein the cache storage device is constituted with volatile memory;
C) judge the capacity for having stored data in the cache storage device whether more than a door capacity;And
If d) capacity for having stored data exceedes the door capacity, it will store data syn-chronization beyond part this and stored to the main storage device.
2. the access method of combined type hard disk according to claim 1, it is characterised in that further include the following steps:
E) judge whether the cache storage device is full;
If f) the cache storage device is full, the synchronized data of part is deleted in the cache storage device;And
G) the cache storage device write the data into after deleting.
3. the access method of combined type hard disk according to claim 2, it is characterised in that the cache storage device writes the data with method of first-in, first-out.
4. the access method of combined type hard disk according to claim 2, it is characterised in that the cache storage device records the utilization rate of the synchronized data, and in step f, the cache storage device retains the synchronized data that utilization rate is higher than a setting value.
5. the access method of combined type hard disk according to claim 1, it is characterised in that further include the following steps:
H) judge whether the cache storage device is full;
I) when the cache storage device is expired, judge whether the quantity of the synchronized data in the cache storage device is more than a threshold value;And
If j) quantity of the synchronized data is more than the threshold value, the synchronized data of part is deleted in the cache storage device, and the cache storage device write the data into after deleting.
6. the access method of combined type hard disk according to claim 5, it is characterised in that further include the following steps:
K) after step i, if the quantity of the synchronized data is less than the threshold value, the data are write direct into the main storage device.
7. the access method of combined type hard disk according to claim 1, it is characterised in that the main storage device is solid state hard disc, the cache storage device is made up of double data rate SDRAM.
8. the access method of combined type hard disk according to claim 1, it is characterised in that the door capacity is the half of the total capacity of the cache storage device.
9. the access method of combined type hard disk according to claim 1, it is characterized in that, the combined type hard disk further includes a bridge-jointing unit and a cache control unit, the bridge-jointing unit connects the main frame by the main bus and receives the data, and the main storage device and the cache storage device are connected by two devices bus respectively, to write the data into the main storage device or the cache storage device respectively, the cache control unit connects the cache storage device, control the cache storage device that this has been stored into data syn-chronization to store to the main storage device, and delete the synchronized data of part.
10. the access method of combined type hard disk according to claim 9, it is characterised in that the main bus and the two devices bus are that serial high-tech configures bus.
CN201610061995.1A 2016-01-29 2016-01-29 The access method of combined type hard disk Pending CN107025061A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610061995.1A CN107025061A (en) 2016-01-29 2016-01-29 The access method of combined type hard disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610061995.1A CN107025061A (en) 2016-01-29 2016-01-29 The access method of combined type hard disk

Publications (1)

Publication Number Publication Date
CN107025061A true CN107025061A (en) 2017-08-08

Family

ID=59524468

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610061995.1A Pending CN107025061A (en) 2016-01-29 2016-01-29 The access method of combined type hard disk

Country Status (1)

Country Link
CN (1) CN107025061A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377222A (en) * 2018-04-13 2019-10-25 宏碁股份有限公司 Stocking system
CN112068765A (en) * 2019-06-10 2020-12-11 伊姆西Ip控股有限责任公司 Method, apparatus and computer program product for managing a storage system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101241477A (en) * 2007-02-07 2008-08-13 株式会社日立制作所 Storage control unit and data management method
US8200904B2 (en) * 2007-12-12 2012-06-12 Sandisk Il Ltd. System and method for clearing data from a cache
CN102648457A (en) * 2009-12-07 2012-08-22 微软公司 Extending SSD lifetime using hybrid storage
CN103049394A (en) * 2012-11-30 2013-04-17 记忆科技(深圳)有限公司 Method and system for data caching of solid state disk
CN103488578A (en) * 2012-12-28 2014-01-01 晶天电子(深圳)有限公司 Vmd application/driver
CN104077246A (en) * 2014-07-02 2014-10-01 浪潮(北京)电子信息产业有限公司 Device for realizing volatile memory backup

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101241477A (en) * 2007-02-07 2008-08-13 株式会社日立制作所 Storage control unit and data management method
US8200904B2 (en) * 2007-12-12 2012-06-12 Sandisk Il Ltd. System and method for clearing data from a cache
CN102648457A (en) * 2009-12-07 2012-08-22 微软公司 Extending SSD lifetime using hybrid storage
CN103049394A (en) * 2012-11-30 2013-04-17 记忆科技(深圳)有限公司 Method and system for data caching of solid state disk
CN103488578A (en) * 2012-12-28 2014-01-01 晶天电子(深圳)有限公司 Vmd application/driver
CN104077246A (en) * 2014-07-02 2014-10-01 浪潮(北京)电子信息产业有限公司 Device for realizing volatile memory backup

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377222A (en) * 2018-04-13 2019-10-25 宏碁股份有限公司 Stocking system
CN110377222B (en) * 2018-04-13 2022-11-11 宏碁股份有限公司 Storage system
CN112068765A (en) * 2019-06-10 2020-12-11 伊姆西Ip控股有限责任公司 Method, apparatus and computer program product for managing a storage system
CN112068765B (en) * 2019-06-10 2024-04-26 伊姆西Ip控股有限责任公司 Method, apparatus and computer program product for managing a storage system

Similar Documents

Publication Publication Date Title
US10714141B2 (en) Method for accessing shingled magnetic recording SMR disk, and server
US8069324B2 (en) Storage device with manual learning
GB2536122A (en) Logical block address mapping for hard disk drives
TWI514142B (en) Storage system and control method thereof
KR20180086120A (en) Tail latency aware foreground garbage collection algorithm
CN105393228B (en) Read and write the method, apparatus and user equipment of data in flash memory
EP2293195A2 (en) Memory drive that can be operated like optical disk drive and method for virtualizing memory drive as optical disk drive
JP2019028954A (en) Storage control apparatus, program, and deduplication method
CN108205478B (en) Intelligent sequential SCSI physical layer power management
KR102530583B1 (en) Storage device and memory system
CN107329929B (en) Data transmission system and data transmission method based on SoC FPGA
US9946463B2 (en) Compression of indirection tables
CN107025061A (en) The access method of combined type hard disk
US20110022793A1 (en) Systems And Methods For Accessing Hard Disk Drives
CN105095418B (en) A kind of method and apparatus of processing write requests
US20160210047A1 (en) Data library system
US20070186041A1 (en) Mass storage device, mass storage controller and methods for use therewith
US6532513B1 (en) Information recording and reproduction apparatus
CN218631411U (en) Solid-state memory for verifying write-in state
CN106557277B (en) The reading method and device of disk array
CN105138294B (en) A kind of hard disc apparatus and information processing method
US10019404B2 (en) Accessing method for accessing hybrid hard-disk drive
KR20150016886A (en) Method for filtering cached input/output data based on data generation/consumption
US9236066B1 (en) Atomic write-in-place for hard disk drives
TWI390399B (en) External device having a virtual storage device

Legal Events

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

Application publication date: 20170808