STORAGE APPARATUS, STORAGE CONTROL METHOD, AND PROGRAM

The storage device addresses processing performance declines by using dual non-volatile memories to manage data based on usage frequency, ensuring efficient operation and extended memory lifespan.

JP7572520B1Active Publication Date: 2024-10-23NEC PLATFROMS LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2023126138
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2023-08-02
Publication Date
2024-10-23
Estimated Expiration
2043-08-02

AI Technical Summary

Technical Problem

Existing storage devices face a decline in processing performance due to varying data usage frequencies, where data managed in low-speed non-volatile memory is frequently accessed despite increased usage, leading to inefficiencies.

Method used

A storage device with a first and second non-volatile memory, where the first memory has higher processing speed and write durability, and includes a calculation unit to determine data usage frequency, transferring data from the first to the second memory when usage is infrequent.

Benefits of technology

This approach suppresses the decline in processing performance by managing frequently used data in the high-speed memory and less frequently used data in the low-speed memory, maintaining efficiency and extending the lifespan of the first memory.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007572520000001_ABST
    Figure 0007572520000001_ABST
Patent Text Reader

Abstract

One object is to provide a storage device etc. capable of suppressing a decrease in processing performance. [Solution] A storage device according to one aspect of the present disclosure has a first memory which is a non-volatile storage medium, and a second memory which is a non-volatile storage medium having a processing speed slower than that of the first memory, and is equipped with a calculation means for calculating the usage frequency of data stored in a first storage area constructed in the first memory, a determination means for determining whether the data is used frequently based on the calculated usage frequency, and a data control means for writing data determined to be used infrequently to a second storage area constructed in the second memory.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a storage control technique. [Background technology]

[0002] Patent Document 1 discloses a technology relating to a storage device.

[0003] Patent Document 1 discloses an SSD (Solid State Drive) having a high-speed nonvolatile memory and a low-speed nonvolatile memory. Specifically, the SSD disclosed in Patent Document 1 stores received data in the high-speed nonvolatile memory. At this time, data determined to be hot data is stored in the high-speed nonvolatile memory, and data determined to be cold data is moved from the high-speed nonvolatile memory to the low-speed nonvolatile memory. Note that hot data is data that is frequently write-accessed. Cold data is data that is written once or infrequently and is read frequently. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2009-48613 A Summary of the Invention [Problem to be solved by the invention]

[0005] The frequency of data usage may change. For example, assume that certain data is stored in a low-speed nonvolatile memory because it is used infrequently. Later, the frequency of use of the certain data may increase. At this time, the certain data is managed in the low-speed nonvolatile memory. That is, even if the certain data is used frequently, access to the certain data is performed in the low-speed nonvolatile memory. This may lead to a decrease in the processing performance of a storage device such as an SSD.

[0006] The present disclosure has been made in consideration of the above-mentioned problems, and has as one object to provide a storage device etc. that is capable of suppressing a decrease in processing performance. [Means for solving the problem]

[0007] A storage device according to one aspect of the present disclosure has a first memory which is a non-volatile storage medium, and a second memory which is a non-volatile storage medium having a processing speed slower than that of the first memory, and is equipped with a calculation means for calculating a usage frequency of data stored in a first memory area constructed in the first memory, a determination means for determining whether the data is used frequently based on the calculated usage frequency, and a data control means for writing data determined to be used less frequently to a second memory area constructed in the second memory.

[0008] A storage control method according to one aspect of the present disclosure, in a storage device having a first memory which is a non-volatile storage medium and a second memory which is a non-volatile storage medium having a processing speed slower than that of the first memory, calculates a usage frequency of data stored in a first memory area constructed in the first memory, determines whether the data is used frequently based on the calculated usage frequency, and writes data determined to be used less frequently to a second memory area constructed in the second memory.

[0009] A program according to one embodiment of the present disclosure causes a storage device having a first memory, which is a non-volatile storage medium, and a second memory, which is a non-volatile storage medium having a slower processing speed than the first memory, to execute the following processes: calculate the frequency of use of data stored in a first memory area constructed in the first memory; determine whether the data is used frequently based on the calculated frequency of use; and write data determined to be used less frequently to a second memory area constructed in the second memory. Effect of the Invention

[0010] According to the present disclosure, degradation of processing performance can be suppressed. [Brief description of the drawings]

[0011] [Figure 1] FIG. 2 is a diagram illustrating an example of a functional configuration of a storage device according to the present disclosure. [Diagram 2] 11 is a flowchart illustrating an example of an operation of the storage device according to the present disclosure. [Diagram 3] 1 is a block diagram including an example of a functional configuration of a storage device 100 according to the present disclosure. [Figure 4] FIG. 2 is a block diagram showing an example of a hardware configuration of a storage device according to the present disclosure. [Diagram 5] FIG. 13 is a diagram illustrating an example of a management table according to the present disclosure. [Figure 6] FIG. 13 is a diagram illustrating an example of a usage frequency table according to the present disclosure. [Figure 7] 1 is a first flowchart illustrating an example of an operation of the storage device according to the present disclosure. [Figure 8] 11 is a second flowchart illustrating an example of an operation of the storage device according to the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings, in which each of the drawings is associated with one or more embodiments.

