CN103530236A - Method and device for obtaining hybrid hard disk - Google Patents

Method and device for obtaining hybrid hard disk Download PDF

Info

Publication number
CN103530236A
CN103530236A CN201310496822.9A CN201310496822A CN103530236A CN 103530236 A CN103530236 A CN 103530236A CN 201310496822 A CN201310496822 A CN 201310496822A CN 103530236 A CN103530236 A CN 103530236A
Authority
CN
China
Prior art keywords
storage medium
hard disk
hybrid hard
information
subregion
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
CN201310496822.9A
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310496822.9A priority Critical patent/CN103530236A/en
Publication of CN103530236A publication Critical patent/CN103530236A/en
Priority to PCT/CN2014/088623 priority patent/WO2015058641A1/en
Pending legal-status Critical Current

Links

Images

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/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
    • 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/0629Configuration or reconfiguration of storage systems
    • G06F3/0632Configuration or reconfiguration of storage systems by initialisation or re-initialisation of storage systems

Abstract

The invention relates to the technical field of hard disk processing and provides a method and device for obtaining a hybrid hard disk. The hybrid hard disk comprises various types of storage media. The method comprises the steps that attribute information of the storage media is obtained; the hybrid hard disk is divided into zones according to the attribute information of the storage media and information obtained after the hybrid hard disk is divided into the zones is displayed to a user. Due to the fact that the user knows attributes of data better than a host operation system and the hybrid hard disk, the user can select the corresponding zone to read and write the data directly according to the displayed zone information, the data reading and writing efficiency is improved, and the I/O performance of the hybrid hard disk is improved.

Description

