CN108089889A - The implementation method that (SuSE) Linux OS quickly starts - Google Patents

The implementation method that (SuSE) Linux OS quickly starts Download PDF

Info

Publication number
CN108089889A
CN108089889A CN201611048246.1A CN201611048246A CN108089889A CN 108089889 A CN108089889 A CN 108089889A CN 201611048246 A CN201611048246 A CN 201611048246A CN 108089889 A CN108089889 A CN 108089889A
Authority
CN
China
Prior art keywords
operating system
linux
suse
image file
implementation method
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201611048246.1A
Other languages
Chinese (zh)
Other versions
CN108089889B (en
Inventor
范腾飞
何曌君
黄伟
申利飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Standard Software Co Ltd
Original Assignee
China Standard Software Co Ltd
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 China Standard Software Co Ltd filed Critical China Standard Software Co Ltd
Priority to CN201611048246.1A priority Critical patent/CN108089889B/en
Publication of CN108089889A publication Critical patent/CN108089889A/en
Application granted granted Critical
Publication of CN108089889B publication Critical patent/CN108089889B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)
  • Power Sources (AREA)

Abstract

The present invention relates to the implementation methods that a kind of (SuSE) Linux OS quickly starts, and include the following steps:S1:The first and second quick active flags of operating system are added in the start-up parameter of operating system;S2:Cycle power operating system;S3:It is detected whether during shutdown there are quick active flag to be used is needed in shutdown process, if nothing, direct shutoff operation system;If so, then preserve the image file of operating system;S4:It detects whether, there are quick active flag to be used is needed in start process, if nothing, to directly initiate operating system during start;If so, the then image file of restoring operation system.The present invention can effectively reduce the startup time for the domestic operating system run on domestic CPU, so as to meet the needs of in specific work environments.It is found by test comparison, the implementation method that (SuSE) Linux OS provided by the invention quickly starts, the time needed for start-up operation system probably only has operating system normally to start half of required time or so.

Description