[0013] <First embodiment> An overview of the storage device of the first embodiment will be described.

[0014] 1 is a diagram showing an example of a functional configuration of a storage device 100. The storage device 100 includes a non-volatile storage medium. For example, the storage device 100 is configured by an SSD.

[0015] As shown in FIG. 1, the storage device 100 includes a first memory 10 and a second memory 20. The first memory 10 and the second memory 20 are non-volatile storage media. For example, the first memory 10 and the second memory 20 are flash memories. The first memory 10 is a memory having a higher processing performance than the second memory 20. For example, the first memory 10 is a memory having a faster processing speed than the second memory 20. Conversely, the second memory 20 is a memory having a slower processing speed than the first memory 10. Furthermore, the first memory 10 may be a memory having a higher number of writable times than the second memory 20. In other words, the first memory 10 may be a memory having a higher write durability than the second memory 20.

[0016] Data stored in the storage device 100 is written to a storage area constructed by the first memory 10 or the second memory 20. The storage area constructed by the first memory 10 is referred to as a first storage area. Also, the storage area constructed by the second memory 20 is referred to as a second storage area.

[0017] The reference process of data stored in the first memory 10 is faster than the reference process of data stored in the second memory 20. Therefore, by managing a large amount of data in the first memory 10, the reference process speed of the entire storage device is improved. On the other hand, there is a limit to the number of writes in each memory. Therefore, if data is managed only in the first memory 10, there is a risk that the time until the limit on the number of writes in the first memory 10 is reached will be shortened. Therefore, it is conceivable to manage data with a large number of references in the first memory 10 and data with a small number of references in the second memory 20. This makes it possible to speed up the process as a whole storage device and suppress the shortening of the time until the limit on the number of writes is reached.

[0018] 1, the storage device 100 includes a calculation unit 110, a determination unit 120, and a data control unit 130. The calculation unit 110 calculates the usage frequency of data stored in the storage device 100. For example, data is stored in a first storage area constructed by a first memory. The data is referenced, for example, by a request from an external device. The calculation unit 110 may calculate the number of times the data is referenced per unit time as the usage frequency.

[0019] In this manner, the calculation unit 110 calculates the usage frequency of the data stored in the first storage area constructed in the first memory 10. The calculation unit 110 is an example of a calculation means.

[0020] The determination unit 120 determines whether the frequency of use of the data is high or low. For example, the determination unit 120 compares the calculated frequency of use with a threshold. Then, when the frequency of use is equal to or higher than the threshold, the determination unit 120 may determine that the frequency of use of the data is high. Also, when the frequency of use is lower than the threshold, the determination unit 120 may determine that the frequency of use of the data is low.

[0021] In this way, the determination unit 120 determines whether the data is used frequently based on the calculated frequency of use. The determination unit 120 is an example of a determination means.

[0022] The data control unit 130 controls data stored in the first storage area or the second storage area. Specifically, the data control unit 130 writes data determined to be used infrequently among the data stored in the first storage area to the second storage area. As a result, the data determined to be used infrequently is present in both the first storage area and the second storage area.

[0023] In this way, the data control unit 130 writes data determined to be used infrequently into the second storage area constructed in the second memory 20. The data control unit 130 is an example of a data control means.

[0024] Next, an example of the operation of the storage device 100 will be described with reference to Fig. 2. In this disclosure, each step in a flowchart will be expressed using a number assigned to each step, such as "S1".

[0025] 2 is a flowchart illustrating an example of the operation of the storage device 100. The calculation unit 110 calculates the usage frequency of data stored in a first storage area constructed in the first memory 10 (S1). The determination unit 120 determines whether the usage frequency of the data is high or low based on the calculated usage frequency (S2). The data control unit 130 writes the data determined to be used infrequently to a second storage area constructed in the second memory 20 (S3).

[0026] Thus, the storage device 100 of the first embodiment has a first memory 10 which is a non-volatile storage medium, and a second memory 20 which is a non-volatile storage medium having a processing speed slower than that of the first memory. The storage device 100 calculates the usage frequency of data stored in a first storage area constructed in the first memory 10. The storage device 100 judges whether the usage frequency of the data is high or low based on the calculated usage frequency. Then, the storage device 100 writes the data which is judged to be used infrequently to a second storage area constructed in the second memory 20.

[0027] The frequency of use of data may change. For example, the frequency of use of data managed in the second memory 20 may increase. In this case, if the data continues to be managed in the second memory 20, there is a risk of the processing performance of the device as a whole decreasing. In response to this, the storage device 100 stores data determined to be used infrequently in both the first memory 10 and the second memory 20. Therefore, when the frequency of use of data managed in the second memory 20 increases, the storage device 100 can switch the management of the data to the first memory 10. This allows the storage device 100 to suppress a decrease in processing performance.

