TWI399637B - Fast switch machine method - Google Patents
Fast switch machine method Download PDFInfo
- Publication number
- TWI399637B TWI399637B TW098131936A TW98131936A TWI399637B TW I399637 B TWI399637 B TW I399637B TW 098131936 A TW098131936 A TW 098131936A TW 98131936 A TW98131936 A TW 98131936A TW I399637 B TWI399637 B TW I399637B
- Authority
- TW
- Taiwan
- Prior art keywords
- memory
- storage
- computer system
- page
- sleep
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/22—Microcontrol or microprogram arrangements
- G06F9/24—Loading of the microprogram
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
- Memory System Of A Hierarchy Structure (AREA)
Description
本發明係關於一種電腦系統開關機方法,特別是關於一種應用於電腦系統在進入省電模式後,可以快速開關機的方法。The invention relates to a computer system switching machine method, in particular to a method for a computer system to quickly switch on and off after entering a power saving mode.
一般電腦系統工作的狀態,除了正在執行作業系統與各種應用程式的模式外,更包含了省電模式,電腦系統進入休眠的目地一方面為結省電能的消耗,另一方面為降低系統工作的雜訊。In general, the working state of the computer system, in addition to the mode of executing the operating system and various application programs, includes the power saving mode, and the computer system enters the dormant state on the one hand to save power consumption, and on the other hand, to reduce system work. Noise.
依據高等組態能源介面(Advanced Configuration & Power Interface,ACPI)的設計分類,最常見的休眠將為兩種型態,一種為Suspend To RAM(STR),稱為S3狀態,S3狀態為只對部份的揮發性記憶體持續供電,包括視訊記憶體(Frame Buffer)與主記憶體(Main Memory)等,其餘部分一律斷電。S3狀態具有兩個優點,一為電腦系統回返到全速運作的時間較快;另一為安全性較佳,當使用者的應用與操作屬於個人私密資料不希望回存至硬碟內時,即採用S3狀態。另一種為spend To Disk(STD),稱為S4狀態,S4狀態是將工作中的資料全部皆寫入到非揮發性記憶體內儲存,然後系統將全部斷電,S4的優點為其更為省電。According to the design classification of Advanced Configuration & Power Interface (ACPI), the most common types of sleep will be two types, one is Suspend To RAM (STR), called S3 state, and the S3 state is only for the opposite part. The volatile memory is continuously powered, including the Frame Buffer and Main Memory, and the rest is powered off. The S3 state has two advantages. One is that the computer system returns to full speed for a faster time; the other is better for security. When the user's application and operation are private and private data is not expected to be stored in the hard disk, Adopt the S3 state. The other is the Send To Disk (STD), which is called the S4 state. The S4 state is to write all the working data to the non-volatile memory for storage, and then the system will all be powered off. The advantage of S4 is more provincial. Electricity.
承上所述兩種休眠S3狀態與S4狀態,皆不盡完善,在進入S3狀態後,仍需提供電力給電腦系統中揮發性記憶體,以維持系統儲存的狀態;假設改採用S4狀態雖相較於S3狀態省電,但回返至電腦系統全速運作的速度較則相對於S3狀態緩慢許多。The two sleep S3 states and the S4 state are not perfect. After entering the S3 state, it is still necessary to provide power to the volatile memory in the computer system to maintain the state of the system storage; Compared to the S3 state, the speed of returning to the computer system at full speed is much slower than that of the S3 state.
有鑑於此,本發明係在針對上述之缺失,改良以上所述的休眠,提出一種快速開關機的方法,能夠於進入休眠時能減少目前記憶體使用量,進而增進電腦系統重新啟動至全速運作的反應效率。In view of the above, the present invention provides a method for quickly switching on and off in response to the above-mentioned deficiencies, improving the sleep described above, which can reduce the current memory usage when entering sleep, thereby improving the restart of the computer system to full speed operation. Reaction efficiency.
本發明之主要目的係在提供一種快速開關機的方法,其係於電腦系統進入休眠時大量縮減目前系統中使用的記憶體數量,以減少主記憶體資料轉換存放至第二儲存裝置的資料量,進而增進電腦系統恢復至全速工作的速度。The main object of the present invention is to provide a method for quickly switching on and off, which is to reduce the amount of memory used in the current system when the computer system enters sleep, so as to reduce the amount of data stored and stored in the second storage device by the main memory. , thereby increasing the speed at which the computer system returns to full speed.
本發明之另一目的係在提供一種快速開關機的方法,其係可預防電腦系統意外喪失電力時資料的遺失與受損的程度。Another object of the present invention is to provide a method of quickly switching the machine that prevents the loss and damage of data when the computer system accidentally loses power.
本發明之再一目的係在提供一種快速開關機的方法,其資料寫入或載回皆採用隨機存取處理的技術,將大幅提升電腦系統進入休眠或重新啟動彼此轉換時資料存取的速度。A further object of the present invention is to provide a method for quickly switching on and off. The data writing or loading back adopts a random access processing technology, which will greatly increase the speed of data access when the computer system enters sleep or restarts each other. .
為達到上述之目的,本發明提出之快速開關機的方法,係於一電腦系統進入休眠時,將區分至少一記憶體為複數個清白儲存頁與複數個非清白儲存頁,清白儲存頁係換出放棄儲存,非清白儲存頁係寫入休眠檔儲存於至少一第二儲存裝置之一切換空間中或一檔案系統中。當電腦系統重新啟動,電腦系統由切換空間與檔案系統載回休眠檔回復至記憶體,並且可從第二儲存裝置讀取資料,載回至記憶體。如此將縮減記憶體轉換存放至第二儲存裝置的資料量,加速電腦系統重新啟動恢復至全速工作的速率。In order to achieve the above object, the method for quickly switching on and off according to the present invention is to divide at least one memory into a plurality of innocent storage pages and a plurality of non-innocent storage pages when a computer system enters sleep, and invent the storage page. When the storage is abandoned, the non-innocent storage page is stored in the sleep file and stored in one of the switching spaces of at least one of the second storage devices or in a file system. When the computer system is restarted, the computer system is returned to the memory by the switching space and the file system, and the data can be read from the second storage device and loaded back to the memory. Thus, the amount of data stored in the second storage device is reduced, and the rate at which the computer system is restarted and resumes to full speed is accelerated.
底下藉由具體實施例配合所附的圖式詳加說明,當更容易瞭解本發明之目的、技術內容、特點及其所達成之功效。The purpose, technical contents, features and effects achieved by the present invention will be more readily understood by the detailed description of the embodiments and the accompanying drawings.
本發明提出一種快速開關機的方法,減少電腦系統進入休眠時記憶體裝置的使用數量,降低寫入第二儲存裝置資料量,以增進電腦系統進入休眠或重新啟動恢復至全速工作的速度,底下則將以較佳實施例詳述本發明之技術特徵。如第一圖所示,一電腦系統10係包含一計算處理器(CPU)12、一主記憶體(Main Memory)14與一第二儲存裝置(Secondary Storage)16。第二儲存裝置16係可為高速隨機存取記憶體裝置,如一快閃記憶體,主要用於儲存檔案系統(file system)18、切換空間(swap-space)20及休眠檔(hibernation file)22。The invention provides a method for quickly switching on and off, reducing the number of use of the memory device when the computer system enters sleep, and reducing the amount of data written into the second storage device, so as to increase the speed at which the computer system enters sleep or restarts to resume full speed operation, underneath. The technical features of the present invention will be described in detail with reference to preferred embodiments. As shown in the first figure, a computer system 10 includes a computing processor (CPU) 12, a main memory 14 and a second storage device 16. The second storage device 16 can be a high-speed random access memory device, such as a flash memory, and is mainly used to store a file system 18, a swap-space 20, and a hibernation file. .
第二圖所示為本發明之快速開關機的方法流程圖,請同時參考第一圖之架構示意圖。首先,如步驟S30,於電腦系統10之操作系統(Operating System,OS)進入休眠模式,將以區或頁為單位,區分主記憶體14為清白儲存頁與非清白儲存頁,由於第二儲存裝置16存放具有與清白儲存頁相一致之備份,故換出之清白儲存頁係將放棄儲存,將透過一核心程序配置主記憶體14,控制該清白儲存頁係換出,核心程序可計算依據需換出之清白儲存頁的數量配置主記憶體14,並於該清白儲存頁係換出完成後,控制釋放該記憶體。為核心狀態(machine status)之非清白儲存頁將儲存至休眠檔22,並存放於第二儲存裝置16之切換空間20中或檔案系統18中。其中非清白儲存頁可依照位址排序,以合併連續位址之非清白儲存頁成一單一寫入命令。之後,如步驟S32,當電腦系統10重新啟動,電腦系統10從切換空間20與檔案系統18讀取休眠檔22,回復儲存休眠檔至主記憶體14,恢復系統狀態。最後,如步驟S34,電腦系統10將從第二儲存裝置16讀取資料載回至主記憶體14。The second figure shows a flow chart of the method of the fast switching machine of the present invention. Please refer to the schematic diagram of the first figure. First, in step S30, the operating system (OS) of the computer system 10 enters the sleep mode, and the main memory 14 is distinguished by the area or page as the innocent storage page and the non-innocuous storage page, due to the second storage. The device 16 stores the backup with the inconsistent storage page, so the swapped innocent storage page will abandon the storage, and the main memory 14 will be configured through a core program to control the insulative storage page to be exchanged, and the core program can calculate the basis. The main memory 14 is configured by the number of innocent storage pages to be exchanged, and after the insulative storage page is replaced, the memory is controlled to be released. The non-innocent storage page, which is the machine status, is stored in the sleep file 22 and stored in the switch space 20 of the second storage device 16 or in the file system 18. The non-innocent storage pages may be sorted according to the address to merge the non-innocent storage pages of the consecutive addresses into a single write command. Thereafter, in step S32, when the computer system 10 is restarted, the computer system 10 reads the sleep file 22 from the switching space 20 and the file system 18, and restores the stored sleep file to the main memory 14 to restore the system state. Finally, in step S34, the computer system 10 loads the data from the second storage device 16 back to the main memory 14.
當執行中止至為快閃記憶體之第二儲存裝置16(Suspend-to-flash)的速度主要取決於需要寫入到非揮發記憶體(nonvolatile memory)的資料量的多寡。進入休眠之前換出(Swapping-before-hibernating)利用操作操作系統(Operating System,OS)中既有的記憶體管理技術,將大部分的記憶體頁(memory page)直接捨棄而不做任何的寫入動作,因此可以加速中止(suspend)的速度。回復(resume)的時候資料(data)將從三個地方取回,分別是休眠檔(hibernation file)22、切換空間(swap-space)20及檔案系統(file system)18,系統隸屬於核心(kernel)部分的主要資料(data)及編碼(code),在重新開機時立刻取回,而剩餘的資料則使用需求頁面調度(paging-on-demand)的方式取回使用者現階段所需的部分。由於使用者所需要的資料量通常遠小於系統在中止前記憶體中的所有資料量,因此可以加速回復(resume)的速度。The speed at which the execution of the second storage device 16 (Suspend-to-flash) to the flash memory is mainly determined by the amount of data that needs to be written to the nonvolatile memory. Swapping-before-hibernating uses the existing memory management technology in the operating system (OS) to discard most memory pages without any writing. Into the action, so you can speed up the suspend. When replying, the data will be retrieved from three places: hibernation file 22, swap-space 20 and file system 18. The system belongs to the core ( The main data (data) and code (code) of the kernel part are retrieved immediately after rebooting, and the remaining data is retrieved by the user's current paging stage using the paging-on-demand method. section. Since the amount of data required by the user is usually much smaller than the amount of data in the memory before the system is suspended, the speed of the resume can be accelerated.
記憶體分頁(memory page)可分成三種,分別為自由分頁(free page)、匿名分頁(anonymous page)及指定分頁(named page)。自由分頁(free page)是系統當下未使用到的記憶體,自由分頁(free page)中的內容對系統而言毫無意義。匿名分頁(anonymous page)是程式在執行時期動態分配的記憶體,這部分的記憶體主要包含了堆疊(stack)和堆積(heap)二種。指定分頁(named page)則是檔案在主記憶體14中的副本。形式上它的行為類似於第二儲存裝置16的快取(cache)。指定分頁(named page)主要包含了執行檔(executable file)、動態連結庫(dynamic-linke library)在記憶體中的對應,或者程式使用記憶體對應至檔案(memory-mapped-file)將一個檔案映射到記憶體。The memory page can be divided into three types: free page, anonymous page, and named page. Free page is the memory that is not used by the system at the moment. The content in the free page is meaningless to the system. Anonymous page is the memory dynamically allocated by the program during the execution period. This part of the memory mainly includes stack and heap. The designated page is a copy of the file in the main memory 14. Formally it behaves like a cache of the second storage device 16. The designated page mainly contains the executable file, the correspondence of the dynamic-linke library in the memory, or the program uses a memory-mapped-file to store a file. Map to memory.
匿名分頁(anonymous page)及指定分頁(named page)都可能是清白儲存頁(clean page)或非清白儲存頁(dirty page)。非清白匿名分頁(dirty anonymous page)被換出(swap-out)時必須寫入到切換空間(swap-space)20。而非清白指定分頁(dirty named page)則被換出(swap-out)到檔案系統(file system)18。當操作系統(OS)需要換出(swap-out)一個清白儲存頁時,因為此分頁在第二儲存裝置16中必定有一個內容完全一致的副本,因此操作系統(OS)可以直接捨棄此分頁。Both an anonymous page and a named page may be a clean page or a dirty page. The non-invisible anonymous page must be written to the swap-space 20 when it is swapped out. The dirty named page is swap-out to the file system 18. When the operating system (OS) needs to swap-out an innocent storage page, since the page must have a completely identical copy in the second storage device 16, the operating system (OS) can directly discard the page. .
在系統開始執行suspend-to-flash時,大部分的分頁不需要做任何的寫回第二儲存裝置16的動作,這是由於大部分的分頁都是清白儲存頁。部分的分頁需要寫回到切換空間20或者檔案系統18中。剩下的分頁是非換出記憶體(non-swappable memory),這些分頁主要是操作系統(OS)的核心(kernel),或者程式為了效能的因素,將某些分頁設定為非換出(non-swappable)。非換出記憶體最後將被寫入到休眠檔(hibernation file)22。When the system starts executing suspend-to-flash, most of the paging does not need to do any write back to the second storage device 16, since most of the paging is innocent storage pages. Part of the paging needs to be written back to the switching space 20 or the file system 18. The remaining pages are non-swappable memory. These pages are mainly the kernel of the operating system (OS), or the program sets some pages to be non-swappable for performance reasons (non- Swapable). The non-swapped memory will eventually be written to the hibernation file 22.
重新開機時,系統在做完例行性硬體初始化動作及載入操作系統裝填器(OS loader)後,系統會判斷是否要從休眠(hibernation)的狀態回復或執行一般的開機動作。休眠檔(hibernation file)22中的資料將首先載入到主記憶體14中,完成了這個動作,操作系統(OS)即完成基本的開機動作。隨後依照使用者的需要,從檔案系統18及切換空間20中將之前的系統狀態載回。若再次執行swapping-before-hibernating,由於部分非清白儲存頁在上一次執行swapping-before-hibernating時已經寫入切換空間20,因此這個分頁就變成了清白儲存頁,並且之後計算處理器(CPU)12不再對此分頁作寫入的動作,故這個分頁不需要再次的寫入切換空間20。因此在第二次以後的swapping-before-hibernating執行速度將更加快速。When rebooting, after the system performs the routine hardware initialization and loading the OS loader, the system will determine whether to resume or perform a general boot action from the hibernation state. The data in the hibernation file 22 will first be loaded into the main memory 14, and this action is completed, and the operating system (OS) completes the basic booting action. The previous system state is then loaded back from the file system 18 and the switch space 20 in accordance with the needs of the user. If swapping-before-hibernating is executed again, since some non-innocent storage pages have been written to the switching space 20 when the last execution of swapping-before-hibernating, this paging becomes an innocent storage page, and then the computing processor (CPU) 12 does not write the page for this page, so this page does not need to be written to the switching space 20 again. Therefore, the swapping-before-hibernating execution speed will be faster after the second time.
以快閃記憶體(flash)做為第二儲存裝置16透過最佳化技術,可在隨機存取(random access)上有近似於連續存取(sequential access)的表現。透過組合寫入(Write-combining)主要將記憶體頁在換出時所產生的小的隨機寫入(small random write),在實際寫入快閃記憶體前先排列(queue)起來,首先針對這些要寫出分頁的實體位址(physical address)做排序,排序後便可知道這些要被寫出的分頁中是否存在著連續範圍的寫出,之後便可以一個較大的寫入需要(write request)取代數個較小的寫入。藉此提昇swapping-before-hibernating的速度。Using the flash memory as the second storage device 16 through the optimization technique, there is a performance similar to sequential access on random access. Through write-combining, the small random write generated by the memory page at the time of swapping out is queued before actually writing to the flash memory. These should be written out of the physical address of the page to sort, after sorting, you can know whether there is a continuous range of writes in the pages to be written, and then you can write a larger write (write Request) replaces a few smaller writes. This speeds up the swapping-before-hibernating.
將換出分頁(swappable pages)寫回第二儲存裝置16可經向操作系統(OS)要求大量的記憶體,為了避免操作系統(OS)於分配記憶體時的最佳化動作影響到實際配置記憶體的數量。於每配置到一個分頁隨即會在此分頁寫入一個位元組(byte)的資料,以強制OS須立即配置physical memory給該program。藉此強迫操作系統(OS)將大部分的記憶體換出。隨後執行一連串的釋放(free)動作,將之前向系統要求的記憶體全數歸還給操作系統(OS)。經過這二個步驟以後,操作系統(OS)中大部分的分頁都會變成自由分頁(free page),而自由分頁(free page)不需要寫回到休眠檔(hibernation file)22。Writing the swappable pages back to the second storage device 16 can require a large amount of memory to the operating system (OS), in order to avoid the optimization of the operating system (OS) when the memory is allocated to affect the actual configuration. The amount of memory. Each configuration to a page will then write a byte (byte) of data in this page to force the OS to immediately configure the physical memory to the program. This forces the operating system (OS) to swap out most of the memory. A series of free actions are then performed to return the entire amount of memory previously requested by the system to the operating system (OS). After these two steps, most of the paging in the operating system (OS) becomes a free page, and the free page does not need to be written back to the hibernation file 22.
此外,可直接在操作系統(OS)的核心(kernel)中要求配置記憶體,將透過核心程序(kernel function)立即配置所需的分頁,將不需要額外的寫入以強制操作系統(OS)真實的配發記憶體。在配置完記憶體後立即執行釋放的動作,系統將產生大量的自由分頁(free page)。由於藉由核心程序(kernel function)配置記憶體不需要額外的寫入動作。因此可以事先計算換出分頁的數量,藉此推算出需要配置多少記憶體。In addition, configuration memory can be requested directly in the kernel of the operating system (OS), and the required paging will be configured immediately through the kernel function, and no additional writes will be required to force the operating system (OS). Real distribution memory. The release action is performed as soon as the memory is configured, and the system generates a large number of free pages. Since the memory is configured by the kernel function, no additional write action is required. Therefore, the number of page breaks can be calculated in advance, thereby estimating how much memory needs to be configured.
另外,可直接操控操作系統(OS)中的換出器(swapper)機制。以Linux為例,在核心(kernel)中具有一記憶體管理程序,其係為shrink_all_memory程序,此程序將回收記憶體分頁,於呼叫其時傳入欲回收的分頁數量,其能夠在不影響系統穩定、使用者使用程式的情況下釋放出記憶體分頁。shrink_all_memory程序的機制為在核心(kernel)中有兩近來最少使用目錄(least_recently_used list,LRU list)分別為活動目錄(active list)及閒置目錄(inactive list),活動目錄(active list)包含了最近被存取過的分頁,閒置目錄(inactive list)則為有段時間沒有被存取的分頁。shrink_all_memory程序會先從閒置目錄(inactive list)開始回收,接著再回收活動目錄(active list)。利用shirink_all_memory程序,可以在不影響到系統核心的運作、使用者的程式下,盡可能的換出。In addition, the swapper mechanism in the operating system (OS) can be directly manipulated. Take Linux as an example. In the kernel, there is a memory management program, which is a shrink_all_memory program. This program will recycle the memory pages and pass the number of pages to be recycled when calling. It can affect the system without affecting the system. The memory page is released when the user is stable and the program is used. The mechanism of the shrink_all_memory program is that there are two recent least used directories in the kernel (least_recently_used list, LRU list) are active list and inactive list, and the active list contains the most recently used directory. The accessed page, the inactive list, is a page that has not been accessed for a while. The shrink_all_memory program will start with the inactive list and then recycle the active list. With the shirink_all_memory program, you can swap out as much as possible without affecting the operation of the system core and the user's program.
在Linux之核心(kernel)中,第二儲存裝置16會被視為一般的區塊輸入/輸出裝置(I/O device),而在我們將記憶體分頁換出到切換空間20時,將呼叫submit_bio程序其所接受的參數包含了要寫入的區段數量(sector number)、讀取/寫入指令(r/w command)、記憶體位址(memory address)、記憶體長度(memory length)等資訊。可以藉由攔截submit_bio程序對即將被換出的分頁再進行處理。In the kernel of Linux, the second storage device 16 is treated as a general I/O device, and when we swap out the memory page to the switching space 20, the call will be made. The parameters accepted by the submit_bio program include the number of sectors to be written (sector number), read/write command (r/w command), memory address (memory address), memory length (memory length), etc. News. The page to be swapped out can be processed again by intercepting the submit_bio program.
上述之即將被換出的分頁係由shirink_all_memory程序所決定,決定的依據為此分頁的使用情況而非此分頁在主記憶體14中的實體位址。我們將shirink_all_memory程序所產生的寫入需求先排列。再依照此分頁的實體記憶體位址進行排序,並進行合併,以減少存取輸入/輸出(I/O)的次數並增加此輸入/輸出(I/O)的需求大小(request size)。需求大小(request size)越大,將使得為快閃記憶體(flash)之第二儲存裝置16的寫入效能越好。The above-mentioned page breaks to be swapped out are determined by the shirink_all_memory program, and the decision is based on the use of the page break instead of the physical address of the page in the main memory 14. We will first arrange the write requirements generated by the shirink_all_memory program. The physical memory addresses of the paging are then sorted and combined to reduce the number of access/output (I/O) accesses and increase the input/output (I/O) request size. The larger the request size, the better the write performance of the second storage device 16 for flash memory.
當一個記憶體分頁被換出時,核心(kernel)需要紀錄此分頁在切換空間20中所擺放的位置。使核心(kernel)能夠重新將此分頁從第二儲存裝置20載入。由於組合寫入(write-combining)將重新改寫shirink_all_memory程序,當每次執行完shirink_all_memory程序後,必須於確定了每個分頁寫入至切換空間20的位置後,再將資訊填入到分頁表格(page table)中的換出分頁鑑別符(swapped-out page identifier)。When a memory page is swapped out, the kernel needs to record the position where the page is placed in the switching space 20. The kernel is enabled to reload this page from the second storage device 20. Since the write-combining will rewrite the shirink_all_memory program, after each execution of the shirink_all_memory program, it must be determined that each page is written to the location of the switching space 20, and then the information is filled into the paging table ( The swapped-out page identifier in page table).
以上所述之實施例僅係為說明本發明之技術思想及特點,其目的在使熟習此項技藝之人士能夠瞭解本發明之內容並據以實施,當不能以之限定本發明之專利範圍,即大凡依本發明所揭示之精神所作之均等變化或修飾,仍應涵蓋在本發明之專利範圍內。The embodiments described above are merely illustrative of the technical spirit and the features of the present invention, and the objects of the present invention can be understood by those skilled in the art, and the scope of the present invention cannot be limited thereto. That is, the equivalent variations or modifications made by the spirit of the present invention should still be included in the scope of the present invention.
10...電腦系統10. . . computer system
12...計算處理器12. . . Computing processor
14...主記憶體14. . . Main memory
16...第二儲存裝置16. . . Second storage device
18...檔案系統18. . . File system
20...切換空間20. . . Switch space
22...休眠檔twenty two. . . Dormant file
第一圖為本發明之架構示意圖。The first figure is a schematic diagram of the architecture of the present invention.
第二圖為本發明之處理步驟流程圖。The second figure is a flow chart of the processing steps of the present invention.
10...電腦系統10. . . computer system
12...計算處理器12. . . Computing processor
14...主記憶體14. . . Main memory
16...第二儲存裝置16. . . Second storage device
18...檔案系統18. . . File system
20...切換空間20. . . Switch space
22...休眠檔twenty two. . . Dormant file
Claims (9)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW098131936A TWI399637B (en) | 2009-09-22 | 2009-09-22 | Fast switch machine method |
| KR1020100092274A KR101392062B1 (en) | 2009-09-22 | 2010-09-20 | Fast speed computer system power-on & power-off method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW098131936A TWI399637B (en) | 2009-09-22 | 2009-09-22 | Fast switch machine method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW201111966A TW201111966A (en) | 2011-04-01 |
| TWI399637B true TWI399637B (en) | 2013-06-21 |
Family
ID=43937686
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW098131936A TWI399637B (en) | 2009-09-22 | 2009-09-22 | Fast switch machine method |
Country Status (2)
| Country | Link |
|---|---|
| KR (1) | KR101392062B1 (en) |
| TW (1) | TWI399637B (en) |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102799498A (en) * | 2011-05-27 | 2012-11-28 | 鸿富锦精密工业(深圳)有限公司 | Method and system for rapidly switching computer states |
| TW201327160A (en) * | 2011-12-21 | 2013-07-01 | Ind Tech Res Inst | Method for hibernation mechanism and computer system therefor |
| TWI514278B (en) | 2012-09-19 | 2015-12-21 | Ind Tech Res Inst | Method for generating a reduced snapshot image for booting, computing apparatus readable recording medium, and computing apparatus |
| TWI610239B (en) * | 2013-12-27 | 2018-01-01 | 財團法人工業技術研究院 | Electronic apparatus and method for resuming from hibernation |
| TWI646463B (en) * | 2013-12-27 | 2019-01-01 | 財團法人工業技術研究院 | Electronic apparatus and method for resuming from hibernation |
| KR102011059B1 (en) * | 2015-03-20 | 2019-08-16 | 한국전자통신연구원 | Apparatus and Method for updating a snapshot image |
| CN114579037B (en) * | 2020-12-01 | 2025-07-25 | 中兴通讯股份有限公司 | Storage method, device, equipment and storage medium for anonymous pages of exchange swap equipment |
| CN114895969B (en) * | 2022-05-25 | 2025-04-22 | 统信软件技术有限公司 | Operating system hibernation method, device, computing device and storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TW591373B (en) * | 2002-11-15 | 2004-06-11 | Acer Inc | Handheld device having sleep function and the operating method thereof |
| US20050278523A1 (en) * | 2002-06-27 | 2005-12-15 | Microsoft Corporation | Apparatus and method to decrease boot time and hibernate awaken time of a computer system |
| TW200619914A (en) * | 2004-09-03 | 2006-06-16 | Intel Corp | Storing system information in a low-latency persistent memory device upon transition to a lower-power state |
| JP2008165553A (en) * | 2006-12-28 | 2008-07-17 | Sony Corp | Information processing apparatus and method, and program |
| TW200937177A (en) * | 2008-02-29 | 2009-09-01 | Hon Hai Prec Ind Co Ltd | Method for switching work states of a computer |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003263366A (en) | 2002-03-12 | 2003-09-19 | Hitachi Ltd | Swapping control method, apparatus for implementing the method, and processing program therefor |
-
2009
- 2009-09-22 TW TW098131936A patent/TWI399637B/en active
-
2010
- 2010-09-20 KR KR1020100092274A patent/KR101392062B1/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050278523A1 (en) * | 2002-06-27 | 2005-12-15 | Microsoft Corporation | Apparatus and method to decrease boot time and hibernate awaken time of a computer system |
| TW591373B (en) * | 2002-11-15 | 2004-06-11 | Acer Inc | Handheld device having sleep function and the operating method thereof |
| TW200619914A (en) * | 2004-09-03 | 2006-06-16 | Intel Corp | Storing system information in a low-latency persistent memory device upon transition to a lower-power state |
| JP2008165553A (en) * | 2006-12-28 | 2008-07-17 | Sony Corp | Information processing apparatus and method, and program |
| TW200937177A (en) * | 2008-02-29 | 2009-09-01 | Hon Hai Prec Ind Co Ltd | Method for switching work states of a computer |
Also Published As
| Publication number | Publication date |
|---|---|
| KR20110033066A (en) | 2011-03-30 |
| TW201111966A (en) | 2011-04-01 |
| KR101392062B1 (en) | 2014-05-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI399637B (en) | Fast switch machine method | |
| US8930732B2 (en) | Fast speed computer system power-on and power-off method | |
| KR101713051B1 (en) | Hybrid Memory System and Management Method there-of | |
| TWI507870B (en) | Method and computer system for memory management on virtual machine | |
| CN113778662B (en) | Memory recovery method and device | |
| US7594073B2 (en) | Method and apparatus for caching memory content on a computing system to facilitate instant-on resuming from a hibernation state | |
| KR102434170B1 (en) | hybrid memory system | |
| Song et al. | Efficient memory-mapped I/O on fast storage device | |
| US20160062691A1 (en) | Method for controlling memory device to achieve more power saving and related apparatus thereof | |
| US20070294550A1 (en) | Memory Management With Defragmentation In A Computing Device | |
| KR20200123850A (en) | Hybrid memory system | |
| CN105874428A (en) | Techniques for operating system transitions in multiple operating system environments | |
| KR102443593B1 (en) | hybrid memory system | |
| CN112654965A (en) | External paging and swapping of dynamic modules | |
| CN111373385B (en) | Processor for improved process switching and method thereof | |
| In et al. | SWL: a search-while-load demand paging scheme with NAND flash memory | |
| Ryu et al. | Fast Application Launch on Personal {Computing/Communication} Devices | |
| JP5334048B2 (en) | Memory device and computer | |
| JP4792065B2 (en) | Data storage method | |
| Lo et al. | Swap-before-hibernate: a time efficient method to suspend an OS to a flash drive | |
| Park et al. | A new file system I/O mode for efficient user-level caching | |
| HK1156122A (en) | Fast speed computer system power-on & power-off method | |
| Wu et al. | APP: Enabling soft real-time execution on densely-populated hybrid memory system | |
| Ryu et al. | Paralfetch: Fast Application Launch on Personal Computing/Communication Devices | |
| Xu et al. | I/O Transit Caching for PMem-based Block Device |