WO2015058641A1 - Hybrid hard disk implementation method and device - Google Patents

Hybrid hard disk implementation method and device Download PDF

Info

Publication number
WO2015058641A1
WO2015058641A1 PCT/CN2014/088623 CN2014088623W WO2015058641A1 WO 2015058641 A1 WO2015058641 A1 WO 2015058641A1 CN 2014088623 W CN2014088623 W CN 2014088623W WO 2015058641 A1 WO2015058641 A1 WO 2015058641A1
Authority
WO
WIPO (PCT)
Prior art keywords
hard disk
storage medium
hybrid hard
information
according
Prior art date
Application number
PCT/CN2014/088623
Other languages
French (fr)
Chinese (zh)
Inventor
殷昉
Original Assignee
华为技术有限公司
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
Priority to CN201310496822.9 priority Critical
Priority to CN201310496822.9A priority patent/CN103530236A/en
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2015058641A1 publication Critical patent/WO2015058641A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; 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, networked record carriers
    • G06F3/0601Dedicated interfaces to storage systems
    • G06F3/0668Dedicated interfaces to 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; 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, networked record carriers
    • G06F3/0601Dedicated interfaces to storage systems
    • G06F3/0602Dedicated interfaces to 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; 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, networked record carriers
    • G06F3/0601Dedicated interfaces to storage systems
    • G06F3/0628Dedicated interfaces to 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

Provided are a hybrid hard disk implementation method and device, the hybrid hard disk comprising various types of storage media; the method comprising: acquiring the attribute information of the storage media; partitioning the hybrid hard disk according to the attribute information of the storage media, and displaying the partition information to a user. Because a user knows data attributes better than a host operating system and a hybrid hard disk, the user can, according to the displayed partition information, directly select a corresponding partition to read and write the data, improving data read and write efficiency and thus the I/O performance of the hybrid hard disk.

Description

Method and device for implementing hybrid hard disk Technical field

The invention belongs to the technical field of hard disk processing, and in particular relates to a method and a device for implementing a hybrid hard disk.

Background technique

In hybrid hard disk products, there are generally two kinds of storage media: one is traditional disk media (also known as slow storage media), which is characterized by large capacity and low cost, but the access speed is slow; the other is fast storage. Media, such as NAND FLASH, is characterized by smaller capacity and higher cost, but faster access. Fast storage media is often used to cache hotspot data (that is, data that is read and written more frequently).

The performance of the hybrid hard disk depends mainly on whether the cache management scheme is effective enough, whether the hot data can be accurately identified, and a high cache hit ratio. Currently, there are two main cache management schemes:

(1) The host operating system directly controls the fast storage medium in the hybrid hard disk to complete the management of the hotspot data cache. Hybrid hard drives offer some new ATA commands that allow the host operating system to decide which hotspot data to store on the fast storage media of the hybrid hard drive or to remove some outdated data from the fast storage media of the hybrid hard drive. Since the host operating system knows exactly the file information required for its startup, the related file can be stored in the fast storage medium in advance, so this scheme is effective for improving the startup speed of the operating system.

(2) The use of the cache is controlled by the hybrid hard disk. At this time, the hybrid hard disk externally appears as an ordinary mechanical hard disk, but the internal reading and writing frequency of the statistical data, the hot data of high read and write frequency is copied to the fast storage medium. When the user again requests to read the hotspot data, the hybrid hard disk directly obtains the hotspot data from the fast storage medium, thereby accelerating access of the hotspot data. The solution does not need to rely on the host operating system to play the role of a hybrid hard disk.

In the above two scenarios, which hot data is cached to the fast storage medium is determined by the host operating system or the hybrid hard disk. However, the host operating system or hybrid hard disk relies on statistical laws to identify hotspot data, which has certain blindness. When there is a multi-level cache, relying solely on statistical laws to identify hotspot data may lead to erroneous conclusions. For example, two files A and B are saved in the hybrid hard disk, and the A file is often accessed by the user, so the host operating system stores it in its own file cache, so that the user accesses the A file, all of which are host operating systems. Intercepting, reading directly from the file cache, does not need to send I/O requests to the hybrid hard disk; B files are rarely used by users, so they are not in the file cache of the host operating system, and the user needs to access the B files. The hybrid hard disk sends an I/O request. From the perspective of the hybrid hard disk, the A file is cold data, and the B file is hot data, which is exactly the opposite of the actual situation.

As can be seen from the above description, simply relying on the host operating system or the hybrid hard disk to count the data access frequency, can not accurately identify the hot data, and thus can not effectively use the fast storage medium of the hybrid hard disk, affecting the I / O performance of the hybrid hard disk.

Summary of the invention

The embodiment of the invention provides a method for implementing a hybrid hard disk, which solves the problem that the prior art cannot accurately identify the hot spot data, and thus cannot effectively utilize the fast storage medium of the hybrid hard disk, and affects the performance of the hybrid hard disk I/O.

In a first aspect, a method for implementing a hybrid hard disk includes a plurality of types of storage media, the method comprising:

Obtaining attribute information of the storage medium of the hybrid hard disk;