[0028] <Second embodiment> Next, a storage device according to a second embodiment will be described. In the second embodiment, a further example of the storage device 100 described in the first embodiment will be described. Note that some of the contents overlapping with the first embodiment will not be described.

[0029] [Details of storage device 100] 3 is a block diagram including an example of a functional configuration of the storage device 100. In this example, the storage device 100 is communicably connected to a host device 200. The host device 200 is a computer capable of inputting and outputting data. The host device 200 is capable of accessing the storage device 100. For example, the host device 200 transmits a request to read or write data to the storage device 100. As a result, the host device 200 obtains data from the storage device 100 or stores data in the storage device 100.

[0030] The storage device 100 performs a data read process or a data write process in response to a request from the host device 200. The storage device 100 has at least a first memory 10 and a second memory 20. That is, the storage device 100 accesses a first storage area constructed by the first memory 10 or a second storage area constructed by the second memory 20 in response to a request from the host device 200. Then, the storage device 100 performs a data read process or a data write process. Note that the memory that the storage device 100 has is not limited to this example. The storage device 100 may have an additional memory. Then, the storage device 100 may perform a read process or a write process on the data stored in the storage area constructed by the additional memory.

[0031] Fig. 4 is a block diagram showing an example of a hardware configuration of a storage device according to the present disclosure. The storage device and storage control method described in the present disclosure are realized, for example, by a device having the hardware configuration shown in Fig. 4. The storage device 100 is configured, for example, in an SSD. In the example of Fig. 4, the storage device 100 includes an interface 1, a controller 2, a buffer memory 3, a first memory element group 4, and a second memory element group 5. The storage device 100 may be realized by a plurality of electric circuits.

[0032] The interface 1 connects the storage device 100 and the host device 200. The interface 1 may be realized in accordance with standards such as, for example, IDE (Integrated Device Electronics), SATA (Serial Advanced Technology Attachment), and PCIe (Peripheral Component Interconnect express).

[0033] The controller 2 performs various controls related to data. For example, the controller 2 performs data read and write processes on the first memory element group 4 and the second memory element group 5.

[0034] The buffer memory 3 is a storage medium for temporarily storing data, and may be configured, for example, with a dynamic random access memory (DRAM).

[0035] The first memory element group 4 and the second memory element group 5 are non-volatile storage media that store data. The first memory element group 4 and the second memory element group 5 are, for example, NAND type flash memories. The first memory element group 4 has first memory elements 41-1, 41-2, . . . , 41-n (n is a natural number). That is, the first memory element group 4 may have a plurality of first memory elements. In this example, n first memory elements are connected in series.

[0036] The second memory element group 5 includes second memory elements 51-1, 51-2, . . . , 51-m, . . . , 5p-1, 5p-2, . . . 5p-m (m and p are natural numbers). The second memory element group 5 may include a plurality of second memory elements. In this example, there are p sets of second memory elements connected in series.

[0037] The first storage element group 4 may function as a first memory 10 in the present disclosure. Also, the second storage element group 5 may function as a second memory 20 in the present disclosure. That is, a first storage area may be constructed in the first storage element group 4. Also, a second storage area may be constructed in the second storage element group 5.

[0038] The first memory element group 4 and the second memory element group 5 are storage media with different performance. For example, the first memory element group 4 has a faster processing speed than the second memory element group 5. Also, for example, the first memory element group 4 has a higher write durability than the second memory element group 5. Also, for example, the first memory element group 4 has a smaller storage capacity than the second memory element group 5.

[0039] Each component in the function of the storage device of the present disclosure may be realized, for example, in the controller 2. Alternatively, each component may be realized as an additional component connectable to the first storage element group 4 and the second storage element group 5. There are various variations in the method of realizing the storage device. For example, each component included in the storage device may be realized as a dedicated device. Also, the storage device may be realized based on a combination of multiple devices.

[0040] In addition, a processing method for recording a program for realizing each configuration in the functions of each embodiment of the present disclosure in a specified storage medium, reading the program recorded in the specified storage medium as code, and executing it on a computer is also included in the scope of each embodiment. That is, a computer-readable storage medium is also included in the scope of each embodiment. In addition, a storage medium on which the above-mentioned program is recorded and the program itself are also included in each embodiment. The specified storage medium is, for example, a floppy (registered trademark) disk, a hard disk, an optical disk, a magneto-optical disk, a CD (Compact Disc)-ROM, a magnetic tape, a non-volatile memory card, or a ROM, but is not limited to these examples. In addition, the program recorded in the specified storage medium is not limited to a program that executes processing by itself, but also includes a program that operates on an OS (Operating System) to execute processing in cooperation with other software and functions of an expansion board.

[0041] As shown in FIG. 3, the storage device 100 includes a calculation unit 110, a determination unit 120, a data control unit 130, and an access control unit 140.