A kind of implementation method of hybrid hard disk and device
Technical field
The invention belongs to hard disk processing technical field, relate in particular to a kind of implementation method and device of hybrid hard disk.
Background technology
In hybrid hard disk product, generally there are two kinds of storage mediums: a kind of is traditional magnetic disk media (being also referred to as storage medium at a slow speed), and feature is that capacity is large, cheap, but access speed is slower; Another kind is quick storage medium, and as NAND FLASH, feature is that capacity is less, expensive, but access speed is very fast.Quick storage medium is commonly used to buffer memory hot spot data (reading and writing number of times data more frequently).
Can the performance of hybrid hard disk how, whether enough effectively depends primarily on cache management scheme, identify accurately hot spot data, possesses higher cache hit rate.Current, there is the cache management scheme of two kinds of main flows:
(1) by host operating system, directly control the quick storage medium in hybrid hard disk, complete the management of hot spot data buffer memory.Hybrid hard disk provides some newly-increased ata commands, allows host operating system to determine which hot spot data is left in the quick storage medium of hybrid hard disk, or delete some outdated data from the quick storage medium of hybrid hard disk.Due to host operating system, accurately know and self start required fileinfo, can in advance associated documents be left in quick storage medium, so this scheme is very effective to improving the toggle speed of operating system.
(2) by hybrid hard disk, controlled voluntarily the use of buffer memory.Now, hybrid hard disk externally shows as a common mechanical hard disk, but the read-write frequency of its inner meeting statistics copies the high hot spot data of read-write frequency in quick storage medium to.When user requires to read described hot spot data again, hybrid hard disk directly obtains described hot spot data from quick storage medium, thereby accelerates the access of hot spot data.This scheme does not need to rely on host operating system just can give play to the function of hybrid hard disk.
In above-mentioned two schemes, which hot spot data buffer memory, to quick storage medium, is determined by host operating system or hybrid hard disk.Yet host operating system or hybrid hard disk rely on statistical law to identify hot spot data, have certain blindness.When there is multi-level buffer, rely on merely statistical law to identify hot spot data, likely get the wrong sow by the ear.For example, A, two files of B in hybrid hard disk, have been preserved, wherein A file is often accessed by the user, therefore host operating system is left in the file cache of oneself, the access of user to A file like this, all by host operating system, tackled, directly from described file cache, read, do not need to send I/O request to hybrid hard disk; B file is seldom used by user, and therefore, not in the file cache of host operating system, the access of user to B file, need to send I/O request to hybrid hard disk.From the angle of hybrid hard disk, A file is cold data, and B file is hot spot data, just the opposite with actual conditions.
From description above, can find out, simple host operating system or the hybrid hard disk of relying on added up data access frequency, cannot accurately identify hot spot data, and then cannot effectively utilize the quick storage medium of hybrid hard disk, affect the I/O performance of hybrid hard disk.
Summary of the invention
The embodiment of the present invention provides a kind of implementation method of hybrid hard disk, cannot accurately identify hot spot data, and then cannot effectively utilize the quick storage medium of hybrid hard disk to solve prior art, affects the problem of hybrid hard disk I/O performance.
First aspect, a kind of implementation method of hybrid hard disk, described hybrid hard disk comprises polytype storage medium, described method comprises:
Obtain the attribute information of described storage medium;
According to the attribute information of described storage medium, described hybrid hard disk is carried out to subregion, and by the information display after subregion to user.
In the first of first aspect may embodiment, describedly according to the attribute information of described storage medium, described hybrid hard disk is carried out to subregion and comprises:
According to the type of each storage medium in described attribute information, adopt the zoned format of standard to carry out subregion to described hybrid hard disk; Or,
The topology information of storage medium in described attribute information is showed to user, so that user carries out subregion according to described topology information to described hybrid hard disk; Or,
By specific subregion software, obtain the attribute information of described hybrid hard disk, and by described attribute information the type of each storage medium, the sector offset information display of the storage size of each storage medium and each storage medium to user, so that user carries out subregion according to the sector offset information of the storage size of the type of described each storage medium, each storage medium and each storage medium to described hybrid hard disk; Or,
One specific openly interface is set in described hybrid hard disk, by described specific openly interface, obtain the attribute information of storage medium in described hybrid hard disk, and by described attribute information the type of each storage medium, the sector offset information display of the storage size of each storage medium and each storage medium to user, so that user carries out subregion according to the sector offset information of the storage size of the type of described each storage medium, each storage medium and each storage medium to described hybrid hard disk.
May embodiment in conjunction with the first of first aspect or first aspect, in the second may embodiment, described according to the attribute information of described storage medium, described hybrid hard disk is carried out to subregion after, also comprise:
According to the information after subregion, the logical block addresses of described hybrid hard disk is carried out to segmentation, and by the information display after segmentation to user.
In conjunction with the first of first aspect or first aspect may embodiment or the second of first aspect may embodiment, in the third may embodiment, described storage medium comprises quick storage medium and storage medium at a slow speed.
Second aspect, a kind of implementation method of hybrid hard disk, described hybrid hard disk comprises polytype storage medium, described method comprises:
Obtain the configuration information of described hybrid hard disk;
Described configuration information is set, so that described hybrid hard disk presents the equipment of a plurality of standalone features, the equipment of the corresponding one or more standalone features of the storage medium of every type wherein.
In the first of second aspect may embodiment, described described configuration information is set, so that presenting the equipment of a plurality of standalone features, described hybrid hard disk comprises:
Stem type field in described configuration information is set, so that described hybrid hard disk presents the equipment of a plurality of standalone features.
May embodiment in conjunction with the first of second aspect, in the second may embodiment, the stem type field in described configuration information is set, so that after described hybrid hard disk presents the equipment of a plurality of standalone features, also comprise:
The configuration information of each standalone feature equipment corresponding function number is set.
In the third of second aspect may embodiment, described described configuration information is set, so that presenting the equipment of a plurality of standalone features, described hybrid hard disk comprises:
The interface descriptor of a plurality of description standalone features is set in described configuration information, so that described hybrid hard disk presents the equipment of a plurality of standalone features.
The third possibility embodiment in conjunction with the first possibility embodiment of second aspect or second aspect or the second possibility embodiment of second aspect or second aspect, in the 4th kind of possibility embodiment, described storage medium comprises following at least two: single layer cell SLC, multilevel-cell MLC, three-layer unit TLC, nonvolatile random access memory NVRAM.
The third aspect, a kind of implement device of hybrid hard disk, described hybrid hard disk comprises polytype storage medium, described device comprises:
Information acquisition unit, for obtaining the attribute information of described storage medium;
Information display unit, for according to the attribute information of described storage medium, described hybrid hard disk being carried out to subregion, and by the information display after subregion to user.
In the first possibility embodiment of the third aspect, described information display unit is used for:
According to the type of each storage medium in described attribute information, adopt the zoned format of standard to carry out subregion to described hybrid hard disk; Or,
The topology information of storage medium in described attribute information is showed to user, so that user carries out subregion according to described topology information to described hybrid hard disk; Or,
By specific subregion software, obtain the attribute information of described hybrid hard disk, and by described attribute information the type of each storage medium, the sector offset information display of the storage size of each storage medium and each storage medium to user, so that user carries out subregion according to the sector offset information of the storage size of the type of described each storage medium, each storage medium and each storage medium to described hybrid hard disk; Or,
One specific openly interface is set in described hybrid hard disk, by described specific openly interface, obtain the attribute information of storage medium in described hybrid hard disk, and by described attribute information the type of each storage medium, the sector offset information display of the storage size of each storage medium and each storage medium to user, so that user carries out subregion according to the sector offset information of the storage size of the type of described each storage medium, each storage medium and each storage medium to described hybrid hard disk.
In conjunction with the first possibility embodiment of the third aspect or the third aspect, in the second possibility embodiment, described device also comprises:
Segmenting unit, for after described hybrid hard disk being carried out to subregion according to the attribute information of described storage medium, carries out segmentation according to the information after subregion to the logical block addresses of described hybrid hard disk, and by the information display after segmentation to user.
In conjunction with the first of the third aspect or the third aspect may embodiment or the second of the third aspect may embodiment, in the third may embodiment, described storage medium comprises quick storage medium and storage medium at a slow speed.
Fourth aspect, a kind of implement device of hybrid hard disk, described hybrid hard disk comprises polytype storage medium, described device comprises:
Information acquisition unit, for obtaining the configuration information of described hybrid hard disk;
Setting unit, for described configuration information is set, so that described hybrid hard disk presents the equipment of a plurality of standalone features, the equipment of the corresponding one or more standalone features of the storage medium of every type wherein.
In the first possibility embodiment of fourth aspect, described setting unit is used for:
Stem type field in described configuration information is set, so that described hybrid hard disk presents the equipment of a plurality of standalone features.
May embodiment in conjunction with the first of fourth aspect, in the second may embodiment, described setting unit also for:
Stem type field in described configuration information is set is so that after described hybrid hard disk presents the equipment of a plurality of standalone features, and the configuration information of each standalone feature equipment corresponding function number is set.
In the third possibility embodiment of fourth aspect, described setting unit is used for:
The interface descriptor of a plurality of description standalone features is set in described configuration information, so that described hybrid hard disk presents the equipment of a plurality of standalone features.
The third possibility embodiment in conjunction with the first possibility embodiment of fourth aspect or fourth aspect or the second possibility embodiment of fourth aspect or fourth aspect, in the 4th kind of possibility embodiment, described storage medium comprises following at least two: single layer cell SLC, multilevel-cell MLC, three-layer unit TLC, nonvolatile random access memory NVRAM.
The beneficial effect that the embodiment of the present invention compared with prior art exists is: the embodiment of the present invention is carried out subregion according to the attribute information of storage medium to described hybrid hard disk, and by the information display after subregion to user.Because user more knows the attribute (hot spot data or cold data) of data than host operating system and hybrid hard disk, thereby can directly according to shown partition information, select corresponding subregion to carry out read-write operation to described data, improve the efficiency of reading and writing data, and then improve the I/O performance of hybrid hard disk.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is that the applicable system of hybrid hard disk implementation method that one embodiment of the invention provides forms structural drawing;
Fig. 2 is that the applicable system of hybrid hard disk implementation method that another embodiment of the present invention provides forms structural drawing;
Fig. 3 is the realization flow figure of the hybrid hard disk implementation method that provides of one embodiment of the invention;
Fig. 4 is the realization flow figure of the hybrid hard disk implementation method that provides of another embodiment of the present invention;
Fig. 5 is the composition structural drawing of the hybrid hard disk implement device that provides of one embodiment of the invention;
Fig. 6 is the composition structural drawing of the hybrid hard disk implement device that provides of another embodiment of the present invention.
Embodiment
In below describing, in order to illustrate rather than in order limiting, to have proposed the detail such as particular system structure, interface, technology, to thoroughly cut, understand the embodiment of the present invention.Yet, not it will be clear to one skilled in the art that in there is no other embodiment of these details and can realize the present invention yet.In other situation, omit the detailed description to well-known device, circuit and method, in order to avoid unnecessary details hinders description of the invention.
Fig. 1 shows the composition structure of the applicable system of hybrid hard disk implementation method that one embodiment of the invention provides, for convenience of explanation, only shows the part relevant to the present embodiment.
As shown in Figure 1, described system comprises host computer system 1 and hybrid hard disk 2, described hybrid hard disk 2 passes through standard hard drive interface (as integrated drive electronics (Integrated-Drive-Electronics, IDE), small computer system interface (Small Computer System Interface, SCSI), Serial Advanced Technology Attachment (Serial Advanced Technology Attachment, SATA), Serial Attached SCSI (SAS) (Serial Attached SCSI, SAS) etc.) be connected with described host computer system 1.
Wherein, described host computer system 1 can be computing machine, panel computer and mobile phone etc.
Described hybrid hard disk 2 comprises controller 21 and polytype storage medium (for example, quick storage medium and at a slow speed storage medium).
Described hybrid hard disk 2 is communicated by letter with host computer system 1 by controller 21, described controller 21 is when receiving the data reading command of host computer system 1 transmission, from quick storage medium or read corresponding data storage medium at a slow speed, and the described data that read are returned to host computer system 1; Described controller 21, when receiving data that host computer system 1 sends and write instruction, writes quick storage medium by the data relevant to said write instruction or at a slow speed in storage medium, and writes result to host computer system 1 feedback.
Preferably, in order to make user from the buffer memory of major control data, to improve the efficiency of data buffer storage.The present embodiment is by obtaining the attribute information of described storage medium; According to the attribute information of described storage medium, described hybrid hard disk is carried out to subregion, and by the information display after subregion to user.Described attribute information comprises the type of storage medium etc., and wherein the storage medium of every type is divided one or more memory blocks.In Fig. 1 22,23 is according to quick storage media type and storage media types is carried out at a slow speed subregion.
It should be noted that, the storage medium of the present embodiment hybrid hard disk can comprise two or more, and the two kinds of storage media types of only usining in Fig. 1 explain as example.In addition, the present embodiment can also by quick storage medium and at a slow speed storage medium be respectively divided into one or more memory blocks, in Fig. 1 only using quick storage medium and at a slow speed storage medium be respectively divided into a memory block and explain as example.
The mode of in the present embodiment, according to the attribute information of described storage medium, described hybrid hard disk being carried out to subregion include but not limited to following any:
According to the type of each storage medium in described attribute information, adopt the zoned format (MBR partition table, GPT partition table etc.) of standard to carry out subregion so that the operating systems such as Windows, Linux all can correctly be identified to described hybrid hard disk;
The topology information of storage medium in described attribute information (for example sector 0 to 9999 is quick storage media, after sector 9999 be at a slow speed storage medium etc.) is showed to user, so that user carries out subregion according to described topology information to described hybrid hard disk;
By specific subregion software, obtain the attribute information of described hybrid hard disk, and by described attribute information the type of each storage medium, the sector offset information display of the storage size of each storage medium and each storage medium to user, so that user carries out subregion according to the sector offset information of the storage size of the type of described each storage medium, each storage medium and each storage medium to described hybrid hard disk;
One specific openly interface is set in described hybrid hard disk, by described specific openly interface, obtain the attribute information of storage medium in described hybrid hard disk, and by described attribute information the type of each storage medium, the sector offset information display of the storage size of each storage medium and each storage medium to user, so that user carries out subregion according to the sector offset information of the storage size of the type of described each storage medium, each storage medium and each storage medium to described hybrid hard disk.
Further, the present embodiment also comprises:
According to described partition information, the logical block addresses of described hybrid hard disk (Logical Block Address, LBA) is carried out to segmentation.If the hybrid hard disk of a 512MB for example, the quick storage medium that has comprised 5MB, other is storage medium at a slow speed, can be by the LBA of quick storage medium, sector is divided into 0 to 9999; By the LBA of storage medium at a slow speed, sector is divided into 10000 to 999999.Thereby host computer system, according to described sector number, just can pick out corresponding storage media types, is applicable to the data manipulation of this storage media types.
In addition, the present embodiment can also, according to the LBA after segmentation, be divided into one or more memory blocks by storage medium corresponding with segment information in described hybrid hard disk.As sector 9999 is arrived in sector 0, be divided into one or more quick storage dielectric area; Sector 10000, to sector 999999, is divided into one or more storage mediums at a slow speed district.
The present embodiment carries out subregion or segmentation according to the attribute information of storage medium to described hybrid hard disk, and by the information display after subregion or segmentation to user, thereby user can be controlled the buffer memory of data, for example user can be according to application scenarios, actual hot spot data is redirected to quick storage district (as the A file in background technology), thereby effectively reduces the problem that statistical law that prior art relies on merely host operating system or hybrid hard disk cannot accurately identify hot spot data.
Below provided the application scenes of the present embodiment:
Scene one: for the scene of ordinary desktop application, user can be installed to quick storage dielectric area operating system and conventional application software, thus accelerate the toggle speed of operating system and conventional application program.
Scene two: for application program, need a large amount of internal memories, and the scene that system physical memory cannot satisfy the demands, user can be appointed as quick storage dielectric area the exchange partition (calling paging file under Windows) of operating system.Operating system, using described quick storage dielectric area as virtual memory, had both met the memory requirements of application program, was unlikely again the travelling speed of excessive influence application program.
Scene three: for the application scenarios of file server, meta-data region, log area that user can be using quick storage dielectric area as file system, thereby the access speed of accelerating file system.
Scene four: for the application scenarios of relevant database, the transaction journal district that user can be using quick medium subregion as database, thus improve the transaction throughput of database.
The application scenarios that the present embodiment provides, only for explaining the present invention, does not limit protection scope of the present invention.
Fig. 2 shows the composition structure of the applicable system of hybrid hard disk implementation method that another embodiment of the present invention provides, for convenience of explanation, only shows the part relevant to the present embodiment.
As shown in Figure 2, described system comprises host computer system 1 and hybrid hard disk 2, described hybrid hard disk 2 is by Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) interface, PCI Express(Peripheral Component Interconnect Express) interface or USB interface be connected with described host computer system 1.
Wherein, described host computer system 1 can be computing machine, panel computer and mobile phone etc.
Described hybrid hard disk 2 comprises polytype storage medium (for example single layer cell SLC(quick storage medium), multilevel-cell MLC, three-layer unit TLC(storage medium at a slow speed), nonvolatile random access memory NVRAM(quick storage medium) at least two).
In the present embodiment, by obtaining the configuration information of described hybrid hard disk, described configuration information is set so that described hybrid hard disk presents the equipment of a plurality of standalone features, wherein the equipment of the corresponding one or more standalone features of the storage medium of every type.
It should be noted that, the storage medium of the present embodiment hybrid hard disk can comprise two or more, and the four kinds of storage media types of only usining in Fig. 2 explain as example.The present embodiment is by the setting to described configuration information, makes described hybrid hard disk present the hard disk of 4 standalone features, as shown in 21 in Fig. 2,22,23,24.
In the present embodiment, because its addressing mode of equipment connecting by pci interface or PCI-Express interface is Bus number, device number, function number, by detecting described function number, can determine the equipment that connected equipment comprises several functions.
Therefore, describedly by being set, described configuration information comprises so that described hybrid hard disk presents the equipment of a plurality of standalone features:
By the stem type field in described configuration information being set so that described hybrid hard disk presents the equipment of a plurality of standalone features.Can be specifically, in described configuration information, the 7th of stem type field the bit be set to predefined identifier 1, and described predefined identifier 1 is multifunctional equipment for identifying described hybrid hard disk.
Take pci interface or PCI-Express interface is example, and described stem type particular location is in the 14th byte of described configuration information, as shown in table 1:
Figure BDA0000399239840000111
Table 1
Further, the stem type field in described configuration information is set is so that after described hybrid hard disk presents the equipment of a plurality of standalone features, and the configuration information of each standalone feature equipment corresponding function number is set.
It should be noted that, it (is the configuration information table of function number 0 correspondence that existing hybrid hard disk only includes a configuration information table, the setting of above-mentioned stem type field is the setting to stem type field in function number 0 corresponding configuration information table), the stem type field of the application in described configuration information is set is so that after described hybrid hard disk presents the equipment of a plurality of standalone features, for the equipment of each standalone feature arranges a configuration information table, i.e. configuration information table of each function correspondence.
Be described as follows: when host operating system is carried out pci bus scanning, before the equipment that initialization respectively connects by pci interface or PCI-Express interface, obtain function number 0 correspondence configuration information, by detecting the identifier of stem type in described configuration information, determine whether described equipment is multifunctional equipment, if, detect again other functions number corresponding configuration information, the equipment of a standalone feature of each function correspondence.For example, when the function in certain hybrid hard disk configuration information number is 0,1,2,3, host operating system can be used as this hybrid hard disk 4 independently hard disc apparatus.As shown in Figure 2, host operating system is identified as the 1st hard disk, MLC storage medium by the SLC storage medium on hybrid hard disk and is identified as that the 2nd hard disk, TLC storage medium are identified as the 3rd hard disk, NVRAM storage medium is identified as the 4th hard disk, make the user can be on these hard disks, set up independently subregion, create file system, the read-write of execute file.
It should be noted that, the equipment being connected with described host computer system 1 by USB interface, also can be by configuration information is set so that described equipment presents the equipment of a plurality of standalone features.Can be specifically, by the interface descriptor of a plurality of description standalone features being set in described configuration information so that described hybrid hard disk presents the equipment of a plurality of standalone features.For example, after the camera of integrated microphone is connected with host computer system 1 by USB interface, host operating system reads the configuration information that this equipment provides, detect and in configuration information, comprised 2 interface descriptor, a microphone interface and a utilizing camera interface have been described respectively, it can be identified as to an audio frequency apparatus and a video equipment, allow two equipment independently to operate separately.
In addition, also it should be noted that, because NVRAM possesses extremely low data access time delay, the I/O handling capacity of superelevation, can carry out high-speed data I/O for user.Therefore, in order to improve the performance of hybrid hard disk, can adopt aforesaid way that the NVRAM in hybrid hard disk is independent as a superfast hard disc apparatus, offer user and use.
Fig. 3 shows the realization flow of the hybrid hard disk implementation method that one embodiment of the invention provides, and hybrid hard disk implementation method can be applicable in system as shown in Figure 1 described in the present embodiment, and details are as follows for the method process:
In step S301, obtain the attribute information of described storage medium.
In the present embodiment, the attribute information of described storage medium includes but not limited to the sector offset information of the type of storage medium, the storage size of the topology information of storage medium, each storage medium and each storage medium etc.
Described storage medium includes but not limited to quick storage medium and storage medium at a slow speed.
In step S302, according to the attribute information of described storage medium, described hybrid hard disk is carried out to subregion, and by the information display after subregion to user.
The mode of in the present embodiment, according to the attribute information of described storage medium, described hybrid hard disk being carried out to subregion include but not limited to following any:
According to the type of each storage medium in described attribute information, adopt the zoned format (MBR partition table, GPT partition table etc.) of standard to carry out subregion so that the operating systems such as Windows, Linux all can correctly be identified to described hybrid hard disk;
The topology information of storage medium in described attribute information (for example sector 0 to 9999 is quick storage media, after sector 9999 be at a slow speed storage medium etc.) is showed to user, so that user carries out subregion according to described topology information to described hybrid hard disk;
By specific subregion software, obtain the attribute information of described hybrid hard disk, and by described attribute information the type of each storage medium, the sector offset information display of the storage size of each storage medium and each storage medium to user, so that user carries out subregion according to the sector offset information of the storage size of the type of described each storage medium, each storage medium and each storage medium to described hybrid hard disk;
One specific openly interface is set in described hybrid hard disk, by described specific openly interface, obtain the attribute information of storage medium in described hybrid hard disk, and by described attribute information the type of each storage medium, the sector offset information display of the storage size of each storage medium and each storage medium to user, so that user carries out subregion according to the sector offset information of the storage size of the type of described each storage medium, each storage medium and each storage medium to described hybrid hard disk.
Further, after described hybrid hard disk is carried out to subregion, also comprise:
According to the information after subregion, the logical block addresses of described hybrid hard disk is carried out to segmentation, and by the information display after segmentation to user.
In the present embodiment, described storage medium comprises quick storage medium and storage medium at a slow speed.
The present embodiment by by hybrid hard disk fast, at a slow speed etc. storage medium is divided into a plurality of independently storeies, allow user and application thereof to carry out respectively read-write operation to described memory block, thereby can more effective control fast, the use of storage medium such as at a slow speed, valuable hot spot data is left in quick storage medium, bring higher data access efficiency.
Fig. 4 shows the realization flow of the hybrid hard disk implementation method that another embodiment of the present invention provides, and hybrid hard disk implementation method can be applicable in system as shown in Figure 2 described in the present embodiment, and details are as follows for the method process:
In step S401, obtain the configuration information of described hybrid hard disk.
In step S402, described configuration information is set so that described hybrid hard disk presents the equipment of a plurality of standalone features, wherein the equipment of the corresponding one or more standalone features of the storage medium of every type.
Concrete can be the stem type field in described configuration information to be set so that described hybrid hard disk presents the equipment of a plurality of standalone features.
Or, the interface descriptor of a plurality of description standalone features is set in described configuration information so that described hybrid hard disk presents the equipment of a plurality of standalone features.
Further, the stem type field in described configuration information is set is so that after described hybrid hard disk presents the equipment of a plurality of standalone features, also comprise:
The configuration information of each standalone feature equipment corresponding function number is set.
Wherein, described storage medium comprises following at least two: single layer cell SLC, multilevel-cell MLC, three-layer unit TLC, nonvolatile random access memory NVRAM.
The present embodiment is by revising the configuration information in hybrid hard disk, can be using the independent equipment as standalone feature of the storage medium in hybrid hard disk, can effectively improve the performance of hybrid hard disk, and the efficiency that reads of hybrid hard disk data, higher ease for use and practicality there is.
Fig. 5 shows the composition structure of the hybrid hard disk implement device that one embodiment of the invention provides, and for convenience of explanation, only shows the part relevant to the embodiment of the present invention.
This hybrid hard disk implement device 5 can be applicable in the system shown in Fig. 1, and described hybrid hard disk comprises polytype storage medium.
This hybrid hard disk implement device 5 comprises information acquisition unit 51 and information display unit 52.Wherein, the concrete function of each unit is as follows:
Information acquisition unit 51, for obtaining the attribute information of described storage medium;
Information display unit 52, for according to the attribute information of described storage medium, described hybrid hard disk being carried out to subregion, and by the information display after subregion to user.
Further, described information display unit 52 for:
According to the type of each storage medium in described attribute information, adopt the zoned format of standard to carry out subregion to described hybrid hard disk; Or,
The topology information of storage medium in described attribute information is showed to user, so that user carries out subregion according to described topology information to described hybrid hard disk; Or,
By specific subregion software, obtain the attribute information of described hybrid hard disk, and by described attribute information the type of each storage medium, the sector offset information display of the storage size of each storage medium and each storage medium to user, so that user carries out subregion according to the sector offset information of the storage size of the type of described each storage medium, each storage medium and each storage medium to described hybrid hard disk; Or,
One specific openly interface is set in described hybrid hard disk, by described specific openly interface, obtain the attribute information of storage medium in described hybrid hard disk, and by described attribute information the type of each storage medium, the sector offset information display of the storage size of each storage medium and each storage medium to user, so that user carries out subregion according to the sector offset information of the storage size of the type of described each storage medium, each storage medium and each storage medium to described hybrid hard disk.
Further, described device 5 also comprises:
Segmenting unit 53, for after described hybrid hard disk being carried out to subregion according to the attribute information of described storage medium, carries out segmentation according to the information after subregion to the logical block addresses of described hybrid hard disk, and by the information display after segmentation to user.
In the present embodiment, described storage medium includes but not limited to quick storage medium and storage medium at a slow speed.
The hybrid hard disk implement device 5 that the present embodiment provides can be used the implementation method at the hybrid hard disk of aforementioned correspondence, and details, referring to the associated description of the corresponding embodiment of implementation method Fig. 3 of above-mentioned hybrid hard disk, do not repeat them here.
Fig. 6 shows the composition structure of the hybrid hard disk implement device that one embodiment of the invention provides, and for convenience of explanation, only shows the part relevant to the embodiment of the present invention.
This hybrid hard disk implement device 6 can be applicable in the system shown in Fig. 2, and described hybrid hard disk comprises polytype storage medium.
This hybrid hard disk implement device 6 comprises information acquisition unit 61 and setting unit 62.Wherein, the concrete function of each unit is as follows:
Information acquisition unit 61, for obtaining the configuration information of described hybrid hard disk;
Setting unit 62, for described configuration information is set so that described hybrid hard disk presents the equipment of a plurality of standalone features, the equipment of the corresponding one or more standalone features of the storage medium of every type wherein.
Further, described setting unit 62 for:
Stem type field in described configuration information is set so that described hybrid hard disk presents the equipment of a plurality of standalone features.
Or, the interface descriptor of a plurality of description standalone features is set in described configuration information so that described hybrid hard disk presents the equipment of a plurality of standalone features.
Further, described setting unit 62 also for:
Stem type field in described configuration information is set is so that after described hybrid hard disk presents the equipment of a plurality of standalone features, and the configuration information of each standalone feature equipment corresponding function number is set.
In the present embodiment, described storage medium includes but not limited to following at least two: single layer cell SLC, multilevel-cell MLC, three-layer unit TLC, nonvolatile random access memory NVRAM.
The hybrid hard disk implement device 6 that the present embodiment provides can be used the implementation method at the hybrid hard disk of aforementioned correspondence, and details, referring to the associated description of the corresponding embodiment of implementation method Fig. 4 of above-mentioned hybrid hard disk, do not repeat them here.
In sum, the embodiment of the present invention is carried out subregion according to the attribute information of storage medium to described hybrid hard disk, and by the information display after subregion to user.Because user more knows the attribute (hot spot data or cold data) of data than host operating system and hybrid hard disk, thereby can directly according to shown partition information, select corresponding subregion to carry out read-write operation to described data, improve the efficiency of reading and writing data, and then the I/O performance of raising hybrid hard disk, there is higher ease for use and practicality.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only the division with above-mentioned each functional unit is illustrated, in practical application, can above-mentioned functions be distributed and by different functional units, completed as required, the inner structure that is about to device is divided into different functional units, to complete all or part of function described above.In addition, the concrete title of each functional unit also, just for the ease of mutual differentiation, is not limited to the protection domain of the embodiment of the present invention.The system of foregoing description, the specific works process of processor and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the embodiment of the present invention, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described module or unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit, can be electronics, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the embodiment of the present invention can be integrated in a controller, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If the form of SFU software functional unit of usining described integrated unit realizes and during as production marketing independently or use, can be stored in a computer read/write memory medium.Understanding based on such, the all or part of of the part that the technical scheme of the embodiment of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) carry out all or part of step of method described in each embodiment of the embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CDs.
The above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of each embodiment technical scheme of the embodiment of the present invention.

