This application claims priority for Taiwan patent application no. 103106712 filed at Feb. 27, 2014, the content of which is incorporated by reference in its entirely.
1. Field of the Invention
The present invention relates to a storage device applied to recording multimedia and video data, particularly to a multi-threshold storage device and method using multiple thresholds to configure storage positions of files.
2. Description of the Related Art
With popularization of community websites and video websites, images and videos are massively transmitted, displayed and shared on line. Meanwhile, the hardware thereof has also advanced greatly. Persistent hardware advance provides higher and higher image resolution, and users' requirement for image quality has been beyond the so-called viewability. The higher the resolution, the greater the file size, and the slower the data accessing. The conventional data access technology is no more able to access high-resolution video files satisfactorily. Thus, there are innovative storage devices developed to solve the problem.
Hard disc drives (HDD) are the hardware frequently used for data storage traditionally. HDD has a high capacity cost rate, but it is hard to deal with the current massive data streams. Compared with HDD, solid state drives (SSD) exhibit higher efficiency in data accessing. However, SSD has a shorter service life and a lower capacity cost rate.
It is well known in multimedia application: popular files are accessed frequently. In the conventional technology, frequently accessed files are placed in SSD, and non-frequently accessed files are placed in HDD. Although a single SSD access activity can only improve performance to a very limited extent, multitudinous SSD access activities would greatly promote operation efficiency and obviously reduce data accessing time. However, some factors should be further considered in using SSD, such as the size of a file. Too large a file would consume a great amount of storage space of SSD and raise the hardware cost. Appropriate integration of HDD and SSD should be able to achieve optimized operation performance and economical efficiency.
Accordingly, the present invention proposes a multi-threshold storage device and method to overcome the abovementioned problems.
The primary objective of the present invention is to provide a multi-threshold storage device and method, wherein multiple thresholds are used to configure storage positions of files, improve the economical efficiency of file storage and raise the overall performance of a server system.
Another objective of the present invention is to provide a multi-threshold storage device and method, which uses 8 eigenvalues of a file to determine whether the file is placed in a hard disc drive or a solid state drive.
To achieve the abovementioned objectives, the present invention proposes a multi-threshold storage device, which comprises at least one hard disc drive (HDD), at least one solid state drive (SSD), and a controller electrically connected with HDD and SSD. The controller examines whether the read/write (r/w) count of a file exceeds a preset r/w count, whether the storage space occupied by the file exceeds a preset storage space and whether the file is a popular file to determine whether the file is stored in HHD or SSD. Suppose the following three conditions are simultaneously satisfied: the r/w count of the file exceeds the preset r/w count; the storage space occupied by the file does not exceed a preset storage space; and the file is a popular file. In such a case, the controller places the file in SSD. Suppose one or more of the following three conditions are satisfied: the r/w count of the file does not exceed the preset r/w count; the storage space occupied by the file exceeds a preset storage space; and the file is not a popular file. In such a case, the controller places the file in HDD.
The present invention also proposes a multi-threshold storage method, which comprises steps: acquiring at least one file; examining whether the r/w count of the file exceeds a preset r/w count; if not, placing the file in HDD; if yes, examining whether the storage space occupied by the file exceeds a preset storage space; if yes, placing the file in HDD; if not, examining whether the file is a popular file; if not, placing the file in HDD; if yes, placing the file in SSD.
Below, embodiments are described in detail to make easily understood the objectives, technical contents, characteristics and accomplishments of the present invention.
Refer to
The controller 14 determines whether a file is a popular file according to the r/w count of the file. If the r/w count of a file is smaller, the controller 14 determines that the file is an uncommon file, i.e. an unpopular file. In such a case, the controller 14 places the file in HDD 10. If the r/w count of a file is greater, the controller 14 determines that the file is a popular file and places the file in SSD 12. However, if the r/w count of the file decreases, the controller 14 moves the file from SSD 12 to HDD 10.
Besides, the controller 14 has a priority list recording the priorities for storing files in SSD 12. The priority of a file is determined according to the read timing and the write timing of the file. The controller 14 examines whether and when a file has been read or written before. The later a file was read, the higher the priority to store the file in SSD. The controller 14 stores the files having higher priorities in SSD 12 to enable the higher-priority files to be read faster by users. The controller 14 stores the files having lower priorities in HDD 10 and retrieves them when necessary.
The architecture of a multi-threshold storage device of the present invention has been described above, and the process of a multi-threshold storage method will be described below. Refer to
After files have been placed in HDD or SSD, the controller 14 further examines the priorities for storing the files in SSD. The priority of a file is determined according to the read timing and the write timing of the file. The controller 14 examines whether and when a file has been read or written before. The later a file was read, the higher the priority to store the file in SSD. The controller 14 stores the files having higher priorities in SSD 12 to enable the higher-priority files to be read faster by users. The controller 14 stores the files having lower priorities in HDD 10 and retrieves them when necessary.
From the above description, it is learned that present invention places a file in HDD 10 or SSD 12 according to 8 eigenvalues. Refer to
In conclusion, the present invention allocates files to HHD or SSD according to multiple thresholds including 8 eigenvalues, improving the economical efficiency of file storage and raising the overall performance of a server system.
The embodiments described above are only to exemplify the present invention but not to limit the scope of the present invention. Any equivalent modification or variation according to the spirit or characteristic of the present invention is to be also included within the scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
103106712 | Feb 2014 | TW | national |