KR20140040018A - Apparatus of generating snapshot image based on hibernation and booting and method of the same - Google Patents

Apparatus of generating snapshot image based on hibernation and booting and method of the same Download PDF

Info

Publication number
KR20140040018A
KR20140040018A KR1020130111860A KR20130111860A KR20140040018A KR 20140040018 A KR20140040018 A KR 20140040018A KR 1020130111860 A KR1020130111860 A KR 1020130111860A KR 20130111860 A KR20130111860 A KR 20130111860A KR 20140040018 A KR20140040018 A KR 20140040018A
Authority
KR
South Korea
Prior art keywords
snapshot image
booting
memory area
memory
terminal
Prior art date
Application number
KR1020130111860A
Other languages
Korean (ko)
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 주식회사 티엘아이
Publication of KR20140040018A publication Critical patent/KR20140040018A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/16Protection against loss of memory contents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention relates to a device and method for generating and booting a hibernation-based snapshot image, designating a memory occupied space required for booting a terminal as a first memory region, and booting the terminal with reference to the designated first memory region. And a memory manager configured to control the memory manager, and an image generator to generate a snapshot image corresponding to booting of the terminal in a second memory area when the booting of the terminal is performed.

Figure P1020130111860

Description

Device and method for creating and booting a hibernation-based snapshot image {APPARATUS OF GENERATING SNAPSHOT IMAGE BASED ON HIBERNATION AND BOOTING AND METHOD OF THE SAME}

A method of efficiently generating a hibernation-based snapshot image of a computing device and using it to efficiently manage a computing system.

In a computer file system, a snapshot is a collection of computer files and directories that contains information about the state of the system at a previous point in time.

Generally, full backups of large amounts of data can take a long time. Also, in a multi-tasking system or a system in which multiple users are used together, the data may be recorded during backup, which may result in data corruption.

The safe way to back up data is to temporarily disable data access by using the locking application program interface (API) provided by the operating system to force access to the application during the backup or to enforce exception read access. . In this case, there are no major problems with unavailable systems, such as desktop computers or small workgroup servers, but high-performance systems can not afford to stop service.

To avoid system crashes, high-performance systems can perform backups based on snapshot images.

Such a snapshot technique has recently been used for booting a mobile terminal or the like as a device requiring fast processing performance.

The hibernation technique provides a function to automatically save the work that has been executed up to the present time, such as a hard disk drive (HDD), at the same time the power of the computing system is turned off.

In a normal power saving mode, a certain amount of power is consumed to maintain the data, and when the power saving mode is left for a long time, the recovery to the previous state may occur due to the loss of data.

However, according to the hibernation technique, a state of a computing system or a snapshot image of data can be generated and then the power can be completely shut off, which is advantageous from the viewpoint of power, and data loss is very small.

Such a hibernation technique may be related to technologies such as a hibernation mode in an OS (Operating System) of Microsoft, and a sleeping in an OS of an Apple company.

On the other hand, the suspend process of the computing system according to the conventional hibernation technique has a limitation in efficiently generating a snapshot image by using the memory inefficiently. Improvements are being made in speed.

An apparatus for generating and booting a hibernation-based snapshot image according to an embodiment designates a memory occupied space required for booting a terminal as a first memory area, and controls to perform booting of the terminal with reference to the designated first memory area. The memory manager may include an image generator configured to generate a snapshot image corresponding to the booting of the terminal in a second memory area when the booting of the terminal is performed.

According to an embodiment, the memory manager may designate the first memory area on a physically continuous area of an entire memory area.

The image generator may generate the snapshot image on a second memory area that is physically continuous except for the first memory area among the entire memory areas.

An apparatus for generating and booting a hibernation-based snapshot image according to an embodiment may include a device for generating and booting a hibernation-based snapshot image including a physically continuous region of the first memory region and a second memory region. .

The hibernation-based snapshot image generation and booting apparatus according to an embodiment may further include an image compressor for compressing the snapshot image.

The hibernation-based snapshot image generation and booting apparatus according to an embodiment may further include storage for storing the snapshot image before compression or the snapshot image after compression.

According to an embodiment, the storage may include at least one of a flash memory and a hard disk driver.

An apparatus for generating and booting a hibernation-based snapshot image according to an embodiment designates a memory occupied space required for booting a terminal as a first memory area, and controls to perform booting of the terminal with reference to the designated first memory area. A memory manager and a snapshot image corresponding to booting of the terminal into a third memory area, restore the loaded snapshot image to the first memory area, and based on the restored snapshot image; It may include a recovery unit for restoring.