Claims (18)

1. an implementation method for hybrid hard disk, described hybrid hard disk comprises polytype storage medium, it is characterized in that, described method comprises:
Obtain the attribute information of described storage medium;
According to the attribute information of described storage medium, described hybrid hard disk is carried out to subregion, and by the information display after subregion to user.
2. the method for claim 1, is characterized in that, describedly according to the attribute information of described storage medium, described hybrid hard disk is carried out to subregion and comprises:
According to the type of each storage medium in described attribute information, adopt the zoned format of standard to carry out subregion to described hybrid hard disk; Or,
The topology information of storage medium in described attribute information is showed to user, so that user carries out subregion according to described topology information to described hybrid hard disk; Or,
By specific subregion software, obtain the attribute information of described hybrid hard disk, and by described attribute information the type of each storage medium, the sector offset information display of the storage size of each storage medium and each storage medium to user, so that user carries out subregion according to the sector offset information of the storage size of the type of described each storage medium, each storage medium and each storage medium to described hybrid hard disk; Or,
One specific openly interface is set in described hybrid hard disk, by described specific openly interface, obtain the attribute information of storage medium in described hybrid hard disk, and by described attribute information the type of each storage medium, the sector offset information display of the storage size of each storage medium and each storage medium to user, so that user carries out subregion according to the sector offset information of the storage size of the type of described each storage medium, each storage medium and each storage medium to described hybrid hard disk.
3. method as claimed in claim 1 or 2, is characterized in that, described according to the attribute information of described storage medium, described hybrid hard disk is carried out to subregion after, also comprise:
According to the information after subregion, the logical block addresses of described hybrid hard disk is carried out to segmentation, and by the information display after segmentation to user.
4. the method as described in claims 1 to 3 any one, is characterized in that, described storage medium comprises quick storage medium and storage medium at a slow speed.
5. an implementation method for hybrid hard disk, described hybrid hard disk comprises polytype storage medium, it is characterized in that, described method comprises:
Obtain the configuration information of described hybrid hard disk;
Described configuration information is set, so that described hybrid hard disk presents the equipment of a plurality of standalone features, the equipment of the corresponding one or more standalone features of the storage medium of every type wherein.
6. method as claimed in claim 5, is characterized in that, described described configuration information is set, so that described hybrid hard disk presents the equipment of a plurality of standalone features, comprises:
Stem type field in described configuration information is set, so that described hybrid hard disk presents the equipment of a plurality of standalone features.
7. method as claimed in claim 6, is characterized in that, the stem type field in described configuration information is set, so that after described hybrid hard disk presents the equipment of a plurality of standalone features, also comprise:
The configuration information of each standalone feature equipment corresponding function number is set.
8. method as claimed in claim 5, is characterized in that, described described configuration information is set, so that described hybrid hard disk presents the equipment of a plurality of standalone features, comprises:
The interface descriptor of a plurality of description standalone features is set in described configuration information, so that described hybrid hard disk presents the equipment of a plurality of standalone features.
9. the method as described in claim 5 to 8 any one, is characterized in that, described storage medium comprises following at least two: single layer cell SLC, multilevel-cell MLC, three-layer unit TLC, nonvolatile random access memory NVRAM.
10. an implement device for hybrid hard disk, described hybrid hard disk comprises polytype storage medium, it is characterized in that, described device comprises:
Information acquisition unit, for obtaining the attribute information of described storage medium;
Information display unit, for according to the attribute information of described storage medium, described hybrid hard disk being carried out to subregion, and by the information display after subregion to user.
11. devices as claimed in claim 10, is characterized in that, described information display unit is used for:
According to the type of each storage medium in described attribute information, adopt the zoned format of standard to carry out subregion to described hybrid hard disk; Or,
The topology information of storage medium in described attribute information is showed to user, so that user carries out subregion according to described topology information to described hybrid hard disk; Or,
By specific subregion software, obtain the attribute information of described hybrid hard disk, and by described attribute information the type of each storage medium, the sector offset information display of the storage size of each storage medium and each storage medium to user, so that user carries out subregion according to the sector offset information of the storage size of the type of described each storage medium, each storage medium and each storage medium to described hybrid hard disk; Or,
One specific openly interface is set in described hybrid hard disk, by described specific openly interface, obtain the attribute information of storage medium in described hybrid hard disk, and by described attribute information the type of each storage medium, the sector offset information display of the storage size of each storage medium and each storage medium to user, so that user carries out subregion according to the sector offset information of the storage size of the type of described each storage medium, each storage medium and each storage medium to described hybrid hard disk.
12. devices as described in claim 10 or 11, is characterized in that, described device also comprises:
Segmenting unit, for after described hybrid hard disk being carried out to subregion according to the attribute information of described storage medium, carries out segmentation according to the information after subregion to the logical block addresses of described hybrid hard disk, and by the information display after segmentation to user.
13. devices as described in claim 10 to 12 any one, is characterized in that, described storage medium comprises quick storage medium and storage medium at a slow speed.
The implement device of 14. 1 kinds of hybrid hard disks, described hybrid hard disk comprises polytype storage medium, it is characterized in that, described device comprises:
Information acquisition unit, for obtaining the configuration information of described hybrid hard disk;
Setting unit, for described configuration information is set, so that described hybrid hard disk presents the equipment of a plurality of standalone features, the equipment of the corresponding one or more standalone features of the storage medium of every type wherein.
15. devices as claimed in claim 14, is characterized in that, described setting unit is used for:
Stem type field in described configuration information is set, so that described hybrid hard disk presents the equipment of a plurality of standalone features.
16. devices as claimed in claim 15, is characterized in that, described setting unit also for:
Stem type field in described configuration information is set is so that after described hybrid hard disk presents the equipment of a plurality of standalone features, and the configuration information of each standalone feature equipment corresponding function number is set.
17. devices as claimed in claim 14, is characterized in that, described setting unit is used for:
The interface descriptor of a plurality of description standalone features is set in described configuration information, so that described hybrid hard disk presents the equipment of a plurality of standalone features.
18. devices as described in claim 14 to 17 any one, is characterized in that, described storage medium comprises following at least two: single layer cell SLC, multilevel-cell MLC, three-layer unit TLC, nonvolatile random access memory NVRAM.
CN201310496822.9A 2013-10-21 2013-10-21 Method and device for obtaining hybrid hard disk Pending CN103530236A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310496822.9A CN103530236A (en) 2013-10-21 2013-10-21 Method and device for obtaining hybrid hard disk
PCT/CN2014/088623 WO2015058641A1 (en) 2013-10-21 2014-10-15 Hybrid hard disk implementation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310496822.9A CN103530236A (en) 2013-10-21 2013-10-21 Method and device for obtaining hybrid hard disk

