TW201142587A - Method of accelerating data access - Google Patents

Method of accelerating data access Download PDF

Info

Publication number
TW201142587A
TW201142587A TW99116776A TW99116776A TW201142587A TW 201142587 A TW201142587 A TW 201142587A TW 99116776 A TW99116776 A TW 99116776A TW 99116776 A TW99116776 A TW 99116776A TW 201142587 A TW201142587 A TW 201142587A
Authority
TW
Taiwan
Prior art keywords
access device
computer
hard disk
flag
value
Prior art date
Application number
TW99116776A
Other languages
Chinese (zh)
Other versions
TWI407304B (en
Inventor
Yu-Ting Chiu
Chih-Liang Yen
Cheng-Wei Yang
Original Assignee
Waremax Electronics Corp
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 Waremax Electronics Corp filed Critical Waremax Electronics Corp
Priority to TW99116776A priority Critical patent/TWI407304B/en
Publication of TW201142587A publication Critical patent/TW201142587A/en
Application granted granted Critical
Publication of TWI407304B publication Critical patent/TWI407304B/en

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention discloses a method of accelerating data access, which is applied in an access device and a computer. The access device is connected to the computer, a hard disk drive (HDD) and a memory drive (such as a solid-state drive, SSD), respectively. The hard disk drive comprises a normal partition, wherein the normal partition is stored with an operating system, and a control program is installed therein. The normal partition is divided into a plurality of routine segments. The memory drive is divided into a plurality of mirror segments. Each of the mirror segments is respectively corresponding to each of the routine segments. After the computer executes the operating system, as requested by the control program, the computer would create an index table in the hard disk drive. The index table comprises a plurality of fields, wherein each of the fields is stored with a flag. If the flag in the field is a first value (such as "0"), contents stored in both the routine segment corresponding to the field, and the corresponding mirror segment are identical. Further, if the flag in the field is a second value (such as "1"), contents stored in the routine segment corresponding to the field, and the corresponding mirror segment are different. When the computer reads data, the access device would read each of the corresponding fields in the index table. If the read flag is the first value, the access device would read the data stored in the corresponding mirror segment (with a faster read speed), and transmit the data to the computer. Otherwise, if the read flag is the second value, the access device would read the data stored in the corresponding routine segment, and transmit the data to the computer. As a result, the present invention can significantly increase the data read speed. Further, a user only needs to connect the access device to the computer, respectively connect the hard disk drive and the memory drive to the access device, and install the control program in the operating system without being through a complex configuration procedure, thereby improving the usage convenience of the access device.

Description

201142587 六、發明說明: 【發明所屬之技術領域】 本發明係關於一種加速資料存取之方法,係應用在一存取裝 置及一電腦上’該存取裝置分別與該電腦、一常規硬碟及一記憶 體硬碟(如:固態硬碟)相連接,該電腦在執行作業系統後,會 根據一控制程式建立一索引表,該存取裝置透過該索引表内的旗 標數值,決定從該常規硬碟或從該記憶體硬碟讀取資料,並將資 料傳送至該電腦,以達到加速資料存取之效果。 【先前技術】 按,固態硬碟(Solid State Disk、Solid State Drive,簡 稱SSD) ’是一種基於永久性記憶體(如快閃記憶體)的電腦資料 儲存裝置。在傳統常規硬碟(Hard Disk Drive ,簡稱HDD)可見 到的旋轉盤狀機構,雖然在固態硬碟中已不復存在,然而,由於 固態硬碟常用以替代常規硬碟,而被應用在行動電子裝置(如: 筆°己型電腦專)中,因此,業者便依照過去的命名習慣,將Ssd 稱為固態硬碟,且在銷售通路上往往將其視為硬碟的一種。 由於固態硬碟並非⑽性讀寫頭來讀寫旋轉碟片,故盘傳统 了規硬碟的技術。㈣硬碟社要技術,是將數個域體 (如:NAND記憶體)連接起來,再搭配適當的控制晶片及電路, ^形成一儲存裝置。在固態硬碟的規格方面,由於固態硬碟常作 =傳統常規硬碟的替代品,故大多數的製造廠商會將固態硬碟設 a十為和常規硬碟相同的規格,例如常見的18英寸、2.5英寸或 201142587 3.5英寸規格。而在固態硬碟與電腦的連接介面方面,目前的固態 硬碟普遍採用SATA2介面,但亦有部分固態硬碟採用IDE、SATA、 SATA3、1394、USB、或PCI-E等連接介面。此外,在固態硬碟中 所採用的記憶體,大致上可分為兩大類:MLC(Multi_Level, 多層式儲存)及SLC (Single-Level Cell,單層式儲存),另外較 新型的還有TLC (Triple-Level Cell)記憶體,其允許之抹寫次 - 數更少,使用壽命也更短。就目前的技術而言,使用既c的固態 • 硬碟成本較使用SLC的低’但是寫入速度較低、使用壽命也較短。 鲁 正因為固態硬碟無須以馬達驅動碟片旋轉,所以固態硬碟與 常規硬碟相較之下,具備了無噪音、低功耗、讀寫中耐震性高、 低發熱及易輕量化等優點,這也使得固態硬碟十分適合應用在行 動電子裝置上,除此之外,根據相關測試數據顯示,固態硬碟的 讀取速度約可達到常規硬碟的2〜3倍以上,寫入速度亦可達到常 規硬碟的1.5倍以上。在目前常規硬碟成為系統效能瓶頸的情況 下,採用固態硬碟應是一種不錯的解決方案。然而,固態硬碟雖 ^ 然在存取速度上及部分物理特性上有優異的表現,但目前仍存在 著许多缺點尚待改善,在價格方面,目前無論是永久性記憶體還 疋非永久性§己憶體’其母百萬位元組成本(C〇st per Megabyte) 都遠咼於常規硬碟’使得大容量的固態硬碟價格居高不下,故一 般使用者較不可能完全以固態硬碟取代常規硬碟,不僅如此,更 重要的是’由於固態硬碟中的記憶體在寫入資料時並非直接寫 入’而是將原本的資料抹除後’才能寫入新資料,此種物理限制 造成固態硬碟中的記憶體有一定的寫入次數限制,且寫入越多 次,其連續寫入的速度越慢。上述缺點,意味著固態硬碟的使用 201142587 哥命往往低於常規㈣。若制者在個人電腦上㈣態硬碟完全 取代常規硬碟’則該固態硬碟勢必要負擔大量的寫人工作,如此, 將造成_硬麵使轉命快速折損,且者必須承擔固態硬 碟隨時損壞之風險,相當不理想。不僅如此,—旦_硬碟損壞, 不僅可能造成資料遺失等問題,使用者又必須重新添購新的硬 碟,造成使用者額外的金錢負擔。 目前有業者研發出-種混合儲存裝置(Hybrid 其 技術-般通稱為麵瞻,主要是在電腦上安裝—控制裝置並 將-常規硬碟及_固||補連接至該控織置,其加速原理是將 上述常規硬碟及固態硬碟結合為RAID1裝置,使電腦能透過該控 制裝置’從任—硬碟帽出資料,且電腦能透過該控制裝置同時 寫入該二硬碟,惟,藉由該項技術雖能勉強提升資料的讀取速度, 但在寫入資料時,該控制裝置會同時將諸寫人至該常規硬碟與 該固態硬碟’以轉兩者__化,如此,仍會造成該固態 硬碟必須承擔頻繁的寫人叫,進而使該_硬碟的使用壽命大 幅減損,非常不理想。 此外,亦有業者改良上述HD_〇ST技術,其内容主要是利用 該控制裝置找f規㈣憎立—賴表,使雜織置藉由該 對照表的内容’讀取固態硬碟或常規硬碟的資料,或依照該對照 表的内谷’將常規硬碟的資料複製到固態硬碟,然:而,當該控制 裝置在常規硬針建立龍表時,縣經㈣業緣,而是直接 ,該常規硬碟的數個魏中建立對縣,如此,該等磁區原本儲 存的資料職損毀,甚至可能使部分系統㈣201142587 VI. Description of the Invention: [Technical Field] The present invention relates to a method for accelerating data access, which is applied to an access device and a computer, the access device and the computer, a conventional hard disk respectively Connected to a memory hard disk (such as a solid state hard disk). After executing the operating system, the computer establishes an index table according to a control program, and the access device determines the value from the flag in the index table. The conventional hard disk reads data from the memory hard disk and transmits the data to the computer to accelerate the data access. [Prior Art] Press, Solid State Disk (Solid State Drive, SSD) is a computer data storage device based on permanent memory (such as flash memory). The rotating disk mechanism visible in the conventional Hard Disk Drive (HDD) is no longer present in the solid state disk. However, since the solid state disk is often used to replace the conventional hard disk, it is applied in action. In electronic devices (such as pen-type computers), the industry refers to Ssd as a solid-state hard disk according to past naming conventions, and it is often regarded as a kind of hard disk in the sales channel. Since the solid state hard disk is not a (10) read/write head for reading and writing rotating discs, the disc has traditionally been a hard disk technology. (4) The technology of the hard disk society is to connect several domain bodies (such as NAND memory), and then match the appropriate control chip and circuit to form a storage device. In terms of solid-state hard disk specifications, since solid-state hard disks are often used as replacements for conventional conventional hard disks, most manufacturers will set the solid-state hard disk to the same specifications as conventional hard disks, such as the common 18 Inches, 2.5 inches or 201142587 3.5 inches. In terms of the connection interface between the SSD and the computer, the current solid-state hard disk generally uses the SATA2 interface, but some solid-state hard disks also use IDE, SATA, SATA3, 1394, USB, or PCI-E interface. In addition, the memory used in solid-state hard disks can be roughly divided into two categories: MLC (Multi_Level, multi-layer storage) and SLC (Single-Level Cell), and the newer ones are TLC. (Triple-Level Cell) memory, which allows for fewer erases and fewer lifetimes. As far as the current technology is concerned, the use of solid-state hard disk with both c is lower than that of using SLC, but the writing speed is lower and the service life is shorter. Lu Zheng is a solid-state hard disk that does not need to be driven by a motor to drive the disc. Therefore, the solid-state hard disk has noiselessness, low power consumption, high shock resistance during reading and writing, low heat generation and light weight, etc. compared with conventional hard disk. Advantages, this also makes the solid state hard disk very suitable for application on mobile electronic devices. In addition, according to the relevant test data, the reading speed of the solid state hard disk can be about 2 to 3 times higher than that of the conventional hard disk. The speed can also be more than 1.5 times that of a conventional hard disk. In the current situation where conventional hard drives become system performance bottlenecks, the use of solid state drives should be a good solution. However, although the solid state hard disk has excellent performance in terms of access speed and some physical characteristics, there are still many shortcomings to be improved. In terms of price, currently, whether it is permanent memory or non-permanent. § 忆 体 ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' Hard disk replaces conventional hard disk, not only that, but more importantly, 'because the memory in the solid state disk is not directly written when writing data, 'but the original data is erased' to write new data. The physical limitation causes the memory in the solid state hard disk to have a certain number of write times, and the more the write, the slower the continuous write speed. The above shortcomings mean the use of solid state hard drives 201142587 The fate is often lower than the regular (four). If the maker (4) hard disk completely replaces the conventional hard disk on the personal computer, then the solid-state hard disk must bear a lot of writing work, and this will cause the hard surface to be quickly broken, and the solid hard must be assumed. The risk of damage to the disc at any time is quite unsatisfactory. Not only that, but if the hard disk is damaged, not only may the data be lost, but the user must re-purchase the new hard disk, causing the user to bear extra money. At present, some manufacturers have developed a hybrid storage device (Hybrid's technology is generally called face-to-face, mainly installed on a computer-control device and connects the conventional hard disk and _solid|| to the control weaving, The principle of acceleration is to combine the above-mentioned conventional hard disk and solid state hard disk into a RAID 1 device, so that the computer can output data from the hard disk drive through the control device, and the computer can simultaneously write the two hard disks through the control device. Although the technology can barely increase the reading speed of the data, when the data is written, the control device will simultaneously write the writer to the conventional hard disk and the solid state hard disk. In this way, the solid-state hard disk must still bear frequent writes, which greatly degrades the service life of the hard disk. It is not ideal. In addition, some manufacturers have improved the above HD_〇ST technology, and its content is mainly Is to use the control device to find the f-regulation (four) stand-by-week, so that the weaving of the contents of the look-up table 'read solid-state hard disk or conventional hard disk data, or according to the inner valley of the comparison table' will be conventional Hard disk data copied to solid state hard Dishes: However, when the control device establishes a dragon watch in a conventional hard needle, the county (4) industry is directly, but several Weizhongs of the conventional hard disk are established in the county, and thus, the magnetic regions are originally stored. The data of the job is destroyed, and may even make part of the system (4)

腦開機後絲私作__情事發生,相#荷想。若要Z 201142587 這種裝置而不毀壞原本的作1%統、制程式及其他重要資 使用者必須錢-顆全新的常規硬碟、或先把—些重要資二從馬 有的常規硬碟備份到另-個儲錢置中,然後_該控制在 該常規硬碟中建立-對絲’重新安裝作鮮統、應用程^ 將之前備份到另-個儲存裝置巾的重要龍——複製回至連接 該控制裝置的該常規硬碟中。如此,才能_使用,不僅相當費 時費力,且非為數眾多的一般用戶所能進行的操作。 因此,如何改善上述諸多問題,在不多次寫人固態硬碟的前 提下’利用_硬碟讀取速度快之特性,提升電腦存取硬碟資料 的速度,即為本發明在此欲探討的一重要課題。 、 【發明内容】 有鑑於前揭諸多問題,發明人經過長久努力研究與實驗,終 於開發設計出本發明之加速資料存取之方法,期藉由記憶體硬碟 (固態硬碟)讀取速度快之特性,加快電腦存取硬碟資料的速度, 且令記憶體《 (固態硬碟)錢負翻繁的寫人王作,以^長 固態硬碟的使用壽命。 本發明之一目的,係提供一種加速資料存取之方法,係應用 在-存取裝置及-電腦上,該存取裝置分難該電腦、—常規硬 碟(Hard Disk Drive,簡稱_)及一記憶體硬碟(如;固態硬 碟(Solid-state drive,簡稱SSD))相連接,其中該記憶體硬碟 的讀取速度高於該常規硬碟,該常規硬碟包括一常態區,該常態 區内儲存有作業系統(〇peratingSystem,簡稱〇s),且該作業系 統中安裝有-㈣程式,該常_被劃分為複數财規區段,而 201142587 該記憶體補被劃分為植個鏡龍段,各該騎區段分別與各 該常規區段相對應;該電腦在執行該作為統後,會根據該控制 程式的要求’在該常規硬射建立―料表,該索引表包括有複 數侧位,各細位分·私—簡,且各糊位分別與各該 常規區段相對應’當該攔㈣的旗標為—第―數值(如;「〇」)時, 代表該欄㈣應之該常規區段,麵應之魏㈣段齡的内容 相同,另,當該攔位内的旗標為一第二數值(如;Γ1」)時代表 該欄位對應之該常規區段,與對紅該鏡㈣段儲存之内容相 異。當該電腦讀取資料時,該存取裝置會讀取該索引表中對應之 各該攔位’在讀取到之欄位之旗標為該第—數值時(意即對應之 該常規區段與該鏡賴段内麟之資料姻),鱗取裝置即選擇 讀取對應之該鏡射區段(讀取速度較高)内儲存之資料,且傳送 至該電腦’或在該存取裝置讀取到之攔位之顧為該第二數值時 (意即對應之該常規區段與該鏡射區段内儲存之資料不相同),該 存取裝置便會選擇讀取對應之該常規區段(讀取速度較慢)内儲 存之資料,且傳送至該電腦。如此,當電腦透過該存取裝置讀取 資料時,即月b從速度較快之該記憶體硬碟讀取部分或全部資料, 大幅增加資料的讀取速度。 •本發明之另一目的,乃當該電腦欲寫入資料至該常規硬碟内 時,該存取裝置會先接收到該電腦傳來之一寫入指令,且據以對 該常規硬碟執行寫入工作,俟完成該寫入工作,且變更任—常規 區段内儲存之資料後,該存取裝置即依據該索弓丨表,將對應於該 常規區段之該欄位的旗標,設定為該第二數值。如此,該存取裝 置僅會先將資料寫入至該常規硬碟,藉此減少該記憶體硬碟的^ 201142587 入次數’並提升該記憶體硬碟的使用壽命。 本發明之又一目的,乃當忒存取裝置接收到該電腦傳來之一 驅動指令(如:作㈣統啟域關)時,或使用者按壓該存取 裝置上的一按鍵時,該存取裝置即依據該索引表,讀取該索引表 中之各該攔位,在讀取到的攔位之旗標為該第二數值時,該存取 裝置便將對應於該欄位之常規區段内儲存之資料,複製到對應於 該攔位之鏡射區段,並將該攔位之旗標變更為該第一數值,以完 -成對應之該常規區段與該鏡射區段間之鏡射。藉此,不僅能減少 籲該記憶體硬碟寫入的次數,更能使該常規區段與該鏡射區段的資 料同步’明加資料的讀取速度。不僅如此,#該存取χ置在執 行資料鏡射的過程巾,亦刊時接㈣電_讀取指令,並以上 述讀取方式將資料傳送至該電腦。 為便貴審查委員能對本發明之目的、結構及其功效,做更 進-步之認識與瞭解,_實關配合圖式,詳細說明如下: 【實施方式】 按,日本業者普遍以「MemGry Disk」,來稱呼如_硬 以記憶體與控制晶片組合形成的記憶裝置」,如 號、⑽«觸繼,目此,姆中將該2 、,稱為战體硬碟」’換言之’本案所稱「記憶體硬碟」者,即 代表「以記紐與控制晶#組合形成的記憶裝置」,合先陳明。 在本發明之較佳實施例中,請參閱第i圖所示,存取 分別與一電腦11、-常規硬碟12及-記憶體硬碟13相連接置:: 記憶體猶丨_取奴__碟12,錢齡面方^ 201142587After the brain is turned on, the silk is privately made __ The situation occurs, the phase #荷想. To Z 201142587 this kind of device does not destroy the original 1% system, program and other important users must have money - a brand new regular hard disk, or first put some important resources from the horse's conventional hard disk Back up to another storage bank, then _ the control is established in the regular hard disk - re-install the silk 'retro, application ^ will be an important dragon before backing up to another storage device - copy Returning to the conventional hard disk connected to the control device. In this way, it can be used, not only quite time-consuming and laborious, but also a large number of operations that can be performed by ordinary users. Therefore, how to improve the above-mentioned problems, in the premise of not writing human solid-state hard disk many times, 'utilizing the characteristics of fast reading speed of hard disk, and improving the speed of computer accessing hard disk data, is the invention for this purpose. An important topic. [Invention] In view of the many problems mentioned above, the inventors have finally developed and designed the method of accelerating data access of the present invention through long-term efforts and experiments, and read speed by means of a memory hard disk (solid state hard disk). Fast features, speed up the speed of computer access to hard disk data, and make the memory "(solid-state hard disk) money overwhelming writer Wang Zuo, to the long life of solid-state hard disk. It is an object of the present invention to provide a method for accelerating data access, which is applied to an access device and a computer, which is difficult for the computer, a conventional hard disk (Hard Disk Drive, _ for short) A memory hard disk (such as a solid-state drive (SSD)) is connected, wherein the memory hard disk has a higher reading speed than the conventional hard disk, and the conventional hard disk includes a normal area. The normal system stores an operating system (〇peratingSystem, 〇s), and the operating system is equipped with a - (four) program, the constant _ is divided into a plurality of financial rules section, and 201142587 the memory supplement is divided into plants a mirror segment, each of which corresponds to each of the regular segments; after the computer executes the system, it will establish a table in the conventional hard shot according to the requirements of the control program, the index table Including a plurality of side positions, each fine position, private-simplified, and each paste position corresponding to each of the regular sections respectively, when the flag of the barrier (four) is - the first value (such as; "〇"), Representing the regular section of the column (4), the Wei (4) section The same content, and the other, when the flag bits within the block is a second value (eg; Gamma] 1 ") when the field corresponding to the representative of the regular segment, and storing the content of the red segment mirror (iv) different phases. When the computer reads the data, the access device reads the corresponding interceptor in the index table, when the flag of the read field is the first value (that is, the corresponding normal area) The segment is matched with the data of the lining in the mirror, and the scale device selects to read the data stored in the corresponding mirror segment (higher reading speed) and transmits it to the computer' or in the access When the device reads that the block is the second value (that is, the corresponding regular segment is different from the data stored in the mirror segment), the access device selects to read the corresponding value. The data stored in the regular section (slower reading speed) is transferred to the computer. Thus, when the computer reads the data through the access device, that is, the monthly b reads part or all of the data from the faster hard disk of the memory, thereby greatly increasing the reading speed of the data. Another object of the present invention is that when the computer wants to write data to the conventional hard disk, the access device first receives a write command from the computer, and accordingly the conventional hard disk After performing the write operation, after completing the write operation, and changing the data stored in the regular section, the access device will flag the field corresponding to the regular section according to the reference table. The flag is set to the second value. In this way, the access device only writes the data to the conventional hard disk first, thereby reducing the number of times the memory hard disk is '201142587' and increasing the lifetime of the memory hard disk. A further object of the present invention is to enable the access device to receive a drive command from the computer (eg, to perform a four-way drive command), or when the user presses a button on the access device, The access device reads each of the blocks in the index table according to the index table, and when the flag of the read block is the second value, the access device will correspond to the field. The data stored in the regular section is copied to the mirror segment corresponding to the block, and the flag of the block is changed to the first value to complete the corresponding segment and the mirror Mirroring between sections. Thereby, not only can the number of times of writing the hard disk of the memory be reduced, but also the data of the regular segment and the mirror segment can be synchronized to increase the reading speed of the data. Not only that, the access device is placed in the process towel that executes the mirroring of the data, and is also connected to the (four) power_read command, and the data is transmitted to the computer in the above reading mode. In order to make the review committee able to make a more in-depth understanding and understanding of the purpose, structure and efficacy of the present invention, _ actual cooperation with the schema, the detailed description is as follows: [Embodiment] Press, Japanese industry commonly used "MemGry Disk ", as the memory device formed by the combination of memory and control chip", such as the number, (10) «touch, the purpose, the middle of the 2, called the battle hard disk" in other words, the case The "memory hard disk" is the memory device formed by the combination of the memory and the control crystal #. In the preferred embodiment of the present invention, please refer to the figure i, the access is respectively connected to a computer 11, a conventional hard disk 12 and a memory hard disk 13:: memory still _ slave __碟12, Qian Ling noodle party ^ 201142587

lie薇商可根據實際設計需求’將該存取裝置l〇連接至該電腦ULie Wei can connect the access device to the computer U according to the actual design requirements.

的連接介面設計為 IDE、SATA、SATA2、SATA3、1394、USB 或 PCI-E 等介面,同理,該存取裝置10與該常規硬碟12及該記憶體硬碟 13的連接介面亦可為IDE、SATA、SATA2、或SATA3等介面。該常 規硬碟12内包括一常態區12〇及一資料區122,該常態區120内 儲存有作業系統(OperatingSystem,簡稱OS),在本較佳實施例 中’該作業系統為Windows XP,且上述常態區12〇在該作業系統 中被標示為C槽(C:\),上述資料區122被標示為D槽(D:\), 4-並不以此為限,5玄常態區12〇亦可能在wind〇ws χρ中被標示為 其他路徑,或者,上述常態區120亦可能包括整個C槽加上—部 份的D槽(甚至是涵蓋多個硬碟分割區,且該等硬碟分割區並不 限定必須為連續)’另外,在該作業系統為等其他作 業系統的情況下,上述常態區120在作業系統所被標示的路徑名 稱亦可能有多種變化,故本發明並不以此為限。 承上,請參閱第1圖所示,該常態區120的容量為5,000MB (Megabyte)’該記憶體硬碟13的容量亦為5, 〇〇〇MB(Megabyte)。 通作業系統中安裝有—控繼式,在實際設計上,該控制程式可 设什為根據使用者插接之該記憶體硬碟13的容量,以決定該常態 區120的容量。該電腦n透過該控制程式將該常態區12〇劃分為 100個常規區段121,每個常規區段121的容量為5〇Μβ,且將該記 憶體硬碟13劃分為1〇〇個鏡射區段131,且每個鏡射區段131的 容量同樣為5_,惟上述容量大小及劃分賴量僅為—較佳實施 例,並非本發明之限制,合先陳明。各該鏡射區段131分別與各 該常規區段121相對應,意即,在第1财,第-列第-攔(最 201142587 之鏡射區段131a與第一列第—攔(最左上角)之常規區 •k 121a相對應’其餘則依此類推。 見^ 再者,請參閱第1、2圖所示,誃雷 _ 會根據該控難式的要求,賴常規硬‘2 ’ =立索⑷4時’該作業系統會在該常規硬碟i2選二 磁:區段123 (尚未被存入其他資料之區段,且磁 ; 可為複數個),以建立該_ 14,由於該控The connection interface is designed as an interface such as IDE, SATA, SATA2, SATA3, 1394, USB or PCI-E. Similarly, the connection interface between the access device 10 and the conventional hard disk 12 and the memory hard disk 13 can also be Interfaces such as IDE, SATA, SATA2, or SATA3. The conventional hard disk 12 includes a normal area 12 and a data area 122. The normal area 120 stores an operating system (OS). In the preferred embodiment, the operating system is Windows XP. The normal area 12〇 is marked as C slot (C:\) in the operating system, and the data area 122 is marked as D slot (D:\), 4- is not limited thereto, and 5 normal state area 12 〇 may also be marked as another path in wind〇ws χρ, or the above-mentioned normal area 120 may also include the entire C-slot plus part of the D-slot (even covering multiple hard disk partitions, and such hard The disc partitioning area is not limited to be continuous). In addition, in the case where the operating system is other operating systems, the path name of the normal area 120 indicated in the operating system may also have various changes, so the present invention does not This is limited to this. As shown in Fig. 1, the capacity of the normal area 120 is 5,000 MB (Megabyte)'. The capacity of the memory hard disk 13 is also 5, 〇〇〇MB (Megabyte). The control system is installed with a control type. In actual design, the control program can be configured to determine the capacity of the normal area 120 according to the capacity of the memory hard disk 13 inserted by the user. The computer n divides the normal region 12〇 into 100 regular segments 121 through the control program, each conventional segment 121 has a capacity of 5 〇Μβ, and divides the memory hard disk 13 into 1 镜 mirrors. The segment 131, and the capacity of each mirror segment 131 is also 5_, but the above capacity and the amount of division are only - the preferred embodiment, not the limitation of the present invention. Each of the mirror sections 131 corresponds to each of the regular sections 121, that is, in the first fiscal, the first-column-block (the most mirrored section 131a of the 201142587 and the first column - the most The upper left corner of the regular area • k 121a corresponds to 'the rest and so on. See ^ Again, please refer to the first and second figures, 誃 雷 _ will be based on the difficult requirements of the control, rely on the conventional hard '2 '=Lisuo (4) 4 o' the operating system will select two magnets on the conventional hard disk i2: section 123 (the section that has not been stored in other data, and magnetic; can be plural) to establish the _ 14, Due to the control

統建立索引表14,故不會有毁損該常規硬碟12所儲存的資 ^相題發生。在本較佳實施例中,該索引表14的職路徑為: 二\ b〇0st\」,且檔名為:「_她」。為避免使 間刪改該索引表14,該索引表14被設定為隱藏檔,或者,被= 為存取權限等級高、只有系統f理員找存取之财。該索引表 14的大小為⑽位元’每一位元代表—攔位,故該索引表14包括 有刚個攔位140’各該欄位刚分別儲存有一旗標(可為〇或以 各該欄位140係分別與各該常規區段121才目對應(亦與各該 區段131相對應),意即,第一列第一攔之欄位u〇a與第—列第 一欄之常規區段12la相對應,其餘則依此類推。 當魏憶體硬碟13 (未存放資料)及該常規硬碟12為柄次配 對(首次同時連接到該存取裝置1〇)時,請參閱第3圖所示,該 存取襄置10及該電腦u係根據下列流程,進行初始化工作: (300)該控制程式(電腦)向作業系統取得一索引表14,且找出 作業系統將該索引表14配置在常規硬碟12中的實體位置 及大小等相關資訊,並將該索引表14的該相關配置資訊傳 送給該存取裝置1〇記錄之; 201142587 (301) 該存取裝置1〇擷取該記憶體硬碟13及該常規硬碟η之 裝置資訊(如:產品序號、製造廠商名稱等),並記錄該 兩個配對裝置的裝置資訊; (302) 該存取裝置1〇將該索引表14内所有攔位14〇的旗標變更 為「1」,如第2圖所示; (303) 該存取裝置1〇將各該常規區段121儲存的資料,依序鏡 射(複製)到各該鏡射區段131 ;及 (304) 當任-常規區段121儲存的資料鏡射至對應的鏡射區段 131時,該存取裝置丨〇在該索引表14中將對應於該常 規區段121之欄位140的旗標變更為「〇」。 •需特別一提的是由於在上述步驟(3〇1)中,該存取裝置1〇 會記錄該記憶體硬碟13及該常規硬碟12之裝置資訊,故日後該 存取裝置10在開機時能酬前述兩者已完成初始化,而無須在每 -人開機時都將該常態區⑽内儲存的資料全部鏡射(複製)到該 記憶體硬碟13中。 -月參閱第4圖所不,當該存轉置1()將所有常規區段⑵儲 存的資料完全鏡射到該等鏡射區段131後,該記憶體硬碟13内的 資料即與該常態區12Q的資料完全相同。此外,請參閱第5圖所 不’該索引表14的所有欄位14〇的旗標全部被變更為「〇」,表示 各該常規區段121所儲存的資料,與對應之各該鏡射區段131所 儲存的資料完全_。此外,料別―提的是,製統商或設計 廠商在設計該存取裝龍時,亦可省略上述步驟(观),只要當 該控制程式確賴常規㈣12與觀_鶴13為首次配對的 狀況下,就直接將所有常瓶段121 _的紐完全鏡射到該等 201142587 叙射區段13卜並將所有攔位14〇的旗標設定為「〇」。又,在本較 佳實施例中,當該攔位14〇内的旗標為一第一數值「〇」時,代表 該攔,140對應之該常規區段121,與對應之該鏡射區段131的儲 存内谷相同’另’當該欄位⑽内的旗標為-第二數值「1」時, 代表摘位140對應之該常規區段ι21,與對應之該鏡射區段 之儲存内4目異’惟’本發明並不以此為限,在實際設計上,亦 可以其他數值代替上述「〇」、「〗」,凡本技術領域之人士,根據本 發月所以㈣聯想到之簡單觀,均屬本案所欲保護之範圍内。The index table 14 is created, so that there is no damage to the memory stored in the conventional hard disk 12. In the preferred embodiment, the job path of the index table 14 is: "\b〇0st\", and the file name is "_her". In order to avoid tampering with the index table 14, the index table 14 is set to be hidden, or = is a high level of access authority, and only the system administrator can find the money for access. The size of the index table 14 is (10) bits 'each bit represents a block, so the index table 14 includes just one block 140' each of the fields has just stored a flag (may be 〇 or each The field 140 corresponds to each of the regular sections 121 (also corresponding to each of the sections 131), that is, the first column of the first column and the first column of the first column The conventional section 12la corresponds to the rest, and the rest is the same. When the Wei Yi body hard disk 13 (unstored data) and the conventional hard disk 12 are handle pairs (the first time connected to the access device 1), please refer to As shown in FIG. 3, the access device 10 and the computer u perform initialization operations according to the following processes: (300) the control program (computer) obtains an index table 14 from the operating system, and finds that the operating system will The index table 14 configures related information such as the physical location and size of the conventional hard disk 12, and transmits the related configuration information of the index table 14 to the access device 1 to record it; 201142587 (301) The access device 1 Extracting information about the memory hard disk 13 and the conventional hard disk η (eg, product Number, manufacturer name, etc., and record device information of the two paired devices; (302) the access device 1 changes the flag of all the blocks 14〇 in the index table 14 to "1", as in 2; (303) the access device 1 镜 mirrors (copy) the data stored in each of the regular segments 121 to each of the mirror segments 131; and (304) the current-conventional region When the data stored in the segment 121 is mirrored to the corresponding mirror segment 131, the access device 变更 changes the flag corresponding to the field 140 of the regular segment 121 to "〇" in the index table 14. In particular, in the above step (3〇1), the access device 1 records the device information of the memory hard disk 13 and the conventional hard disk 12, so that the access device 10 is in the future. At the time of power-on, both of the above-mentioned initializations have been completed, and it is not necessary to mirror (copy) all the data stored in the normal area (10) to the memory hard disk 13 when the person is turned on. - See Figure 4 for the month. No, when the deposit transpose 1 () completely mirrors the data stored in all the regular sections (2) to the mirror section 131, the memory The data in the hard disk 13 is exactly the same as the data in the normal area 12Q. In addition, please refer to Fig. 5, and the flags of all the fields 14 of the index table 14 are all changed to "〇", indicating that each The data stored in the regular section 121 is completely _ with the data stored in the corresponding mirror section 131. In addition, it is mentioned that the system manufacturer or the design manufacturer designs the access device. The above steps (view) may also be omitted, as long as the control program is in the condition of the first pairing of the conventional (four) 12 and the observation_he 13, the mirrors of all the regular bottle segments 121_ are directly mirrored to the 201142587. The segment 13 is set and the flag of all the blocks 14〇 is set to "〇". Moreover, in the preferred embodiment, when the flag in the block 14 is a first value "〇", it represents the block, 140 corresponds to the regular segment 121, and corresponds to the mirror region. The storage valley of the segment 131 is the same 'other'. When the flag in the field (10) is the second value "1", it represents the regular segment ι21 corresponding to the location 140, and the corresponding mirror segment The present invention is not limited to this. In actual design, other values may be substituted for the above-mentioned "〇" and "〗", and those in the technical field may, according to this month, (4) Lenovo The simple view to this is within the scope of the case to be protected.

復清參閱第4圖所示’雜鱗常規區段121依照由左而右、 由士而y的順序’依序定義為第一常規區段、第二常規區段、第 三常規區段·····.,相對地’該等鏡射區段131亦根據相同的順序, 依序疋義為第-鏡射區段、第二鏡射區段、第三鏡射區段。 此外第5圖所示之索引表14的欄位14〇亦依相同的順序分別定 義第一攔位、第二攔位、第三欄位……。 :藉由上述步驟(_)〜步驟(綱),各該鏡射區段131儲存 的資料已分別與對應之常規區段121的資料相同。在此狀態下, 當該電腦11欲讀取第—〜第五常規區段U-〜第五鏡射區段) 的資料時,請參閱第4、5、6圖所示,該電腦u及該存取裝置1〇 係根據下列步驟,執行資料讀取工作: (_)該存取裝置1〇接收該電腦u傳來之一讀取指令(讀取第 一〜第五常規(鏡射)區段); (601)該存取裝置10根據該索引表 〜第五欄位; 14讀取該索引表14的第一 (602)該存取裝置1〇判斷讀取到的棚位14〇之旗標是否為第一 13 201142587 數值「〇 j ’若是’則進行步驟(603),否則,進行步驟(604); (603)該存取裝置1〇讀取對應於上述攔位140之鏡射區段131 内儲存的資料,且傳送至該電腦u ;及 (6〇4)該存取裝置讀取對應於上述欄位140之常規區段121 内儲存的資料,且傳送至該電腦11。 在上述步驟(6〇〇)〜(6〇4)中,若該存取裝置丨〇尚未在前 述步驟(301)中完成該記憶體硬碟13及該常規硬碟^之配對, 則對於電腦11的讀取指令,存取裝置10自紋全從該常規硬碟 12傳送至該電腦u。若贿取裝置1()已在前述步驟(㈣取得 索引表14 ’且已在前述步驟⑶〇巾完成該記憶體硬碟及 該常規硬碟12之配對’請參閱第4、5圖所示,由於所有攔位14〇 的旗標均為第—數值「G」’因此,該存取裝置10在上述流程中, 僅會從該記憶體硬碟13的第一〜第五鏡射區段中讀取資料,並傳 运至遠電腦1卜換言之,該電腦u將從該記紐硬碟13中取得 所有需要㈣料⑽編咖硬碟13 _取·高於該常規 硬碟12,因此,藉由本發明之技術特徵,將可大幅提升資料的讀 ^述内容包括了峨體硬们3鱗規硬碟12初次配對、資 ==取的情況,以下’兹詳細介紹本發明在資料寫入方 面的流程,請參閱第7、8圖所示,去 36、53、88、95常規區段時,兮存田鮮 人貝料至第4、 行資料寫入工作: 徘取裝们_據下列步驟,執 (800) 接收到該電腦11傳來之—寫入^八. (801) 對該常規硬碟12執行窝, 丁舄入工作,其寫入位置如第7圖之 201142587 黑色方格所示;及 ⑽2)在變更任-常規區段121内儲存之資料後,將對應於該常 規區段121之攔位14〇的旗標,設定為該第二數值「〗」(如 第9圖所示)。 復請參閲第7、9圖所示,由於該存取裝置1〇寫入的位置為 該常規硬碟12的第4、36、53、88、95 f規區段,因此,該索引 表14的第4、36、53、88、95欄位的旗標均被變更為「丨」,以代 表上述各常規(I段121已與對應之鏡射區段131的資料有所差 異。在此狀態下,若電腦11欲讀取該第—〜第五常規區段(鏡射 區段)的資料,該存取裝置1G將依據第6圖所示之步驟⑽) 〜(604),進行讀取工作,由於此時該索引们4的第卜3棚位 的旗標為「0」(如第9圖所示),故該存取裝置1G會讀取記憶體 硬碟13的第1〜3舰區段所儲存的資料,並傳送至該電腦 嗣,由於該索引表14的第4欄位的旗標為%(如第9圖所示), 故該存取裝置10會讀取常規硬碟12 _ 4 f聽段的資料,並 傳送至該電腦1卜最後,該存取裝錢再讀取記憶體硬碟13的 第5鏡射區段所儲存的資料,並傳送至該電腦π。如此,在上述 讀取過程巾’魏腦U能㈣記髓硬碟13巾取得大部分的資 料,故資料讀取速度仍可維持在高速。再者,即使該電腦n在作 業^過程巾,龍常規_ 12猜寫人卫作,舰常規硬碟a 的常態區12Q發生少部分_,由於該電腦11透·存取裝置10 讀取資料時’僅自該常態區⑽中讀取變動(被寫入)的部分, 其餘相同的部分仍自該記憶體硬碟13取得,故資料讀取速度仍接 近於該記憶體硬碟13本身的讀取速度。 15 201142587 ^ ’轉腦11在長時間作業後,可能因為對該常規硬碟12 行夕人寫人工作’使該常規硬碟丨2的常態區⑽與該記憶體硬 么1「3的賴步區段過多,換言之㈣索引表μ巾旗標被變更 _ 1」的欄位過多(如:超過3〇個),如此,當該電腦u在讀 規硬碟12財祕⑽㈣出絕大多數的 貝料’且只從該記憶體硬碟13中讀出少數資料 ,使得該記憶體硬 、13讀取速度快的舰無法得耽分發揮,*造成讀取速度緩 二’=趨近於該常規硬碟12本身的讀取速度 。因此,本發明尚 匕一資料鏡射工作,使該記憶體硬碟13與該常態區120的資料 在本發明巾’該存取妓10可财為當電腦丨丨開關機或 …:、、統啟動、關閉時,接收該電腦n傳來之一驅動指令,以執 j料鏡射ji作。赫閱第7、9、1()圖所示,該存取裝置ι〇係 下列步驟’使觀憶體硬碟13與該常祕⑽的資料同步: (1000) 接收該電腦u傳來之該驅動指令; (1001) 依序讀取該索弓丨表14之各該攔位140 ; (1002) 在判斷讀取到的襴位⑽之旗標為第二數值「i」的情況 下,進行步驟( 1003); (竭將對應上述欄位⑽之常規區段i2i内鑛存之資料,複 製到對應於該襴位14〇之鏡射區段131丨及 (議4)將上述攔位14Q之旗標變更為第—數值「〇」。 凊參閱第9、10圖所示,在上述步驟(1000)〜(1004)中, 因此,H丨表14的第4、36、53、88及95襴位的旗標為「1」, 12的第二裝=、1G在接受到該驅動指令後,即可將該常規硬碟 、88及95常規區段儲存的資料(如第7圖常態 201142587 區120⑽黑色方格所示),分別鏡射(複製)到記憶體硬碟u 的第4、36、53、88及95鏡射區段131 (如第Π圖所示),使 該鏡射區段131麵應之常規區段121儲存賴樹目@,另 資料鏡射工作完成時,該索引表14的所有搁位14〇則全部為「〇, 如第5圖所示。需特別—提的是,製造廠商亦可在該存取裝置^ 上設置-按鍵等硬财置,當使时按壓該按鍵時,該存取 10即執行資料鏡射工作。 、 本發明除了在電腦n開關機或作業系統啟動、_時 資料鏡射工作外,亦可設計為依排程執行資料鏡射工作。請參^ 第7、12圖所示’使用者可利用該控制程式在該電腦I〗 定(儲存)-預定時間,使該存取裳置1〇依照下 = 料鏡射工作: 羽1仃貝 (1200) 接收該電腦u的當前時間; (1201) 接收該電腦預設的預定時間;For the clearing, as shown in Fig. 4, the 'singular scale regular section 121 is sequentially defined as the first regular section, the second regular section, and the third regular section according to the order from left to right and from y and y. ····., relatively, the mirror segments 131 are also sequentially referred to as a first-mirror segment, a second mirror segment, and a third mirror segment in the same order. In addition, the field 14 of the index table 14 shown in Fig. 5 also defines the first, second, and third fields in the same order. The data stored in each of the mirror sections 131 is the same as the data of the corresponding regular section 121 by the above steps (_) to (steps). In this state, when the computer 11 wants to read the data of the first to the fifth conventional section U-~the fifth mirroring section, please refer to the figures 4, 5, and 6, the computer u and The access device 1 performs a data reading operation according to the following steps: (_) the access device 1 receives a read command from the computer u (reads the first to fifth regular (mirror) (601) The access device 10 reads the first (602) of the index table 14 according to the index table to the fifth field; 14 the access device 1 determines the read location 14〇 Whether the flag is the first 13 201142587 value "〇j 'if yes' then proceeds to step (603), otherwise, proceeds to step (604); (603) the access device 1 reads the mirror corresponding to the above-mentioned block 140 The data stored in the segment 131 is transmitted to the computer u; and (6〇4) the access device reads the data stored in the regular segment 121 corresponding to the field 140 and transmits the data to the computer 11 In the above steps (6〇〇)~(6〇4), if the access device has not completed the memory hard disk 13 and the conventional hard disk in the foregoing step (301)^ Pairing, for the read command of the computer 11, the access device 10 is completely transferred from the conventional hard disk 12 to the computer u. If the bribe device 1() has obtained the index table 14' in the foregoing step ((4) In the foregoing step (3), the matching of the memory hard disk and the conventional hard disk 12 is completed. Please refer to FIGS. 4 and 5, since all the flags of the 14-inch block are the first value "G". In the above process, the access device 10 only reads data from the first to fifth mirror segments of the memory hard disk 13 and transmits the data to the remote computer. In other words, the computer u will be All the necessary requirements are obtained in the hard disk 13 (4). (10) The hard disk 13 is taken higher than the conventional hard disk 12. Therefore, by the technical features of the present invention, the reading of the data can be greatly improved.峨 Body hard 3 scales hard disk 12 initial pairing, capital == take the following, the following is a detailed description of the flow of the invention in the data writing, please refer to Figures 7, 8 to 36, 53, 88, 95 regular section, 兮 田 鲜 fresh people shell material to the fourth, line data writing work: 徘 装 _ _ Step (800) Received from the computer 11 - write ^ eight. (801) The conventional hard disk 12 is executed, and the write position is as shown in Fig. 7 of 201142587 black square And (10) 2) after changing the data stored in the any-conventional section 121, the flag corresponding to the block 14〇 of the regular section 121 is set to the second value "〗" (eg, ninth) Figure shows). Referring to FIGS. 7 and 9, since the location of the access device 1〇 is the 4th, 36th, 53rd, 88th, and 95th sections of the conventional hard disk 12, the index table is The flags of the 4th, 36th, 53rd, 88th, and 95th columns of 14 are all changed to "丨" to represent the above-mentioned routines (I segment 121 has been different from the corresponding mirror segment 131). In this state, if the computer 11 wants to read the data of the first to the fifth regular segments (mirror segments), the access device 1G performs the steps (10) to (604) shown in FIG. The reading operation, since the flag of the third booth of the indexer 4 is "0" (as shown in FIG. 9), the access device 1G reads the first of the memory hard disk 13 The data stored in the ~3 ship section is transmitted to the computer. Since the flag of the fourth field of the index table 14 is % (as shown in FIG. 9), the access device 10 reads The data of the conventional hard disk 12 _ 4 f listening segment is transmitted to the computer 1 and finally, the access money is read and the data stored in the 5th mirror segment of the memory hard disk 13 is read and transmitted to the Computer π. In this way, most of the information is obtained in the above-mentioned reading process towel "Wei Na U (4) memory hard disk 13 towel, so the data reading speed can be maintained at a high speed. Moreover, even if the computer n is in the operation process, the normal routine 12Q of the ship's conventional hard disk a has a small portion _, because the computer 11 accesses the access device 10 to read the data. When the change (written) portion is read from the normal region (10), the remaining portions are still obtained from the memory hard disk 13, so that the data reading speed is still close to that of the memory hard disk 13 itself. Read speed. 15 201142587 ^ 'Turning the brain 11 after a long period of work, probably because of the work of the regular hard disk 12 people, the normal area (10) of the conventional hard disk 丨 2 and the memory is hard 1 "3 There are too many step segments, in other words, (4) the index table μ towel flag is changed _ 1" too many fields (such as: more than 3 )), so when the computer u read the hard disk 12 financial secret (10) (four) out of the vast majority The bait material 'only reads a small amount of data from the hard disk 13 of the memory, so that the hard disk of the memory and the fast reading speed of 13 cannot be played, and the reading speed is slowed down. The reading speed of the conventional hard disk 12 itself. Therefore, the present invention still has a data mirroring operation, so that the data of the memory hard disk 13 and the normal area 120 can be used as a computer 丨丨 switch machine or ...:, When the system starts and shuts down, it receives a drive command from the computer n to perform a mirror shot. As shown in Figures 7, 9, and 1 (1), the access device ι is the following step 'synchronizes the memory of the memory disk 13 with the data of the regular secret (10): (1000) receiving the computer u The driving command; (1001) sequentially reading each of the barriers 140 of the cable table 14; (1002) in the case of determining that the flag of the read clamp (10) is the second value "i", Performing step (1003); (to exhaust the information corresponding to the mineral deposit in the regular section i2i corresponding to the above field (10) to the mirror section 131丨 corresponding to the niche 14〇 and (4) The flag of 14Q is changed to the first value "〇". 凊 Refer to steps 9 and 10, in the above steps (1000) to (1004), therefore, H丨 Table 14, 4, 36, 53, 88 And the 95-inch flag is "1", the second device of 12, and 1G, after receiving the drive command, can store the data stored in the regular hard disk, 88 and 95 regular segments (such as Figure 7). Normally, the 201142587 area 120 (10) black square is shown, mirrored (copied) to the 4th, 36th, 53rd, 88th and 95th mirror sections 131 of the memory hard disk u (as shown in the figure), so that The mirror section 131 should be as usual The regulation section 121 stores Lai Shumu@. When the mirroring work is completed, all the 14's of the index table 14 are "〇, as shown in Fig. 5. It is special to mention that the manufacturer can also The hard disk is set on the access device ^, and when the button is pressed, the access 10 performs the data mirroring operation. The present invention is in addition to the computer n-switch or the operating system is started, _ In addition to the data mirroring work, it can also be designed to perform data mirroring work according to the schedule. Please refer to the figures in Figures 7 and 12, which can be used by the user to determine (storage) the scheduled time on the computer. The access is set to 1 〇 according to the following = mirroring work: feather 1 mussel (1200) receives the current time of the computer u; (1201) receives the computer preset time;

(1202) 對該當前時該預定咖進行崎,若兩者相符,^ 進行步驟(1203) ’否則’回到步驟(12〇〇);及 (1203) 執行資料鏡射卫作(上述步驟〜步驟⑽⑼ ^此,透過上述步驟(_)〜()之技術特徵 該預定姻達時,鱗取裝置10便可自動物 梅兄、使故憶體硬碟13與該常態區⑽的資料同步, ㈣讀取速度。惟,本發明並不以此為限,設計肩 ==所揭露之内容設計該控制程式時,亦可在刪 取I置Γοΐ 錢者按下該按辦,該鶴11便向編 、置10傳送驅動指令’以執行資料鏡射工作。不僅如此 201142587 ^在設轉繼㈣,帅㈣峨細工作的觸發 二=二該存取裝置1〇中預先儲存-預定比例值(賴 f ’而该存取裝置10依序讀取各該.刚,倘若在該索引表 ^中’旗標被變更為「i」的攔位數量達到難(或5()個)時, 思即達到攔位總數量的該預定比例值時,該存取裝置ig即執行資 料鏡射工作(上述步驟⑽1)〜步驟(1〇04))。 按以上所述,僅為本發明之較佳實施例,惟本發明之技術 特徵並不侷限於此,請參閱第13圖所示,本技術領域之人士,在 參考本發崎揭露之酸後,亦可改變其硬體喊,將前述記憶 體硬碟替換成-快奴細驗15,並直接賴速織體模組15 曰(如决閃雜體)與該存取裝置1G相連接,並將賴硬碟之控制 晶片的功能設計在本案之存取裝置1G中,以達成本發明所欲追求 =的’惟’該等變化仍不脫離本發明之精神,凡任何熟悉本技 術頁域之人士’在本發明之技術領域内可輕易思及的變化或修 飾s應/函蓋在以下本發明的申請專利範圍中。 【圖式簡單說明】 第1圖係本發明之實施例之方塊示意圖; 第2圖係本發明之索引表之示意圖; 第3圖係記憶體硬規硬碟初她狀流麵; 第4圖係記憶n硬顿常規猶初:欠賴完叙魏示意圖; 第5圖係初次鏡射完成後索引表之示意圖; 第6圖係電腦透過存取t置讀取資料之流程圖; 第7圖係電腦透過存取裝置寫人㈣後之方塊示意圖; 201142587 第8圖係電腦透過存取裝置寫入資料之流程圖; 第9圖係資料寫入後索引表之示意圖; 第10圖係資料鏡射工作之流程圖; 第11圖係資料鏡射工作完成後之方塊示意圖; 第12圖係另一資料鏡射工作之流程圖;及 第13圖係本發明之另一種硬體組成之方塊示意圖。 【主要元件符號說明】 φ 存取裝置 ............10 電腦 ............11 常規硬碟 ............12 常態區 ............120 常規區段 ............121、121a 資料區 ............122 磁碟區段 ............123 ' 記憶體硬碟 ............13 • 鏡射區段 ............131、131a 索引表 ............14 攔位 ............140、140a 快速記憶體模組 ............15 19(1202) Suppressing the current scheduled coffee, if the two match, ^ proceeds to step (1203) 'otherwise' back to step (12〇〇); and (1203) performs data mirroring (the above steps ~ Step (10) (9) Here, when the predetermined marriage is reached by the technical features of the above steps (_) to (), the scale picking device 10 can automatically synchronize the data of the hard disk 13 with the normal area (10). (4) Reading speed. However, the present invention is not limited thereto. The design shoulder == the content disclosed. When designing the control program, the user can also delete the I set Γ ΐ ΐ 钱 按下 按下 按下 按下 按下 按下 按下 按下 按下Transfer the drive command to the program and set 10 to perform the data mirroring work. Not only that, 201142587 ^ In the set-up (four), handsome (four) fine work trigger two = two access device 1 预先 pre-stored - predetermined ratio value ( And the access device 10 reads each of these in order, if the number of the 'flags' changed to "i" in the index table is difficult (or 5 ()), That is, when the predetermined ratio value of the total number of intercepts is reached, the access device ig performs the data mirroring operation (step (10) 1 above) ~ Step (1〇04)) As described above, it is only a preferred embodiment of the present invention, but the technical features of the present invention are not limited thereto, as shown in Fig. 13, those skilled in the art, After referring to the acid exposed by this hair, you can also change its hard body to replace the memory hard disk with the fast memory test 15 and directly rely on the speed fabric module 15 (such as the flashing hybrid) Connected to the access device 1G, and the function of the control chip of the hard disk is designed in the access device 1G of the present invention, so as to achieve the "same" change of the present invention without departing from the present invention. In the spirit of the present invention, any person who is familiar with the field of the technology page can be easily changed or modified in the technical field of the present invention. The following is within the scope of the patent application of the present invention. Figure 2 is a block diagram of an embodiment of the present invention; Figure 2 is a schematic diagram of an index table of the present invention; Figure 3 is a memory hard disk hard disk initial flow surface; : owing to the schematic diagram of the Wei Wei; the fifth picture is the indication of the index table after the initial mirroring is completed. Figure 6 is a flow chart of the computer reading data by accessing the t-set; Figure 7 is a block diagram of the computer writing the person through the access device (4); 201142587 Figure 8 is the flow of the computer writing data through the access device Figure 9 is a schematic diagram of the index table after data is written; Figure 10 is a flow chart of the data mirroring work; Figure 11 is a block diagram of the data mirroring work; Figure 12 is another data mirroring A flowchart of the work; and Fig. 13 is a block diagram showing another hardware composition of the present invention. [Description of main component symbols] φ access device............10 computer.... ........11 conventional hard disk............12 Normal area............120 Regular section...... .....121,121a data area............122 disk section............123 'memory hard disk..... .......13 • Mirror section.........131,131a Index table............14 Blocks..... .......140,140a Fast Memory Module............15 19

Claims (1)

201142587 七、申請專利範圍: 1. 一種加速資料存取之方法,係應用在一存取裝置及一電腦上 該存取裝置分別與該電腦、一常規硬碟及一記憶體硬^相連 接’該常規硬碟包括一常態區,該常態區内儲存有一作業二 統,且該作業系統中安裝有一控制程式,該常態區被劃分為= 數個常規區段’而該記憶體硬碟被劃分為複數個鏡射區二’广 該鏡射區段分別與各該常規區段相對應,該電腦在執行^作= 系統後,會根據該控制程式的要求,在該常規硬碟中建二一索 引表,該索引表包括有複數個攔位,各該欄位分別儲存有一旗 標,且使該存取裝置及該電腦分別依據下列步驟,執行讀:工 作: 該存取裝置接收該電腦傳來之一讀取指令; 該存取裝置根據該讀取指令及該料表,依序讀取對應之各該 搁位; ° 該存取裝置在讀取晴應之綱 =會棘嫩繼咖 第二數值的情 資料,且傳送至該電 該存取裝置在讀取賴紅·綠之旗標為 況下,會讀取對應之該常規區段内儲存 腦。 2·如請求項丨所述之加速資料存 據下列步驟,執行寫入工作:以,其中_取褒置係依 接收該電腦傳來之一寫入指令; 根據該寫人齡對該常驗魏行寫入. ’及 20 201142587 在該存取裝置變更任-常規區段内儲存之資料的情況下,將對 應於該常規區段之該攔位的旗標,設定為該第二數值。 3. 如請求項1或2所述之加速資料存取之方法,其中該存取裳置 係依據下列步驟,執行鏡射工作: 依序讀取各該攔位;及 在項取到的細位之賴為該第二數值時,㈣應於該搁位之 該常規區段⑽存之㈣’複製到對應於糊位之該鏡射區 段,並將該欄位之旗標變更為該第一數值。201142587 VII. Patent application scope: 1. A method for accelerating data access is applied to an access device and a computer, and the access device is respectively connected with the computer, a conventional hard disk and a memory. The conventional hard disk includes a normal area in which a job is stored, and a control program is installed in the operating system, and the normal area is divided into = a plurality of regular sections and the memory hard disk is divided. For the plurality of mirrors, the mirror section corresponds to each of the regular sections, and after the system is executed, the computer will build the conventional hard disk according to the requirements of the control program. An index table, the index table includes a plurality of blocks, each of the fields stores a flag, and the access device and the computer respectively perform reading according to the following steps: work: the access device receives the computer One of the read commands is received; the access device sequentially reads the corresponding ones according to the read command and the material table; ° the access device reads the program of the Qing Ying = will Coffee second value Data, and transmits the access to the electrical apparatus in the red-green LAI read flag is the case, the reading will be within the corresponding section of the conventional storage brain. 2. The acceleration data stored in the request item is stored in the following steps, and the writing operation is performed: wherein the _ 褒 系 系 依 接收 接收 接收 接收 接收 接收 接收 接收 接收 接收 接收 接收 接收 接收 接收 接收 接收 接收 接收 接收 接收 接收Wei Xing writes. 'And 20 201142587 In the case where the access device changes any data stored in the regular section, the flag corresponding to the block of the regular section is set to the second value. 3. The method of accelerating data access as claimed in claim 1 or 2, wherein the accessing is performed according to the following steps: performing the mirroring work: sequentially reading each of the barriers; and obtaining the fineness in the item When the position is the second value, (4) the fourth section of the shelf should be (four) 'copied to the mirrored section corresponding to the paste position, and the flag of the field is changed to the The first value. 4. 如請求項1或2所述之加速#料存取之方法,其中該存取裝置 及該電腦係依據下列步驟,執行鏡射工作: 该電腦設定一預定時間; 該存取裝置接收該電腦的當前時間; 该存取裝置接收該預定時間; 該存取裝置對該當前時間及該預定時間進行比對; 該存取I置觸該當料間触預定_彳目符; 該存取裝置依序讀取各該攔位;及 該存取裝置在讀取到的該攔位之旗標為該第二數值時,會將對 應於該攔位之該常規區段内儲存之資料,複製到對應於該搁位 之該鏡射區段’並_觀之旗標變更為該第一數值。 5. =請求項1或2所述之加速麟存取之方法,其中該存取 中儲存有-預定比例值,該存取裝置係依據下列步驟,執錄 射工作. 讀取各該攔位; 判斷前述旗標被變更為該第二數值的攔位之㈣,達到該索引 21 201142587 表之該等欄位總數量的該預定比例值; 依序讀取各邊搁位;及 在讀取到的該欄位之旗標為該第二數值時,將對應於該攔位之 該常規區段内儲存之資料,複製到對應於該欄位之該鏡射區 段,並將該欄位之旗標變更為該第一數值。 6. —種加速資料存取之方法,係應用在一存取裝置及一電腦上, 該存取裝置分別與該電腦、一常規硬碟及一記憶體硬碟相連 接,該常規硬碟包括一常態區,該常態區被劃分為複數個常規 區段’而該記憶體硬碟被劃分為複數個鏡射區段,各該鏡射區 段分別與各該常規區段相對應,該電腦在被啟動後,會在該常 規硬碟中建立-索引表’該索引表包括有複數個攔位,各該欄 位分別儲存有一旗標,且該存取裝置及該電腦係依據下列步 驟,執行讀取工作: •該電腦向該存取裝置傳送一讀取指令; 該存取裝置根據該讀取指令及該紂表,依序讀取對應之各該 攔位; 該存取裝置在讀取到對應之賴位之旗標為—第—數值的情 =下,會讀取對應之該鏡㈣段_存之㈣,且傳送至該電 腦;及 該存取打在讀取賴紅細敗旗標為—第二數值的情 況下,會讀取對應之該常規區段内儲存之資料,且傳送至 腦。 ’其中該存取裝置係依 如4求項6所述之加速資料存取之方法 據下列步驟,執行寫入工作: 22 7. 201142587 接收該電腦傳來之一寫入指令; 根據該寫人指令_常規硬魏行寫入;及 在該存取裳置變更任一常規區段内儲存之資料的情況下,將對 應於該常規區段之該攔位轉標,設定為該第二數值。 8. 如5青求項6或7所述之加速資料存取之方法,其中該存取裂置 係依據下列步驟,執行鏡射工作: 依序讀取各該攔位;及 在項取到的賴位之旗標為該第二數值時,將對應於該棚位之 該常規區段内儲存之資料,複製到對應於該攔位之該鏡射區 段,並將該欄位之旗標變更為該第一數值。 9. 如請求項6或7所述之加速倾存取之方法’其中該存取震置 及該電腦係依據下列步驟,執行鏡射工作: 該電腦設定一預定時間; 該存取裝置接收該電腦的當前時間; 該存取裝置接收該預定時間; 該存取裝置對該當前時間及該預定時間進行比對; 該存取裝置判斷該當前時間與該預定時間相符; 該存取裝置依序讀取各該欄位;及 在讀取到的該攔位之旗標為該第二數值時,該存取裝置將對應 於賴位之該常規區段内儲存之資料,複製到對應於該搁位之 該鏡射區段,並將該攔位之旗標變更為該第一數值。 10.如請求項6或7所述之加速資料存取之方法,其中該存取褒置 中儲存有一預定比例值,該存取裝置係依據下列步驟,執^鏡 射工作: Λ 23 201142587 讀取各該欄位 判斷刚述旗Μ皮變更為該第二數值_位之數量,達到 表之該等欄位總數量物取_值; '、弓丨 依序讀取各該攔位;及 ί 第"數辦,_於該搁位之 段,並將該攔位之旗找傲更:复=對應於該欄位之該鏡射區 244. The method of accelerating #material access according to claim 1 or 2, wherein the access device and the computer perform a mirroring operation according to the following steps: the computer is set for a predetermined time; the access device receives the The current time of the computer; the access device receives the predetermined time; the access device compares the current time with the predetermined time; the access I touches the inter-subscriber _ eyemark; the access device Reading each of the blocks in sequence; and the access device, when the flag of the block is read as the second value, copies the data stored in the regular segment corresponding to the block The flag of the mirror section corresponding to the shelf is changed to the first value. 5. The method of claim 1 or 2, wherein the access is stored with a predetermined ratio value, and the access device performs the recording operation according to the following steps. Determining that the foregoing flag is changed to (4) the intercept of the second value, and the predetermined ratio value of the total number of the fields in the index 21 201142587 is reached; reading the side positions in sequence; and reading When the flag of the field is the second value, the data stored in the regular section corresponding to the block is copied to the mirror segment corresponding to the field, and the field is The flag is changed to the first value. 6. A method for accelerating data access is applied to an access device and a computer, the access device being respectively connected to the computer, a conventional hard disk and a memory hard disk, the conventional hard disk including a normal region, the normal region is divided into a plurality of regular segments' and the memory hard disk is divided into a plurality of mirror segments, each of the mirror segments corresponding to each of the regular segments, the computer After being activated, an index table is created in the conventional hard disk. The index table includes a plurality of blocks, each of which stores a flag, and the access device and the computer are according to the following steps. Performing a read operation: • the computer transmits a read command to the access device; the access device sequentially reads the corresponding ones according to the read command and the read list; the access device is reading When the flag of the corresponding position is taken as the -first value, the corresponding mirror (four) segment_4 (4) is read and transmitted to the computer; and the access is recorded in the reading red If the defeat flag is - the second value, it will read the corresponding The information stored in the regulation section is transmitted to the brain. The access device performs the write operation according to the following method according to the method of accelerating data access as described in Item 6: 22 7. 201142587 Receives a write command sent from the computer; The instruction_conventional hard-line write; and in the case where the access saves the data stored in any of the regular sections, the barrier index corresponding to the regular section is set to the second value . 8. The method of accelerating data access as described in claim 5, wherein the access splitting performs the mirroring operation according to the following steps: sequentially reading each of the intercepting positions; When the flag of the position is the second value, the data stored in the regular section corresponding to the booth is copied to the mirror section corresponding to the position, and the flag of the field is The target is changed to the first value. 9. The method of accelerating dumping as claimed in claim 6 or 7, wherein the accessing and the computer perform a mirroring operation according to the following steps: the computer is set for a predetermined time; the access device receives the The current time of the computer; the access device receives the predetermined time; the access device compares the current time with the predetermined time; the access device determines that the current time matches the predetermined time; the access device sequentially Reading each of the fields; and when the read flag of the block is the second value, the access device copies the data stored in the regular segment corresponding to the bit to correspond to the The mirrored section of the shelf is placed and the flag of the block is changed to the first value. 10. The method of accelerating data access according to claim 6 or 7, wherein the access device stores a predetermined ratio value, and the access device performs the mirroring operation according to the following steps: Λ 23 201142587 Read Taking each field to determine that the number of the flag is changed to the number of the second value _ bit, and the total quantity of the fields in the table is taken as the _ value; ', the bow 读取 reads each of the blocks in sequence; ί "Number", _ in the paragraph of the position, and the flag of the block to find arrogance: complex = corresponding to the field of the mirror area 24
TW99116776A 2010-05-26 2010-05-26 Speed ​​up access to data TWI407304B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW99116776A TWI407304B (en) 2010-05-26 2010-05-26 Speed ​​up access to data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW99116776A TWI407304B (en) 2010-05-26 2010-05-26 Speed ​​up access to data

Publications (2)

Publication Number Publication Date
TW201142587A true TW201142587A (en) 2011-12-01
TWI407304B TWI407304B (en) 2013-09-01

Family

ID=46765081

Family Applications (1)

Application Number Title Priority Date Filing Date
TW99116776A TWI407304B (en) 2010-05-26 2010-05-26 Speed ​​up access to data

Country Status (1)

Country Link
TW (1) TWI407304B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI770358B (en) * 2018-03-05 2022-07-11 南韓商三星電子股份有限公司 Host system and method thereof and acceleration module

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI249101B (en) * 2002-04-11 2006-02-11 Via Tech Inc Method and related apparatus for using a dynamic random access memory to substitute for a hard disk drive
TW555100U (en) * 2002-11-27 2003-09-21 Power Quotient Int Co Ltd High speed of data transfer of solid state disk on module
US7216222B2 (en) * 2003-10-30 2007-05-08 Texas Memory Systems, Inc. System and method for writing data from a storage means to a memory module in a solid state disk system
TWI282054B (en) * 2005-06-06 2007-06-01 Insyde Software Corp Method for establishing and accessing file system in host protected area of hard disc under extensible firmware interface architecture
US7424587B2 (en) * 2006-05-23 2008-09-09 Dataram, Inc. Methods for managing data writes and reads to a hybrid solid-state disk drive
TWI376603B (en) * 2007-09-21 2012-11-11 Phison Electronics Corp Solid state disk storage system with a parallel accessing architecture and a solid state disk controller
TW200949841A (en) * 2008-05-28 2009-12-01 Silicon Power Comp & Comm Inc Solid state disk and accessing method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI770358B (en) * 2018-03-05 2022-07-11 南韓商三星電子股份有限公司 Host system and method thereof and acceleration module
US11892957B2 (en) 2018-03-05 2024-02-06 Samsung Electronics Co., Ltd. SSD architecture for FPGA based acceleration

Also Published As

Publication number Publication date
TWI407304B (en) 2013-09-01

Similar Documents

Publication Publication Date Title
CN101334708B (en) Storage device with write barrier sensitive write commands and write barrier insensitive commands
US8054686B2 (en) Flash memory storage apparatus, flash memory controller, and switching method thereof
US8392670B2 (en) Performance management of access to flash memory in a storage device
JP2010152909A (en) Nonvolatile semiconductor memory drive device, information management device, management method of storage area in nonvolatile semiconductor memory drive device
US10102138B2 (en) Division of data storage in single-storage device architecture
US20220229722A1 (en) Method and apparatus to improve performance of a redundant array of independent disks that includes zoned namespaces drives
TW201007735A (en) Block management method for flash memory and storage system and controller using the same
US8862819B2 (en) Log structure array
US20110153959A1 (en) Implementing data storage and dual port, dual-element storage device
US11210011B2 (en) Memory system data management
US10126987B2 (en) Storage devices and methods for controlling a storage device
TWI737031B (en) Method and computer program product for reading data fragments of a page on multiple planes
SG193114A1 (en) Data storage device and method of managing a cache in a data storage device
US9875030B2 (en) Media write operation
TW201243599A (en) Secure and scalable solid state disk system
CN104050014B (en) Efficient storage management method based on virtual platform
Huffman et al. The nonvolatile memory transformation of client storage
US20110119509A1 (en) Storage system having power saving function
JP6975202B2 (en) Recovery process and equipment from momentary interruptions, and computer-readable storage media
Cho et al. Design tradeoffs of SSDs: From energy consumption’s perspective
CN110531925B (en) Data reading method and device, electronic equipment and machine-readable storage medium
TW201042640A (en) Hard disk drive device capable of increasing the execution efficiency, and its read/write method
TW201142587A (en) Method of accelerating data access
CN102289624A (en) Disk protection system based on write filtering technology
TWI430098B (en) Hard disk acceleration access device and access method thereof