The memory manager according to an embodiment may designate the first memory area on a physically continuous area of a whole memory area.

According to an embodiment, the snapshot image may be an uncompressed image or a compressed image.

The restorer may restore the compressed snapshot image to the first memory region while loading the compressed snapshot image and extracting the loaded compressed snapshot image.

According to an embodiment, a method of generating and booting a hibernation-based snapshot image may include designating a memory occupied space required for booting a terminal as a first memory area in a memory manager, and referring to the designated first memory area in the memory manager. And controlling the booting of the terminal to be performed, and generating, by the image generating unit, a snapshot image corresponding to the booting of the terminal in the second memory area when the booting of the terminal is performed.

The hibernation-based snapshot image generation and booting method according to an embodiment may include loading, by a restorer, a snapshot image corresponding to booting of the terminal in a third memory area, and in the restorer, the loaded snapshot image. And restoring the terminal to the first memory region, and restoring the terminal based on the restored snapshot image.

According to an embodiment, the performance index such as time and space may be improved when a hibernation-based snapshot image is generated, and the storage may be managed by allocating a minimum storage space.

According to an embodiment, the memory may be efficiently used in a suspend process of the computing system.

According to one embodiment, a snapshot image of a computing system can be efficiently generated.

According to one embodiment, by efficiently managing the memory in the suspend or resume process of the computing system, the memory capacity and the processing speed may be improved.

According to one embodiment, by performing the Android framework as it is possible to provide an Android FastBooting solution for a smartphone secured stability.

1 is a diagram illustrating an apparatus for generating and booting a hibernation-based snapshot image, according to an exemplary embodiment.
FIG. 2 is a conceptual diagram illustrating a suspend process in a hibernation-based snapshot image generation and booting device according to FIG. 1.
3 is a diagram illustrating an apparatus for generating and booting a hibernation-based snapshot image according to another exemplary embodiment.
4 is a diagram illustrating an apparatus for generating and booting a hibernation-based snapshot image according to another exemplary embodiment.
5 is a conceptual diagram illustrating a resume process in a hibernation-based snapshot image generation and booting device according to FIG. 4.
6 is a diagram for describing a method of generating and booting a hibernation-based snapshot image, according to an exemplary embodiment.
FIG. 7 illustrates a method for generating and booting a hibernation-based snapshot image according to another exemplary embodiment.

Hereinafter, preferred embodiments according to the present invention will be described in detail with reference to the accompanying drawings.

In the following description of the present invention, detailed description of known functions and configurations incorporated herein will be omitted when it may make the subject matter of the present invention rather unclear. The terminologies used herein are terms used to properly represent preferred embodiments of the present invention, which may vary depending on the user, the intent of the operator, or the practice of the field to which the present invention belongs. Therefore, the definitions of these terms should be based on the contents throughout this specification. Like reference symbols in the drawings denote like elements.

1 is a diagram illustrating a hibernation-based snapshot image generation and booting device 100 according to an embodiment.

The hibernation-based snapshot image generation and booting apparatus 100 according to an embodiment may efficiently manage memory in a suspend to resume process according to a suspend process of a computing system, thereby improving memory capacity and processing speed. Can be improved.

To this end, the hibernation-based snapshot image generating and booting apparatus 100 according to an embodiment may include a memory manager 110 and an image generator 120.

In detail, the memory manager 110 performs booting by limiting an occupied space of the memory 130 to a predetermined area when booting. This process can be referred to as memory isolation, and the memory isolation process can improve the memory capacity and processing speed of the entire system.

More specifically, the memory manager 110 designates a memory occupied space required for booting a terminal as a first memory region and controls the system to boot the terminal with reference to the designated first memory region. can do.

In general, a memory area is not specified when the terminal is booted, and thus the terminal is booted using an area physically distributed in various locations. As a result, the memory efficiency may be reduced. The memory manager 110 may designate a memory occupied space required for booting a terminal as a first memory area to be booted.

In addition, when the booting of the terminal is performed, the image generating unit 120 may generate a snapshot image corresponding to the booting of the terminal in the second memory area.

The first memory area may include at least one or more physically contiguous areas, not distributed areas of the memory area. In addition, the second memory area may include at least one or more physically contiguous areas, not distributed areas of the memory area. The first memory area and the second memory area may be interpreted as physically continuous areas of the entire memory area.

FIG. 2 is a conceptual diagram illustrating a suspend process in a hibernation-based snapshot image generation and booting device according to FIG. 1.