The hybrid hard disk is partitioned according to attribute information of the storage medium of the hybrid hard disk, and the partitioned information is displayed to the user, wherein each type of storage medium is divided into one or more storage areas.

In a first possible implementation manner of the first aspect, the attribute information of the storage medium of the hybrid hard disk includes a type of each storage medium of the hybrid hard disk; and the storage according to the hybrid hard disk Partitioning the attribute information of the medium to the hybrid hard disk includes:

The hybrid hard disk is partitioned according to the type of each storage medium using a standard partition format.

In a second possible implementation manner of the first aspect, the attribute information of the storage medium of the hybrid hard disk includes topology information of each storage medium of the hybrid hard disk;

The partitioning the hybrid hard disk according to the attribute information of the storage medium of the hybrid hard disk includes:

The topology information of each storage medium is displayed to the user, so that the user partitions the hybrid hard disk according to the topology information of each storage medium, wherein each type of storage medium is divided into one or more storage areas.

In a third possible implementation manner of the first aspect, the attribute information of the storage medium of the hybrid hard disk includes a type of each storage medium of the hybrid hard disk, a storage space size of each storage medium, and a sector offset of each storage medium. The information of the storage medium of the hybrid hard disk is obtained, and the hybrid hard disk is partitioned according to the attribute information of the storage medium of the hybrid hard disk, including:

Obtaining attribute information of the hybrid hard disk through a specific partitioning software or a specific public interface of the hybrid hard disk, and the types of the storage media, the storage space size of each storage medium, and the sector offset of each storage medium The information is displayed to the user, so that the user partitions the hybrid hard disk according to the type of each storage medium, the storage space size of each storage medium, and the sector offset information of each storage medium, wherein each type of storage medium Divided into one or more storage areas.

With reference to the first aspect, or the first, second, and third possible implementation manners of the first aspect, in a fourth possible implementation, after the partitioning the hybrid hard disk according to the attribute information of the storage medium, include:

The logical block address of the hybrid hard disk is segmented according to the information after the partition, and the segmented information is displayed to the user.

In a second aspect, a method for implementing a hybrid hard disk includes a plurality of types of storage media, and the method includes:

Obtaining configuration information of the hybrid hard disk;

The configuration information is set such that the hybrid hard disk presents a plurality of independently functioning devices, wherein each type of storage medium corresponds to one or more independently functioning devices.

In a first possible implementation manner of the second aspect, the device that sets the configuration information to cause the hybrid hard disk to display multiple independent functions includes:

The header type field in the configuration information is set such that the hybrid hard disk presents a plurality of independently functioning devices.

With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner, after setting a header type field in the configuration information, so that the hybrid hard disk presents multiple independent functional devices, include:

Set the configuration information of the function number corresponding to each independent function device.

In a third possible implementation manner of the second aspect, the device that sets the configuration information to cause the hybrid hard disk to display multiple independent functions includes:

A plurality of interface descriptors describing the independent functions are set in the configuration information, so that the hybrid hard disk presents a plurality of independent functional devices.

With reference to the second aspect or the first possible implementation of the second aspect or the second possible implementation of the second aspect or the third possible implementation of the second aspect, in a fourth possible implementation, the storing The medium includes at least two of the following: a single layer unit SLC, a multi-level unit MLC, a three-layer unit TLC, and a non-volatile random access memory NVRAM.

A third aspect is an apparatus for implementing a hybrid hard disk, the hybrid hard disk comprising a plurality of types of storage media, the device comprising:

An information acquiring unit, configured to acquire attribute information of a storage medium of the hybrid hard disk;

An information display unit, configured to partition the hybrid hard disk according to attribute information of a storage medium of the hybrid hard disk, and display the partitioned information to a user, where each type of storage medium is divided into one or more storage Area.

In a first possible implementation manner of the third aspect, the information display unit is configured to:

The hybrid hard disk is partitioned according to a type of each storage medium in the attribute information by using a standard partition format, wherein each type of storage medium is divided into one or more storage areas; or

And displaying the topology information of the storage medium in the attribute information to the user, so that the user partitions the hybrid hard disk according to the topology information, where each type of storage medium is divided into one or more storage areas; or

Displaying the type of each storage medium in the attribute information, the storage space size of each storage medium, and the sector offset information of each storage medium to the user, so that the user stores the storage medium according to the type of each storage medium. The hybrid hard disk is partitioned by the size of the space and the sector offset information of each storage medium, wherein each type of storage medium is divided into one or more storage areas.

In conjunction with the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation, the apparatus further includes:

a segmentation unit, configured to segment the logical block address of the hybrid hard disk according to the information after the partitioning, after segmenting the hybrid hard disk according to the attribute information of the storage medium, and segment the segmented information Show it to the user.

A fourth aspect is an apparatus for implementing a hybrid hard disk, the hybrid hard disk comprising a plurality of types of storage media, the device comprising:

An information acquiring unit, configured to acquire configuration information of the hybrid hard disk;

And a setting unit, configured to set the configuration information, so that the hybrid hard disk presents a plurality of independently functioning devices, wherein each type of storage medium corresponds to one or more independently functioning devices.

In a first possible implementation manner of the fourth aspect, the setting unit is configured to:

