TWI707235B - Storage apparatus managing system and storage apparatus managing method - Google Patents
Storage apparatus managing system and storage apparatus managing method Download PDFInfo
- Publication number
- TWI707235B TWI707235B TW107115913A TW107115913A TWI707235B TW I707235 B TWI707235 B TW I707235B TW 107115913 A TW107115913 A TW 107115913A TW 107115913 A TW107115913 A TW 107115913A TW I707235 B TWI707235 B TW I707235B
- Authority
- TW
- Taiwan
- Prior art keywords
- data unit
- storage device
- temporary storage
- area
- global
- Prior art date
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
本發明有關於儲存裝置管理系統以及儲存裝置管理方法,特別有關於藉由在電子裝置內提供暫存區的機制來增加讀取速度的儲存裝置管理系統以及儲存裝置管理方法。 The present invention relates to a storage device management system and a storage device management method, and particularly relates to a storage device management system and a storage device management method that increase the reading speed by providing a mechanism of a temporary storage area in an electronic device.
近年來,可攜式電子裝置例如手機、平板電腦、穿戴式電子裝置越來越普及。然而,可攜式電子裝置通常會有容量較小的問題,若要增加可攜式電子裝置的容量,通常是增加可攜式電子裝置本身的內部記憶體的容量,或者是在可攜式電子裝置裝設外部記憶卡。然而,內部記憶體容量較大的可攜式電子裝置其價格通常相當昂貴。而外部記憶卡因體積相當小,自可攜式電子裝置移除後容易遺失,且有些可攜式電子裝置並不支援外部記憶卡。 In recent years, portable electronic devices such as mobile phones, tablet computers, and wearable electronic devices have become more popular. However, portable electronic devices usually have the problem of small capacity. To increase the capacity of the portable electronic device, it is usually to increase the internal memory capacity of the portable electronic device itself, or to increase the capacity of the portable electronic device itself. The device is equipped with an external memory card. However, portable electronic devices with large internal memory capacity are usually quite expensive. Since the external memory card is relatively small in size, it is easy to lose it after being removed from the portable electronic device, and some portable electronic devices do not support the external memory card.
因此,可攜式電子裝置專用的隨身碟(flash disk)越來越普及。此類隨身碟不僅可提供較大的記憶體容量給可攜式電子裝置,也方便使用者攜帶。然而,受限於可攜式電子裝置的資料傳輸介面的傳輸速度,隨身碟的資料存取速度通常頗為受限。 Therefore, flash disks dedicated to portable electronic devices are becoming more and more popular. This type of flash drive not only provides a larger memory capacity for portable electronic devices, but is also convenient for users to carry. However, limited by the transmission speed of the data transmission interface of the portable electronic device, the data access speed of the pen drive is usually quite limited.
因此,需要能增進隨身碟存取速度的方法或系統。 Therefore, there is a need for a method or system that can increase the access speed of a pen drive.
因此,本發明之一目的為提供一種可增加資料讀取速度的儲存裝置管理系統。 Therefore, an object of the present invention is to provide a storage device management system that can increase the data reading speed.
本發明另一目的為提供一種可增加資料讀取速度的儲存裝置管理方法。 Another object of the present invention is to provide a storage device management method that can increase the data reading speed.
本發明一實施例揭露一種儲存裝置管理系統,用以管理連接一電子裝置的一第一儲存裝置以及一第二儲存裝置,該第一儲存裝置包含一區域暫存區以及一全域暫存區,該全域暫存區用以暫存曾經從第二儲存裝置讀取過的資料,而該區域暫存區用以暫存曾經從第二儲存裝置讀取過的資料以及其他候選資料,該儲存裝置管理系統包含:一儲存裝置管理程式;一控制模組,用以控制該第二儲存裝置。其中若該儲存裝置管理程式接收到自該第二儲存裝置讀取一目標資料單元的一讀取請求,會先確認該全域暫存區是否有該目標資料單元,若該全域暫存區有該目標資料單元,則該儲存裝置管理程式使該電子裝置從該全域暫存區讀取該目標資料單元,若該全域暫存區沒有該目標資料單元,則該儲存裝置管理程式確認該區域暫存區是否有該目標資料單元,若該區域暫存區有該目標資料單元,則該儲存裝置管理程式使該電子裝置從該區域暫存區讀取該目標資料單元,若該區域暫存區沒有該目標資料單元,則該儲存裝置管理程式使該電子裝置透過該控制模組來從該第二儲存裝置讀取該目標資料單元。 An embodiment of the present invention discloses a storage device management system for managing a first storage device and a second storage device connected to an electronic device. The first storage device includes a regional temporary storage area and a global temporary storage area. The global temporary storage area is used to temporarily store data that has been read from the second storage device, and the regional temporary storage area is used to temporarily store data that has been read from the second storage device and other candidate data. The storage device The management system includes: a storage device management program; and a control module for controlling the second storage device. If the storage device management program receives a read request for reading a target data unit from the second storage device, it will first confirm whether the global temporary storage area has the target data unit, and if the global temporary storage area has the target data unit Target data unit, the storage device management program makes the electronic device read the target data unit from the global temporary storage area. If the global temporary storage area does not have the target data unit, the storage device management program confirms that the area is temporarily stored Whether there is the target data unit in the area, if there is the target data unit in the regional temporary storage area, the storage device management program makes the electronic device read the target data unit from the regional temporary storage area, if the regional temporary storage area does not For the target data unit, the storage device management program enables the electronic device to read the target data unit from the second storage device through the control module.
本發明另一實施例揭露一種儲存裝置管理系統,用以管理一手機內的一緩存記憶體以及連接於該手機的一隨身碟,包含:一控制模組,用以控制該隨身碟;以及一儲存裝置管理程式,該手機要從該隨身碟讀取一目標資料單元時,該儲存裝置管理程式會使該控制模組將該目標資料單元複製到該緩存記憶體,並使該手機自該隨身碟或該緩存記憶體讀取該目標資料單元。 Another embodiment of the present invention discloses a storage device management system for managing a cache memory in a mobile phone and a flash drive connected to the mobile phone, comprising: a control module for controlling the flash drive; and a Storage device management program. When the mobile phone wants to read a target data unit from the flash drive, the storage device management program will make the control module copy the target data unit to the cache memory, and make the mobile phone from the portable The disk or the cache memory reads the target data unit.
本發明其他實施例亦揭露了與前述實施例相對應的儲存裝置管理方法,其步驟可由其述實施例推得,故在此不再贅述。 Other embodiments of the present invention also disclose storage device management methods corresponding to the foregoing embodiments, and the steps can be deduced from the above-described embodiments, so the details are not repeated here.
根據前述實施例,藉由在電子裝置內提供暫存區,可以使電子裝置讀取資料的速度大幅提升,以改善習知技術中資料讀取速度緩慢的問題。 According to the foregoing embodiment, by providing a temporary storage area in the electronic device, the data reading speed of the electronic device can be greatly increased, so as to improve the problem of slow data reading speed in the prior art.
100:電子裝置 100: electronic device
101:儲存裝置管理程式 101: Storage Device Management Program
103:第一儲存裝置 103: The first storage device
105:第二儲存裝置 105: second storage device
107:控制模組 107: Control Module
109:全域暫存區 109: Global Temporary Storage Area
109_1:全域暫存緩衝區 109_1: Global temporary storage buffer
109_2:全域暫存檔案區 109_2: Global Temporary File Area
111:區域暫存區 111: Regional temporary storage area
700:電子裝置 700: electronic device
DU1-DU_100:資料單元 DU1-DU_100: data unit
DU_1a:修改後資料單元 DU_1a: Modified data unit
第1圖繪示了根據本發明一實施例的儲存裝置管理系統的方塊圖。 Fig. 1 shows a block diagram of a storage device management system according to an embodiment of the invention.
第2圖繪示了根據本發明一實施例的儲存裝置管理方法的流程圖。 Figure 2 shows a flowchart of a storage device management method according to an embodiment of the invention.
第3-4圖繪示了根據本發明一實施例的儲存裝置管理系統的動作示意圖。 Figures 3-4 are schematic diagrams illustrating the operation of the storage device management system according to an embodiment of the present invention.
第5圖繪示了根據本發明一實施例的將資料寫入全域暫存區的流程圖。 FIG. 5 shows a flowchart of writing data into the global temporary storage area according to an embodiment of the present invention.
第6圖繪示了根據本發明一實施例的修改第二儲存裝置之資料時的動作示意圖。 FIG. 6 is a schematic diagram of the action when modifying the data of the second storage device according to an embodiment of the present invention.
第7圖繪示了本發明一實施例的,實際運用本發明所提供的儲存裝置管理系統或儲存裝置管理方法的呈現方式。 Fig. 7 shows an embodiment of the present invention, and the actual application of the storage device management system or storage device management method provided by the present invention is presented.
於以下描述中,提供了多個實施例來說明本發明的概念。然請留意,在以下實施例中,各元件可以硬體方式來實現(例如電路)或是以硬體加軟體的方式來實現(例如在處理器中寫入程式)。此外,以下實施例僅用以說明,其元件的數量、位置以及動作順序均非用以限定本發明。 In the following description, a number of embodiments are provided to illustrate the concept of the present invention. However, please note that in the following embodiments, each component can be implemented by hardware (for example, a circuit) or by hardware and software (for example, a program is written in a processor). In addition, the following embodiments are only for illustration, and the number, position, and action sequence of the components are not intended to limit the present invention.
第1圖繪示了根據本發明一實施例的儲存裝置管理系統的方塊圖。如第1圖所示,電子裝置100包含一儲存裝置管理程式101以及一第一儲存裝置103(例如電子裝置100中的緩存記憶體,Cached RAM)。第二儲存裝置105(例如一
隨身碟)連接到電子裝置100,且包含一控制模組107。第二儲存裝置105可自該電子裝置100移除。儲存裝置管理程式101可利用相對應於第一儲存裝置103和第二儲存裝置105之檔案系統的檔案系統模組(例如FATFS檔案系統模組)來控制第一儲存裝置103和第二儲存裝置105的資料存取或區域劃分動作。此檔案系統模組可安裝在第二儲存裝置105內,但亦可安裝於電子裝置100中。此外,儲存裝置管理程式101可用以在第一儲存裝置103中定義出全域暫存區109以及區域暫存區111,並管理全域暫存區109以及區域暫存區111的存取動作。於一實施例中,全域暫存區109用以暫存曾經從第二儲存裝置105讀取過的資料,而區域暫存區111用以暫存曾經從第二儲存裝置105讀取過的資料以及其他候選資料。
Fig. 1 shows a block diagram of a storage device management system according to an embodiment of the invention. As shown in FIG. 1, the
而且,儲存裝置管理程式101亦用以產生讀取或寫入命令給控制模組107,讓控制模組107據此將第二儲存裝置107的資料傳送給第一儲存裝置103,或寫入資料到第二儲存裝置107。儲存裝置管理程式101可藉由一主處理器來執行,此主處理器可為電子裝置100本身的主處理器,亦即此主處理器除了執行儲存裝置管理程式101外,亦用以控制電子裝置100的其他功能,但儲存裝置管理程式101亦可藉由獨立於主處理器的處理器來執行。儲存裝置管理程式101以及控制模組107可視為一儲存裝置管理系統。然請留意,在以下實施例中,均是以控制模組設置在第二儲存裝置裝來說明,然而控制模組亦可設置在電子裝置中。
Moreover, the storage
電子裝置100可為一可攜式電子裝置,例如手機、平板電腦。第一儲存裝置103可為電子裝置100的內部儲存裝置,例如RAM(Random Access Memory,隨機存取記憶體)。此內部儲存裝置可為電子裝置100出廠時即設置好的儲存裝置,較難變動其容量。此外,第二儲存裝置105可為獨立於電子裝置100的外部儲存裝置,例如隨身碟、記憶卡等。此類外部儲存裝置可自由的裝設到電子裝置上或拆卸下來。而且,當第一儲存裝置103為內部儲存裝置而第二儲存裝置105為外部儲存裝置時,第一儲存裝置103的資料存取速度會高於第二
儲存裝置105的資料存取速度。
The
習知技術中,若欲讀取第二儲存裝置105中的資料,會直接從第二儲存裝置105讀取資料。如前所述,資料讀取速度會受限於第二儲存裝置105和電子裝置100間的資料傳輸介面的速度。因此,本發明概念之一為將第二儲存裝置105中的至少一部份資料複製到第一儲存裝置103中的全域暫存區109或是區域暫存區111。而在讀取資料時,會先檢查第一儲存裝置103是否有欲讀取的資料,若有則優先從第一儲存裝置103讀取,若無才從第二儲存裝置105中讀取,如此可大幅的減少資料讀取的時間。詳細的步驟將於底下說明。
In the conventional technology, if the data in the
第2圖繪示了根據本發明一實施例的儲存裝置管理方法的流程圖,其包含下列步驟: Figure 2 shows a flowchart of a storage device management method according to an embodiment of the present invention, which includes the following steps:
步驟201
電子裝置100接收到讀取請求。
The
舉例來說,使用者欲透過電子裝置100讀取第二儲存裝置105中的目標資料單元。此目標資料單元可為任何形式的資料,舉例來說,檔案(file)或是LBA(Logical Block Address,邏輯區塊位址)。在以下實施例中,是以目標資料單元為LBA來說明。
For example, the user wants to read the target data unit in the
步驟203
確認全域暫存區109是否存有目標資料單元,若是則到步驟205,若否則到步驟207。
It is confirmed whether there is a target data unit in the global
於一實施例中,全域暫存區109會包含尚未編寫為檔案的資料(例如LBA)以及已編寫為檔案的資料。在此實施例中,步驟203會先確認全域暫存區中非檔案的資料中是否包含目標資料單元,若無,再確認全域暫存區中的檔案是
否包含目標資料單元。這樣的步驟可以使讀取速度更快,其原因在於,若要確認檔案是否包含目標資料單元,則須經過將檔案打開,確認其中包含的資料,然後再將檔案關閉的動作,會增加確認所需的時間。因此,會優先檢查非檔案的資料中是否包含目標資料單元。
In one embodiment, the global
步驟205
自全域暫存區109讀取目標資料單元。
The target data unit is read from the global
步驟207
確認區域暫存區111是否存有目標資料單元,若是則到步驟209,若否則到步驟211。
It is confirmed whether there is a target data unit in the regional
步驟209
自區域暫存區111讀取目標資料單元。
Read the target data unit from the regional
步驟211
自第二儲存裝置105讀取目標資料單元。
The target data unit is read from the
根據第2圖中的步驟,本案所提供的儲存裝置管理方法會優先從第一儲存裝置103讀取資料,若第一儲存裝置103沒有時才會從第二儲存裝置105讀取資料。因此,可減少第二儲存裝置105和電子裝置100間的資料傳輸介面所傳輸的資料量,可提升資料讀取的速度。詳細言之,當電子裝置100接收到自第二儲存裝置105讀取目標資料單元的讀取請求時,會先確認全域暫存區109是否有目標資料單元,若有則從全域暫存區109先讀取目標資料單元,若沒有才從區域暫存
區111讀取目標資料單元。若全域暫存區109和區域暫存區111均沒有目標資料單元,才從第二儲存裝置105讀取資料單元。如此可不須每次要讀取資料時,都從第二儲存裝置105讀取資料,可增進資料的讀取速度。
According to the steps in Figure 2, the storage device management method provided in this case will first read data from the
在以下實施例中,將詳細描述如何決定要暫存那些資料到全域暫存區109和區域暫存區111,可共同參照第2圖和第3-4圖來更為了解本發明的內容。
藉由下述的暫存方法,可讓全域暫存區109和區域暫存區111存有可能被讀取的資料,來增進從全域暫存區109和區域暫存區111讀取資料而非從第二儲存裝置105讀取資料的效率。
In the following embodiments, it will be described in detail how to decide which data to be temporarily stored in the global
在第3圖的實施例中,是假設欲讀取的目標資料單元為資料單元DU_3,且在第3圖的實施例中,全域暫存區109和區域暫存區111均不包含資料單元DU_3。在此情況下,除了從第二儲存裝置讀取資料單元DU_3外,亦會將資料單元DU_3複製到全域暫存區109和區域暫存區111,而除了資料單元DU_3外,更會將非目標資料單元外的至少一候選資料單元複製到區域暫存區111,例如第3圖中的資料單元DU_1-DU_2,以及資料單元DU_4-DU_100,也就是資料單元DU_3一位址範圍內的資料單元。採取此機制的好處是,由於資料單元可能不是單獨的被讀取,而可能是連續的被讀取。例如在讀取一檔案時,儲存位址相鄰的資料單元會被連續的讀取。因此會將資料單元DU_3一位址範圍內的資料單元先複製到區域暫存區111,以減少須直接從第二儲存裝置105讀取資料的可能性。經過這樣的複製動作後,全域暫存區109和區域暫存區111均包含資料單元DU_3,因此若要再次讀取資料單元DU_3,則依據第2圖的步驟,便會直接從全域暫存區109讀取資料單元DU_3,而不須再從第二儲存裝置105讀取。
In the embodiment in Figure 3, it is assumed that the target data unit to be read is the data unit DU_3, and in the embodiment in Figure 3, neither the global
第4圖的實施例是接續在第3圖的實施例後,也就是,在第4圖的實施例中,全域暫存區109包含資料單元DU_3,而區域暫存區111包含資料單元DU_1-DU_100。而在第4圖的實施例中,欲讀取的目標資料單元是資料單元
DU_4。依照第2圖所述的步驟,會先確認全域暫存區109是否有資料單元DU_4,但因全域暫存區109未包含資料單元DU_4,因此會再去確認區域暫存區111是否有資料單元DU_4。而區域暫存區111包含資料單元DU_4,因此會自區域暫存區111讀取資料單元DU_4,並自區域暫存區111將資料單元DU_4複製到全域暫存區109。
The embodiment in FIG. 4 is a continuation of the embodiment in FIG. 3, that is, in the embodiment in FIG. 4, the global
如前所述,若目標資料單元是從區域暫存區111或是第二儲存裝置105讀取,則會將目標資料單元複製到全域暫存區109。因此,本發明更提供了將資料寫入全域暫存區109的實施例,可更進一步的加快讀取資料的速度。第5圖繪示了根據本發明一實施例的將資料寫入全域暫存區的流程圖,可同時參考第3圖以及第5圖來更為了解本發明。於一實施例中,第3圖中的全域暫存區109會更包含一全域暫存緩衝區109_1以及一全域暫存檔案區109_2,全域暫存緩衝區109_1用以儲存非檔案的資料,而全域暫存檔案區109_2儲存檔案。第5圖的流程圖包含下列步驟:
As mentioned above, if the target data unit is read from the regional
步驟501
接收寫入資料到全域暫存區109的寫入指令。舉例來說,如前所述般將目標資料單元複製到全域暫存區109,第1圖的控制模組107會接收到儲存裝置管理程式101所產生的寫入指令。
A write command for writing data to the global
步驟503
確認全域暫存緩衝區109_1是否還有足夠空間。若是則到步驟505,若否則到步驟507。 Check whether there is enough space in the global temporary storage buffer 109_1. If yes, go to step 505, if not, go to step 507.
步驟505
將資料以非檔案的形式寫入全域暫存緩衝區109_1。 Write the data into the global temporary storage buffer 109_1 in a non-file form.
步驟507
確認全域暫存檔案區109_2是否還有足夠空間。若是則到步驟509,若否則到步驟511。 Confirm whether there is enough space in the global temporary file area 109_2. If yes, go to step 509, if not, go to step 511.
步驟509
將資料以檔案形式寫入全域暫存檔案區109_2。 Write the data in the form of files into the global temporary file area 109_2.
步驟511
若全域暫存緩衝區109_1和全域暫存檔案區109_2均不具有足夠的儲存空間,則表示全域暫存區109的儲存空間存量相當低。於此情況下,可將全域暫存區109的資料刪除。此刪除動作可刪除全域暫存區109所存的全部資料,亦可只刪除全域暫存區109所存的部份資料。舉例來說,可僅刪除全域暫存區109較舊的資料。
If neither the global temporary storage buffer area 109_1 nor the global temporary storage file area 109_2 has enough storage space, it means that the storage space stock of the global
於一實施例中,步驟507-511可被取代為,將全域暫存緩衝區109_1所儲存資料的至少一部份寫成檔案並儲存到全域暫存檔案區109_2以釋放出部份全域暫存緩衝區109_1的空間,並將新的資料寫入全域暫存緩衝區109_1。 In one embodiment, steps 507-511 can be replaced by writing at least part of the data stored in the global temporary buffer 109_1 as a file and save it in the global temporary file area 109_2 to release part of the global temporary buffer Area 109_1, and write new data into the global temporary storage buffer 109_1.
如前所述,若將資料存成檔案,則在尋找資料時須將檔案打開,進行讀取動作,然後再關閉,如此會降低存取資料的速度。因此,在第5圖的全域暫存區寫入流程中,會優先將資料儲存成非檔案的形式,如此可增進在全域暫存區讀取資料的速度。 As mentioned earlier, if you save the data as a file, you must open the file, read it, and then close it when searching for the data. This will reduce the speed of accessing the data. Therefore, in the global temporary storage area writing process in Figure 5, the data will be stored in a non-file form first, which can increase the speed of reading data in the global temporary storage area.
於一實施例中,由於全域暫存區109和區域暫存區111包含了固定的空間,因此本發明另提供了在特定情況下刪除全域暫存區109或區域暫存區111
所存的資料的實施例,以避免全域暫存區109和區域暫存區111的空間不足。如第5圖實施例所述,若全域暫存緩衝區109_1和全域暫存檔案區109_2均不具有足夠的儲存空間,則會刪除全域暫存區109中的資料。除此之外,在一實施例中,若第二儲存裝置105自電子裝置100移除,則全域暫存區105中所儲存的資料無法對應另一個儲存裝置,因此會刪除全域暫存區109中的資料。
In one embodiment, since the global
而在另一實施例中,若從區域暫存區111、全域暫存區109或第二儲存裝置105讀取完包含所需資料單元的一檔案後,則刪除區域暫存區111中所儲存的候選資料單元。以第3圖的實施例為例,若有一檔案A包含資料單元DU_3-DU_50,則在讀取完資料單元DU_3後,會再繼續依第2圖中的流程讀取完剩餘的DU_4-DU_50。而在讀取完檔案A後,由於區域暫存區111中所儲存的候選資料單元是與檔案A較有關的資料單元,因此會將區域暫存區111中所儲存的候選資料單元刪除。
In another embodiment, after reading a file containing the required data unit from the regional
使用者可能會對第二儲存裝置105中原本儲存的資料進行修改,然後將修改後的資料存回第二儲存裝置105中。在一實施例中,在此情況下,會同時對全域暫存區109和區域暫存區111進行更新,以求資料的同步。請參閱第6圖,其繪示了根據本發明一實施例的修改第二儲存裝置之資料時的動作示意圖。如第6圖所示,所需資料單元DU_1被讀出後,根據前述實施例,無論所需資料單元DU_1是從第二儲存裝置105、全域暫存區109或是區域暫存區111被讀取,全域暫存區109和區域暫存區111都會存有所需資料單元DU_1。若所需資料單元DU_1內容被更動,而被修改為修改後所需資料單元DU_1a,並回存到第二儲存裝置105以替代原有的所需資料單元DU_1,則修改後所需資料單元DU_1a須同時被存到全域暫存區109和區域暫存區111以替代原有的所需資料單元DU_1。否則下一次讀取修改後所需資料單元DU_1a時,從全域暫存區109或區域暫存區111讀取到的會是原本的所需資料單元DU_1而不是修改後所需資料單元DU_1a。
The user may modify the data originally stored in the
於一實施例中,所需資料單元DU_1被讀出並被修改成修改後所需資料單元DU_1a後,會判斷所需資料單元DU_1是否存在於區域暫存區111中,若結果為是,則將修改後所需資料單元DU_1a取代區域暫存區111中的所需資料單元DU_1。同樣的,也會判斷所需資料單元DU_1是否存在於全域暫存區109中,若結果為是,則將修改後所需資料單元DU_1a取代全域暫存區109中的所需資料單元DU_1。
In one embodiment, after the required data unit DU_1 is read and modified to the modified required data unit DU_1a, it is determined whether the required data unit DU_1 exists in the regional
而在一實施例中,全域暫存區109會包含前述的全域暫存緩衝區109_1(非檔案資料區)以及全域暫存檔案區109_2(檔案資料區),要將修改後所需資料單元DU_1a更新到全域暫存區109時,會先確認全域暫存緩衝區109_1是否存在所需資料單元DU_1,若是,則將修改後所需資料單元DU_1a取代全域暫存緩衝區109_1中的所需資料單元DU_1。若全域暫存緩衝區109_1不存在所需資料單元DU_1但全域暫存檔案區109_2存在所需資料單元DU_1,則將修改後所需資料單元DU_1a取代全域暫存檔案區109_2中的所需資料單元DU_1。如本案第5圖的步驟所述,由於先前在寫入所需資料單元到全域暫存緩衝區109時可能會有全域暫存緩衝區109_1空間不足但全域暫存檔案區109_2仍有空間的情況。因此所需資料單元DU_1可能存在於全域暫存檔案區109_2而不存在於全域暫存緩衝區109_1。
In one embodiment, the global
如前所述,習知技術在讀取第二儲存裝置的資料時,是直接從第二儲存裝置讀取資料,因此不會更動到電子裝置內的第一儲存裝置。因此,若一電子裝置運用了本發明所提供的儲存裝置管理方法,則在讀取第二儲存裝置時,電子裝置內的第一儲存裝置的資料會相對應的增加。第7圖繪示了本發明一實施例的,實際運用本發明所提供的儲存裝置管理系統或儲存裝置管理方法的呈現方式。 As mentioned above, when reading data from the second storage device in the prior art, the data is directly read from the second storage device, so the first storage device in the electronic device is not changed. Therefore, if an electronic device uses the storage device management method provided by the present invention, when the second storage device is read, the data of the first storage device in the electronic device will increase correspondingly. Fig. 7 shows an embodiment of the present invention, and the actual application of the storage device management system or storage device management method provided by the present invention is presented.
第7圖繪示了本發明一實施例的,實際運用本發明所提供的儲存裝置管理系統或儲存裝置管理方法的呈現方式。在第7圖的例子中,前述第一儲存裝
置為一內部儲存裝置,而前述第二儲存裝置為一外部儲存裝置。如第7圖所示,可使電子裝置700顯示出一儲存空間的配置畫面,其顯示了內部儲存空間和外部儲存空間。在讀取外部儲存裝置的資料時,因為資料會暫存到第一儲存裝置,因此內部儲存空間可能會相對應的增加。且如前所述,在一實施例中,若將第二儲存裝置自電子裝置移除,則會刪除全域暫存區109和區域暫存區111所存的資料。因此,若將第二儲存裝置自電子裝置移除,則可能會有內部儲存空間相對應減少的狀況發生。前述實施例所造成的內部儲存空間變化當可根據第7圖的描述而推得,故再此不再贅述。
Fig. 7 shows an embodiment of the present invention, and the actual application of the storage device management system or storage device management method provided by the present invention is presented. In the example of Figure 7, the aforementioned first storage device
Set as an internal storage device, and the aforementioned second storage device is an external storage device. As shown in FIG. 7, the
根據前述實施例,藉由在電子裝置內提供暫存區,可以使電子裝置讀取資料的速度大幅提升,以改善習知技術中資料讀取速度緩慢的問題。以上所述僅為本發明之較佳實施例,凡依本發明申請專利範圍所做之均等變化與修飾,皆應屬本發明之涵蓋範圍。 According to the foregoing embodiment, by providing a temporary storage area in the electronic device, the data reading speed of the electronic device can be greatly increased, so as to improve the problem of slow data reading speed in the prior art. The foregoing descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made in accordance with the scope of the patent application of the present invention shall fall within the scope of the present invention.
100:電子裝置 100: electronic device
101:儲存裝置管理程式 101: Storage Device Management Program
103:第一儲存裝置 103: The first storage device
105:第二儲存裝置 105: second storage device
107:控制模組 107: Control Module
109:全域暫存區 109: Global Temporary Storage Area
111:區域暫存區 111: Regional temporary storage area
Claims (20)
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810678506.6A CN109213692B (en) | 2017-07-06 | 2018-06-27 | Storage device management system and storage device management method |
US16/027,388 US10776261B2 (en) | 2017-07-06 | 2018-07-05 | Storage apparatus managing system and storage apparatus managing method for increasing data reading speed |
US16/921,956 US11256618B2 (en) | 2017-07-06 | 2020-07-07 | Storage apparatus managing system comprising local and global registering regions for registering data and associated method |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US201762528978P | 2017-07-06 | 2017-07-06 | |
US62/528,978 | 2017-07-06 |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201907309A TW201907309A (en) | 2019-02-16 |
TWI707235B true TWI707235B (en) | 2020-10-11 |
Family
ID=66213110
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW107115913A TWI707235B (en) | 2017-07-06 | 2018-05-10 | Storage apparatus managing system and storage apparatus managing method |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI707235B (en) |
-
2018
- 2018-05-10 TW TW107115913A patent/TWI707235B/en active
Non-Patent Citations (3)
Title |
---|
Examining Storage Performance on Mobile Devices |
Hybrid Cache Architecture Replacing SRAM Cache with Future Memory Technology |
Hybrid Cache Architecture Replacing SRAM Cache with Future Memory Technology Examining Storage Performance on Mobile Devices * |
Also Published As
Publication number | Publication date |
---|---|
TW201907309A (en) | 2019-02-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9880770B2 (en) | Supporting invalidation commands for non-volatile memory | |
US9927985B2 (en) | Method of dynamic table journaling | |
TWI607306B (en) | Readdressing memory for non-volatile storage devices | |
CN100585595C (en) | Method for managing file system data using dbms | |
US8402202B2 (en) | Input/output control method and apparatus optimized for flash memory | |
US20150032690A1 (en) | Virtual synchronization with on-demand data delivery | |
US20160055097A1 (en) | Heterogeneous unified memory | |
US20100174864A1 (en) | Performance in a data storage system | |
JP2010027026A (en) | Memory storage device and control method thereof | |
CN109902034A (en) | Snapshot creation method, device, electronic equipment and machine readable storage medium | |
US10108342B2 (en) | Method for reducing use of DRAM in SSD and the SSD using the same | |
JPWO2009096180A1 (en) | MEMORY CONTROLLER, NONVOLATILE STORAGE DEVICE, AND NONVOLATILE STORAGE SYSTEM | |
US8751756B2 (en) | Method and apparatus for writing data in memory system | |
US9778927B2 (en) | Storage control device to control storage devices of a first type and a second type | |
CN114579055B (en) | Disk storage method, device, equipment and medium | |
CN110312986B (en) | Opportunistic use of streams for storing data on solid state devices | |
CN113127438B (en) | Method, apparatus, server and medium for storing data | |
CN108140043B (en) | Read-write protocol for attaching only distributed database | |
JP2016515258A (en) | File aggregation for optimized file operation | |
CN109213692B (en) | Storage device management system and storage device management method | |
TWI707235B (en) | Storage apparatus managing system and storage apparatus managing method | |
JP2012058863A (en) | Disk device and method and program for data duplication to disk device | |
US11256618B2 (en) | Storage apparatus managing system comprising local and global registering regions for registering data and associated method | |
CN110287064B (en) | Method and device for restoring disk data and electronic equipment | |
US8977814B1 (en) | Information lifecycle management for binding content |