Reference numeral S210 corresponds to an initialization process of the memory before booting. In addition, reference numeral S220 corresponds to a booting process, and in Conventional Suspend, an entire area of the memory may be occupied at boot time. The memory manager 110 according to an embodiment of the present invention designates only a part of the entire memory in advance to boot. It may be designated as an area occupied at a time (first memory area).

As shown by reference numeral S230, in Conventional Suspend, an entire area of the memory is occupied at boot time and refers to an area distributed at various locations at boot time. However, the memory manager 110 may perform booting by limiting the memory occupied space to a first predetermined memory area.

That is, in Conventional Suspend, original data for image generation is scattered in various areas of the memory page according to the memory allocator situation. When the image is scattered in these scattered areas, the image must be stored without compression. Inefficiency in the time and power required during the suspend process, and performance may be reduced. In addition, even in the case of compression, compression becomes inefficient and the size of the compressed snapshot image is relatively large. In contrast, the memory manager 110 according to an embodiment of the present invention may limit the memory space occupied in the booting process to the first memory area of the memory, which is denoted by reference numerals S210 to S230.

As shown by reference numeral S240, the memory manager 110 according to an embodiment of the present invention defines a memory occupied space as a first memory area upon completion of booting, and is distinguished from the first memory area. A snapshot image generated with efficient space occupancy in the second memory area may be generated.

In addition, as shown at S240, the hibernation-based snapshot image generation and booting device may compress the snapshot image through an image compression unit and generate a compressed image. The hibernation-based snapshot image creation and booting device can complete the suspension process by storing the compressed image in flash memory, a solid state drive (SSD), or a hard disk drive.

3 is a diagram illustrating an apparatus for generating and booting a hibernation-based snapshot image according to another exemplary embodiment.

The hibernation-based snapshot image generation and booting apparatus 300 according to an embodiment may include a memory manager 310, an image generator 320, an image compressor 330, and a storage 340.

The memory manager 310 may designate a memory occupied space required for booting the terminal as a first memory area, and control the booting of the terminal with reference to the designated first memory area. When the booting of the terminal is performed, the image generating unit 320 may generate a snapshot image corresponding to the booting of the terminal in the second memory area.

The memory manager 310 may designate the first memory area on a physically continuous area of the entire memory area. In addition, the image generator 320 may generate the snapshot image on a second memory area that is physically continued except for the first memory area among the entire memory areas. The first memory area and the second memory area may be physically continuous areas among the entire memory areas.

The image compressor 330 according to an embodiment may generate the compressed image by compressing the generated snapshot image. The storage 340 according to an embodiment may store a snapshot image before compression or a snapshot image after compression, and may include at least one of a flash memory, a solid state drive (SSD), and a hard disk driver.

4 is a diagram illustrating an apparatus for generating and booting a hibernation-based snapshot image according to another exemplary embodiment.

The hibernation-based snapshot image generation and booting device 400 according to an embodiment may include a memory manager 410 and a restorer 420.

According to an embodiment, the memory manager 410 designates an occupied space of the memory 430 necessary for booting the terminal as a first memory region, and controls to boot the terminal with reference to the designated first memory region. Can be.

The restorer 420 loads a snapshot image corresponding to booting of the terminal in a third memory area, restores the loaded snapshot image to the first memory area, and restores the restored snap image. The terminal may be restored based on the shot image. In one example, the third memory region may be interpreted as a partial region in the flash memory.

5 is a conceptual diagram illustrating a resume process in a hibernation-based snapshot image generation and booting device according to FIG. 4.

Reference numeral S510 corresponds to an initialization process of a memory before booting. In addition, reference numeral S520 corresponds to a booting process, and in a conventional resume, the entire area of the memory may be occupied at boot time. The memory manager 410 according to an embodiment of the present invention may boot by designating only a part of the entire memory in advance. It may be designated as an area occupied at a time (first memory area).

As shown by reference numeral S530, in the conventional resume, an entire area of the memory is occupied at boot time and refers to an area distributed at various locations at boot time. However, the memory manager 410 according to an embodiment of the present invention may limit the memory occupied space to a predetermined first memory area to perform booting.

That is, in Conventional Resume, the original data needed to create an image is scattered in various areas of a memory page according to the memory allocator situation. There is an inefficiency in the time and power consumed in the resume process, and the performance may be degraded. In addition, even in the case of compression, compression becomes inefficient and the size of the compressed snapshot image is relatively large. In contrast, the memory manager 410 according to an exemplary embodiment of the present invention may limit the memory space occupied in the booting process to the first memory area of the memory, which is denoted by reference numerals S510 to S530.

In S540, a compressed or uncompressed snapshot image may be loaded into the second memory area from storage such as a flash memory. That is, in the illustrated embodiment, a process of loading a compressed snapshot image is shown, but the present invention is not limited to the compressed snapshot image.