[0042] The access control unit 140 accesses data in response to a request from the host device 200. Specifically, the access control unit 140 receives a request to read or write data from the host device 200. A read request may also be called a read command. A write request may also be called a write command. Each request includes information corresponding to the request.

[0043] For example, a write request includes address information and data to be written. The address information is information indicating the data location. The address information may be information based on LBA (Logical Block Addressing), for example. When the access control unit 140 receives a write request, it writes the data included in the write request to the first storage area. Furthermore, the write request may include a command number indicating the type of write operation and information on the time when the write was performed.

[0044] In this way, in response to a write request from the host device 200, the access control unit 140 may first write data to the first storage area.

[0045] The read request also includes address information. When the access control unit 140 receives a read request, it reads data from a location in the storage area that corresponds to the address information included in the read request.

[0046] Here, the address information and a position in the storage area are associated with each other. Information indicating a position in the storage area is called position information. For example, the access control unit 140 may use a management table to access a position in the storage area that corresponds to the address information. The management table is information in which the address information and the position information are associated with each other.

[0047] Fig. 5 is a diagram showing an example of a management table. In the example of Fig. 5, the management table includes information in which address information, location information of a first storage area, location information of a second storage area, and management information are associated with each other. For example, the record in the first row indicates that data of address information "A1" is stored in location information "X1", which is a location in the first storage area, and is not stored in the second storage area. For example, when the access control unit 140 receives a read request including address information "A1", it reads data of location information "X1".

[0048] Furthermore, in the example of FIG. 5, the record in the second row indicates that the data of address information "A2" is stored in location information "X2" in the first storage area and location information "Y2" in the second storage area. Furthermore, the management information indicates "Y2". Here, management information is information indicating the location where data is managed. In this example, the data of address information "A2" is managed in location information "Y2" in the second storage area. Therefore, for example, when the access control unit 140 receives a read request including address information "A2", it reads the data of location information "Y2".

[0049] When a write request is received from the host device 200, the access control unit 140 writes the data included in the request to a position in the first storage area that corresponds to the address information included in the request. Then, the access control unit 140 updates the management table. For example, it is assumed that the address information included in the write request is "A4". Then, it is assumed that the access control unit 140 writes the data to the position information "X4" in the first storage area. At this time, the access control unit 140 updates the management table so that the address information "A4" and the position information "X4" in the first storage area are associated with each other. At this time, the access control unit 140 associates the management information indicating "X4" with the address information "A4".

[0050] The management table may be stored in any storage medium of the storage apparatus 100. For example, the management table may be stored in a storage medium included in the controller 2. Alternatively, the management table may be stored in the first memory 10 or the second memory 20. Alternatively, the management table may be stored in an additional component having the function of a storage medium.

[0051] In this way, the access control unit 140 accesses the data in the first storage area or the second storage area in response to a request from the host device 200. The access control unit 140 is an example of an access control unit.

[0052] The calculation unit 110 calculates the frequency of use of data. Specifically, the calculation unit 110 monitors the number of accesses to data stored in the first storage area or the second storage area. For example, when a specific piece of data stored in the first storage area is read in response to a read request, the calculation unit 110 increments the number of accesses to the specific piece of data by 1. At this time, the calculation unit 110 may monitor the accesses to the specific piece of data up to a specific time ago. That is, the calculation unit 110 may calculate the number of accesses to the data from the current time to a specific time ago as the frequency of use of the data. Alternatively, the calculation unit 110 may reset the number of accesses every specific time. For example, the calculation unit 110 monitors the number of accesses to the specific piece of data from a certain point in time until a specific time has elapsed. Then, after the specific time has elapsed, the calculation unit 110 may reset the number of accesses to the specific piece of data to 0. In this way, the frequency of use of data can be said to be the number of times the data is read or updated per unit time.

[0053] The storage apparatus 100 has a usage frequency table indicating the frequency of use of data. The usage frequency table includes information in which information for identifying data is associated with the frequency of use. The usage frequency table may be stored in any storage medium of the storage apparatus 100. For example, the usage frequency table may be stored in a storage medium included in the controller 2. Alternatively, the usage frequency table may be stored in the first memory 10 or the second memory 20. Alternatively, the usage frequency table may be stored in an additional component having the function of a storage medium.

[0054] FIG. 6 is a diagram showing an example of a usage frequency table. In the example of FIG. 6, location information indicating a location in a storage area is associated with a usage frequency. In this manner, location information may be used as information for identifying data. For example, the record in the first row indicates that the usage frequency for data of location information "X1" is "10". The calculation unit 110 may update the usage frequency table in accordance with the calculation of the usage frequency. For example, when data of location information "X1" is read in response to a request, the calculation unit 110 increments the usage frequency corresponding to the location information "X1" by 1 to "11". Also, for example, the calculation unit 110 may update the usage frequency corresponding to the location information "X1" to 0 after a predetermined time has elapsed.

[0055] The determination unit 120 determines whether the frequency of use is high or low. Specifically, the determination unit 120 compares the frequency of use calculated by the calculation unit 110 with a threshold value. For example, the determination unit 120 refers to a frequency of use table and compares each frequency of use with a threshold value. Then, for each piece of data, it is determined whether the frequency of use is high or low.