Publications (1)

Publication Number Publication Date
CN103530236A true CN103530236A (en) 2014-01-22

Family

ID=49932266

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310496822.9A Pending CN103530236A (en) 2013-10-21 2013-10-21 Method and device for obtaining hybrid hard disk

Country Status (2)

Country Link
CN (1) CN103530236A (en)
WO (1) WO2015058641A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015058641A1 (en) * 2013-10-21 2015-04-30 华为技术有限公司 Hybrid hard disk implementation method and device
CN106873912A (en) * 2017-02-16 2017-06-20 郑州云海信息技术有限公司 The dynamic partition storage method and device, system of TLC chip solid state hard discs
CN107301023A (en) * 2017-06-29 2017-10-27 郑州云海信息技术有限公司 A kind of solid-state disk configuration information management method and device
WO2021120645A1 (en) * 2019-12-20 2021-06-24 华为技术有限公司 Method for writing data into solid state drive, and method and apparatus for garbage collection
CN114661249A (en) * 2022-05-26 2022-06-24 深圳高灯计算机科技有限公司 Data storage method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751225A (en) * 2008-12-04 2010-06-23 上海华虹Nec电子有限公司 Data access method of hybrid hard drive
CN101907978A (en) * 2010-07-27 2010-12-08 浙江大学 Mixed storage system and storage method based on solid state disk and magnetic hard disk
CN101989121A (en) * 2009-07-30 2011-03-23 联想(北京)有限公司 Computer system, mixing memory and method for controlling power supply of computer memory

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7447807B1 (en) * 2006-06-30 2008-11-04 Siliconsystems, Inc. Systems and methods for storing data in segments of a storage subsystem
CN102185910B (en) * 2011-04-22 2013-04-10 湖南大学 Data distribution method for diskless network server based on solid state disk (SSD) and hard disk drive (HDD) hybrid storage
SG10201505148QA (en) * 2012-02-23 2015-07-30 Marvell Int Ltd Data Storage Device And Method Of Managing A Cache In A Data Storage Device
CN103530236A (en) * 2013-10-21 2014-01-22 华为技术有限公司 Method and device for obtaining hybrid hard disk

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751225A (en) * 2008-12-04 2010-06-23 上海华虹Nec电子有限公司 Data access method of hybrid hard drive
CN101989121A (en) * 2009-07-30 2011-03-23 联想(北京)有限公司 Computer system, mixing memory and method for controlling power supply of computer memory
CN101907978A (en) * 2010-07-27 2010-12-08 浙江大学 Mixed storage system and storage method based on solid state disk and magnetic hard disk

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015058641A1 (en) * 2013-10-21 2015-04-30 华为技术有限公司 Hybrid hard disk implementation method and device
CN106873912A (en) * 2017-02-16 2017-06-20 郑州云海信息技术有限公司 The dynamic partition storage method and device, system of TLC chip solid state hard discs
CN106873912B (en) * 2017-02-16 2020-02-07 苏州浪潮智能科技有限公司 Dynamic partition storage method, device and system for TLC chip solid state disk
CN107301023A (en) * 2017-06-29 2017-10-27 郑州云海信息技术有限公司 A kind of solid-state disk configuration information management method and device
WO2021120645A1 (en) * 2019-12-20 2021-06-24 华为技术有限公司 Method for writing data into solid state drive, and method and apparatus for garbage collection
CN114661249A (en) * 2022-05-26 2022-06-24 深圳高灯计算机科技有限公司 Data storage method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
WO2015058641A1 (en) 2015-04-30