The header type field in the configuration information is set such that the hybrid hard disk presents a plurality of independently functioning devices.

In conjunction with the first possible implementation of the fourth aspect, in a second possible implementation, the setting unit is further configured to:

Setting a header type field in the configuration information to cause the hybrid hard disk to present multiple After the independent function device, set the configuration information of the function number corresponding to each independent function device.

In a third possible implementation manner of the fourth aspect, the setting unit is used to:

A plurality of interface descriptors describing the independent functions are set in the configuration information, so that the hybrid hard disk presents a plurality of independent functional devices.

With reference to the fourth aspect or the first possible implementation manner of the fourth aspect or the second possible implementation manner of the fourth aspect or the third possible implementation manner of the fourth aspect, in the fourth possible implementation manner, the storing The medium includes at least two of the following: a single layer unit SLC, a multi-level unit MLC, a three-layer unit TLC, and a non-volatile random access memory NVRAM.

Compared with the prior art, the embodiment of the present invention has the beneficial effects that the hybrid hard disk is partitioned according to the attribute information of the storage medium, and the information after the partition is displayed to the user. Since the user has more clear data attributes (hotspot data or cold data) than the host operating system and the hybrid hard disk, the user can directly select and write the corresponding partition according to the displayed partition information, thereby improving the efficiency of reading and writing data. To improve the I/O performance of the hybrid hard drive.

DRAWINGS

In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the embodiments or the description of the prior art will be briefly described below. It is obvious that the drawings in the following description are only the present invention. For some embodiments, other drawings may be obtained from those of ordinary skill in the art in light of the inventive workability.

1 is a structural diagram of a system applicable to a method for implementing a hybrid hard disk according to an embodiment of the present invention;

2 is a structural diagram of a system applicable to a method for implementing a hybrid hard disk according to another embodiment of the present invention;

3 is a flowchart of an implementation of a method for implementing a hybrid hard disk according to an embodiment of the present invention;

4 is a flowchart of an implementation of a method for implementing a hybrid hard disk according to another embodiment of the present invention;

FIG. 5 is a structural diagram of a device for implementing a hybrid hard disk according to an embodiment of the present invention; FIG.

FIG. 6 is a structural diagram of a device for implementing a hybrid hard disk according to another embodiment of the present invention.

detailed description

In the following description, for purposes of illustration and description, reference However, it will be apparent to those skilled in the art that the present invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known devices, circuits, and methods are omitted so as not to obscure the description of the invention.

FIG. 1 is a block diagram showing a structure of a system to which a hybrid hard disk implementation method according to an embodiment of the present invention is applied. For convenience of description, only parts related to the present embodiment are shown.