The decompression unit 420 may restore the image to the first memory area while decompressing the compressed image loaded as shown in S550. Then, as shown by S560, the first memory area may be restored by the snapshot image, and may return to the state immediately before the suspension process of FIG. 2.

Through this process, memory management efficiency can be improved, and performance indexes such as time and space can be improved when creating a hibernation-based snapshot image. You can also manage snapshots by allocating a minimum amount of storage space in the storage area.

6 is a diagram for describing a method of generating and booting a hibernation-based snapshot image, according to an exemplary embodiment.

According to an embodiment, the hibernation-based snapshot image generation and booting method may designate a memory occupied space required for booting a terminal as a first memory area in the memory manager (step 601). In addition, the hibernation-based snapshot image generation and booting method according to an embodiment may control to perform booting of the terminal with reference to the designated first memory area in the memory manager (step 602).

In general, a memory area is not specified when the terminal is booted, and thus the terminal is booted using an area physically distributed in various locations. As a result, memory efficiency may be deteriorated. The hibernation-based snapshot image generation and booting method according to an embodiment may designate a memory occupied space required for booting a terminal as a first memory area to be booted. The first memory area may include at least one or more physically contiguous areas, not distributed areas of the memory area.

The hibernation-based snapshot image generation and booting method according to an embodiment may generate a snapshot image corresponding to the booting of the terminal in the second memory area when the terminal is booted in the image generator.

The second memory area may also include at least one or more physically contiguous areas, not distributed areas of the memory area. The first memory area and the second memory area may be interpreted as physically continuous areas of the entire memory area.

FIG. 7 illustrates a method for generating and booting a hibernation-based snapshot image according to another exemplary embodiment.

In the hibernation-based snapshot image generation and booting method according to an embodiment, the restoration unit may load a snapshot image corresponding to booting of the terminal in a third memory area (step 701). In addition, in the hibernation-based snapshot image generation and booting method according to an embodiment, the restored unit may restore the loaded snapshot image to the first memory area (step 702).

The first memory area may include at least one or more physically contiguous areas that are not distributed areas of the memory area, and the second memory area may include at least one or more physically contiguous areas that are not distributed areas in the memory area. The first memory area and the second memory area may be interpreted as physically continuous areas of the entire memory area.

In the hibernation-based snapshot image generation and booting method according to an embodiment, the restoration unit may restore the terminal based on the restored snapshot image (step 703).

As a result, according to an embodiment of the present invention, performance indexes such as time and space may be improved when a hibernation-based snapshot image is generated, and the storage may be managed by allocating a minimum storage space. In addition, the memory can be efficiently used in the suspend process of the computing system, the snapshot image of the computing system can be efficiently generated, and the memory management in the suspend or resume process of the computing system can be efficiently performed. By doing so, the memory capacity and the processing speed can be improved.

In addition, according to an embodiment of the present invention, it is possible to provide an Android FastBooting solution for a smartphone secured stability by performing the Android framework as it is.

The method according to an embodiment may be implemented in the form of a program command that can be executed through various computer means and recorded in a computer-readable medium. The computer-readable medium may include program instructions, data files, data structures, and the like, alone or in combination. The program instructions to be recorded on the medium may be those specially designed and configured for the embodiments or may be available to those skilled in the art of computer software. Examples of computer-readable media include magnetic media such as hard disks, floppy disks and magnetic tape; optical media such as CD-ROMs and DVDs; magnetic media such as floppy disks; Magneto-optical media, and hardware devices specifically configured to store and execute program instructions such as ROM, RAM, flash memory, and the like. Examples of program instructions include machine language code such as those produced by a compiler, as well as high-level language code that can be executed by a computer using an interpreter or the like. The hardware devices described above may be configured to operate as one or more software modules to perform the operations of the embodiments, and vice versa.

While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. For example, it is to be understood that the techniques described may be performed in a different order than the described methods, and / or that components of the described systems, structures, devices, circuits, Lt; / RTI > or equivalents, even if it is replaced or replaced.

Therefore, other implementations, other embodiments, and equivalents to the claims are also within the scope of the following claims.

100: Hibernation-based snapshot image creation and boot device
110: memory manager
120: generator

Claims (14)