Similar Documents

Publication Publication Date Title
US9229653B2 (en) Write spike performance enhancement in hybrid storage systems
US8762627B2 (en) Memory logical defragmentation during garbage collection
TWI409633B (en) Flash memory storage device, controller thereof, and method for programming data
US10282286B2 (en) Address mapping using a data unit type that is variable
US8650379B2 (en) Data processing method for nonvolatile memory system
CN104484283B (en) A kind of method for reducing solid state disk write amplification
US9201787B2 (en) Storage device file system and block allocation
CN107608625B (en) Method for improving reading performance of fixed storage equipment
US10365845B1 (en) Mapped raid restripe for improved drive utilization
CN103049216B (en) Solid state hard disc and data processing method, system
CN105117180A (en) Data storing method and device and solid state disc
CN105677257A (en) Data storage method and electronic equipment
CN104461387A (en) Method for improving reading property of solid-state hard disk for no mapping region
EP3346387B1 (en) Storage system and system garbage collection method
CN103530236A (en) Method and device for obtaining hybrid hard disk
TWI698749B (en) A data storage device and a data processing method
US11513949B2 (en) Storage device, and control method and recording medium thereof
US10031689B2 (en) Stream management for storage devices
US10649909B2 (en) Logical block addressing range collision crawler
CN113918087B (en) Storage device and method for managing namespaces in the storage device
CN103246615A (en) Method and device for data management in flash memory device
US11256435B2 (en) Method and apparatus for performing data-accessing management in a storage server
CN105138294B (en) A kind of hard disc apparatus and information processing method
CN105827681A (en) Backup data transmission method under SAN (Storage Area Network)
CN103064803A (en) Data read-write method and device of NAND Flash storage device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140122