As shown in FIG. 1, the system includes a host system 1 and a hybrid hard disk 2, and the hybrid hard disk 2 passes through a standard hard disk interface (such as Integrated-Drive-Electronics (IDE), a small computer system interface (Small Computer System). Interface (SCSI), Serial Advanced Technology Attachment (SATA), Serial Attached SCSI (SAS), etc. are connected to the host system 1.

The host system 1 can be a computer, a tablet computer, a mobile phone, or the like.

The hybrid hard disk 2 includes a controller 21 and various types of storage media (for example, a fast storage medium and a slow storage medium).

The hybrid hard disk 2 communicates with the host system 1 through the controller 21, and the controller 21 reads the corresponding data from the fast storage medium or the slow storage medium when receiving the data read command sent by the host system 1. Returning the read data to the host system 1; when receiving the data write command sent by the host system 1, the controller 21 writes data related to the write command to the fast storage medium or slow In the fast storage medium, the write result is fed back to the host system 1.

Preferably, in order to enable the user to control the cache of data autonomously, the efficiency of the data cache is improved. In this embodiment, the attribute information of the storage medium is obtained; the hybrid hard disk is partitioned according to the attribute information of the storage medium, and the information after the partition is displayed to the user. The attribute information package A type of storage medium or the like is included, wherein each type of storage medium is divided into one or more storage areas. 22, 23 in Fig. 1 are partitions according to the type of fast storage medium and the type of slow storage medium.

It should be noted that the storage medium of the hybrid hard disk of this embodiment may include two or more types, and only two types of storage media are illustrated in FIG. 1 as an example. In addition, the embodiment may further divide the fast storage medium and the slow storage medium into one or more storage areas, and only divide the fast storage medium and the slow storage medium into one storage area in FIG. 1 as an example for explanation. .

In this embodiment, the manner of partitioning the hybrid hard disk according to the attribute information of the storage medium includes, but is not limited to, any one of the following:

According to the type of each storage medium in the attribute information, the hybrid hard disk is partitioned by a standard partition format (MBR partition table, GPT partition table, etc.) so that operating systems such as Windows and Linux can correctly recognize;

Displaying topology information of the storage medium in the attribute information (for example, sectors 0 to 9999 are fast storage media, and sectors 9999 are followed by slow storage media, etc.) to the user, so that the user pairs the hybrid according to the topology information. Hard disk partitioning;

Obtaining the attribute information of the hybrid hard disk by using a specific partitioning software, and displaying the type of each storage medium in the attribute information, the storage space size of each storage medium, and the sector offset information of each storage medium to the user, so that The user partitions the hybrid hard disk according to the type of each storage medium, the storage space size of each storage medium, and the sector offset information of each storage medium;

Setting a specific public interface in the hybrid hard disk, acquiring attribute information of the storage medium in the hybrid hard disk through the specific public interface, and storing the type of each storage medium in the attribute information, and storing the storage medium The size of the space and the sector offset information of each storage medium are displayed to the user, so that the user pairs the hybrid hard disk according to the type of each storage medium, the storage space size of each storage medium, and the sector offset information of each storage medium. Partition.

Further, this embodiment further includes:

And logically segmenting a logical block address (LBA) of the hybrid hard disk according to the partition information. For example, if a 512MB hybrid hard drive contains 5MB The fast storage medium, the other is the slow storage medium, the LBA of the fast storage medium, that is, the sector is divided into 0 to 9999; the LBA of the slow storage medium, that is, the sector is divided into 10000 to 999999. Therefore, the host system can identify the corresponding storage medium type according to the sector number, and perform data operations suitable for the storage medium type.

In addition, in this embodiment, the storage medium corresponding to the segmentation information in the hybrid hard disk may be divided into one or more storage areas according to the segmented LBA. For example, sector 0 to sector 9999 are divided into one or more fast storage medium areas; sector 10000 to sector 999999 are divided into one or more slow storage medium areas.

In this embodiment, the hybrid hard disk is partitioned or segmented according to the attribute information of the storage medium, and the partitioned or segmented information is displayed to the user, so that the user can control the data cache, for example, the user can use the application scenario. The actual hotspot data is redirected to the fast storage area (such as the A file in the background art), thereby effectively reducing the problem that the existing technology cannot rely on the statistical rules of the host operating system or the hybrid hard disk to accurately identify the hot data.

Some application scenarios of this embodiment are given below:

Scenario 1: For a common desktop application scenario, the user can install the operating system and commonly used application software into the fast storage medium area, thereby speeding up the startup of the operating system and common applications.

Scenario 2: For scenarios where the application requires a large amount of memory and the actual memory of the system cannot meet the requirements, the user can designate the fast storage medium area as the swap partition of the operating system (called a paging file under Windows). The operating system uses the fast storage medium area as virtual memory to satisfy the memory requirements of the application without excessively affecting the running speed of the application.

Scenario 3: For the application scenario of the file server, the user can use the fast storage medium area as the metadata area and the log area of the file system, thereby accelerating the access speed of the file system.

Scenario 4: For the application scenario of a relational database, the user can use the fast media partition as the transaction log area of the database, thereby improving the transaction throughput of the database.

The application scenarios provided in this embodiment are only for explaining the present invention, and do not limit the scope of protection of the present invention.

FIG. 2 is a diagram showing the structure of a system to which the hybrid hard disk implementation method according to another embodiment of the present invention is applied. For convenience of description, only parts related to the embodiment are shown.

As shown in FIG. 2, the system includes a host system 1 and a hybrid hard disk 2, which is connected to a Peripheral Component Interconnect (PCI) interface, a PCI Express (Peripheral Component Interconnect Express) interface, or a USB. The interface is connected to the host system 1.

The host system 1 can be a computer, a tablet computer, a mobile phone, or the like.

The hybrid hard disk 2 includes various types of storage media (for example, a single layer unit SLC (fast storage medium), a multi-layer unit MLC, a three-layer unit TLC (slow storage medium), a non-volatile random access memory NVRAM (fast At least two of the storage media).

In this embodiment, by acquiring configuration information of the hybrid hard disk, setting the configuration information to cause the hybrid hard disk to present multiple independent functions, where each type of storage medium corresponds to one or more independent functions. device of.

It should be noted that the storage medium of the hybrid hard disk of this embodiment may include two or more types, and only four storage medium types are illustrated in FIG. 2 as an example. In this embodiment, by setting the configuration information, the hybrid hard disk presents four independent functional hard disks, as shown by 21, 22, 23, and 24 in FIG. 2 .

In this embodiment, since the device connected through the PCI interface or the PCI-Express interface has the addressing mode of the bus number, the device number, and the function number, by detecting the function number, it can be determined that the connected device includes several functions. .

Therefore, the device that sets the configuration information to cause the hybrid hard disk to exhibit multiple independent functions includes:

The hybrid hard disk is presented with a plurality of independently functioned devices by setting a header type field in the configuration information. Specifically, the seventh bit of the header type field in the configuration information is set to a predetermined identifier 1, and the predetermined identifier 1 is used to identify the hybrid hard disk as a multi-function device.

Taking the PCI interface or the PCI-Express interface as an example, the header type is specifically located in the 14th byte of the configuration information, as shown in Table 1:

Figure PCTCN2014088623-appb-000001

Table 1

Further, after the header type field in the configuration information is set to enable the hybrid hard disk to present a plurality of independent functions, the configuration information of the corresponding function number of each independent function device is set.

It should be noted that the existing hybrid hard disk only includes a configuration information table (that is, a configuration information table corresponding to the function number 0, and the setting of the first type field is the setting of the first type field in the configuration information table corresponding to the function number 0). After the first type field in the configuration information is set to enable the hybrid hard disk to display multiple independent functions, a configuration information table is set for each independent function device, that is, each function number corresponds to one. A configuration information table.

The specific description is as follows: When the host operating system performs a PCI bus scan, and initializes each device connected through the PCI interface or the PCI-Express interface, the configuration information corresponding to the function number 0 is obtained, and the identifier of the header type in the configuration information is detected. To determine whether the device is a multi-function device, and if so, to detect configuration information corresponding to other function numbers, each function number corresponds to a device with independent functions. For example, when the function number in the configuration information of a hybrid hard disk is 0, 1, 2, and 3, the host operating system treats the hybrid hard disk as four independent hard disk devices. As shown in Figure 2, host operation The system recognizes the SLC storage medium on the hybrid hard disk as the first hard disk, the MLC storage medium as the second hard disk, the TLC storage medium as the third hard disk, and the NVRAM storage medium as the fourth hard disk, so that the user can be on the hard disk. Create partitions independently, create file systems, and read and write files.

It should be noted that the device connected to the host system 1 through the USB interface may also be configured to cause the device to present multiple independent functions by setting configuration information. Specifically, by setting a plurality of interface descriptors describing the independent functions in the configuration information, the hybrid hard disk is presented with a plurality of independent functions. For example, after the camera integrated with the microphone is connected to the host system 1 through the USB interface, the host operating system reads the configuration information provided by the device, and detects that the configuration information includes two interface descriptors, respectively describing a microphone interface and a camera. The interface recognizes it as an audio device and a video device, allowing the two devices to operate independently.

In addition, it should be noted that because NVRAM has extremely low data access latency and high I/O throughput, it can be used for high-speed data I/O. Therefore, in order to improve the performance of the hybrid hard disk, the NVRAM in the hybrid hard disk can be independently used as an ultra-high speed hard disk device in the above manner, and provided to the user.

FIG. 3 is a flowchart of an implementation of a method for implementing a hybrid hard disk according to an embodiment of the present invention. The hybrid hard disk implementation method in this embodiment may be applied to the system shown in FIG.

In step S301, attribute information of the storage medium is acquired.

In this embodiment, the attribute information of the storage medium includes, but is not limited to, the type of the storage medium, the topology information of the storage medium, the storage space size of each storage medium, and the sector offset information of each storage medium.

The storage medium includes, but is not limited to, a fast storage medium and a slow storage medium.

In step S302, the hybrid hard disk is partitioned according to the attribute information of the storage medium, and the partitioned information is displayed to the user.

In this embodiment, the manner of partitioning the hybrid hard disk according to the attribute information of the storage medium includes, but is not limited to, any one of the following:

According to the type of each storage medium in the attribute information, the hybrid hard disk is partitioned by a standard partition format (MBR partition table, GPT partition table, etc.) so that operating systems such as Windows and Linux can correctly recognize;

Displaying topology information of the storage medium in the attribute information (for example, sectors 0 to 9999 are fast storage media, and sectors 9999 are followed by slow storage media, etc.) to the user, so that the user pairs the hybrid according to the topology information. Hard disk partitioning;

Obtaining the attribute information of the hybrid hard disk by using a specific partitioning software, and displaying the type of each storage medium in the attribute information, the storage space size of each storage medium, and the sector offset information of each storage medium to the user, so that The user partitions the hybrid hard disk according to the type of each storage medium, the storage space size of each storage medium, and the sector offset information of each storage medium;

Setting a specific public interface in the hybrid hard disk, acquiring attribute information of the storage medium in the hybrid hard disk through the specific public interface, and storing the type of each storage medium in the attribute information, and storing the storage medium The size of the space and the sector offset information of each storage medium are displayed to the user, so that the user pairs the hybrid hard disk according to the type of each storage medium, the storage space size of each storage medium, and the sector offset information of each storage medium. Partition.

Further, after partitioning the hybrid hard disk, the method further includes:

The logical block address of the hybrid hard disk is segmented according to the information after the partition, and the segmented information is displayed to the user.

In this embodiment, the storage medium includes a fast storage medium and a slow storage medium.

In this embodiment, the fast, slow, and other storage media in the hybrid hard disk are divided into multiple independent memories, allowing the user and its application to perform read and write operations on the storage area, thereby more effectively controlling fast and slow speeds. The use of storage media stores valuable hotspot data in fast storage media, resulting in higher data access efficiency.

FIG. 4 is a flowchart showing an implementation process of a hybrid hard disk implementation method according to another embodiment of the present invention. The hybrid hard disk implementation method described in the embodiment can be applied to the system shown in FIG. 2, and the method is detailed as follows:

In step S401, configuration information of the hybrid hard disk is acquired.

In step S402, the configuration information is set such that the hybrid hard disk presents a plurality of independently functioning devices, wherein each type of storage medium corresponds to one or more independently functioning devices.

Specifically, the header type field in the configuration information may be set such that the hybrid hard disk presents multiple independent functions.

Alternatively, a plurality of interface descriptors describing the independent functions are set in the configuration information to cause the hybrid hard disk to present a plurality of independent functional devices.

Further, after the header type field in the configuration information is set to enable the hybrid hard disk to display multiple independent functions, the method further includes:

Set the configuration information of the function number corresponding to each independent function device.

The storage medium includes at least two items: a single layer unit SLC, a multi-layer unit MLC, a three-layer unit TLC, and a non-volatile random access memory NVRAM.

In this embodiment, by modifying the configuration information in the hybrid hard disk, the storage medium in the hybrid hard disk can be independently used as an independent function device, which can effectively improve the performance of the hybrid hard disk and the efficiency of data reading of the hybrid hard disk, and has high ease. Use and practicality.

FIG. 5 shows a composition of a hybrid hard disk implementation device according to an embodiment of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown.

The hybrid hard disk implementation device 5 can be applied to the system shown in FIG. 1, which includes a plurality of types of storage media.

The hybrid hard disk implementing device 5 includes an information acquiring unit 51 and an information display unit 52. Among them, the specific functions of each unit are as follows:

An information acquiring unit 51, configured to acquire attribute information of the storage medium;

The information display unit 52 is configured to partition the hybrid hard disk according to the attribute information of the storage medium, and display the information after the partition to the user.

Further, the information display unit 52 is configured to:

Decoding the hybrid hard disk according to a type of each storage medium in the attribute information by using a standard partition format; or

Displaying the topology information of the storage medium in the attribute information to the user, so that the user partitions the hybrid hard disk according to the topology information; or

Obtaining the attribute information of the hybrid hard disk by using a specific partitioning software, and displaying the type of each storage medium in the attribute information, the storage space size of each storage medium, and the sector offset information of each storage medium to the user, so that The user partitions the hybrid hard disk according to the type of each storage medium, the storage space size of each storage medium, and the sector offset information of each storage medium; or

Setting a specific public interface in the hybrid hard disk, acquiring attribute information of the storage medium in the hybrid hard disk through the specific public interface, and storing the type of each storage medium in the attribute information, and storing the storage medium The size of the space and the sector offset information of each storage medium are displayed to the user, so that the user pairs the hybrid hard disk according to the type of each storage medium, the storage space size of each storage medium, and the sector offset information of each storage medium. Partition.

Further, the device 5 further includes:

The segmentation unit 53 is configured to segment the logical block address of the hybrid hard disk according to the information after the partitioning, after segmenting the hybrid hard disk according to the attribute information of the storage medium, and segment the segmented Information is presented to the user.

In this embodiment, the storage medium includes, but is not limited to, a fast storage medium and a slow storage medium.

The hybrid hard disk implementation device 5 of the present embodiment can be used in the foregoing implementation method of the hybrid hard disk. For details, refer to the related description of the embodiment of the hybrid hard disk in FIG. 3, and details are not described herein again.

FIG. 6 shows a composition of a hybrid hard disk implementation device according to an embodiment of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown.

The hybrid hard disk implementation device 6 can be applied to the system shown in FIG. 2, which includes a plurality of types of storage media.

The hybrid hard disk implementing device 6 includes an information acquiring unit 61 and a setting unit 62. Among them, the specific functions of each unit are as follows:

The information obtaining unit 61 is configured to acquire configuration information of the hybrid hard disk.

The setting unit 62 is configured to set the configuration information such that the hybrid hard disk presents a plurality of independent functional devices, wherein each type of storage medium corresponds to one or more independently functional devices.

Further, the setting unit 62 is configured to:

A header type field in the configuration information is set such that the hybrid hard disk presents a plurality of independently functioning devices.

Alternatively, a plurality of interface descriptors describing the independent functions are set in the configuration information to cause the hybrid hard disk to present a plurality of independent functional devices.

Further, the setting unit 62 is further configured to:

After the header type field in the configuration information is set to cause the hybrid hard disk to present a plurality of independent function devices, configuration information of the corresponding function numbers of the respective independent function devices is set.

In this embodiment, the storage medium includes but is not limited to at least two of the following: a single layer unit SLC, a multi-layer unit MLC, a three-layer unit TLC, and a non-volatile random access memory NVRAM.

The hybrid hard disk implementation device 6 of the present embodiment can be used in the foregoing implementation method of the hybrid hard disk. For details, refer to the related description of the embodiment of the hybrid hard disk in FIG. 4 , and details are not described herein again.

In summary, the embodiment of the present invention partitions the hybrid hard disk according to the attribute information of the storage medium, and displays the information after the partition to the user. Since the user has more clear data attributes (hotspot data or cold data) than the host operating system and the hybrid hard disk, the user can directly select and write the corresponding partition according to the displayed partition information, thereby improving the efficiency of reading and writing data. In turn, the I/O performance of the hybrid hard disk is improved, and the utility model has high usability and practicability.

It will be apparent to those skilled in the art that for the convenience and simplicity of the description, only the above The division of each functional unit is illustrated. In practical applications, the above function assignment can be completed by different functional units as needed, that is, the internal structure of the device is divided into different functional units to complete all or part of the functions described above. . In addition, the specific names of the respective functional units are only for the purpose of facilitating mutual differentiation, and are not intended to limit the scope of protection of the embodiments of the present invention. For the specific working process of the foregoing system, the processor and the unit, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.

In the several embodiments provided by the embodiments of the present invention, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electronic, mechanical or other form.

The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, each functional unit in each embodiment of the embodiments of the present invention may be integrated into one controller, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the embodiments of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage. In the medium, a number of instructions are included to make a computer device (which can be a personal meter) A computer, a server, or a network device, or a processor, executes all or part of the steps of the methods described in various embodiments of the embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

The embodiments described above are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that The technical solutions described in the examples are modified, or the equivalents of the technical features are replaced by the equivalents of the technical solutions of the embodiments of the present invention.

Claims (16)

  1. A method for implementing a hybrid hard disk, the hybrid hard disk includes a plurality of types of storage media, wherein the method includes:
    Obtaining attribute information of the storage medium of the hybrid hard disk;
    The hybrid hard disk is partitioned according to attribute information of the storage medium of the hybrid hard disk, and the partitioned information is displayed to the user, wherein each type of storage medium is divided into one or more storage areas.
  2. The method according to claim 1, wherein the attribute information of the storage medium of the hybrid hard disk comprises a type of each storage medium of the hybrid hard disk;
    The partitioning the hybrid hard disk according to the attribute information of the storage medium of the hybrid hard disk includes:
    The hybrid hard disk is partitioned according to the type of each storage medium using a standard partition format, wherein each type of storage medium is divided into one or more storage areas.
  3. The method according to claim 1, wherein the attribute information of the storage medium of the hybrid hard disk comprises topology information of each storage medium of the hybrid hard disk;
    The partitioning the hybrid hard disk according to the attribute information of the storage medium of the hybrid hard disk includes:
    The topology information of each storage medium is displayed to the user, so that the user partitions the hybrid hard disk according to the topology information of each storage medium, wherein each type of storage medium is divided into one or more storage areas.
  4. The method according to claim 1, wherein the attribute information of the storage medium of the hybrid hard disk comprises a type of each storage medium of the hybrid hard disk, a storage space size of each storage medium, and a sector offset of each storage medium. The information of the storage medium of the hybrid hard disk is obtained, and the hybrid hard disk is partitioned according to the attribute information of the storage medium of the hybrid hard disk, including:
    Acquiring the blend through a particular partitioning software or a specific public interface of the hybrid hard disk Attribute information of the hard disk, and displaying the type of each storage medium, the storage space size of each storage medium, and the sector offset information of each storage medium to the user, so that the user according to the type of each storage medium and each storage The mixed hard disk is partitioned by the storage space size of the medium and the sector offset information of each storage medium, wherein each type of storage medium is divided into one or more storage areas.
  5. The method according to any one of claims 1 to 4, further comprising: after the partitioning the hybrid hard disk according to the attribute information of the storage medium, further comprising:
    The logical block address of the hybrid hard disk is segmented according to the information after the partition, and the segmented information is displayed to the user.
  6. A method for implementing a hybrid hard disk, the hybrid hard disk includes a plurality of types of storage media, wherein the method includes:
    Obtaining configuration information of the hybrid hard disk;
    The configuration information is set such that the hybrid hard disk presents a plurality of independently functioning devices, wherein each type of storage medium corresponds to one or more independently functioning devices.
  7. The method according to claim 6, wherein the setting the configuration information such that the hybrid hard disk presents a plurality of independent functions comprises:
    The header type field in the configuration information is set such that the hybrid hard disk presents a plurality of independently functioning devices.
  8. The method of claim 7, wherein after setting the header type field in the configuration information to cause the hybrid hard disk to present a plurality of independently functioning devices, the method further includes:
    Set the configuration information of the function number corresponding to each independent function device.
  9. The method according to claim 6, wherein the setting the configuration information such that the hybrid hard disk presents a plurality of independent functions comprises:
    A plurality of interface descriptors describing the independent functions are set in the configuration information, so that the hybrid hard disk presents a plurality of independent functional devices.
  10. An apparatus for implementing a hybrid hard disk, the hybrid hard disk comprising a plurality of types of storage media, wherein the device comprises:
    An information acquiring unit, configured to acquire attribute information of a storage medium of the hybrid hard disk;
    An information display unit, configured to partition the hybrid hard disk according to attribute information of a storage medium of the hybrid hard disk, and display the partitioned information to a user, where each type of storage medium is divided into one or more storage Area.
  11. The apparatus according to claim 10, wherein said information display unit is configured to:
    The hybrid hard disk is partitioned according to a type of each storage medium in the attribute information by using a standard partition format, wherein each type of storage medium is divided into one or more storage areas; or
    Displaying the topology information of each storage medium in the attribute information to the user, so that the user partitions the hybrid hard disk according to the topology information of each storage medium, where each type of storage medium is divided into one or more Storage area; or,
    Displaying the type of each storage medium in the attribute information, the storage space size of each storage medium, and the sector offset information of each storage medium to the user, so that the user stores the storage medium according to the type of each storage medium. The size of the space and the sector offset information of each storage medium partition the hybrid hard disk.
  12. The device according to claim 10 or 11, wherein the device further comprises:
    a segmentation unit, configured to segment the logical block address of the hybrid hard disk according to the information after the partitioning, after segmenting the hybrid hard disk according to the attribute information of the storage medium, and segment the segmented information Show it to the user.
  13. An apparatus for implementing a hybrid hard disk, the hybrid hard disk comprising a plurality of types of storage media, wherein the device comprises:
    An information acquiring unit, configured to acquire configuration information of the hybrid hard disk;
    And a setting unit, configured to set the configuration information, so that the hybrid hard disk presents a plurality of independently functioning devices, wherein each type of storage medium corresponds to one or more independently functioning devices.
  14. The apparatus according to claim 13, wherein said setting unit is configured to:
    Setting a header type field in the configuration information to cause the hybrid hard disk to present multiple Standalone device.
  15. The device according to claim 14, wherein the setting unit is further configured to:
    After the header type field in the configuration information is set to cause the hybrid hard disk to present a plurality of independent function devices, configuration information of the corresponding function numbers of the respective independent function devices is set.
  16. The apparatus according to claim 15, wherein said setting unit is configured to:
    A plurality of interface descriptors describing the independent functions are set in the configuration information, so that the hybrid hard disk presents a plurality of independent functional devices.
PCT/CN2014/088623 2013-10-21 2014-10-15 Hybrid hard disk implementation method and device WO2015058641A1 (en)

Priority Applications (2)

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

Publications (1)

Publication Number Publication Date
WO2015058641A1 true WO2015058641A1 (en) 2015-04-30

Family

ID=49932266

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/088623 WO2015058641A1 (en) 2013-10-21 2014-10-15 Hybrid hard disk implementation method and device

Country Status (2)

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

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530236A (en) * 2013-10-21 2014-01-22 华为技术有限公司 Method and device for obtaining hybrid hard disk
CN106873912A (en) * 2017-02-16 2017-06-20 郑州云海信息技术有限公司 Dynamic partition storage method, device and system of TCL chip solid-state disk
CN107301023A (en) * 2017-06-29 2017-10-27 郑州云海信息技术有限公司 Solid state disc configuration information management method and device

Citations (5)

* 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
CN101751225A (en) * 2008-12-04 2010-06-23 上海华虹Nec电子有限公司 Data access method of hybrid hard drive
CN102185910A (en) * 2011-04-22 2011-09-14 湖南大学 Data distribution method for diskless network server based on solid state disk (SSD) and hard disk drive (HDD) hybrid storage
US20130227220A1 (en) * 2012-02-23 2013-08-29 Agency For Science, Technology And Research 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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101989121B (en) * 2009-07-30 2013-10-02 联想(北京)有限公司 Computer system, mixing memory and method for controlling power supply of computer memory
CN101907978B (en) * 2010-07-27 2011-12-07 浙江大学 Mixed storage system and storage method based on solid state disk and magnetic hard disk

Patent Citations (5)

* 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
CN101751225A (en) * 2008-12-04 2010-06-23 上海华虹Nec电子有限公司 Data access method of hybrid hard drive
CN102185910A (en) * 2011-04-22 2011-09-14 湖南大学 Data distribution method for diskless network server based on solid state disk (SSD) and hard disk drive (HDD) hybrid storage
US20130227220A1 (en) * 2012-02-23 2013-08-29 Agency For Science, Technology And Research 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

Also Published As

Publication number Publication date
CN103530236A (en) 2014-01-22

Similar Documents

Publication Publication Date Title
KR101245011B1 (en) Method and system for queuing transfers of multiple non-contiguous address ranges with a single command
US8402152B2 (en) Apparatus and system for object-based storage solid-state drive
JP5592942B2 (en) Shortcut I / O in virtual machine system
US8626987B2 (en) Flash memory system and defragmentation method
US7310699B2 (en) Mass storage accelerator
US9195395B1 (en) Flash/DRAM/embedded DRAM-equipped system and method
CN103890688B (en) Mixing one kind of flash-dram memory module
KR20130031046A (en) Flash memory device and data manage method thererof
US8112603B2 (en) Methods, systems, and computer program products for file relocation on a data storage device
JP2013242908A (en) Solid state memory, computer system including the same, and operation method of the same
JP2011253251A (en) Data storage device and data writing method
US9898402B2 (en) Unaligned data coalescing
JP2012515954A (en) Logical address offset
US9229653B2 (en) Write spike performance enhancement in hybrid storage systems
KR100923990B1 (en) Computing system based on characteristcs of flash storage
JP6253614B2 (en) Storage device virtualization
KR101629615B1 (en) Apparatus and method for low power low latency high capacity storage class memory
US9116638B2 (en) Method and apparatus for reading and writing data in file system
US7788460B2 (en) Defragmenting objects in a storage medium
US20090157756A1 (en) File System For Storing Files In Multiple Different Data Storage Media
US8762627B2 (en) Memory logical defragmentation during garbage collection
US10203881B2 (en) Optimized execution of interleaved write operations in solid state drives
US9164679B2 (en) System, method and computer program product for multi-thread operation involving first memory of a first memory class and second memory of a second memory class
US9141529B2 (en) Methods and apparatus for providing acceleration of virtual machines in virtual environments
US8874826B2 (en) Programming method and device for a buffer cache in a solid-state disk system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14855802

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase in:

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14855802

Country of ref document: EP

Kind code of ref document: A1