[0056] The data control unit 130 controls data based on the result of the determination by the determination unit 120. Specifically, when it is determined that the data stored in the first storage area is used infrequently, the data control unit 130 writes the data to the second storage area. At this time, the data control unit 130 updates the management table.

[0057] The management table of the example of FIG. 5 indicates that the data of the address information "A3" is stored in the position information "X3" in the first storage area. Here, it is assumed that the determination unit 120 determines that the data of the position information "X3" is used infrequently. At this time, the data control unit 130 writes, for example, the data of the position information "X3" to the position information "Y3" in the second storage area. Then, the data control unit 130 writes "Y3" as the position information in the second storage area corresponding to the address information "A3" in the management table. In addition, the data control unit 130 rewrites the management information corresponding to the address information "A3" to "Y3". As a result, for example, when a read request including the address information "A3" is received from the host device 200, the access control unit 140 reads the data of the position information "Y3".

[0058] Also, suppose that the determination unit 120 determines that the data stored in the first storage area is frequently used. In this case, the data is managed in the first storage area. That is, the data control unit 130 does not need to update the management table.

[0059] Alternatively, the data control unit 130 may periodically write data stored in the first storage area that is determined to be frequently used to the second storage area. For example, it is assumed that data A that is determined to be frequently used is stored in the first storage area. In this case, the data control unit 130 may write data A to the second storage area at a predetermined time interval. The predetermined time interval is, for example, a time longer than the unit time of the frequency of use calculated by the calculation unit 110. Alternatively, the data control unit 130 may write data A to the second storage area every time data A is accessed a predetermined number of times. Note that the management table indicates the location information of the second storage area for data A. As a result, the data written to the second storage area can be used as a backup of data A.

[0060] Also, suppose that the determination unit 120 determines that the data stored in the second storage area is frequently used. At this time, the data control unit 130 controls to manage the data in the first storage area. Specifically, the data control unit 130 updates the management table. For example, in the example of FIG. 5, the data of the address information "A2" is managed in the second storage area. Then, when it is determined that the data of the address information "A2" is frequently used, the data control unit 130 rewrites the management information "Y2" corresponding to the address information "A2" to "X2". As a result, the access control unit 140 accesses the location information "X2" for the data of the address information "A2".

[0061] [Example of Operation of Storage Device 100] Next, an example of the operation of the storage device 100 will be described with reference to FIGS.

[0062] Fig. 7 is a first flowchart for explaining an example of the operation of the storage device 100. Specifically, Fig. 7 shows an example of the operation of the storage device 100 when a request is received from the host device 200. The access control unit 140 receives a request from the host device 200 (S101). Furthermore, the access control unit 140 accesses data in response to the request (S102).

[0063] For example, when the access control unit 140 receives a write request from the host device 200, it writes the data included in the write request to the first storage area. Then, the access control unit 140 updates the management table so that information that associates the access information included in the write request, the location information of the first storage area, and the management information is displayed. Also, for example, when the access control unit 140 receives a read request from the host device 200, it identifies the location of the storage area where the data is stored based on the access information included in the read request and the management table. Then, the access control unit 140 reads the data from the identified location.

[0064] The calculation section 110 calculates the use frequency of the data in response to the access to the data (S103). For example, the calculation section 110 may update the use frequency table in response to the calculation of the use frequency.

[0065] FIG. 8 is a second flowchart for explaining an example of the operation of the storage device 100. Specifically, FIG. 8 is an example of the operation of the storage device 100 when determining the frequency of use. In this example of operation, the storage device 100 uses the frequency of use table updated by the example of operation of FIG. 7. The determination unit 120 determines the frequency of use of data stored in the storage area. For example, the determination unit 120 determines whether the frequency of use of data is high or low, and whether the data is managed in the first storage area or the second storage area, based on the frequency of use table and the management table. If it is determined that the frequency of use of data is high ("Yes" in S201), it is determined that the data is managed in the first storage area ("Yes" in S202). In this case, the storage device 100 returns to the process of S201. Note that the data in the first storage area at this time may be written by the data control unit 130 to the second storage area periodically. This allows the data written to the second storage area to be used as a backup.

[0066] If it is determined that the data is frequently used ("Yes" in S201), the data is assumed to be data managed in the second storage area ("No" in S202). In this case, the data control unit 130 updates the management table so that the data is managed in the first storage area (S203). Specifically, the data control unit 130 rewrites the management information corresponding to the data in the management table to the location information of the first storage area.

[0067] If it is determined that the data is used infrequently ("No" in S201), it is determined that the data is managed in the first storage area ("Yes" in S203). In this case, the data control unit 130 writes the data to the second storage area (S205). Then, the data control unit 130 updates the management table (S206).

[0068] If it is determined that the data is used infrequently ("No" in S201), and the data is managed in the second storage area ("No" in S203), the storage device 100 returns to the process of S201.

