KR20120110670A - Method for managing cache control record of binary tree structure - Google Patents
Method for managing cache control record of binary tree structure Download PDFInfo
- Publication number
- KR20120110670A KR20120110670A KR1020110028682A KR20110028682A KR20120110670A KR 20120110670 A KR20120110670 A KR 20120110670A KR 1020110028682 A KR1020110028682 A KR 1020110028682A KR 20110028682 A KR20110028682 A KR 20110028682A KR 20120110670 A KR20120110670 A KR 20120110670A
- Authority
- KR
- South Korea
- Prior art keywords
- node
- cache control
- tree structure
- binary tree
- control record
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/0802—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F12/0893—Caches characterised by their organisation or structure
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/901—Indexing; Data structures therefor; Storage structures
- G06F16/9027—Trees
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Memory System Of A Hierarchy Structure (AREA)
Abstract
In the method for managing a cache control record of a binary tree structure according to the present invention, for example, in a device driver in a host, a node key value of a cache control record generated by a cache control operation is checked to locate a specific node of the binary tree structure. In the case of adding the cache control record, the balance factor value of each node of the binary tree structure is checked, and if there is a node having a balance factor value of 2 or more, the balance factor value of each node is equal to or less than an absolute value of 1. By rebalancing the binary tree structure, any one cache control record can be retrieved more quickly in the binary tree structure, effectively reducing the time required for cache control operations.
Description
The present invention relates, for example, to a cache control record management method of a binary tree structure for quickly reading application data of an SSD instead of an application data of a hard disk drive (HDD).
In general, as a large storage medium, a hard disk drive (HDD) is widely used. For example, in recent years, SNS that uses a plurality of NAND flash memories as a next generation mass storage medium. Solid State Drives (SSDs) are becoming increasingly popular and commercially available.
On the other hand, the SSD has a faster read / write speed than the hard disk drive (HDD), has low power consumption, and has a strong resistance to impact. ) Is rapidly increasing.
For example, in various types of hosts such as personal computers (PCs), a hard disk drive (HDD) is used as a large main storage medium, but a read / write speed may be used. Increasingly, the use of SSDs having advantages as sub storage media is rapidly increasing.
In addition, instead of the application data recorded on the hard disk drive (HDD), an efficient solution for quickly reading the same application data copied and written to the SSD (SD) to improve the data processing speed There is an urgent need to come up with a plan.
For example, the present invention provides a cache control record (Cache) so that application data of an SSD may be quickly read instead of application data of a hard disk drive (HDD) to improve data processing speed. It is to provide a binary tree structure cache control record management method for managing and retrieving control records more efficiently.
In the method for managing a cache control record of a binary tree structure according to the present invention, a device driver in a host identifies a node key value of a cache control record generated by a cache control operation, and stores the cache at a specific node location of a binary tree structure. Adding a control record; And checking the balance factor value of each node of the binary tree structure, and rebalancing the binary tree structure such that the balance factor value of each node is less than or equal to 1 if there is a node having a balance factor value of 2 or more. Characterized in that made,
The cache control record may include a start / end address of a hard disk drive and a start / end address of an SSD according to a cache control operation.
The node key value may be a start address of a hard disk drive included in a cache control record.
The balance factor value may be a result of subtracting a path depth below a right side from a path depth below a left side based on each node of a binary tree structure.
In addition, in the second step, when the balance factor value is 2 and the upper node A, the intermediate node B, and the lower node C are all present continuously only to the left side, the upper node A Re-adjust to the lower right of the intermediate node (B),
In addition, in the second step, when the balance factor value is -2 and the upper node A, the intermediate node B, and the lower node C are all present continuously only to the right, the upper node A ) Is readjusted to the lower left of the intermediate node (B),
In the second step, when the balance factor value is 2, the upper node A is present on the upper right side of the intermediate node B, and the lower node C is present on the lower right side of the intermediate node B. Re-adjust the upper node A to the lower right of the lower node C, and the intermediate node B to the lower left of the lower node C.
In the second step, the balance factor value is -2, and the upper node A is present on the upper left side of the intermediate node B, and the lower node C is present on the lower left side of the intermediate node B. In this case, the upper node A is readjusted to the lower left of the lower node C, and the intermediate node B is readjusted to the lower right of the lower node C.
In the binary tree structure, when searching for any one cache control record, the node key value of the cache control record to be searched is checked, and then the cache control record corresponding to the node key value is searched. Characterized in that further comprises,
In addition, when any one cache control record is searched in the binary tree structure, the start / end address of the SD contained in the found cache control record is checked, and the application data stored in the corresponding recording section of the corresponding SD is read. Characterized in that it further comprises the step of uploading.
In the method for managing a cache control record of a binary tree structure according to the present invention, for example, in a device driver in a host, a node key value of a cache control record generated by a cache control operation is checked to locate a specific node of the binary tree structure. In the case of adding the cache control record, the balance factor value of each node of the binary tree structure is checked, and if there is a node having a balance factor value of 2 or more, the balance factor value of each node is equal to or less than an absolute value of 1. By rebalancing the binary tree structure, any one cache control record can be retrieved more quickly in the binary tree structure, effectively reducing the time required for cache control operations.
1 illustrates a configuration of an embodiment of a device driver applied to a cache control record management method of a binary tree structure according to the present invention.
2 illustrates an embodiment of a cache control operation in accordance with the present invention;
3 illustrates an embodiment of a cache control table in accordance with the present invention;
4 illustrates an embodiment of a cache control record of a binary tree structure according to the present invention;
5 to 8 conceptually illustrate various embodiments in which the binary tree structure is rearranged in accordance with the present invention;
9 illustrates a specific embodiment in which the binary tree structure is readjusted in accordance with the present invention.
Hereinafter, a preferred embodiment of a cache control record management method of a binary tree structure according to the present invention will be described in detail with reference to the accompanying drawings.
First, the cache control record management method of the binary tree structure according to the present invention is applied to a device driver included in various types of hosts such as a personal computer (PC), for example, a device. As the driver, a filter driver can be used.
Meanwhile, the
In addition, the hard disk drive (HDD) and the SSD (SSD) is used to connect through the
In addition, the
In the meantime, for example, an LBA address specified by a logical block addressing (LBA) method may be used. In the
For example, as shown in FIG. 2, application data (eg, Application #n) recorded at a specific start / end address in the hard disk drive HDD is read and uploaded to an application in the host. In this case, the
The hard disk drive start / end address (HDD Start / End LBA) and the SD start / end address (SSD Start / End LBA) may be included in the cache control table in the form of a look up table. In order to perform a series of cache control (Cache Control) operation to be stored in association with (), the hard disk drive start address (HDD Start LBA), for example, as shown in Figure 2, Serial numbers and the like are additionally recorded.
In the
In addition, the SDD corresponding to the searched SD start / end address is accessed, the application data copied and stored in the recording section is quickly read and uploaded to the application. As shown in FIG. 3, since a large number of addresses are stored in the cache control table in the form of a lookup table, each time the
Therefore, the
On the other hand, when a new cache control record is generated by the cache control operation, the
For example, as shown in FIG. 5, when the HDD_Start_LBA of node A is 100, if the HDD_Start_LBA of node B, which is a new cache control record, is 90 less than 100, node B is added to the lower left of node A.
Then, if HDD_Start_LBA of node C, which is another new cache control record, is 80 less than 90, node C is added to the bottom left of node B. In this case, the balance factor value of node A is left The result of subtracting the path depth Hight_Left from 2 below 0 (that is, no node below) from the path depth Hight_Left below right is 2.
On the other hand, the balance factor value of the node B is a result of subtracting 0, the path depth of the lower right, from 1, which is the path depth of the lower left, and the
For example, as shown in FIG. 5, when the balance factor value of the upper node A is 2 and the upper node A, the intermediate node B, and the lower node C are all present continuously only to the left side, the upper node A Is re-adjusted to the lower right of the intermediate node B, so that the left-left (LL) rotation operation is performed such that each node's balance factor value is at least an absolute value of 1 or less.
On the other hand, as shown in FIG. 6, when the balance factor value of the upper node A is -2 and the upper node A, the intermediate node B, and the lower node C are all present continuously only to the right, in the device driver, The upper node A is readjusted to the lower left of the intermediate node B to perform a right-right rotation operation such that each node has a balance factor value of at least 1 or less than an absolute value.
In addition, as shown in FIG. 7, when the balance factor value of the upper node A is 2, and the upper node A exists on the upper right side of the intermediate node B, and the lower node C exists on the lower right side of the intermediate node B, RR rotation operation and LL to readjust the upper node A to the lower right of the lower node C and the middle node B to the lower left of the lower node C so that the balance factor value for each node is at least an absolute value of 1 or less. The rotation operation is performed sequentially.
As shown in FIG. 8, while the balance factor value of the upper node A is -2, the upper node A is present on the upper left of the intermediate node B, and the lower node C is the intermediate node B. As shown in FIG. If present in the lower left, the upper node (A) is readjusted to the lower left of the lower node (C), and the intermediate node (B) to the lower right of the lower node (C) to adjust the balance factor for each node The LL rotation operation and the RR rotation operation so that the value becomes at least an
Meanwhile, FIG. 9 illustrates a specific embodiment in which the binary tree structure is readjusted according to the present invention. For example, when the node
Subsequently, when a new node
Therefore, in order to ensure that the balance factor value of the node
Subsequently, when a new node
In addition, when a new node
On the other hand, when a new node
Therefore, in the
On the other hand, when the
For example, in the binary tree structure of FIG. 9, when a
In the binary tree structure, when any one cache control record is searched, the start / end address of the SD contained in the searched cache control record is checked, and the application data stored in the corresponding recording period of the SD is read. By uploading the data, the time required for the cache control operation can be shortened efficiently.
Or more, preferred embodiments of the present invention described above, for the purpose of illustration, those skilled in the art, within the technical spirit and the technical scope of the present invention disclosed in the appended claims below, to further improve various other embodiments Changes, substitutions or additions will be possible.
100: host 101: application
102: file system 103: OS
104: device driver 105: South Bridge
106: SATA interface 200: hard disk drive
300: hybrid drive 301: port multiplier
302: ss 303: optical disk drive
Claims (10)
Checking a balance factor value of each node of the binary tree structure, and if there is a node having a balance factor value of 2 or more, reconstructing the binary tree structure such that the balance factor value of each node is less than or equal to an absolute value of 1; Cache control record management method of the binary tree structure, characterized in that consisting of.
And the cache control record comprises a start / end address of a hard disk drive and a start / end address of an SDD according to a cache control operation.
And the node key value is a start address of a hard disk drive included in a cache control record.
The balance factor value is a result of subtracting a path depth at the bottom right from a path depth at the bottom left based on each node of the binary tree structure.
In the second step, when the balance factor value is 2 and the upper node A, the intermediate node B, and the lower node C are all present continuously only to the left side, the upper node A is intermediate. A method for managing a cache control record in a binary tree structure, characterized in that it is readjusted to the lower right of the node (B).
In the second step, when the balance factor value is -2 and the upper node A, the intermediate node B, and the lower node C are all present on the right side only, the upper node A is determined. The cache control record management method of the binary tree structure characterized by the readjustment to the lower left of the intermediate node (B).
In the second step, when the balance factor value is 2, the upper node A is present on the upper right side of the intermediate node B, and the lower node C is present on the lower right side of the intermediate node B, And realigning the upper node (A) to the lower right side of the lower node (C), and the intermediate node (B) to the lower left side of the lower node (C).
In the second step, when the balance factor value is -2 and the upper node A exists above the left side of the intermediate node B, and the lower node C exists below the left side of the intermediate node B, A method of managing a cache control record of a binary tree structure, wherein the upper node A is readjusted to the lower left of the lower node C, and the intermediate node B is readjusted to the lower right of the lower node C. .
In the binary tree structure, if retrieving any one cache control record, checking the node key value of the cache control record to be retrieved, and then retrieving a corresponding cache control record in the binary tree structure; Cache control record management method of the binary tree structure, characterized in that made by.
In the binary tree structure, if any one cache control record is searched, the SD start / end address included in the retrieved cache control record is checked, and the application data stored in the corresponding recording period of the SD is read and uploaded. The cache control record management method of the binary tree structure, characterized in that further comprising the step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020110028682A KR20120110670A (en) | 2011-03-30 | 2011-03-30 | Method for managing cache control record of binary tree structure |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020110028682A KR20120110670A (en) | 2011-03-30 | 2011-03-30 | Method for managing cache control record of binary tree structure |
Publications (1)
Publication Number | Publication Date |
---|---|
KR20120110670A true KR20120110670A (en) | 2012-10-10 |
Family
ID=47281472
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020110028682A KR20120110670A (en) | 2011-03-30 | 2011-03-30 | Method for managing cache control record of binary tree structure |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR20120110670A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113407111A (en) * | 2020-03-17 | 2021-09-17 | 慧荣科技股份有限公司 | Flash memory controller, method of flash memory controller and memory device |
-
2011
- 2011-03-30 KR KR1020110028682A patent/KR20120110670A/en not_active Application Discontinuation
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113407111A (en) * | 2020-03-17 | 2021-09-17 | 慧荣科技股份有限公司 | Flash memory controller, method of flash memory controller and memory device |
CN113407111B (en) * | 2020-03-17 | 2024-03-29 | 慧荣科技股份有限公司 | Flash memory controller, method of flash memory controller and memory device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10776153B2 (en) | Information processing device and system capable of preventing loss of user data | |
KR101702201B1 (en) | Optimized context drop for a solid state drive(ssd) | |
TWI507869B (en) | System,apparatus,and method for virtualizing storage devices | |
KR101086857B1 (en) | Control Method of Solid State Storage System for Data Merging | |
US9923562B1 (en) | Data storage device state detection on power loss | |
US8891298B2 (en) | Lifetime mixed level non-volatile memory system | |
CN107526689B (en) | Read cache management | |
US20090157756A1 (en) | File System For Storing Files In Multiple Different Data Storage Media | |
US10956071B2 (en) | Container key value store for data storage devices | |
JP2009048613A (en) | Solid state memory, computer system including the same, and its operation method | |
KR20110091677A (en) | System and method for recovering solid state drive data | |
US8433847B2 (en) | Memory drive that can be operated like optical disk drive and method for virtualizing memory drive as optical disk drive | |
US8862856B2 (en) | Implementing remapping command with indirection update for indirected storage | |
US20150234595A1 (en) | Storage device | |
JP2017204037A (en) | Information processor, duplication elimination program, and duplication elimination method | |
JP2008541283A (en) | Circuits and methods that can improve the service life of memory | |
JP5956971B2 (en) | WORM cartridge support realized by LTFS (LinearTapeFileSystem) | |
US8938641B2 (en) | Method and apparatus for synchronizing storage volumes | |
Ma et al. | Alleviating hot data write back effect for shingled magnetic recording storage systems | |
US20110264848A1 (en) | Data recording device | |
CN102160038A (en) | Method and an apparatus to manage non-volatile disl cache | |
KR20120110670A (en) | Method for managing cache control record of binary tree structure | |
US10915262B2 (en) | Hybrid storage device partitions with storage tiers | |
US9367258B2 (en) | Systems and methods for managing storage space in hybrid data storage systems | |
Rahiman et al. | Solid state disk: A new storage device for video storage server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
WITN | Withdrawal due to no request for examination |