A memory manager for designating a memory occupied space required for booting the terminal as a first memory area and controlling booting of the terminal with reference to the designated first memory area; And
When the booting of the terminal is performed, an image generating unit generating a snapshot image corresponding to the booting of the terminal in a second memory area.
Hibernation-based snapshot image creation and boot device comprising a.
The method of claim 1,
The memory manager,
And a hibernation-based snapshot image generation and booting device that designates the first memory area on a physically contiguous area of a total memory area.
3. The method of claim 2,
The image generation unit may include:
And a hibernation-based snapshot image generation and booting device that generates the snapshot image on a second memory area that is physically contiguous except for the first memory area of the entire memory area.
The method of claim 1,
And the first memory area and the second memory area include physically contiguous areas of the entire memory area.
The method of claim 1,
Hibernation-based snapshot image generation and boot device further comprising an image compression unit for compressing the snapshot image.
6. The method of claim 5,
A hibernation-based snapshot image creation and boot device further comprising storage for storing a snapshot image before compression or a snapshot image after compression.
The method according to claim 6,
And the storage comprises at least one of a flash memory and a hard disk driver.
A memory manager for designating a memory occupied space required for booting the terminal as a first memory area and controlling booting of the terminal with reference to the designated first memory area; And
Restoring a snapshot image corresponding to booting of the terminal to a third memory area, restoring the loaded snapshot image to the first memory area, and restoring the terminal based on the restored snapshot image; part
Hibernation-based snapshot image creation and boot device comprising a.
9. The method of claim 8,
The memory manager,
And a hibernation-based snapshot image generation and booting device that designates the first memory area on a physically contiguous area of a total memory area.
9. The method of claim 8,
And a snapshot image is an uncompressed image or a compressed image.
11. The method of claim 10,
And the restoration unit loads the compressed snapshot image into the third memory area and restores the loaded compressed snapshot image to the first memory area while decompressing the loaded snapshot image.
In the memory manager, designating a memory occupied space required for booting the terminal as a first memory area;
Controlling, by the memory manager, booting of the terminal with reference to the designated first memory area; And
In the image generator, when the booting of the terminal is performed, generating a snapshot image corresponding to the booting of the terminal in a second memory area.
Hibernation-based snapshot image creation and boot method comprising a.
13. The method of claim 12,
In the restoration unit, loading a snapshot image corresponding to booting of the terminal in a third memory area;
Restoring, by the restoring unit, the loaded snapshot image to the first memory area; And
Restoring, by the restoring unit, the terminal based on the restored snapshot image;
Hibernation-based snapshot image creation and boot method further comprising.
A computer-readable recording medium having recorded thereon a program for performing the method of claim 12.
KR1020130111860A 2012-09-25 2013-09-17 Apparatus of generating snapshot image based on hibernation and booting and method of the same KR20140040018A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR20120106456 2012-09-25
KR1020120106456 2012-09-25

Publications (1)

Publication Number Publication Date
KR20140040018A true KR20140040018A (en) 2014-04-02

Family

ID=50650483

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020130111860A KR20140040018A (en) 2012-09-25 2013-09-17 Apparatus of generating snapshot image based on hibernation and booting and method of the same

Country Status (1)

Country Link
KR (1) KR20140040018A (en)

Similar Documents

Publication Publication Date Title
US9823877B2 (en) Virtual machine backup from storage snapshot
KR101636870B1 (en) Method and apparatus for generating minimal boot image
CA2896809C (en) Data processing device and data processing method
CN107870968B (en) Performing real-time updates to a file system volume
US9250824B2 (en) Backing up method, device, and system for virtual machine
EP2487583B1 (en) Booting apparatus and method using snapshot image
US8589647B2 (en) Apparatus and method for synchronizing a snapshot image
CN103810020A (en) Virtual machine elastic scaling method and device
US20120101996A1 (en) Apparatus and method for snapshot image segmentation
US20140201175A1 (en) Storage apparatus and data compression method
CN110704161B (en) Virtual machine creation method and device and computer equipment
CN104572354A (en) Backup and restoration method for operating system based on restoration service and equipment thereof
US10185573B2 (en) Caching based operating system installation
KR101920474B1 (en) In-memory virtual desktop system
JP6262878B2 (en) Storage device
KR20140040018A (en) Apparatus of generating snapshot image based on hibernation and booting and method of the same
KR101460452B1 (en) Apparatus of generating snapshot image based on hibernation and method of the same
CN111208947A (en) Data migration method and device, physical machine, cloud platform and computer storage medium
CN114168082B (en) Method, device, computer equipment and storage medium for avoiding SSD idle block exhaustion
US9311428B2 (en) Restoration apparatus
US9785667B2 (en) Fast creation of a master GFS2 file system
KR20140040020A (en) Apparatus of generating snapshot image based on hibernation and method of the same
JP2011002998A (en) Backup system and backup program

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E601 Decision to refuse application