[0069] The above-described operation example is merely one example of the operation of the storage apparatus 100. In other words, the operation of the storage apparatus 100 is not limited to the examples in FIGS.

[0070] As described above, the storage device 100 of the second embodiment includes the first memory 10, which is a non-volatile storage medium, and the second memory 20, which is a non-volatile storage medium having a processing speed slower than that of the first memory. The storage device 100 calculates the usage frequency of data stored in a first storage area constructed in the first memory 10. The storage device 100 determines whether the usage frequency of the data is high or low based on the calculated usage frequency. The storage device 100 then writes the data determined to be used infrequently to a second storage area constructed in the second memory 20.

[0071] Furthermore, the storage device 100 of the second embodiment accesses data in the first storage area or the second storage area in response to a request from the host device 200. At this time, the storage device 100 calculates the usage frequency of the predetermined data stored in the second storage area and judges whether the usage frequency of the predetermined data is high or low. Then, if the storage device 100 judges that the usage frequency of the predetermined data is high, and there is a request to access the predetermined data, it accesses the predetermined data stored in the first storage area.

[0072] The frequency of use of data may change. For example, the frequency of use of data managed in the second memory 20 may increase. In this case, if the data continues to be managed in the second memory 20, there is a risk of the processing performance of the device as a whole decreasing. In response to this, the storage device 100 stores data determined to be used infrequently in both the first memory 10 and the second memory 20. Therefore, when the frequency of use of data managed in the second memory 20 increases, the storage device 100 can switch the management of the data to the first memory 10 without moving the data. This allows the storage device 100 to suppress a decrease in processing performance.

[0073] Furthermore, the storage device 100 of the second embodiment may periodically write data that is stored in the first storage area and that is determined to be frequently used to the second storage area, thereby enabling the storage device 100 to back up data that is stored in the first storage area and that is determined to be frequently used.

[0074] [Variation 1] The storage device 100 may delete stored data. For example, assume that data B is stored in the first storage area. Then, assume that it is determined that data B is used infrequently. At this time, the data control unit 130 writes data B to the second storage area. Then, the data control unit 130 may delete data B stored in the first storage area.

[0075] For example, it is assumed that data B stored in the second storage area is determined to have been used infrequently for a predetermined period of time. In this case, data control unit 130 deletes data B stored in the first storage area. Then, data control unit 130 updates the management table. Specifically, data control unit 130 deletes the location information of the first storage area corresponding to data B from the management table.

[0076] Assume that data B stored in the second storage area is determined to be frequently used. If data B does not exist in the first storage area, data control unit 130 writes data B stored in the second storage area to the first storage area. Then, data control unit 130 adds location information of the first storage area corresponding to data B in the management table. Then, data control unit 130 updates the management information corresponding to data B to the location information of the first storage area.

[0077] In this way, if the specified data to be stored in the second memory area, which is determined to be frequently used, does not exist in the first memory area, the storage device 100 may write the specified data to be stored in the second memory area to the first memory area.

[0078] [Variation 2] The data stored in the storage device 100 may be stored together with additional information.

[0079] For example, the access control unit 140 writes data to the first storage area in response to a write request from the host device 200. At this time, the access control unit 140 stores additional information together with the data. The additional information includes a command number indicated in the write request. The additional information may further include address information of the data and the time when the write request was made. The additional information may exist, for example, for each unit of data read or written. Note that the additional information is also stored when the data in the first storage area is written by the data control unit 130 to the second storage area.

[0080] In this manner, the data may be stored in the first storage area or the second storage area together with the additional information. The additional information may include a command number corresponding to the write request from the host device 200.

[0081] In this case, the data control unit 130 may use the additional information to check the consistency between the data in the first storage area and the data in the second storage area. For example, in the example of FIG. 5, the data of address information "A2" is managed in the second storage area. The location information of the second storage area corresponding to the data is "Y2". Here, it is assumed that the data of location information "Y2" is determined to be frequently used.

[0082] The data control unit 130 compares the additional information of the data of the position information "Y2" in the second storage area with the additional information of the data of the position information "X2" in the first storage area. At this time, if the command numbers included in the additional information are the same, the data of the position information "Y2" and the data of the position information "X2" are the same. Therefore, if the command numbers are the same, the data control unit 130 updates the management information in the management table from "Y2" to "X2".

[0083] On the other hand, if the command numbers are not the same, the data in the position information "Y2" and the data in the position information "X2" are not the same. In this case, the data in the position information "Y2" is newer than the data in the position information "X2". Therefore, the data control unit 130 overwrites the data in the position information "Y2" to the position information "X2". Then, the data control unit 130 updates the management information in the management table from "Y2" to "X2".

[0084] In this way, by using the additional information, the processing load for data consistency can be reduced compared to when the data itself is compared.

[0085] Furthermore, the data control unit 130 may repair the data by using the additional information. For example, it is assumed that the access control unit 140 receives a read request from the host device 200. Then, it is assumed that a read error occurs due to data corruption or the like when the access control unit 140 attempts to read data from the first storage area in response to the read request. In such a case, the data control unit 130 repairs the data where the read error occurred.

[0086] Assume that the address information of the data in which the read error occurred is "C1". The data control unit 130 compares the additional information of the data in the first storage area corresponding to the address information "C1" with the additional information of the data in the second storage area corresponding to the address information "C1". At this time, if the command numbers included in the additional information are the same, the data in the first storage area and the data in the second storage area are the same. In such a case, the data control unit 130 overwrites the data in the second storage area at the position in the first storage area corresponding to the address information "C1".

[0087] In this way, if a read error occurs when the access control unit 140 accesses specific data in the first memory area in response to a read request from the host device 200, the data control unit 130 may repair the specific data in the first memory area based on the additional information stored together with the specific data in the first memory area and the additional information stored together with the specific data in the second memory area.

[0088] Although the present invention has been described above with reference to the embodiment, the present invention is not limited to the above embodiment. Various modifications that can be understood by those skilled in the art can be made to the configuration and details of the present invention within the scope of the present invention.

[0089] Furthermore, the above-described embodiments and modifications can be combined as appropriate.

[0090] A part or all of the above-described embodiments can be described as, but is not limited to, the following supplementary notes.

[0091] <Additional Notes>

[0092] [Appendix 1] A first memory which is a non-volatile storage medium and a second memory which is a non-volatile storage medium having a processing speed slower than that of the first memory, A calculation means for calculating a usage frequency of data stored in a first storage area constructed in the first memory; A determination means for determining whether the data is used frequently or not based on the calculated frequency of use; and a data control means for writing data determined to be used infrequently into a second storage area constructed in the second memory. Storage device.

[0093] [Appendix 2] an access control unit that accesses data in the first storage area or the second storage area in response to a request from a host device; The calculation means calculates a frequency of use of the predetermined data stored in the second storage area, The determining means determines whether the predetermined data is used frequently, When it is determined that the predetermined data is frequently used, the access control means accesses the predetermined data stored in the first storage area when there is a request for access to the predetermined data. 2. The storage device of claim 1.

[0094] [Appendix 3] when the predetermined data determined to be frequently used is not present in the first storage area, the data control means writes the predetermined data stored in the second storage area to the first storage area; 3. The storage device of claim 2.

[0095] [Appendix 4] the data control means periodically writes data stored in the first storage area and determined to be frequently used to the second storage area; 2. The storage device of claim 1.

[0096] [Appendix 5] The data is stored in the first storage area or the second storage area together with additional information; The additional information includes a command number corresponding to a write request from a host device. 5. The storage device of claim 4.

[0097] [Appendix 6] an access control unit that accesses data in the first storage area or the second storage area in response to a request from a host device; When a read error occurs when the access control means accesses specific data in the first storage area in response to a read request from a host device, the data control means restores the specific data in the first storage area based on the additional information stored together with the specific data in the first storage area and the additional information stored together with the specific data in the second storage area. 6. The storage device of claim 5.

[0098] [Appendix 7] The first memory and the second memory are configured in an SSD (Solid State Drive), 2. The storage device of claim 1.

[0099] [Appendix 8] A storage device having a first memory which is a non-volatile storage medium and a second memory which is a non-volatile storage medium having a processing speed slower than that of the first memory, Calculating a usage frequency of data stored in a first storage area constructed in the first memory; Based on the calculated frequency of use, the frequency of use of the data is determined, writing the data determined to be used infrequently into a second storage area constructed in the second memory; Storage control methods.

[0100] [Appendix 9] Calculating a frequency of use of the predetermined data stored in the second storage area; determining whether the predetermined data is used frequently, when it is determined that the frequency of use of the predetermined data is high, and when there is a request to access the predetermined data, accessing the predetermined data stored in the first storage area; 9. The storage control method according to claim 8.

[0101] [Appendix 10] if the specified data determined to be frequently used is not present in the first storage area, writing the specified data stored in the second storage area to the first storage area; 10. The storage control method according to claim 9.

[0102] [Appendix 11] periodically writing data stored in the first storage area and determined to be frequently used to the second storage area; 9. The storage control method according to claim 8.

[0103] [Appendix 12] The data is stored in the first storage area or the second storage area together with additional information; The additional information includes a command number corresponding to a write request from a host device. 12. The storage control method according to claim 11.

[0104] [Appendix 13] When a read error occurs when accessing specific data in the first storage area in response to a read request from a host device, recovering the specific data in the first storage area based on the additional information stored together with the specific data in the first storage area and the additional information stored together with the specific data in the second storage area; 13. The storage control method according to claim 12.

[0105] [Appendix 14] The storage device is configured in a solid state drive (SSD) having the first memory and the second memory. 9. The storage control method according to claim 8.

