TW201629691A - Storage apapratus, electronic apparatus and data accessing method thereof - Google Patents

Storage apapratus, electronic apparatus and data accessing method thereof Download PDF

Info

Publication number
TW201629691A
TW201629691A TW104104371A TW104104371A TW201629691A TW 201629691 A TW201629691 A TW 201629691A TW 104104371 A TW104104371 A TW 104104371A TW 104104371 A TW104104371 A TW 104104371A TW 201629691 A TW201629691 A TW 201629691A
Authority
TW
Taiwan
Prior art keywords
data
memory device
read
storage device
hard disk
Prior art date
Application number
TW104104371A
Other languages
Chinese (zh)
Other versions
TWI548983B (en
Inventor
傅子瑜
陳信宇
Original Assignee
宏碁股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 宏碁股份有限公司 filed Critical 宏碁股份有限公司
Priority to TW104104371A priority Critical patent/TWI548983B/en
Publication of TW201629691A publication Critical patent/TW201629691A/en
Application granted granted Critical
Publication of TWI548983B publication Critical patent/TWI548983B/en

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Power Sources (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

A storage apparatus, an electronic apparatus and a data accessing method thereof are provided. The method is adapted for the electronic apparatus having a hard disk which includes a disk drive and a memory for storing a portion of data in the disk drive. When the electronic apparatus enters a power saving mode, a power up in standby (PUIS) mode of the hard disk is activated. When a write instruction for the hard disk is received, data to be written instructed by the write instruction is written into the memory first. When a read instruction for the hard disk is received, data to be read instructed by the read instruction is read out from the memory first.

Description

儲存裝置、電子裝置及其資料存取方法 Storage device, electronic device and data access method thereof

本發明是有關於一種資料存取方法及裝置,且特別是有關於一種電子裝置及其進入省電模式時的資料存取方法。 The present invention relates to a data access method and apparatus, and more particularly to an electronic device and a data access method when entering a power saving mode.

隨著電子產品與網路愈來愈密切結合,未來的產品將以系統進入休息時,也能與網路保持連結作為目標。當外部裝置要存取產品內的資料時,也不必叫醒整個系統。例如,微軟公司先前所推動的連線暫停(Connected Standby,CS)系統,即是在系統進入休眠狀態,應用程式處於暫停(suspend)狀態時,裝置依舊與網路維持連線。 As electronic products and networks become more closely integrated, future products will be linked to the Internet as the system enters the break. When the external device wants to access the data in the product, it is not necessary to wake up the entire system. For example, Microsoft's previously connected Connected Standby (CS) system is that when the system goes to sleep and the application is in suspend state, the device remains connected to the network.

然而,上述功能實與傳統硬碟的運作方式互相牴觸,因為要讀取硬碟勢必要將硬碟轉起,使用者一定會聽到馬達轉動的聲音。再者,硬碟轉起之後對震動的敏感度極高,若在轉動時搖晃到硬碟,即有可能造成硬碟損壞。有鑑於此,有必要提供適當的資料存取方法,來避免硬碟在系統進入省電模式時轉起。 However, the above functions are incompatible with the operation of the conventional hard disk, because it is necessary to turn the hard disk to read the hard disk, and the user must hear the sound of the motor turning. Moreover, the hard disk is highly sensitive to vibration after being turned up, and if it is shaken to the hard disk while rotating, it may cause damage to the hard disk. In view of this, it is necessary to provide appropriate data access methods to prevent the hard disk from turning when the system enters the power saving mode.

本發明提供一種儲存裝置、電子裝置及其資料存取方法,藉由在省電模式中利用記憶體提供資料的讀取及寫入,可避免硬碟頻繁地轉起而造成損壞。 The present invention provides a storage device, an electronic device, and a data access method thereof. By using a memory to provide reading and writing of data in a power saving mode, it is possible to prevent the hard disk from being frequently turned up and causing damage.

本發明的資料存取方法,適用於具有儲存裝置的電子裝置,此儲存裝置具有硬碟及用以儲存硬碟中部分資料的記憶體裝置。此方法是在電子裝置進入省電模式時,啟用儲存裝置的供電暫轉(Power Up In Standby,PUIS)模式,以在接收到對於儲存裝置的寫入指令時,優先將寫入指令所要寫入的資料寫入記憶體裝置;而在接收到對於儲存裝置的讀取指令時,則優先從記憶體裝置讀取讀取指令所要讀取的資料。 The data access method of the present invention is applicable to an electronic device having a storage device having a hard disk and a memory device for storing a portion of the data in the hard disk. The method is to enable the power up In Standby (PUIS) mode of the storage device when the electronic device enters the power saving mode, so as to preferentially write the write command when receiving the write command to the storage device The data is written to the memory device; and upon receiving the read command for the storage device, the data to be read by the read command is preferentially read from the memory device.

本發明的資料存取方法,適用於具有記憶體裝置及儲存裝置的電子裝置,其中記憶體裝置儲存儲存裝置的部分資料。此方法是在電子裝置進入省電模式時,啟用高級電源管理(Advanced power management,APM)模式,以攔截對於儲存裝置的寫入指令及讀取指令,而在接收到對於儲存裝置的寫入指令時,優先將寫入指令所要寫入的資料寫入記憶體裝置;在接收到對於儲存裝置的讀取指令時,則優先從記憶體裝置讀取讀取指令所要讀取的資料。 The data access method of the present invention is applicable to an electronic device having a memory device and a storage device, wherein the memory device stores part of the data of the storage device. The method is to enable an advanced power management (APM) mode to intercept a write command and a read command to the storage device when the electronic device enters the power saving mode, and receive a write command to the storage device. When the data to be written by the write command is preferentially written to the memory device, when the read command for the storage device is received, the data to be read by the read command is preferentially read from the memory device.

本發明的儲存裝置,適於配置於電子裝置,其包括硬碟、記憶體裝置及控制器。其中,記憶體裝置用以儲存硬碟的部分資料。控制器耦接硬碟及記憶體裝置,用以接收電子裝置進入省電 模式的觸發訊號,以啟用供電暫轉模式,而在接收到電子裝置的寫入指令時,優先將寫入指令所要寫入的資料寫入記憶體裝置;在接收到電子裝置的讀取指令時,優先從記憶體裝置讀取讀取指令所要讀取的資料。 The storage device of the present invention is adapted to be disposed in an electronic device, and includes a hard disk, a memory device, and a controller. The memory device is used to store part of the data of the hard disk. The controller is coupled to the hard disk and the memory device for receiving the electronic device to enter the power saving The trigger signal of the mode is used to enable the power supply suspend mode, and when receiving the write command of the electronic device, the data to be written by the write command is preferentially written into the memory device; when the read command of the electronic device is received The data to be read by the read command is preferentially read from the memory device.

本發明的電子裝置包括儲存裝置、記憶體裝置及處理器。其中,記憶體裝置用以儲存硬碟的部分資料。處理器耦接儲存裝置及記憶體裝置,用以接收電子裝置進入省電模式的觸發訊號,以啟用高級電源管理模式,攔截對於儲存裝置的寫入指令及讀取指令,而在接收到電子裝置的寫入指令時,優先將寫入指令所要寫入的資料寫入記憶體裝置;在接收到電子裝置的讀取指令時,優先從記憶體裝置讀取讀取指令所要讀取的資料。 The electronic device of the present invention includes a storage device, a memory device, and a processor. The memory device is used to store part of the data of the hard disk. The processor is coupled to the storage device and the memory device for receiving the trigger signal of the electronic device to enter the power saving mode, to enable the advanced power management mode, intercepting the write command and the read command for the storage device, and receiving the electronic device When writing a command, the data to be written by the write command is preferentially written to the memory device; when receiving the read command from the electronic device, the data to be read by the read command is preferentially read from the memory device.

基於上述,本發明的儲存裝置、電子裝置及其資料存取方法是在儲存裝置內配置記憶體裝置或是在電子裝置中配置記憶體裝置來儲存硬碟的部分資料。在系統進入省電模式後,每當接收到對於硬碟的讀取或寫入指令時,系統即會優先存取記憶體裝置。藉此,可避免硬碟在省電模式中頻繁地轉起而造成損壞。 Based on the above, the storage device, the electronic device, and the data access method thereof are configured to configure a memory device in the storage device or to configure a memory device in the electronic device to store part of the data of the hard disk. After the system enters the power saving mode, the system preferentially accesses the memory device whenever a read or write command to the hard disk is received. Thereby, it is possible to prevent the hard disk from being frequently turned up in the power saving mode to cause damage.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。 The above described features and advantages of the invention will be apparent from the following description.

10、42‧‧‧儲存裝置 10, 42‧‧‧ storage devices

12‧‧‧硬碟 12‧‧‧ Hard disk

14、44‧‧‧記憶體裝置 14, 44‧‧‧ memory devices

16‧‧‧控制器 16‧‧‧ Controller

40‧‧‧電子裝置 40‧‧‧Electronic devices

46‧‧‧處理器 46‧‧‧ processor

S202~S206、S502~S506‧‧‧本案一實施例之資料存取方法的步驟 S202~S206, S502~S506‧‧‧ steps of the data access method of an embodiment of the present invention

圖1是依照本發明一實施例所繪示之儲存裝置的方塊圖。 1 is a block diagram of a storage device in accordance with an embodiment of the invention.

圖2是依照本案一實施例所繪示之資料存取方法的流程圖。 2 is a flow chart of a method for accessing data according to an embodiment of the present invention.

圖3是依照本發明一實施例所繪示之資料存取方法的範例。 FIG. 3 is a diagram showing an example of a data access method according to an embodiment of the invention.

圖4是依照本發明一實施例所繪示之電子裝置的方塊圖。 4 is a block diagram of an electronic device in accordance with an embodiment of the invention.

圖5是依照本案一實施例所繪示之資料存取方法的流程圖。 FIG. 5 is a flowchart of a data access method according to an embodiment of the present disclosure.

圖6是依照本發明一實施例所繪示之資料存取方法的範例。 FIG. 6 is a diagram showing an example of a data access method according to an embodiment of the invention.

本案係在作業系統進入省電模式時,利用固態混合式硬碟(Solid State Hybrid Drive,SSHD)本身既有的反及快閃記憶體(NAND Flash)儲存硬碟的部分資料並優先提供電子裝置存取資料,搭配硬碟的供電暫轉(Power Up In Standby,PUIS)模式,即可達成無需轉動硬碟也能提供資料存取功能。此外,針對使用傳統硬碟(Hard Disk Drive,HDD)的電子裝置,本案亦藉由在電子裝置中額外配置記憶體裝置來儲存硬碟的部分資料,並在作業系統進入省電模式時優先提供電子裝置存取資料,同樣無需轉動硬碟即能提供資料存取功能。 In the case of the operating system entering the power-saving mode, the solid state hybrid drive (SSHD) itself uses the reverse NAND Flash memory to store part of the hard disk and prioritizes the electronic device. By accessing the data and matching the Power Up In Standby (PUIS) mode of the hard disk, you can provide data access without turning the hard disk. In addition, for an electronic device using a conventional Hard Disk Drive (HDD), the present invention also stores a portion of the hard disk by additionally configuring a memory device in the electronic device, and preferentially provides the operating system when the operating system enters the power saving mode. The electronic device accesses the data, and the data access function can be provided without rotating the hard disk.

圖1是依照本發明一實施例所繪示之儲存裝置的方塊圖。請參照圖1,本實施例的儲存裝置10例如是配置於電腦、工作站、伺服器等電子裝置(未繪示)中或外接於電子裝置的固態混合式硬碟(SSHD),其是由具有不同存取速度的兩個或兩個以上的儲存媒體組合而成,例如圖1所示的硬碟12及記憶體裝置14。儲存裝置10更包括控制器16,其係耦接硬碟12、記憶體裝置14及電子裝置,而可用以處理電子裝置對於儲存裝置10的讀 取及寫入指令。 1 is a block diagram of a storage device in accordance with an embodiment of the invention. Referring to FIG. 1 , the storage device 10 of the present embodiment is, for example, a solid state hybrid hard disk (SSHD) disposed in an electronic device (not shown) such as a computer, a workstation, a server, or the like, or externally connected to the electronic device. Two or more storage media having different access speeds are combined, such as the hard disk 12 and the memory device 14 shown in FIG. The storage device 10 further includes a controller 16 coupled to the hard disk 12, the memory device 14 and the electronic device, and can be used to process the reading of the electronic device for the storage device 10. Take and write instructions.

硬碟(Hard Disk Drive,HDD)12例如是使用磁碟為基礎的非揮發性儲存媒體,由磁頭利用電磁流改變極性方式,將資料寫到磁碟上。記憶體裝置14例如是反及快閃記憶體(NAND Flash memory)或其他非揮發性(Non-volatile)記憶體或使用上述元件的裝置,其可經由控制器16的控制,儲存硬碟12中的部分資料。 A Hard Disk Drive (HDD) 12 is, for example, a disk-based non-volatile storage medium in which a magnetic head changes the polarity by means of electromagnetic current to write data onto a magnetic disk. The memory device 14 is, for example, a NAND Flash memory or other non-volatile memory or a device using the above components, which can be stored in the hard disk 12 via the control of the controller 16. Part of the information.

控制器16例如是嵌入式控制器(Embedded Controller,EC)或控制晶片(Control chip),其係耦接硬碟12及記憶體裝置14,用以接收電子裝置傳送的訊號及指令,而據以存取硬碟12及記憶體裝置14中的資料。 The controller 16 is, for example, an embedded controller (EC) or a control chip, which is coupled to the hard disk 12 and the memory device 14 for receiving signals and commands transmitted by the electronic device. The data in the hard disk 12 and the memory device 14 are accessed.

詳言之,圖2是依照本案一實施例所繪示之資料存取方法的流程圖。請同時參照圖1及圖2,本實施例的方法適用於上述的儲存裝置10。以下即搭配圖1中儲存裝置10的各項元件,說明本實施例方法的詳細流程。 In more detail, FIG. 2 is a flowchart of a data access method according to an embodiment of the present disclosure. Referring to FIG. 1 and FIG. 2 simultaneously, the method of this embodiment is applicable to the above-described storage device 10. The detailed flow of the method of this embodiment will be described below in conjunction with the components of the storage device 10 of FIG.

首先,控制器16接收電子裝置之作業系統進入省電模式所產生的觸發訊號,而據以啟用儲存裝置10的供電暫轉模式(步驟S202)。其中,在供電暫轉模式下,儲存裝置10會停止手上的工作,讓硬碟12停止轉動,且將硬碟12的存取規則切換為防止轉動演算法(Spinning Preventing Algorithm),以確保硬碟12不會在過電時馬上轉動。藉此,可確保電子裝置在經由網路喚醒時,不會造成硬碟12轉動,避免硬碟12因此損壞。上述的省電模式 例如是休眠模式(Suspend to Disk,S4),惟本案實施例不限於此。 First, the controller 16 receives the trigger signal generated by the operating system of the electronic device entering the power saving mode, thereby enabling the power supply suspension mode of the storage device 10 (step S202). Wherein, in the power supply suspend mode, the storage device 10 stops the work on the hand, stops the hard disk 12 from rotating, and switches the access rule of the hard disk 12 to a Spinning Preventing Algorithm to ensure hard The disc 12 does not rotate immediately upon overpowering. Thereby, it can be ensured that the electronic device does not cause the hard disk 12 to rotate when waking up via the network, thereby preventing the hard disk 12 from being damaged. The above power saving mode For example, it is a sleep mode (Suspend to Disk, S4), but the embodiment of the present invention is not limited thereto.

需說明的是,控制器16在啟用儲存裝置10的供電暫轉模式時,例如會將儲存裝置10中在省電模式下存取頻率高於一門檻值的資料由硬碟12複製到記憶體裝置14,以便提供電子裝置存取。同時,控制器也會將省電模式下存取頻率低於門檻值的資料由記憶體裝置14複製到硬碟12後,將此資料自記憶體裝置14中刪除,以空出記憶體裝置14的空間。 It should be noted that, when the power supply temporary rotation mode of the storage device 10 is enabled, for example, the data in the storage device 10 whose access frequency is higher than a threshold value in the power saving mode is copied from the hard disk 12 to the memory. Device 14 is provided to provide access to the electronic device. At the same time, the controller also copies the data whose access frequency is lower than the threshold value in the power saving mode from the memory device 14 to the hard disk 12, and deletes the data from the memory device 14 to empty the memory device 14. Space.

在供電暫轉模式下,控制器16在接收到電子裝置對於儲存裝置10的寫入指令時,會將寫入指令所要寫入的資料優先寫入記憶體裝置14(步驟S204)。詳言之,控制器16收到來自電子裝置的寫入指令時,會搭配供電暫轉模式來做動,先將硬碟12上電,但不轉起碟盤,然後將寫入指令所要寫入的資料擺入記憶體裝置14。其中,控制器16的韌體會設計成儘量避免硬碟12轉動,除非記憶體裝置14的空間不敷使用。也就是說,控制器16在接收到寫入指令時,會先判斷記憶體裝置14的剩餘空間是否足以存放寫入指令所要寫入的資料,若剩餘空間不足,控制器16才會轉動硬碟12以將寫入指令所要寫入的資料寫入。 In the power supply suspend mode, when receiving the write command from the electronic device to the storage device 10, the controller 16 preferentially writes the data to be written by the write command to the memory device 14 (step S204). In detail, when the controller 16 receives the write command from the electronic device, it will cooperate with the power supply suspend mode to power on the hard disk 12 first, but does not turn the disk, and then writes the write command. The incoming data is placed in the memory device 14. Wherein, the firmware of the controller 16 is designed to avoid the rotation of the hard disk 12 as much as possible unless the space of the memory device 14 is insufficient. That is to say, when receiving the write command, the controller 16 first determines whether the remaining space of the memory device 14 is sufficient to store the data to be written by the write command, and if the remaining space is insufficient, the controller 16 will rotate the hard disk. 12 writes the data to be written by the write command.

另一方面,在供電暫轉模式下,控制器16在接收到電子裝置對於儲存裝置10的讀取指令時,會優先從記憶體裝置14讀取讀取指令所要讀取的資料(步驟S206)。詳言之,控制器16收到來自電子裝置的讀取指令時,會先判斷記憶體裝置14是否存有讀取指令所要讀取的資料,若記憶體裝置14沒有讀取指令所要讀 取的資料,才會轉動硬碟12以讀取讀取指令所要讀取的資料。 On the other hand, in the power supply suspend mode, when receiving the read command from the electronic device to the storage device 10, the controller 16 preferentially reads the data to be read by the read command from the memory device 14 (step S206). . In detail, when the controller 16 receives the read command from the electronic device, it first determines whether the memory device 14 stores the data to be read by the read command, and if the memory device 14 does not read the command, it needs to read. The data taken will turn the hard disk 12 to read the data to be read by the read command.

需說明的是,針對讀取的部分,由於儲存裝置10無法預知電子裝置需要存取的資料會在硬碟12或是記憶體裝置14中,但電子裝置在省電模式下需要存取的資料大多集中在某些特定資料,故若能將這些特定資料先行複製到記憶體裝置14中,即能夠有效減少硬碟12在省電模式下轉起的次數。據此,在一實施例中,控制器16例如會在啟用儲存裝置10的供電暫轉模式時,執行一種學習演算法,統計電子裝置在省電模式下對於硬碟12中各筆資料的存取頻率,以便在電子裝置進入省電模式時,即先將存取頻率高於門檻值的資料由硬碟12複製到記憶體裝置14,藉此提供電子裝置在省電模式下存取使用。 It should be noted that, for the read part, the storage device 10 cannot predict that the data that the electronic device needs to access may be in the hard disk 12 or the memory device 14, but the data that the electronic device needs to access in the power saving mode. Most of them are concentrated on certain specific materials, so if these specific data can be copied to the memory device 14, the number of times the hard disk 12 is turned up in the power saving mode can be effectively reduced. Accordingly, in an embodiment, the controller 16 executes a learning algorithm, for example, when the power supply suspend mode of the storage device 10 is enabled, and the statistical electronic device stores the data in the hard disk 12 in the power saving mode. The frequency is taken so that when the electronic device enters the power saving mode, the data whose access frequency is higher than the threshold value is first copied from the hard disk 12 to the memory device 14, thereby providing access to the electronic device in the power saving mode.

舉例來說,圖3是依照本發明一實施例所繪示之資料存取方法的範例。請參照圖3,本實施例係在系統電源狀態由正常運作模式進入省電模式時,啟用供電暫轉模式,從而停止硬碟轉動,並執行防止轉動的存取演算法,儘量避免轉動硬碟;而在系統電源狀態離開省電模式時,則會離開供電暫轉模式,從而恢復硬碟轉動,並回覆到一般的存取演算法。其中,在電子裝置離開省電模式時,除了會將儲存裝置的供電暫轉模式關閉外,還會轉動硬碟以將供電暫轉模式期間寫入記憶體裝置的資料搬移至硬碟。 For example, FIG. 3 is an example of a data access method according to an embodiment of the invention. Referring to FIG. 3, in the embodiment, when the system power state is changed from the normal operation mode to the power saving mode, the power supply temporary rotation mode is enabled, thereby stopping the hard disk rotation, and performing an operation algorithm for preventing rotation, and avoiding rotating the hard disk as much as possible. When the system power state leaves the power saving mode, it will leave the power supply temporary mode, thereby recovering the hard disk rotation and replying to the general access algorithm. Wherein, when the electronic device leaves the power saving mode, in addition to turning off the power supply temporary rotation mode of the storage device, the hard disk is rotated to move the data written to the memory device during the power supply suspend mode to the hard disk.

藉由上述的資料存取方法,本實施例的儲存裝置即可在供電暫轉模式下,利用記憶體暫存資料並優先提供電子裝置存取資料,從而減少硬碟轉起的頻率,避免硬碟損壞。 With the above data access method, the storage device of the embodiment can use the memory temporary storage data and preferentially provide the electronic device to access the data in the power supply temporary transfer mode, thereby reducing the frequency of hard disk rotation and avoiding hard The disc is damaged.

需說明的是,上述實施例主要是針對本身同時具有記憶體及硬碟之固態混合式硬碟所設計的資料存取方法,其可藉由更改碟機的韌體來控制記憶體的存取。然而,對於傳統硬碟而言,由於本身不具備記憶體,故不能利用碟機的韌體來控制記憶體的存取。對此,本案的一實施例係在電子裝置中額外裝載一個記憶體,並由電子裝置的處理器直接管理記憶體及硬碟之間的資料存取。以下則再舉一實施例詳細說明。 It should be noted that the above embodiment is mainly directed to a data access method designed by a solid-state hybrid hard disk having both a memory and a hard disk, which can control the access of the memory by changing the firmware of the disk drive. . However, for a conventional hard disk, since the memory itself is not provided, the firmware of the disk drive cannot be used to control the access of the memory. In this regard, an embodiment of the present invention additionally loads a memory in the electronic device, and directly manages data access between the memory and the hard disk by the processor of the electronic device. The following is a detailed description of an embodiment.

圖4是依照本發明一實施例所繪示之電子裝置的方塊圖。請參照圖4,本實施例的電子裝置40例如是電腦、工作站或伺服器,其中包括儲存裝置42、記憶體裝置44及處理器46,其功能分述如下。 4 is a block diagram of an electronic device in accordance with an embodiment of the invention. Referring to FIG. 4, the electronic device 40 of the present embodiment is, for example, a computer, a workstation, or a server, and includes a storage device 42, a memory device 44, and a processor 46, the functions of which are described below.

儲存裝置42例如是硬碟。記憶體裝置44例如是反及快閃記憶體,或是包含反及快閃記憶體的快取固態硬碟(Cache SSD)或嵌入式多媒體卡(Embedded MultiMediaCard,eMMC),或其他種類的非揮發性記憶體或裝置,本實施例不限制其種類。記憶體裝置44可經由處理器46的控制,儲存儲存裝置42中的部分資料。 The storage device 42 is, for example, a hard disk. The memory device 44 is, for example, a flash memory or a cached SSD or an Embedded MultiMediaCard (eMMC) containing anti-flash memory, or other types of non-volatile The memory or device, the embodiment does not limit its kind. The memory device 44 can store a portion of the data in the storage device 42 via the control of the processor 46.

處理器46例如是中央處理單元(Central Processing Unit,CPU),或是其他可程式化之一般用途或特殊用途的微處理器(Microprocessor)、數位訊號處理器(Digital Signal Processor,DSP)、可程式化控制器、特殊應用積體電路(Application Specific Integrated Circuits,ASIC)、可程式化邏輯裝置(Programmable Logic Device,PLD)或其他類似裝置或這些裝置的組合,其係耦 接儲存裝置42及記憶體裝置44,而用以處理電子裝置40傳送的訊號及指令,而據以存取儲存裝置42及記憶體裝置44的資料。 The processor 46 is, for example, a central processing unit (CPU), or another programmable general purpose or special purpose microprocessor (Microprocessor), a digital signal processor (DSP), and a programmable program. Controller, Application Specific Integrated Circuits (ASIC), Programmable Logic Device (PLD) or other similar devices or a combination of these devices The storage device 42 and the memory device 44 are connected to process the signals and commands transmitted by the electronic device 40 to access the data of the storage device 42 and the memory device 44.

詳言之,圖5是依照本案一實施例所繪示之資料存取方法的流程圖。請同時參照圖4及圖5,本實施例的方法適用於上述的電子裝置40。以下即搭配圖4中電子裝置40的各項元件,說明本實施例方法的詳細流程。 In detail, FIG. 5 is a flowchart of a data access method according to an embodiment of the present disclosure. Referring to FIG. 4 and FIG. 5 simultaneously, the method of this embodiment is applicable to the electronic device 40 described above. The detailed flow of the method of this embodiment will be described below in conjunction with the components of the electronic device 40 of FIG.

首先,處理器46接收電子裝置40之作業系統進入省電模式所產生的觸發訊號,而據以啟用高級電源管理(Advanced power management,APM)模式,以攔截電子裝置40對於儲存裝置42的寫入指令及讀取指令(步驟S502)。其中,本實施例係藉由在高級配置與電源介面(Advanced Configuration and Power Interface,ACPI)上實施一層過濾驅動程式(Filter driver),來攔截電子裝置40對於儲存裝置42的存取指令,進而管理儲存裝置42及記憶體裝置44的資料存取。 First, the processor 46 receives the trigger signal generated by the operating system of the electronic device 40 entering the power saving mode, thereby enabling an advanced power management (APM) mode to intercept the writing of the electronic device 40 to the storage device 42. The command and the read command (step S502). In this embodiment, by implementing a filter driver on the Advanced Configuration and Power Interface (ACPI), the access command of the electronic device 40 to the storage device 42 is intercepted and managed. Data access by storage device 42 and memory device 44.

其中,處理器46在接收到電子裝置40對於儲存裝置42的寫入指令時,即會將寫入指令所要寫入的資料優先寫入記憶體裝置44(步驟S204)。詳言之,處理器46收到來自電子裝置40的寫入指令時,例如會先判斷記憶體裝置44的剩餘空間是否足以存放寫入指令所要寫入的資料,若剩餘空間不足,處理器46才會轉動儲存裝置42以將寫入指令所要寫入的資料寫入。 When the processor 46 receives the write command from the electronic device 40 to the storage device 42, the processor 46 preferentially writes the data to be written in the write command to the memory device 44 (step S204). In detail, when the processor 46 receives the write command from the electronic device 40, for example, it is first determined whether the remaining space of the memory device 44 is sufficient to store the data to be written by the write command. If the remaining space is insufficient, the processor 46 The storage device 42 is rotated to write the data to be written by the write command.

另一方面,處理器46在接收到電子裝置40對於儲存裝置42的讀取指令時,也會優先從記憶體裝置44讀取讀取指令所 要讀取的資料(步驟S206)。詳言之,處理器46收到來自電子裝置40的讀取指令時,例如會先判斷記憶體裝置44中是否存有讀取指令所要讀取的資料,若記憶體裝置44沒有讀取指令所要讀取的資料,才會轉動儲存裝置42以讀取讀取指令所要讀取的資料。 On the other hand, when receiving the read command from the electronic device 40 to the storage device 42, the processor 46 also preferentially reads the read command from the memory device 44. The material to be read (step S206). In detail, when the processor 46 receives the read command from the electronic device 40, for example, it is first determined whether the memory device 44 has the data to be read by the read command, and if the memory device 44 does not have the read command. The read data will rotate the storage device 42 to read the data to be read by the read command.

類似於前述實施例,針對讀取的部分,在一實施例中,處理器46例如會在啟用高級電源管理模式時,執行一種學習演算法,統計電子裝置40在省電模式下對於儲存裝置42中各筆資料的存取頻率,以便在電子裝置40進入省電模式時,即先將存取頻率高於門檻值的資料由儲存裝置42複製到記憶體裝置44,以提供電子裝置40在省電模式下存取使用。 Similar to the previous embodiment, for the portion of the read, in one embodiment, the processor 46, for example, performs a learning algorithm when the advanced power management mode is enabled, and the statistical electronic device 40 is in the power saving mode for the storage device 42. The access frequency of each piece of data is such that when the electronic device 40 enters the power saving mode, the data whose access frequency is higher than the threshold value is first copied from the storage device 42 to the memory device 44 to provide the electronic device 40 in the province. Access in electrical mode.

舉例來說,圖6是依照本發明一實施例所繪示之資料存取方法的範例。請參照圖6,本實施例係在系統電源狀態由正常運作模式進入省電模式時,啟用高級電源管理模式,以攔截對於硬碟的寫入指令及讀取指令,並由過濾驅動程式控制硬碟的資料存取,儘量避免轉動硬碟;而在系統電源狀態離開省電模式時,則會離開高級電源管理模式,從而恢復硬碟轉動,並回覆到一般的存取演算法。其中,在電子裝置離開省電模式時,除了會將高級電源管理模式關閉外,還會轉動硬碟以將高級電源管理模式期間寫入記憶體裝置的資料搬移至硬碟。 For example, FIG. 6 is an example of a data access method according to an embodiment of the invention. Referring to FIG. 6, in this embodiment, when the system power state is changed from the normal operation mode to the power saving mode, the advanced power management mode is enabled to intercept the write command and the read command for the hard disk, and the hard drive is controlled by the filter driver. The data access of the disc is to avoid rotating the hard disk. When the system power state leaves the power saving mode, it will leave the advanced power management mode, thereby recovering the hard disk rotation and replying to the general access algorithm. When the electronic device leaves the power saving mode, in addition to turning off the advanced power management mode, the hard disk is also rotated to move the data written to the memory device during the advanced power management mode to the hard disk.

藉由上述的資料存取方法,本實施例的電子裝置即可在高級電源管理模式下,利用過濾驅動程式攔截電子裝置對於硬碟的存取指令,並優先從記憶體存取資料。藉此,可有效減少硬碟 轉起的頻率,避免硬碟損壞。 With the above data access method, the electronic device of the embodiment can use the filter driver to intercept the access command of the electronic device to the hard disk in the advanced power management mode, and preferentially access the data from the memory. This can effectively reduce the hard disk Turn the frequency to avoid damage to the hard disk.

綜上所述,本發明的儲存裝置、電子裝置及其資料存取方法利用在儲存裝置內配置記憶體裝置或是在電子裝置中配置記憶體裝置來儲存硬碟的部分資料,並搭配儲存裝置的供電暫轉模式或是電子裝置的高級電源管理模式,在接收到系統的存取指令時,皆優先對記憶體裝置進行存取。藉此,可避免硬碟在省電模式中頻繁地轉起而造成損壞。 In summary, the storage device, the electronic device, and the data access method thereof of the present invention use a memory device in the storage device or a memory device in the electronic device to store part of the data of the hard disk, and the storage device is matched with the storage device. The power supply temporary transfer mode or the advanced power management mode of the electronic device preferentially accesses the memory device when receiving the access command of the system. Thereby, it is possible to prevent the hard disk from being frequently turned up in the power saving mode to cause damage.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。 Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention, and any one of ordinary skill in the art can make some changes and refinements without departing from the spirit and scope of the present invention. The scope of the invention is defined by the scope of the appended claims.

S202~S206‧‧‧本案一實施例之資料存取方法的步驟 S202~S206‧‧‧ steps of the data access method of an embodiment of the present invention

Claims (24)

一種資料存取方法,適用於具有一儲存裝置的一電子裝置,該儲存裝置具有一硬碟及用以儲存該硬碟部分資料的一記憶體裝置,該方法包括下列步驟:在該電子裝置進入一省電模式時,啟用該儲存裝置的一供電暫轉(Power Up In Standby,PUIS)模式;在接收到對於該儲存裝置的一寫入指令時,優先寫入該寫入指令所要寫入的資料於該記憶體裝置;以及在接收到對於該儲存裝置的一讀取指令時,優先從該記憶體裝置讀取該讀取指令所要讀取的資料。 A data access method for an electronic device having a storage device having a hard disk and a memory device for storing data of the hard disk portion, the method comprising the steps of: entering the electronic device In a power saving mode, a Power Up In Standby (PUIS) mode of the storage device is enabled; when a write command to the storage device is received, the write command to be written is preferentially written. Data is stored in the memory device; and upon receiving a read command for the storage device, the data to be read by the read command is preferentially read from the memory device. 如申請專利範圍第1項所述的資料存取方法,其中在電子裝置進入該省電模式時,啟用該儲存裝置的該供電暫轉模式的步驟更包括:將該省電模式下存取頻率高於一門檻值的資料由該硬碟複製到該記憶體裝置;以及將該省電模式下存取頻率低於該門檻值的資料由該記憶體裝置複製到該硬碟,並刪除該記憶體裝置中的該資料。 The data access method of claim 1, wherein the step of enabling the power supply suspend mode of the storage device when the electronic device enters the power saving mode further comprises: accessing the frequency in the power saving mode Data that is higher than a threshold is copied from the hard disk to the memory device; and data whose access frequency is lower than the threshold in the power saving mode is copied from the memory device to the hard disk, and the memory is deleted This information in the body device. 如申請專利範圍第2項所述的資料存取方法,其中將該省電模式下存取頻率高於該門檻值的資料由該硬碟複製到該記憶體裝置的步驟更包括:統計該電子裝置在該省電模式下對於該硬碟中各筆資料的存取頻率,據以將該省電模式下存取頻率高於該門檻值的資料由該 硬碟複製到該記憶體裝置。 The data access method of claim 2, wherein the step of copying the data whose access frequency is higher than the threshold in the power saving mode from the hard disk to the memory device further comprises: counting the electronic The access frequency of the device in the power saving mode for the data in the hard disk, according to the data in the power saving mode, the access frequency is higher than the threshold value. The hard disk is copied to the memory device. 如申請專利範圍第1項所述的資料存取方法,其中在接收到對於該儲存裝置的該寫入指令時,優先寫入該寫入指令所要寫入的資料於該記憶體裝置的步驟更包括:判斷該記憶體裝置的剩餘空間是否足以存放該寫入指令所要寫入的資料;以及若該剩餘空間不足,轉動該硬碟以寫入該寫入指令所要寫入的資料。 The data access method of claim 1, wherein when the write command to the storage device is received, the step of writing the data to be written by the write command to the memory device is more preferential. The method includes: determining whether the remaining space of the memory device is sufficient to store data to be written by the write command; and if the remaining space is insufficient, rotating the hard disk to write data to be written by the write command. 如申請專利範圍第1項所述的資料存取方法,其中在接收到對於該儲存裝置的該讀取指令時,優先從該記憶體裝置讀取該讀取指令所要讀取的資料的步驟更包括:判斷該記憶體裝置是否存有該讀取指令所要讀取的資料;以及若該記憶體裝置沒有該讀取指令所要讀取的資料,轉動該硬碟以讀取該讀取指令所要讀取的資料。 The data access method of claim 1, wherein the step of preferentially reading the data to be read from the memory device when receiving the read command for the storage device is further The method includes: determining whether the memory device stores the data to be read by the read command; and if the memory device does not have the data to be read by the read command, rotating the hard disk to read the read command to read Information taken. 如申請專利範圍第1項所述的資料存取方法,更包括:在該電子裝置離開該省電模式時,關閉該儲存裝置的該供電暫轉模式,而轉動該硬碟以將該供電暫轉模式期間寫入該記憶體裝置的資料搬移至該硬碟。 The data access method of claim 1, further comprising: turning off the power supply temporary mode of the storage device when the electronic device leaves the power saving mode, and rotating the hard disk to temporarily supply the power supply The data written to the memory device during the transition mode is moved to the hard disk. 一種資料存取方法,適用於具有一記憶體裝置及一儲存裝置的一電子裝置,其中該記憶體裝置儲存該儲存裝置的部分資料,該方法包括下列步驟: 在該電子裝置進入一省電模式時,啟用一高級電源管理(Advanced power management,APM)模式,以攔截對於該儲存裝置的一寫入指令及一讀取指令;在接收到對於該儲存裝置的該寫入指令時,優先寫入該寫入指令所要寫入的資料於該記憶體裝置;以及在接收到對於該儲存裝置的該讀取指令時,優先從該記憶體裝置讀取該讀取指令所要讀取的資料。 A data access method is applicable to an electronic device having a memory device and a storage device, wherein the memory device stores part of the data of the storage device, the method comprising the following steps: When the electronic device enters a power saving mode, an advanced power management (APM) mode is enabled to intercept a write command and a read command for the storage device; upon receiving the storage device Writing a command preferentially writes the data to be written by the write command to the memory device; and when receiving the read command for the storage device, preferentially reading the read from the memory device The data to be read by the instruction. 如申請專利範圍第7項所述的資料存取方法,其中在電子裝置進入該省電模式時,啟用該高級電源管理模式的步驟更包括:將該省電模式下存取頻率高於一門檻值的資料由該儲存裝置複製到該記憶體裝置;以及將該省電模式下存取頻率低於該門檻值的資料由該記憶體裝置複製到該儲存裝置,並刪除該記憶體裝置中的該資料。 The data access method of claim 7, wherein when the electronic device enters the power saving mode, the step of enabling the advanced power management mode further comprises: accessing the frequency in the power saving mode is higher than a threshold Data of the value is copied from the storage device to the memory device; and data having an access frequency lower than the threshold value in the power saving mode is copied from the memory device to the storage device, and the memory device is deleted The information. 如申請專利範圍第8項所述的資料存取方法,其中將該省電模式下存取頻率高於該門檻值的資料由該儲存裝置複製到該記憶體裝置的步驟更包括:統計該電子裝置在該省電模式下對於該儲存裝置中各筆資料的存取頻率,據以將該省電模式下存取頻率高於該門檻值的資料由該儲存裝置複製到該記憶體裝置。 The data access method of claim 8, wherein the step of copying the data whose access frequency is higher than the threshold in the power saving mode from the storage device to the memory device further comprises: counting the electronic In the power saving mode, the device accesses the data of each piece of data in the storage device, and the data whose access frequency is higher than the threshold value in the power saving mode is copied from the storage device to the memory device. 如申請專利範圍第7項所述的資料存取方法,其中在接收到對於該儲存裝置的該寫入指令時,優先寫入該寫入指令所要寫入的資料於該記憶體裝置的步驟更包括: 判斷該記憶體裝置的剩餘空間是否足以存放該寫入指令所要寫入的資料;以及若該剩餘空間不足,轉動該儲存裝置以寫入該寫入指令所要寫入的資料。 The data access method of claim 7, wherein the step of preferentially writing the data to be written by the write command to the memory device is further received when the write command to the storage device is received. include: Determining whether the remaining space of the memory device is sufficient to store the data to be written by the write command; and if the remaining space is insufficient, rotating the storage device to write the data to be written by the write command. 如申請專利範圍第7項所述的資料存取方法,其中在接收到對於該儲存裝置的該讀取指令時,優先從該記憶體裝置讀取該讀取指令所要讀取的資料的步驟更包括:判斷該記憶體裝置是否存有該讀取指令所要讀取的資料;以及若該記憶體裝置沒有該讀取指令所要讀取的資料,轉動該儲存裝置以讀取該讀取指令所要讀取的資料。 The data access method of claim 7, wherein the step of preferentially reading the data to be read from the memory device when receiving the read command for the storage device is further The method includes: determining whether the memory device stores the data to be read by the read command; and if the memory device does not have the data to be read by the read command, rotating the storage device to read the read command to read Information taken. 如申請專利範圍第7項所述的資料存取方法,更包括:在該電子裝置離開該省電模式時,關閉該儲存裝置的該高級電源管理模式,而轉動該儲存裝置以將該高級電源管理模式期間寫入該記憶體裝置的資料搬移至該儲存裝置。 The data access method of claim 7, further comprising: turning off the advanced power management mode of the storage device when the electronic device leaves the power saving mode, and rotating the storage device to turn the advanced power supply The data written to the memory device during the management mode is moved to the storage device. 一種儲存裝置,適於配置於一電子裝置,包括:一硬碟;一記憶體裝置,儲存該硬碟的部分資料;以及一控制器,耦接該硬碟及該記憶體裝置,接收該電子裝置進入一省電模式的一觸發訊號,以啟用一供電暫轉模式,其中在接收到該電子裝置的一寫入指令時,優先寫入該寫入指令所要寫入的資料於該記憶體裝置;以及 在接收到該電子裝置的一讀取指令時,優先從該記憶體裝置讀取該讀取指令所要讀取的資料。 A storage device, configured to be disposed on an electronic device, comprising: a hard disk; a memory device for storing part of the data of the hard disk; and a controller coupled to the hard disk and the memory device to receive the electronic device The device enters a trigger signal of a power saving mode to enable a power supply suspend mode, wherein when a write command of the electronic device is received, the data to be written by the write command is preferentially written to the memory device ;as well as Upon receiving a read command from the electronic device, the data to be read by the read command is preferentially read from the memory device. 如申請專利範圍第13項所述的儲存裝置,其中該控制器更包括在接收到該觸發訊號時,將該省電模式下存取頻率高於一門檻值的資料由該硬碟複製到該記憶體裝置,以及將該省電模式下存取頻率低於該門檻值的資料由該記憶體裝置複製到該硬碟,並刪除該記憶體裝置中的該資料。 The storage device of claim 13, wherein the controller further comprises: when receiving the trigger signal, copying the data whose access frequency is higher than a threshold in the power saving mode from the hard disk to the The memory device, and the data having the access frequency lower than the threshold in the power saving mode, are copied from the memory device to the hard disk, and the data in the memory device is deleted. 如申請專利範圍第14項所述的儲存裝置,其中該控制器更包括統計該電子裝置在該省電模式下對於該硬碟中各筆資料的存取頻率,據以將該省電模式下存取頻率高於該門檻值的資料由該硬碟複製到該記憶體裝置。 The storage device of claim 14, wherein the controller further comprises: counting the access frequency of the electronic device in the power saving mode for each piece of data in the hard disk, according to the power saving mode; The data whose access frequency is higher than the threshold is copied from the hard disk to the memory device. 如申請專利範圍第13項所述的儲存裝置,其中該控制器更包括在接收到該電子裝置的該寫入指令時,判斷該記憶體裝置的剩餘空間是否足以存放該寫入指令所要寫入的資料,而若該剩餘空間不足,轉動該硬碟以寫入該寫入指令所要寫入的資料。 The storage device of claim 13, wherein the controller further comprises, when receiving the write command of the electronic device, determining whether a remaining space of the memory device is sufficient to store the write command to be written. The data, if the remaining space is insufficient, rotate the hard disk to write the data to be written by the write command. 如申請專利範圍第13項所述的儲存裝置,其中該控制器更包括在接收到該電子裝置的該讀取指令時,判斷該記憶體裝置是否存有該讀取指令所要讀取的資料,而若該記憶體裝置沒有該讀取指令所要讀取的資料,轉動該硬碟以讀取該讀取指令所要讀取的資料。 The storage device of claim 13, wherein the controller further comprises: when receiving the read command of the electronic device, determining whether the memory device stores the data to be read by the read command, And if the memory device does not have the data to be read by the read command, the hard disk is rotated to read the data to be read by the read command. 如申請專利範圍第13項所述的儲存裝置,其中該控制器更包括在接收到該電子裝置離開該省電模式的一回復訊號時,離 開該供電暫轉模式,而轉動該硬碟以將該供電暫轉模式期間寫入該記憶體裝置的資料搬移至該硬碟。 The storage device of claim 13, wherein the controller further comprises: upon receiving a reply signal that the electronic device leaves the power saving mode, The power supply suspend mode is turned on, and the hard disk is rotated to move data written to the memory device during the power supply suspend mode to the hard disk. 一種電子裝置,包括:一儲存裝置;一記憶體裝置,儲存該硬碟的部分資料;以及一處理器,耦接該儲存裝置及該記憶體裝置,接收該電子裝置進入一省電模式的一觸發訊號,以啟用一高級電源管理模式,以攔截對於該儲存裝置的一寫入指令及一讀取指令,其中在接收到該電子裝置的該寫入指令時,優先寫入該寫入指令所要寫入的資料於該記憶體裝置;以及在接收到該電子裝置的該讀取指令時,優先從該記憶體裝置讀取該讀取指令所要讀取的資料。 An electronic device includes: a storage device; a memory device for storing a portion of the data of the hard disk; and a processor coupled to the storage device and the memory device to receive the electronic device into a power saving mode Triggering a signal to enable an advanced power management mode to intercept a write command and a read command for the storage device, wherein when the write command of the electronic device is received, the write command is preferentially written The written data is in the memory device; and when the read command of the electronic device is received, the data to be read by the read command is preferentially read from the memory device. 如申請專利範圍第19項所述的電子裝置,其中該處理器更包括在電子裝置進入該省電模式時,將該省電模式下存取頻率高於一門檻值的資料由該儲存裝置複製到該記憶體裝置;以及將該省電模式下存取頻率低於該門檻值的資料由該記憶體裝置複製到該儲存裝置,並刪除該記憶體裝置中的該資料。 The electronic device of claim 19, wherein the processor further comprises: when the electronic device enters the power saving mode, the data whose access frequency is higher than a threshold in the power saving mode is copied by the storage device And to the memory device; and the data whose access frequency is lower than the threshold in the power saving mode is copied from the memory device to the storage device, and the data in the memory device is deleted. 如申請專利範圍第20項所述的電子裝置,其中該處理器更包括在電子裝置進入該省電模式時,統計該電子裝置在該省電模式下對於該儲存裝置中各筆資料的存取頻率,據以將該省電模式下存取頻率高於該門檻值的資料由該儲存裝置複製到該記憶體裝置。 The electronic device of claim 20, wherein the processor further comprises: when the electronic device enters the power saving mode, counting the access of the electronic device to the data in the storage device in the power saving mode; The frequency, according to which the data whose access frequency is higher than the threshold in the power saving mode is copied from the storage device to the memory device. 如申請專利範圍第19項所述的電子裝置,其中該處理器更包括在接收到對於該儲存裝置的該寫入指令時,判斷該記憶體裝置的剩餘空間是否足以存放該寫入指令所要寫入的資料,而若該剩餘空間不足,轉動該儲存裝置以寫入該寫入指令所要寫入的資料。 The electronic device of claim 19, wherein the processor further comprises, when receiving the write command for the storage device, determining whether a remaining space of the memory device is sufficient to store the write command to be written. The incoming data, if the remaining space is insufficient, rotate the storage device to write the data to be written by the write command. 如申請專利範圍第19項所述的電子裝置,其中該處理器更包括在接收到對於該儲存裝置的該讀取指令時,判斷該記憶體裝置是否存有該讀取指令所要讀取的資料,而若該記憶體裝置沒有該讀取指令所要讀取的資料,轉動該儲存裝置以讀取該讀取指令所要讀取的資料。 The electronic device of claim 19, wherein the processor further comprises: when receiving the read command for the storage device, determining whether the memory device stores the data to be read by the read command. And if the memory device does not have the data to be read by the read command, rotate the storage device to read the data to be read by the read command. 如申請專利範圍第19項所述的電子裝置,其中該處理器更包括在該電子裝置離開該省電模式時,關閉該儲存裝置的該高級電源管理模式,而轉動該儲存裝置以將該高級電源管理模式期間寫入該記憶體裝置的資料搬移至該儲存裝置。 The electronic device of claim 19, wherein the processor further comprises: when the electronic device leaves the power saving mode, turning off the advanced power management mode of the storage device, and rotating the storage device to the advanced The data written to the memory device during the power management mode is moved to the storage device.
TW104104371A 2015-02-10 2015-02-10 Storage apapratus, electronic apparatus and data accessing method thereof TWI548983B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW104104371A TWI548983B (en) 2015-02-10 2015-02-10 Storage apapratus, electronic apparatus and data accessing method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW104104371A TWI548983B (en) 2015-02-10 2015-02-10 Storage apapratus, electronic apparatus and data accessing method thereof

Publications (2)

Publication Number Publication Date
TW201629691A true TW201629691A (en) 2016-08-16
TWI548983B TWI548983B (en) 2016-09-11

Family

ID=57182176

Family Applications (1)

Application Number Title Priority Date Filing Date
TW104104371A TWI548983B (en) 2015-02-10 2015-02-10 Storage apapratus, electronic apparatus and data accessing method thereof

Country Status (1)

Country Link
TW (1) TWI548983B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111831327A (en) * 2019-04-17 2020-10-27 瑞昱半导体股份有限公司 Electronic device capable of executing instructions and instruction execution method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6546472B2 (en) * 2000-12-29 2003-04-08 Hewlett-Packard Development Company, L.P. Fast suspend to disk
TW591372B (en) * 2003-05-15 2004-06-11 High Tech Comp Corp Power control method of portable electronic device, portable electronic device and electronic system
TW201314572A (en) * 2011-09-21 2013-04-01 Acer Inc Electronic apparatus using NAND flash and memory management method thereof
TW201329706A (en) * 2012-01-05 2013-07-16 Acer Inc Electronic device, hibernation method and computer program product

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111831327A (en) * 2019-04-17 2020-10-27 瑞昱半导体股份有限公司 Electronic device capable of executing instructions and instruction execution method

Also Published As

Publication number Publication date
TWI548983B (en) 2016-09-11

Similar Documents

Publication Publication Date Title
TWI472914B (en) Hard disk drive,hard drive assembly and laptop computer with removable non-volatile semiconductor memory module,and hard disk controller integrated circuit for non-volatile semiconductor memory module removal detection
US8495321B2 (en) Firehose dump of SRAM write cache data to non-volatile memory using a supercap
JP2014160450A (en) Data storage device and writing method
JP2008034085A (en) Disk drive unit equipped with nonvolatile memory having a plurality of operation modes
JP2007193440A (en) Storage device using nonvolatile cache memory, and control method therefor
JP2009181314A (en) Information recording device and control method thereof
TWI402670B (en) Method for controlling power consumption of a usb mass storage, associated personal computer, and storage medium storing an associated usb mass storage driver
JP2007293440A (en) Storage device using nonvolatile cache memory and its control method
EP3142015A1 (en) Low-power memory-access method and associated apparatus
TWI403897B (en) Memory device and data management method thereof
US11294442B2 (en) Delay of power off to write data from volatile to non-volatile memory of a solid state drive
US9507709B2 (en) Hibernation based on page source
TWI454922B (en) Memory storage device and memory controller and data writing method thereof
JPH0373465A (en) Disk controller
TWI548983B (en) Storage apapratus, electronic apparatus and data accessing method thereof
US10204054B2 (en) Media cache cleaning
WO2019041903A1 (en) Nonvolatile memory based computing device and use method therefor
US8917471B1 (en) Power management for data storage device
AU2015203828A1 (en) Implementing enhanced performance with read before write to phase change memory to avoid write cancellations
US9990155B2 (en) Storage control device, storage system and method of controlling a storage device
TW201837773A (en) Computer device and data protection method therefore
TWI522924B (en) Electronic device and operating system switching method thereof
TWI653636B (en) Data storage device and method of operating same
TW201314572A (en) Electronic apparatus using NAND flash and memory management method thereof
JP2001318832A (en) Disk cache control system