CN114579195A - Operating system restarting method, system and related components - Google Patents
Operating system restarting method, system and related components Download PDFInfo
- Publication number
- CN114579195A CN114579195A CN202210242564.0A CN202210242564A CN114579195A CN 114579195 A CN114579195 A CN 114579195A CN 202210242564 A CN202210242564 A CN 202210242564A CN 114579195 A CN114579195 A CN 114579195A
- Authority
- CN
- China
- Prior art keywords
- operating system
- restart
- restarting
- bootable device
- point
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 104
- 230000008569 process Effects 0.000 claims abstract description 72
- 238000004590 computer program Methods 0.000 claims description 11
- 238000004140 cleaning Methods 0.000 claims description 8
- 230000009471 action Effects 0.000 claims description 3
- 230000004044 response Effects 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4403—Processor initialisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4406—Loading of operating system
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
本申请公开了一种操作系统重启方法、系统、装置及可读存储介质,该方法包括:当收到系统重启请求,从操作系统的重启流程中确定系统重启点;控制CPU从所述系统重启点开始,完成所述操作系统的重启;所述完成所述操作系统的重启的过程包括:对PCIe设备进行枚举和初始化;查询可引导设备并引导所述可引导设备重新进入所述操作系统。本申请中对系统重启请求的响应从系统重启点开始,而非完整的执行整个重启流程,大幅减少了重启的工作内容,重启耗时明显降低,涉及操作系统重启的工作的效率明显提升。
The present application discloses a method, system, device and readable storage medium for restarting an operating system. The method includes: when a system restart request is received, determining a system restart point from a restart process of the operating system; controlling a CPU to restart the system from the system Click Start to complete the restart of the operating system; the process of completing the restart of the operating system includes: enumerating and initializing PCIe devices; querying a bootable device and guiding the bootable device to re-enter the operating system . In this application, the response to the system restart request starts from the system restart point, rather than completely executing the entire restart process, which greatly reduces the work content of the restart, significantly reduces the restart time, and significantly improves the efficiency of the work involving operating system restart.
Description
技术领域technical field
本发明涉及基础程序设计领域,特别涉及一种操作系统重启方法、系统及相关组件。The invention relates to the field of basic program design, in particular to a method, system and related components for restarting an operating system.
背景技术Background technique
当前,各类主板,如笔记本电脑、台式机、服务器等的开机启动和重启的过程类似,均依靠系统固件BIOS(Basic Input Output System,基本输入输出系统)来完成的,BIOS作为硬件和操作系统之间的一座桥梁,完成对硬件设备初始化到引导进入操作系统的整个过程,基于不同的服务器硬件配置,服务器重启一次花费的时间一般在5分钟到15分钟以内。At present, the startup and restart process of various motherboards, such as notebook computers, desktops, servers, etc., are similar, and all rely on the system firmware BIOS (Basic Input Output System, Basic Input Output System) to complete, BIOS is used as hardware and operating system. A bridge between the hardware devices to complete the entire process from initializing the hardware device to booting into the operating system. Based on different server hardware configurations, the time it takes to restart a server is generally within 5 minutes to 15 minutes.
实际业务中,工作人员通常需要多次修改操作系统配置、部署或修改业务代码并重启操作系统以检验修改,在重启操作系统时整个服务器系统也将进行完整的重启,每次重启耗时较多,显然降低了系统配置的效率。In actual business, staff usually need to modify the operating system configuration, deploy or modify business code many times, and restart the operating system to verify the modification. When restarting the operating system, the entire server system will also be completely restarted, and each restart takes a lot of time. , obviously reducing the efficiency of the system configuration.
因此,如何提供一种解决上述技术问题的方案是目前本领域技术人员需要解决的问题。Therefore, how to provide a solution to the above technical problem is a problem that those skilled in the art need to solve at present.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本发明的目的在于提供一种操作系统重启方法、系统及相关组件。其具体方案如下:In view of this, the purpose of the present invention is to provide a method, system and related components for restarting an operating system. Its specific plan is as follows:
一种操作系统重启方法,包括:A method of restarting an operating system, comprising:
当收到系统重启请求,从操作系统的重启流程中确定系统重启点;When a system restart request is received, the system restart point is determined from the restart process of the operating system;
控制CPU从所述系统重启点开始,完成所述操作系统的重启;The control CPU starts from the system restart point, and completes the restart of the operating system;
所述完成所述操作系统的重启的过程包括:The process of completing the restarting of the operating system includes:
对PCIe设备进行枚举和初始化;Enumerate and initialize PCIe devices;
查询可引导设备并引导所述可引导设备重新进入所述操作系统。A bootable device is queried and the bootable device is directed to re-enter the operating system.
优选的,所述当收到系统重启请求,从操作系统的重启流程中确定系统重启点的过程,包括:Preferably, when a system restart request is received, the process of determining the system restart point from the restart process of the operating system includes:
当收到系统重启请求,通过硬件抽象层模块从操作系统的重启流程中确定所述硬件抽象层模块对应的系统重启点。When a system restart request is received, the system restart point corresponding to the hardware abstraction layer module is determined from the restart process of the operating system through the hardware abstraction layer module.
优选的,所述从操作系统的重启流程中确定系统重启点之前,还包括:Preferably, before the system restart point is determined from the restart process of the operating system, the method further includes:
控制所述操作系统完成系统清理操作。The operating system is controlled to complete the system cleaning operation.
优选的,所述查询可引导设备并引导所述可引导设备重新进入所述操作系统的过程,包括:Preferably, the process of querying a bootable device and guiding the bootable device to re-enter the operating system includes:
查询可引导设备以确定OS镜像文件,并通过所述OS镜像文件引导所述可引导设备重新进入所述操作系统。A bootable device is queried to determine an OS image file, and the bootable device is booted to re-enter the operating system through the OS image file.
优选的,所述重启流程包括:Preferably, the restarting process includes:
初始化CPU内部缓存及寄存器;Initialize CPU internal cache and registers;
初始化内存设备;Initialize the memory device;
初始化系统规范标准;Initialization system specification standard;
对PCIe设备进行枚举和初始化;Enumerate and initialize PCIe devices;
查询可引导设备并引导所述可引导设备重新进入所述操作系统。A bootable device is queried and the bootable device is directed to re-enter the operating system.
相应的,本申请还公开了一种操作系统重启系统,包括:Correspondingly, the present application also discloses an operating system restarting system, including:
确定模块,用于当收到系统重启请求,从操作系统的重启流程中确定系统重启点;The determining module is used to determine the system restart point from the restart process of the operating system when a system restart request is received;
动作模块,用于控制CPU从所述系统重启点开始,完成所述操作系统的重启;an action module, configured to control the CPU to complete the restart of the operating system from the system restart point;
所述完成所述操作系统的重启的过程包括:The process of completing the restarting of the operating system includes:
对PCIe设备进行枚举和初始化;Enumerate and initialize PCIe devices;
查询可引导设备并引导所述可引导设备重新进入所述操作系统。A bootable device is queried and the bootable device is directed to re-enter the operating system.
优选的,所述当收到系统重启请求,从操作系统的重启流程中确定系统重启点的过程,包括:Preferably, when a system restart request is received, the process of determining the system restart point from the restart process of the operating system includes:
当收到系统重启请求,通过硬件抽象层模块从操作系统的重启流程中确定所述硬件抽象层模块对应的系统重启点。When a system restart request is received, the system restart point corresponding to the hardware abstraction layer module is determined from the restart process of the operating system through the hardware abstraction layer module.
优选的,所述从操作系统的重启流程中确定系统重启点之前,还包括:Preferably, before the system restart point is determined from the restart process of the operating system, the method further includes:
控制所述操作系统完成系统清理操作。The operating system is controlled to complete the system cleaning operation.
相应的,本申请还公开了一种操作系统重启装置,包括:Correspondingly, the present application also discloses a device for restarting an operating system, including:
存储器,用于存储计算机程序;memory for storing computer programs;
处理器,用于执行所述计算机程序时实现如上文任一项所述操作系统重启方法的步骤。The processor is configured to implement the steps of the operating system restarting method according to any one of the above when executing the computer program.
相应的,本申请还公开了一种可读存储介质,所述可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上文任一项所述操作系统重启方法的步骤。Correspondingly, the present application also discloses a readable storage medium, where a computer program is stored on the readable storage medium, and when the computer program is executed by a processor, the steps of the method for restarting an operating system as described in any one of the above are implemented. .
本申请公开了一种操作系统重启方法,包括:当收到系统重启请求,从操作系统的重启流程中确定系统重启点;控制CPU从所述系统重启点开始,完成所述操作系统的重启;所述完成所述操作系统的重启的过程包括:对PCIe设备进行枚举和初始化;查询可引导设备并引导所述可引导设备重新进入所述操作系统。本申请中对系统重启请求的响应从系统重启点开始,而非完整的执行整个重启流程,大幅减少了重启的工作内容,重启耗时明显降低,涉及操作系统重启的工作的效率明显提升。The present application discloses a method for restarting an operating system, comprising: when a system restarting request is received, determining a system restarting point from a restarting process of the operating system; controlling a CPU to start from the system restarting point to complete the restarting of the operating system; The process of completing the restarting of the operating system includes: enumerating and initializing PCIe devices; querying a bootable device and guiding the bootable device to re-enter the operating system. In this application, the response to the system restart request starts from the system restart point, rather than completely executing the entire restart process, which greatly reduces the work content of the restart, significantly reduces the restart time, and significantly improves the efficiency of the work involving operating system restart.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to the provided drawings without creative work.
图1为本发明实施例中一种操作系统重启方法的步骤流程图;1 is a flowchart of steps of a method for restarting an operating system in an embodiment of the present invention;
图2为本发明实施例中一种操作系统重启系统的结构分布图;2 is a structural distribution diagram of an operating system restarting system in an embodiment of the present invention;
图3为本发明实施例中一种操作系统重启装置的结构分布图。FIG. 3 is a structural distribution diagram of a device for restarting an operating system according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
实际业务中,工作人员通常需要多次修改操作系统配置、部署或修改业务代码并重启操作系统以检验修改,在重启操作系统时整个服务器系统也将进行完整的重启,每次重启耗时较多,显然降低了系统配置的效率。In actual business, staff usually need to modify the operating system configuration, deploy or modify business code many times, and restart the operating system to verify the modification. When the operating system is restarted, the entire server system will also be completely restarted, and each restart takes a lot of time. , obviously reducing the efficiency of the system configuration.
本申请中对系统重启请求的响应从系统重启点开始,而非完整的执行整个重启流程,大幅减少了重启的工作内容,重启耗时明显降低,涉及操作系统重启的工作的效率明显提升。In this application, the response to the system restart request starts from the system restart point, rather than completely executing the entire restart process, which greatly reduces the work content of the restart, significantly reduces the restart time, and significantly improves the efficiency of the work involving operating system restart.
本发明实施例公开了一种操作系统重启方法,参见图1所示,包括:An embodiment of the present invention discloses a method for restarting an operating system, as shown in FIG. 1 , including:
S1:当收到系统重启请求,从操作系统的重启流程中确定系统重启点;S1: When a system restart request is received, the system restart point is determined from the restart process of the operating system;
S2:控制CPU从所述系统重启点开始,完成所述操作系统的重启;S2: control the CPU to complete the restart of the operating system from the system restart point;
所述完成所述操作系统的重启的过程包括:The process of completing the restarting of the operating system includes:
对PCIe设备进行枚举和初始化;Enumerate and initialize PCIe devices;
查询可引导设备并引导所述可引导设备重新进入所述操作系统。A bootable device is queried and the bootable device is directed to re-enter the operating system.
可以理解的是,本实施例中所述重启流程包括:初始化CPU(Central ProcessingUnit,中央处理器)内部缓存及寄存器;初始化内存设备;初始化系统规范标准;对PCIe(Peripheral Component Interconnect Express,最新的总线和接口标准)设备进行枚举和初始化;查询可引导设备并引导所述可引导设备重新进入所述操作系统。在收到系统重启请求时,本实施例并没有完整执行该重启流程,而是从中确定了系统重启点,从该重启点开始执行该重启流程,由于省略了系统重启点之前的内容执行,因此能够显著提升重启速度。It can be understood that the restarting process in this embodiment includes: initializing the internal cache and registers of a CPU (Central Processing Unit, central processing unit); initializing a memory device; initializing a system specification standard; and interface standard) devices to enumerate and initialize; query a bootable device and direct the bootable device to re-enter the operating system. When a system restart request is received, this embodiment does not completely execute the restart process, but determines a system restart point from it, and executes the restart process from the restart point. Since the execution of the content before the system restart point is omitted, therefore Can significantly improve the restart speed.
进一步的,所述从操作系统的重启流程中确定系统重启点之前,还包括:控制所述操作系统完成系统清理操作,以保证后续重启操作不会收到重启前未清理数据的干扰。Further, before determining the system restart point from the restart process of the operating system, the method further includes: controlling the operating system to complete the system cleaning operation, so as to ensure that the subsequent restart operation will not be disturbed by the uncleaned data before the restart.
在一些具体的实施例中,步骤S1所述当收到系统重启请求,从操作系统的重启流程中确定系统重启点的过程,包括:In some specific embodiments, the process of determining the system restart point from the restart process of the operating system when a system restart request is received as described in step S1 includes:
当收到系统重启请求,通过硬件抽象层模块从操作系统的重启流程中确定所述硬件抽象层模块对应的系统重启点。When a system restart request is received, the system restart point corresponding to the hardware abstraction layer module is determined from the restart process of the operating system through the hardware abstraction layer module.
具体的,硬件抽象层模块(Hardware Abstraction Layer,HWAL)可以用于为操作系统提供运行时服务runtime services,因此可利用硬件抽象层模块提供的重启服务函数,令处理器从指定的系统重启点的入口函数开始执行重启代码,而非重启代码的初始入口点。在实际施行本方法时,将硬件抽象层模块整合到BIOS代码中,再将BIOS代码刷新到主板BIOS芯片中,从而能够执行本方法。Specifically, the hardware abstraction layer (HWAL) module can be used to provide runtime services for the operating system. Therefore, the restart service function provided by the hardware abstraction layer module can be used to make the processor restart from the specified system restart point. The entry function starts executing the restart code, not the initial entry point of the restart code. When the method is actually implemented, the hardware abstraction layer module is integrated into the BIOS code, and then the BIOS code is refreshed into the motherboard BIOS chip, so that the method can be executed.
具体的,步骤S2所述查询可引导设备并引导所述可引导设备重新进入所述操作系统的过程,包括:Specifically, the process of querying a bootable device and guiding the bootable device to re-enter the operating system in step S2 includes:
查询可引导设备以确定OS镜像文件,并通过所述OS镜像文件引导所述可引导设备重新进入所述操作系统。A bootable device is queried to determine an OS image file, and the bootable device is booted to re-enter the operating system through the OS image file.
可以理解的是,本实施例中根据不同的硬件配置情况,能够将服务器重启时间缩减至1到5分钟以内,是之前重启时间的五分之一,提高了运维、业务人员使用服务器的效率,提高服务器的可用性时间,提升了用户使用体验。It can be understood that in this embodiment, according to different hardware configurations, the server restart time can be reduced to within 1 to 5 minutes, which is one-fifth of the previous restart time, which improves the efficiency of operation and maintenance and business personnel using the server. , to improve the availability time of the server and improve the user experience.
本申请公开了一种操作系统重启方法,包括:当收到系统重启请求,从操作系统的重启流程中确定系统重启点;控制CPU从所述系统重启点开始,完成所述操作系统的重启;所述完成所述操作系统的重启的过程包括:对PCIe设备进行枚举和初始化;查询可引导设备并引导所述可引导设备重新进入所述操作系统。本申请中对系统重启请求的响应从系统重启点开始,而非完整的执行整个重启流程,大幅减少了重启的工作内容,重启耗时明显降低,涉及操作系统重启的工作的效率明显提升。The present application discloses a method for restarting an operating system, comprising: when a system restarting request is received, determining a system restarting point from a restarting process of the operating system; controlling a CPU to start from the system restarting point to complete the restarting of the operating system; The process of completing the restarting of the operating system includes: enumerating and initializing PCIe devices; querying a bootable device and guiding the bootable device to re-enter the operating system. In this application, the response to the system restart request starts from the system restart point, rather than completely executing the entire restart process, which greatly reduces the work content of the restart, significantly reduces the restart time, and significantly improves the efficiency of the work involving operating system restart.
相应的,本申请还公开了一种操作系统重启系统,参见图2所示,包括:Correspondingly, the present application also discloses an operating system restarting system, as shown in FIG. 2 , including:
确定模块1,用于当收到系统重启请求,从操作系统的重启流程中确定系统重启点;The determining
动作模块2,用于控制CPU从所述系统重启点开始,完成所述操作系统的重启;
所述完成所述操作系统的重启的过程包括:The process of completing the restarting of the operating system includes:
对PCIe设备进行枚举和初始化;Enumerate and initialize PCIe devices;
查询可引导设备并引导所述可引导设备重新进入所述操作系统。A bootable device is queried and the bootable device is directed to re-enter the operating system.
在一些具体的实施例中,所述当收到系统重启请求,从操作系统的重启流程中确定系统重启点的过程,包括:In some specific embodiments, the process of determining the system restart point from the restart process of the operating system when a system restart request is received includes:
当收到系统重启请求,通过硬件抽象层模块从操作系统的重启流程中确定所述硬件抽象层模块对应的系统重启点。When a system restart request is received, the system restart point corresponding to the hardware abstraction layer module is determined from the restart process of the operating system through the hardware abstraction layer module.
在一些具体的实施例中,所述从操作系统的重启流程中确定系统重启点之前,还包括:In some specific embodiments, before the determining the system restart point from the restart process of the operating system, the method further includes:
控制所述操作系统完成系统清理操作。The operating system is controlled to complete the system cleaning operation.
在一些具体的实施例中,所述查询可引导设备并引导所述可引导设备重新进入所述操作系统的过程,包括:In some specific embodiments, the process of querying a bootable device and guiding the bootable device to re-enter the operating system includes:
查询可引导设备以确定OS镜像文件,并通过所述OS镜像文件引导所述可引导设备重新进入所述操作系统。A bootable device is queried to determine an OS image file, and the bootable device is booted to re-enter the operating system through the OS image file.
在一些具体的实施例中,所述重启流程包括:In some specific embodiments, the restarting process includes:
初始化CPU内部缓存及寄存器;Initialize CPU internal cache and registers;
初始化内存设备;Initialize the memory device;
初始化系统规范标准;Initialization system specification standard;
对PCIe设备进行枚举和初始化;Enumerate and initialize PCIe devices;
查询可引导设备并引导所述可引导设备重新进入所述操作系统。A bootable device is queried and the bootable device is directed to re-enter the operating system.
本申请实施例中对系统重启请求的响应从系统重启点开始,而非完整的执行整个重启流程,大幅减少了重启的工作内容,重启耗时明显降低,涉及操作系统重启的工作的效率明显提升。In the embodiment of the present application, the response to the system restart request starts from the system restart point, rather than completely executing the entire restart process, which greatly reduces the work content of the restart, significantly reduces the restart time, and significantly improves the efficiency of the work involving restarting the operating system. .
相应的,本申请还公开了一种操作系统重启装置,参见图3所示,包括处理器11和存储器12;其中,所述处理器11执行所述存储器12中保存的计算机程序时实现以下步骤:Correspondingly, the present application also discloses an operating system restarting device, as shown in FIG. 3 , comprising a
当收到系统重启请求,从操作系统的重启流程中确定系统重启点;When a system restart request is received, the system restart point is determined from the restart process of the operating system;
控制CPU从所述系统重启点开始,完成所述操作系统的重启;The control CPU starts from the system restart point, and completes the restart of the operating system;
所述完成所述操作系统的重启的过程包括:The process of completing the restarting of the operating system includes:
对PCIe设备进行枚举和初始化;Enumerate and initialize PCIe devices;
查询可引导设备并引导所述可引导设备重新进入所述操作系统。A bootable device is queried and the bootable device is directed to re-enter the operating system.
本申请实施例中对系统重启请求的响应从系统重启点开始,而非完整的执行整个重启流程,大幅减少了重启的工作内容,重启耗时明显降低,涉及操作系统重启的工作的效率明显提升。In the embodiment of the present application, the response to the system restart request starts from the system restart point, rather than completely executing the entire restart process, which greatly reduces the work content of the restart, significantly reduces the restart time, and significantly improves the efficiency of the work involving restarting the operating system. .
在一些具体的实施例中,所述处理器11执行所述存储器12中保存的计算机子程序时,具体可以实现以下步骤:In some specific embodiments, when the
当收到系统重启请求,通过硬件抽象层模块从操作系统的重启流程中确定所述硬件抽象层模块对应的系统重启点。When a system restart request is received, the system restart point corresponding to the hardware abstraction layer module is determined from the restart process of the operating system through the hardware abstraction layer module.
在一些具体的实施例中,所述处理器11执行所述存储器12中保存的计算机子程序时,具体可以实现以下步骤:In some specific embodiments, when the
控制所述操作系统完成系统清理操作。The operating system is controlled to complete the system cleaning operation.
在一些具体的实施例中,所述处理器11执行所述存储器12中保存的计算机子程序时,具体可以实现以下步骤:In some specific embodiments, when the
查询可引导设备以确定OS镜像文件,并通过所述OS镜像文件引导所述可引导设备重新进入所述操作系统。A bootable device is queried to determine an OS image file, and the bootable device is booted to re-enter the operating system through the OS image file.
在一些具体的实施例中,所述重启流程包括:In some specific embodiments, the restarting process includes:
初始化CPU内部缓存及寄存器;Initialize CPU internal cache and registers;
初始化内存设备;Initialize the memory device;
初始化系统规范标准;Initialization system specification standard;
对PCIe设备进行枚举和初始化;Enumerate and initialize PCIe devices;
查询可引导设备并引导所述可引导设备重新进入所述操作系统。A bootable device is queried and the bootable device is directed to re-enter the operating system.
进一步的,本申请实施例还公开了一种可读存储介质,这里所说的可读存储介质包括随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动硬盘、CD-ROM或技术领域内所公知的任意其他形式的存储介质。可读存储介质中存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:Further, an embodiment of the present application also discloses a readable storage medium, and the readable storage medium mentioned here includes random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable storage medium Programmable ROM, registers, hard disk, removable hard disk, CD-ROM, or any other form of storage medium known in the art. A computer program is stored in the readable storage medium, and when the computer program is executed by the processor, the following steps are implemented:
当收到系统重启请求,从操作系统的重启流程中确定系统重启点;When a system restart request is received, the system restart point is determined from the restart process of the operating system;
控制CPU从所述系统重启点开始,完成所述操作系统的重启;The control CPU starts from the system restart point, and completes the restart of the operating system;
所述完成所述操作系统的重启的过程包括:The process of completing the restarting of the operating system includes:
对PCIe设备进行枚举和初始化;Enumerate and initialize PCIe devices;
查询可引导设备并引导所述可引导设备重新进入所述操作系统。A bootable device is queried and the bootable device is directed to re-enter the operating system.
本申请实施例中对系统重启请求的响应从系统重启点开始,而非完整的执行整个重启流程,大幅减少了重启的工作内容,重启耗时明显降低,涉及操作系统重启的工作的效率明显提升。In the embodiment of the present application, the response to the system restart request starts from the system restart point, rather than completely executing the entire restart process, which greatly reduces the work content of the restart, reduces the time required for restarting, and significantly improves the efficiency of the work involving restarting the operating system. .
在一些具体的实施例中,所述可读存储介质中存储的计算机子程序被处理器执行时,具体可以实现以下步骤:In some specific embodiments, when the computer subprogram stored in the readable storage medium is executed by the processor, the following steps may be specifically implemented:
当收到系统重启请求,通过硬件抽象层模块从操作系统的重启流程中确定所述硬件抽象层模块对应的系统重启点。When a system restart request is received, the system restart point corresponding to the hardware abstraction layer module is determined from the restart process of the operating system through the hardware abstraction layer module.
在一些具体的实施例中,所述可读存储介质中存储的计算机子程序被处理器执行时,具体可以实现以下步骤:In some specific embodiments, when the computer subprogram stored in the readable storage medium is executed by the processor, the following steps may be specifically implemented:
控制所述操作系统完成系统清理操作。The operating system is controlled to complete the system cleaning operation.
在一些具体的实施例中,所述可读存储介质中存储的计算机子程序被处理器执行时,具体可以实现以下步骤:In some specific embodiments, when the computer subprogram stored in the readable storage medium is executed by the processor, the following steps may be specifically implemented:
查询可引导设备以确定OS镜像文件,并通过所述OS镜像文件引导所述可引导设备重新进入所述操作系统。A bootable device is queried to determine an OS image file, and the bootable device is booted to re-enter the operating system through the OS image file.
在一些具体的实施例中,所述重启流程包括:In some specific embodiments, the restarting process includes:
初始化CPU内部缓存及寄存器;Initialize CPU internal cache and registers;
初始化内存设备;Initialize the memory device;
初始化系统规范标准;Initialization system specification standard;
对PCIe设备进行枚举和初始化;Enumerate and initialize PCIe devices;
查询可引导设备并引导所述可引导设备重新进入所述操作系统。A bootable device is queried and the bootable device is directed to re-enter the operating system.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this document, relational terms such as first and second are used only to distinguish one entity or operation from another, and do not necessarily require or imply these entities or there is any such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device comprising a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
以上对本发明所提供的一种操作系统重启方法、系统及相关组件进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A method for restarting an operating system, a system and related components provided by the present invention have been described above in detail. In this paper, specific examples are used to illustrate the principles and implementations of the present invention. The descriptions of the above embodiments are only used to help understanding The method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. In summary, the content of this specification should not be It is understood as a limitation of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210242564.0A CN114579195B (en) | 2022-03-11 | 2022-03-11 | A kind of operating system restart method, system and related components |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210242564.0A CN114579195B (en) | 2022-03-11 | 2022-03-11 | A kind of operating system restart method, system and related components |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114579195A true CN114579195A (en) | 2022-06-03 |
CN114579195B CN114579195B (en) | 2023-08-18 |
Family
ID=81780911
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210242564.0A Active CN114579195B (en) | 2022-03-11 | 2022-03-11 | A kind of operating system restart method, system and related components |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114579195B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63265305A (en) * | 1987-04-23 | 1988-11-01 | Fanuc Ltd | Program restarting system |
US20040064300A1 (en) * | 2002-09-26 | 2004-04-01 | Mathiske Bernd J.W. | Method and apparatus for starting simulation of a computer system from a process checkpoint within a simulator |
JP2009187171A (en) * | 2008-02-05 | 2009-08-20 | Nec Corp | Checkpoint restart device and checkpoint restart method |
CN101814035A (en) * | 2008-11-19 | 2010-08-25 | 英特尔公司 | Method and system allowing rapid platform restart |
US20130061090A1 (en) * | 2011-09-06 | 2013-03-07 | Electronics And Telecommunications Research Institute | Partial rebooting recovery apparatus and method |
CN105786547A (en) * | 2014-12-26 | 2016-07-20 | 中兴通讯股份有限公司 | Operation system restarting method and apparatus |
-
2022
- 2022-03-11 CN CN202210242564.0A patent/CN114579195B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63265305A (en) * | 1987-04-23 | 1988-11-01 | Fanuc Ltd | Program restarting system |
US20040064300A1 (en) * | 2002-09-26 | 2004-04-01 | Mathiske Bernd J.W. | Method and apparatus for starting simulation of a computer system from a process checkpoint within a simulator |
JP2009187171A (en) * | 2008-02-05 | 2009-08-20 | Nec Corp | Checkpoint restart device and checkpoint restart method |
CN101814035A (en) * | 2008-11-19 | 2010-08-25 | 英特尔公司 | Method and system allowing rapid platform restart |
US20130061090A1 (en) * | 2011-09-06 | 2013-03-07 | Electronics And Telecommunications Research Institute | Partial rebooting recovery apparatus and method |
CN105786547A (en) * | 2014-12-26 | 2016-07-20 | 中兴通讯股份有限公司 | Operation system restarting method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN114579195B (en) | 2023-08-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5368947B2 (en) | Method and system for enabling fast platform restart | |
US8719560B2 (en) | Virtual machine monitor bridge to bare-metal booting | |
US9612846B2 (en) | Out-of-band (OOB) real-time inventory and configuration of original equipment manufacturer (OEM) devices using advanced configuration and power interface (ACPI) and unified extensible firmware interface (UEFI) services | |
CN104067223B (en) | For the method by providing the blunt input/output abstract reduction platform boot time | |
US7962736B1 (en) | Interactive pre-OS firmware update with repeated disabling of interrupts | |
US9395919B1 (en) | Memory configuration operations for a computing device | |
US11157349B2 (en) | Systems and methods for pre-boot BIOS healing of platform issues from operating system stop error code crashes | |
US11321077B1 (en) | Live updating of firmware behavior | |
CN103412769A (en) | External card parameter configuration method, equipment and system | |
US20180246840A1 (en) | Intelligent Certificate Discovery in Physical and Virtualized Networks | |
CN109828774B (en) | Server system and starting method thereof | |
US11106457B1 (en) | Updating firmware runtime components | |
CN108776595A (en) | A kind of recognition methods, device, equipment and the medium of the video card of GPU servers | |
US11915029B2 (en) | System and method of managing available memory of an information handling system | |
CN108287735A (en) | A kind of method, apparatus and server obtaining UEFI OS startup items | |
CN111880818B (en) | Installation method, system and device of virtual machine operating system | |
US7284084B2 (en) | ROM scan memory expander | |
US11144326B2 (en) | System and method of initiating multiple adaptors in parallel | |
CN113342365A (en) | Operating system deployment method, device, equipment and computer-readable storage medium | |
CN102043670A (en) | How to switch between different operating systems on a computer | |
CN114579195B (en) | A kind of operating system restart method, system and related components | |
CN114003421B (en) | Virtual machine timeout mechanism testing method, system, terminal and storage media | |
US7484083B1 (en) | Method, apparatus, and computer-readable medium for utilizing BIOS boot specification compliant devices within an extensible firmware interface environment | |
TW201525862A (en) | Computer system and activation method for computer system | |
CN114385537A (en) | A method, device, equipment and medium for dynamic allocation of page slot numbers |
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 |