[0106] [Appendix 15] A storage device having a first memory which is a non-volatile storage medium and a second memory which is a non-volatile storage medium having a processing speed slower than that of the first memory, A process of calculating a frequency of use of data stored in a first storage area constructed in the first memory; A process of determining whether the data is used frequently or not based on the calculated frequency of use; A process of writing data determined to be used infrequently into a second storage area constructed in the second memory; to cause a computer to execute program.

[0107] [Appendix 16] further executing a process of accessing data in the first storage area or the second storage area in response to a request from a host device; In the calculation process, a frequency of use of the predetermined data stored in the second storage area is calculated, In the process of making the determination, a determination is made as to whether the predetermined data is used frequently or not; when it is determined that the predetermined data is frequently used, in the accessing process, when there is a request for access to the predetermined data, the predetermined data stored in the first storage area is accessed; 16. The program according to claim 15.

[0108] [Appendix 17] when the predetermined data determined to be frequently used is not present in the first storage area in the writing process, the predetermined data stored in the second storage area is written to the first storage area; 17. The program according to claim 16.

[0109] [Appendix 18] In the writing process, data stored in the first storage area and determined to be frequently used is periodically written to the second storage area. 16. The program according to claim 15.

[0110] [Appendix 19] The data is stored in the first storage area or the second storage area together with additional information; The additional information includes a command number corresponding to a write request from a host device. 19. The program according to claim 18.

[0111] [Appendix 20] further executing a process of accessing data in the first storage area or the second storage area in response to a request from a host device; If a read error occurs when accessing specific data in the first storage area in response to a read request from a host device, recovering the specific data in the first storage area based on the additional information stored together with the specific data in the first storage area and the additional information stored together with the specific data in the second storage area; 16. The program according to claim 15.

[0112] [Appendix 21] The storage device is configured in a solid state drive (SSD) having the first memory and the second memory. 16. The program according to claim 15. [Explanation of symbols]

[0113] 100 Storage Device 110 Calculation section 120 Judgment section 130 Data control section 140 Access control section 200 Host device

Claims

1. A first memory which is a non-volatile storage medium and a second memory which is a non-volatile storage medium having a processing speed slower than that of the first memory, a calculation means for calculating a usage frequency of data stored in a first storage area constructed in the first memory; A determination means for determining whether the data is used frequently or not based on the calculated frequency of use; a data control means for writing data determined to be used infrequently into a second storage area constructed in the second memory, the data control means periodically writes data stored in the first storage area and determined to be frequently used to the second storage area; The data is stored in the first storage area or the second storage area together with additional information; The additional information includes a command number corresponding to a write request from a host device. Storage device.

2. an access control unit that accesses data in the first storage area or the second storage area in response to a request from a host device; The calculation means calculates a frequency of use of the predetermined data stored in the second storage area, The determining means determines whether the predetermined data is used frequently, when it is determined that the predetermined data is frequently used, the access control means accesses the predetermined data stored in the first storage area when there is a request for access to the predetermined data; The storage device according to claim 1.

3. when the predetermined data determined to be frequently used is not present in the first storage area, the data control means writes the predetermined data stored in the second storage area to the first storage area; The storage device according to claim 2.

4. an access control unit that accesses data in the first storage area or the second storage area in response to a request from a host device; When a read error occurs when the access control means accesses specific data in the first storage area in response to a read request from a host device, the data control means restores the specific data in the first storage area based on the additional information stored together with the specific data in the first storage area and the additional information stored together with the specific data in the second storage area; The storage device according to claim 1.

5. The present invention is configured in a solid state drive (SSD) having the first memory and the second memory, The storage device according to claim 1.

6. A storage device having a first memory which is a non-volatile storage medium and a second memory which is a non-volatile storage medium having a processing speed slower than that of the first memory, Calculating a usage frequency of data stored in a first storage area constructed in the first memory; Based on the calculated frequency of use, the frequency of use of the data is determined, writing the data determined to be used infrequently into a second storage area constructed in the second memory; In the writing step, data stored in the first storage area and determined to be frequently used is periodically written to the second storage area; The data is stored in the first storage area or the second storage area together with additional information; The additional information includes a command number corresponding to a write request from a host device. Storage control methods.

7. A storage device having a first memory which is a non-volatile storage medium and a second memory which is a non-volatile storage medium having a processing speed slower than that of the first memory, A process of calculating a frequency of use of data stored in a first storage area constructed in the first memory; A process of determining whether the data is used frequently or not based on the calculated frequency of use; A process of writing data determined to be used infrequently into a second storage area constructed in the second memory; on the computer, In the writing process, data stored in the first storage area and determined to be frequently used is periodically written to the second storage area; The data is stored in the first storage area or the second storage area together with additional information; The additional information includes a command number corresponding to a write request from a host device. program.

Citation Information

Patent Citations

  • Storage device

    JP1994028246A

  • Touch panel

    JP2001034418A

  • Storage device and data life cycle management method for storage device

    JP2006139552A

  • Solid state memory, computer system including the same, and its operation method

    JP2009048613A

  • Storage subsystem and control method for the same

    JP2011242862A