The implementation method that (SuSE) Linux OS quickly starts
Technical field
The present invention relates to computers and information technology field, and in particular to the reality that a kind of (SuSE) Linux OS quickly starts Existing method.
Background technology
Due to the limitation of domestic cpu performance so that startup speed of the (SuSE) Linux OS on domestic CPU is considerably slower than Startup speed on X86, and as country is to the pay attention to day by day of information security, using domestic CPU and domestic operating system(Especially It is (SuSE) Linux OS)Computer it is more and more on the market, however needed in a few thing environment as short as possible Start computer in time, at this time due to the limitation of domestic cpu performance, the time needed for the normal startup of operating system cannot expire The requirement to work enough, therefore just need to realize that a kind of technology can realize that the quick of computer starts work(under current hardware condition Energy.
The S4 functions of power management subsystem are that computer is not preparing currently to make again in existing (SuSE) Linux OS With, but in the case that the current mirror image of want to save operating system is so as to working condition before being directly entered when next time starts shooting again, By being mirrored into and being saved it on Swap subregions by operating system environment making current in (SuSE) Linux OS, then Computer shutdown can even be pulled out power supply.When computer needs to start shooting again by by the image file in Swap subregions Reduction so that user can enter directly into before working environment in.It realizes that techniqueflow chart is as shown in Figure 1.
Specifically, the S4 functions in (SuSE) Linux OS in power management subsystem realize that process is as follows:
1. perform " echo disk>/ sys/power/state " is ordered, and starts to perform S4 functions;
2. freeze the consumer process in (SuSE) Linux OS, necessary kernel thread and work queue;
3. hang up (SuSE) Linux OS console;
4. peripheral hardware and the interior closing set in (SuSE) Linux OS;
5. the closing respectively of aiding CPU and host CPU in (SuSE) Linux OS;
6. it makes the image file of (SuSE) Linux OS and is stored in Swap subregions;
Close (SuSE) Linux OS.However, the S4 functions in the power management operations system of (SuSE) Linux OS be by means of The current snapshot of operating system is stored in the Swap subregions of hard disk by the Swap subregions on hard disc of computer in the form of mirror image In, it is then turned off the power supply of computer.When being again started up operating system, linux kernel will reduce to be preserved in Swap subregions Operating system snapshot image file, after the data Restore All in Swap subregions, data in Swap subregions will be by It will be gone manually when deleting, therefore the preservation that the data in Swap subregions can not be permanent under normal circumstances, and needing every time Preserve system image file.
The content of the invention
To solve the deficiencies in the prior art, a kind of domestic operation that can be effectively reduced and be run on domestic CPU is provided The startup time of system, so as to meet the startup method of the needs of in specific work environments, the present invention provides a kind of Linux behaviour Make the implementation method that system quickly starts, include the following steps:
S1:The first and second quick active flags of operating system are added in the start-up parameter of operating system;
S2:Cycle power operating system;
S3:Detect whether that there are the second quick active flags, if nothing, direct shutoff operation system during shutdown;If so, it then preserves The image file of operating system;
S4:It detects whether, there are the first quick active flag, if nothing, to directly initiate operating system during start;If so, it then reduces The image file of operating system.
Wherein, in the step S3, if there are the second quick active flag, by the way that the image file of operating system is protected It is stored in backup Swap subregions to preserve the image file of operating system.
Wherein, in the step S4, if there are the first quick active flag, step S4 includes:
S41:Change the Swap subregions of carry during os starting into backup Swap subregions;
S42:Carry backup Swap subregions, the image file of restoring operation system;
S43:Quick start completion preserves backup Swap subregion header file information and system image file, Swap points of unloading backup Area, and general Swap subregions are mounted in operating system.
Wherein, in the step S3, the image file of operating system is preserved by performing S4 functions.
Wherein, in the step S4, by the image file for performing S4 functional model of reduction operating systems.
Wherein, the software needed in work is then opened simultaneously if there is the first quick active flag in start, and The opening of these softwares is kept in shutdown.
In the present invention, so-called " S4 functions " refers to the dormancy in the power management sub-operating system of (SuSE) Linux OS Function.
In the present invention, so-called " Swap subregions " refers to the exchange partition in (SuSE) Linux OS, similar to Windows Virtual memory in operating system.
In the present invention, so-called " the first quick active flag " refers to need quick startup mark to be used in start process Will.
In the present invention, so-called " the second quick active flag " refers to need quick startup mark to be used in shutdown process Will.
The implementation method that (SuSE) Linux OS provided by the invention quickly starts can be effectively reduced on domestic CPU The startup time of the domestic operating system of operation, so as to meet the needs of in specific work environments.It is found by test comparison, this The implementation method that the (SuSE) Linux OS that invention provides quickly starts, the time needed for start-up operation system probably only operate System normally starts half of required time or so.
Description of the drawings
Fig. 1:The S4 functions of power management operations system realize flow chart in existing (SuSE) Linux OS;
Fig. 2:The implementation method that the (SuSE) Linux OS of the present invention quickly starts realizes flow chart.
Specific embodiment
In order to have further understanding to technical scheme and advantageous effect, below attached drawing is coordinated to be described in detail Technical scheme and its advantageous effect of generation.
Fig. 2 is that the implementation method that the (SuSE) Linux OS of the present invention quickly starts realizes flow chart, as shown in Fig. 2, this hair A kind of bright implementation method for providing (SuSE) Linux OS and quickly starting, includes the following steps:
S1:The first and second quick active flags of operating system are added in the start-up parameter of operating system;
S2:Cycle power operating system;
S3:Detect whether that there are the second quick active flags, if nothing, direct shutoff operation system during shutdown;If so, it then preserves The image file of operating system;
S4:It detects whether, there are the first quick active flag, if nothing, to directly initiate operating system during start;If so, it then reduces The image file of operating system.
Preferably, in the step S3, if there are the second quick active flag, by by the image file of operating system It is saved in backup Swap subregions to preserve the image file of operating system.
Preferably, in the step S4, if there are the first quick active flag, step S4 includes:
S41:Change the Swap subregions of carry during os starting into backup Swap subregions;
S42:Carry backup Swap subregions, the image file of restoring operation system;
S43:Quick start completion preserves the image file of backup Swap subregion header file information and system, unloading backup Swap Subregion, and general Swap subregions are mounted in operating system.
Preferably, in the step S3, the image file of operating system is preserved by performing S4 functions.
Preferably, in the step S4, by the image file for performing S4 functional model of reduction operating systems.
Preferably, the software needed in work can then be kept if there is the second quick active flag in shutdown Opening can allow software to automatically begin to run in next quick startup.
Therefore, the present invention is that the data persistence that will be needed by certain method in performance during rapid starting period is saved in In backup Swap subregions, except the non-active data gone in modification Swap subregions, the present invention can realize that the quick of operating system is opened Dynamic function.
The present invention in the specific implementation, can also open simultaneously the software or some automatic chemical industry needed in work in start The instrument of work, and shutdown when do not close these softwares or automatically working instrument opening.In this way, can be Some need quickly to open common office software or wish that some automation tools can automatically then after start It is automatic in on-hook according to the quick start-up parameter in os starting parameter in the working environment to bring into operation of last time The image file of operating system is preserved, is ensured when starting shooting next time, software used in everyday and some automation tools can be certainly Dynamic exploitation and work.
The implementation method that (SuSE) Linux OS provided by the invention quickly starts in the specific implementation, inventor provides Following two specific embodiments:
Embodiment 1
(1)Quick active flag is added in the start-up parameter of (SuSE) Linux OS;
(2)Reboot operation system;
(3)After (SuSE) Linux OS normally starts, " echo disk are performed>/ sys/power/state " orders are direct Shutdown, the image file of (SuSE) Linux OS is stored in backup Swap subregions;
(4)When needing to start shooting work, perform normal start process, (SuSE) Linux OS can during startup basis The the first quick start-up parameter rapid start-up operation system set;
(5)Per task complete after normal switching-off machine, it is necessary to start shooting work when normally start machine.
Embodiment 2
(1)Quick active flag is added in the start-up parameter of (SuSE) Linux OS;
(2)Reboot operation system;
(3)The software needed in work or the instrument of some automatically workings are opened after operating system is normally entered;
(4)" echo is performed in the case where being not turned off working software and some instruments when needing shutoff operation system disk >/ sys/power/state " is ordered or directly shut down, and the image file of (SuSE) Linux OS is stored in backup In Swap subregions.
(5)When needing to start shooting work, normal start process is performed, (SuSE) Linux OS can be during startup According to the first quick start-up parameter rapid start-up operation system of setting;
(6)It is repeated during work(4)、(5)Process.
Advantageous effect achieved by the present invention is:The present invention by (SuSE) Linux OS normal boot process and The improvement of the S4 functions of Linux power management procedures can effectively improve the (SuSE) Linux OS in a few thing environment Start speed, so as to which that saves user efficiently uses the time.Machine in most cases can be used automatically according to user's last time These softwares of software and tool open and instrument opened during device, so that user rapidly enters working interface and automatically begins to one The automatically working of a little instruments.
Although the present invention is illustrated using above-mentioned preferred embodiment, the protection model that however, it is not to limit the invention It encloses, any those skilled in the art are not being departed within the spirit and scope of the present invention, and various changes are carried out with respect to above-described embodiment It is dynamic still to belong to the scope of the invention protected with modification, therefore protection scope of the present invention is subject to what claims were defined.

Claims (6)

1. the implementation method that a kind of (SuSE) Linux OS quickly starts, which is characterized in that include the following steps:
S1:The first and second quick active flags of operating system are added in the start-up parameter of operating system;
S2:Cycle power operating system;
S3:Detect whether that there are the second quick active flags, if nothing, direct shutoff operation system during shutdown;If so, it then preserves The image file of operating system;
S4:It detects whether, there are the first quick active flag, if nothing, to directly initiate operating system during start;If so, it then reduces The image file of operating system.
2. the implementation method that (SuSE) Linux OS as described in claim 1 quickly starts, which is characterized in that the step S3 In, if there are the second quick active flag, by the way that the image file of operating system to be saved in backup Swap subregions to protect Deposit the image file of operating system.
3. the implementation method that (SuSE) Linux OS as described in claim 1 quickly starts, which is characterized in that the step S4 In, if there are the first quick active flag, step S4 includes:
S41:Change the Swap subregions of carry during os starting into backup Swap subregions;
S42:Carry backup Swap subregions, the image file of restoring operation system;
S43:Quick start completion preserves backup Swap subregion header file information and system image file, Swap points of unloading backup Area, and general Swap subregions are mounted in operating system.
4. the implementation method that (SuSE) Linux OS as described in claim 1 quickly starts, which is characterized in that the step S3 In, by the image file for performing S4 functions preservation operating system.
5. the implementation method that (SuSE) Linux OS as described in claim 1 quickly starts, which is characterized in that the step S4 In, by the image file for performing S4 functional model of reduction operating systems.
6. the implementation method that (SuSE) Linux OS as described in claim 1 quickly starts, which is characterized in that in start such as Fruit has quick active flag to be used is needed in start process, opens simultaneously predetermined software, and keeps this predetermined in shutdown The opening of software.
CN201611048246.1A 2016-11-22 2016-11-22 Method for realizing quick start of Linux operating system Active CN108089889B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611048246.1A CN108089889B (en) 2016-11-22 2016-11-22 Method for realizing quick start of Linux operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611048246.1A CN108089889B (en) 2016-11-22 2016-11-22 Method for realizing quick start of Linux operating system

Publications (2)

Publication Number Publication Date
CN108089889A true CN108089889A (en) 2018-05-29
CN108089889B CN108089889B (en) 2020-11-10

Family

ID=62170264

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611048246.1A Active CN108089889B (en) 2016-11-22 2016-11-22 Method for realizing quick start of Linux operating system

Country Status (1)

Country Link
CN (1) CN108089889B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109086085A (en) * 2018-07-26 2018-12-25 深圳控道智能科技有限公司 A kind of os starting management method and device
CN109947483A (en) * 2019-02-14 2019-06-28 深圳市显控科技股份有限公司 A kind of industrial equipment starting method and system based on Android kernel
CN112068888A (en) * 2019-06-11 2020-12-11 深圳华智融科技股份有限公司 Linux system equipment starting method and device and terminal equipment
CN112068888B (en) * 2019-06-11 2024-09-24 深圳华智融科技股份有限公司 Linux system equipment starting method and device and terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040194086A1 (en) * 2002-03-20 2004-09-30 National Inst. Of Advanced Ind. Science And Tech. Suspend and resume method of computer job
CN101916201A (en) * 2010-08-06 2010-12-15 中兴通讯股份有限公司 Android-based mobile terminal cold-boot method and device
CN102207881A (en) * 2011-07-07 2011-10-05 电子科技大学 Quick operation system start-up method based on Android
CN103902317A (en) * 2012-12-27 2014-07-02 联想(北京)有限公司 Operating method and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040194086A1 (en) * 2002-03-20 2004-09-30 National Inst. Of Advanced Ind. Science And Tech. Suspend and resume method of computer job
CN101916201A (en) * 2010-08-06 2010-12-15 中兴通讯股份有限公司 Android-based mobile terminal cold-boot method and device
CN102207881A (en) * 2011-07-07 2011-10-05 电子科技大学 Quick operation system start-up method based on Android
CN103902317A (en) * 2012-12-27 2014-07-02 联想(北京)有限公司 Operating method and electronic device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
LURKER0STER: "https://blog.csdn.net/lurker0ster/article/details/5830543?utm_medium=distribute.pc_relevant.none-task-blog-baidujs-6", 《挑战启动极速(6)--休眠恢复代替启动》 *
SKY-HEAVEN: "https://www.cnblogs.com/sky-heaven/p/4561374.html", 《LINUX系统的休眠与唤醒简介》 *
张同光: "https://www.cnblogs.com/ztguang/p/12647687.html", 《LINUX 休眠》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109086085A (en) * 2018-07-26 2018-12-25 深圳控道智能科技有限公司 A kind of os starting management method and device
CN109947483A (en) * 2019-02-14 2019-06-28 深圳市显控科技股份有限公司 A kind of industrial equipment starting method and system based on Android kernel
CN112068888A (en) * 2019-06-11 2020-12-11 深圳华智融科技股份有限公司 Linux system equipment starting method and device and terminal equipment
CN112068888B (en) * 2019-06-11 2024-09-24 深圳华智融科技股份有限公司 Linux system equipment starting method and device and terminal equipment

Also Published As

Publication number Publication date
CN108089889B (en) 2020-11-10

Similar Documents

Publication Publication Date Title
US9015705B2 (en) Computing device having a migrated virtual machine accessing physical storage space on another computing device
US8589733B2 (en) Saving operational state of open applications when unexpected shutdown events occur
US9836357B1 (en) Systems and methods for backing up heterogeneous virtual environments
US20080022032A1 (en) Concurrent virtual machine snapshots and restore
US7512777B2 (en) Method and system for maintaining system management BIOS
WO2007092750A3 (en) Computer operating system with selective restriction of memory write operations
EP2189906A1 (en) Method and apparatus for abnormality recovering of data card, and data card
EP2104050A1 (en) On-Disk software image encryption
KR101673299B1 (en) Operating system recovery method and apparatus, and terminal device
TW200805159A (en) Method and apparatus for fast boot of an operating system
CN103500130A (en) Method for backing up dual-computer hot standby data in real time
US10191817B2 (en) Systems and methods for backing up large distributed scale-out data systems
CN104572354A (en) Backup and restoration method for operating system based on restoration service and equipment thereof
EP2280348A1 (en) Method and system for saving operational state of running applications when unexpected shutdown events occur
CN101873217B (en) Ethernet power supply equipment restart control method and device thereof
CN108089889A (en) The implementation method that (SuSE) Linux OS quickly starts
TWI511047B (en) Operating system switching method and dual operating system electronic device using the same
US20060206652A1 (en) Machine state storage apparatus and method
US20210232383A1 (en) Virtual machine update while keeping devices attached to the virtual machine
US9852028B2 (en) Managing a computing system crash
CN111708576A (en) Cross-operating-system equipment network card adapting and managing method, device and system
CN111506389A (en) Virtual machine starting method and device
KR100994723B1 (en) selective suspend resume method of reducing initial driving time in system, and computer readable medium thereof
US20120185713A1 (en) Server, storage medium, and method for controlling sleep and wakeup function of the server
JP7355876B2 (en) Program startup method, equipment, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant