CN112328331A - Method and device for replacing applications in partition mode - Google Patents
Method and device for replacing applications in partition mode Download PDFInfo
- Publication number
- CN112328331A CN112328331A CN202011376990.0A CN202011376990A CN112328331A CN 112328331 A CN112328331 A CN 112328331A CN 202011376990 A CN202011376990 A CN 202011376990A CN 112328331 A CN112328331 A CN 112328331A
- Authority
- CN
- China
- Prior art keywords
- partition
- space
- application
- deployment
- running
- 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
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/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a method and a device for replacing an application in a partition, which are applied to a partition operating system, wherein the partition operating system comprises at least one partition, each partition is divided into a first deployment space and a running space, and the running space is used for running a partition application in the first deployment space; the method comprises the following steps: dividing a second deployment space in the space of the partition operating system, determining an application replacement partition corresponding to the second deployment space, and deploying the application image to be loaded in the second deployment space; restarting the application replacement partition, and loading the application image to be loaded into the running space of the application replacement partition from the second deployment space; the running application replaces the application image in the partition's running space. The invention realizes the replacement of the application of a certain partition or a plurality of partitions in the running process of the operating system without influencing the running of other partitions, thereby improving the flexibility of the system application.
Description
Technical Field
The invention belongs to the technical field of computer system software, and particularly relates to a method and a device for replacing applications in a partitioned mode.
Background
With the development of a comprehensive and modular system, the operating system of a multi-partition structure conforming to the ARINC653 standard is more and more widely used, and the partition applications running on the operating system are more and more complex.
All the partitioned applications divide a whole continuous deployment space, and are loaded to the operation space and started to operate by the system once in the system starting process.
However, an application that is modified by loading debugging or an application that loads another function cannot run on the solidified partition system.
Disclosure of Invention
The invention provides a method and a device for replacing applications in a partition, which enable system integrators or developers to replace the applications in a target partition without influencing the execution state of other partitions.
The invention provides a method for replacing an application in a partition, which is applied to a partition operating system, wherein the partition operating system comprises at least one partition, each partition is divided into a first deployment space and a running space, and the running space is used for running a partition application in the first deployment space; the method comprises the following steps:
dividing a second deployment space in the space of the partition operating system, determining an application replacement partition corresponding to the second deployment space, and deploying an application image to be loaded in the second deployment space;
restarting the application replacement partition, and loading the application image to be loaded from a second deployment space into the running space of the application replacement partition;
running the application replaces the application image in the partition's running space.
Optionally, after the second deployment space is divided in the space of the partition operating system, the method further includes:
setting the application replacement identifier of the application replacement partition as support;
before the loading the application image to be loaded from the second deployment space into the runtime space of the application replacement partition, the method further comprises:
determining that an application replacement identifier of the application replacement partition is supported.
Optionally, the dividing the second deployment space in the space of the partition operating system includes:
in a system configuration phase of the partitioned operating system, the second deployment space is divided in a space of the partitioned operating system.
Optionally, the setting the application replacement identifier of the application replacement partition as support includes:
and in the system configuration stage of the partition operating system, setting the application replacement identifier of the application replacement partition as support.
Optionally, the deploying the application image to be loaded in the second deployment space includes:
and deploying the application image to be loaded in the second deployment space in a network, serial port or I/O access mode.
Optionally, the size of the second deployment space is not smaller than the size of the application image to be loaded.
Optionally, the determining the application replacement partition corresponding to the second deployment space includes:
and adding a name to the second deployment space, and sending the name to the application replacement partition.
The invention also provides a device for replacing the application in the partition, which is applied to a partition operating system, wherein the partition operating system comprises at least one partition, each partition is divided into a first deployment space and a running space, and the running space is used for running the partition application in the first deployment space; the device comprises:
the partition module is used for partitioning a second deployment space in the space of the partition operating system and determining an application replacement partition corresponding to the second deployment space;
the deployment module is used for deploying the application image to be loaded in the second deployment space;
a restart module for restarting the application replacement partition;
the loading module is used for loading the application image to be loaded from the second deployment space to the running space of the application replacement partition;
and the running module is used for running the application image in the running space of the application replacement partition.
Optionally, the apparatus further comprises:
the identifier setting module is used for setting the application replacement identifier of the application replacement partition as a support after the second deployment space is divided in the space of the partition operating system;
the loading module is specifically configured to determine that the application replacement identifier of the application replacement partition is a support before the application image to be loaded is loaded from the second deployment space into the running space of the application replacement partition.
Optionally, the dividing module is specifically configured to:
in a system configuration phase of the partitioned operating system, the second deployment space is divided in a space of the partitioned operating system.
The invention provides a method and a device for replacing an application in a partition, which are applied to a partition operating system, wherein the partition operating system comprises at least one partition, each partition is divided into a first deployment space and a running space, and the running space is used for running a partition application in the first deployment space; the method comprises the following steps: dividing a second deployment space in the space of the partition operating system, determining an application replacement partition corresponding to the second deployment space, and deploying the application image to be loaded in the second deployment space; restarting the application replacement partition, and loading the application image to be loaded into the running space of the application replacement partition from the second deployment space; the running application replaces the application image in the partition's running space. The invention realizes the replacement of the application of a certain partition or a plurality of partitions in the running process of the operating system without influencing the running of other partitions, thereby improving the flexibility of the system application.
Drawings
FIG. 1 is a diagram illustrating physical partitioning of memory space;
FIG. 2 is a flow diagram of a partition replacement application.
Detailed Description
Fig. 1 is a schematic diagram of physical division of a memory space, and referring to fig. 1, a partitioned operating system is divided into a module support layer, an operating system layer and an application layer, and the memory space includes a module support layer space, an operating system space and an application running space from bottom to top. The partition operating system comprises at least one partition, each partition is divided into a first deployment space and a running space, and the running space is used for running the partition application in the first deployment space. Each partition runs only one application. The IO space is a space divided for an external IO device. The divided second deployment space is used for deploying the application image to be loaded of the application replacement partition.
Fig. 2 is a flowchart of a partition replacement application, and as shown in fig. 2, the method for replacing a partition provided by the present invention is as follows:
step 1, in the whole system configuration and space division stage, an independent deployment space is divided for the partition application, and the size of the space is larger than or equal to the size of each application before and after the partition is changed for the application.
And 2, marking that the partition supports replacing the application in the configuration stage.
And 3, starting the operating system, and scheduling the partition application by all the partitions according to the time scheduling table.
And 4, loading a new partition application image to the partition RAM deployment space divided in the step 1) before replacing the partition application. The loading mode can be as follows:
1) loading an application image through a network;
2) loading an application image through a serial port;
3) and loading the application image positioned at the peripheral equipment in an I/O access and storage mode.
And 5, after the loading in the step 4 is finished, restarting the partition, and loading the replaced partition image loaded in the step 1) into the partition running space.
And 6, jumping to the newly loaded partition application inlet for execution, and finishing the replacement of the partition application.
Summarizing one possible embodiment, the specific working steps of the network-based partition replacement application provided by the present invention include:
s1, system configuration: and dividing a space with proper size in the system space as the deployment space of the partition.
And S2, starting the operation of the partition operating system. At this time, each partition is scheduled in turn according to the arrangement of the time schedule.
And S3, loading the application image with the new partition into the space divided in the S1 through the network.
And S4, restarting the partition, and copying the new image to the running space.
And S5, the system jumps into the partition application entrance for execution.
S6, if the partition application needs to be replaced for multiple times, repeating the steps S3 to S5.
The method for replacing the application provided by the invention supports the replacement of the application for a plurality of partitions.
Claims (10)
1. The method for replacing the application in the partition is applied to a partition operating system, wherein the partition operating system comprises at least one partition, each partition is divided into a first deployment space and a running space, and the running space is used for running the partition application in the first deployment space; the method comprises the following steps:
dividing a second deployment space in the space of the partition operating system, determining an application replacement partition corresponding to the second deployment space, and deploying an application image to be loaded in the second deployment space;
restarting the application replacement partition, and loading the application image to be loaded from a second deployment space into the running space of the application replacement partition;
running the application replaces the application image in the partition's running space.
2. The method of claim 1, wherein after partitioning the second deployment space in the space of the partitioned operating system, the method further comprises:
setting the application replacement identifier of the application replacement partition as support;
before the loading the application image to be loaded from the second deployment space into the runtime space of the application replacement partition, the method further comprises:
determining that an application replacement identifier of the application replacement partition is supported.
3. The method of claim 2, wherein partitioning the second deployment space in the space of the partitioned operating system comprises:
in a system configuration phase of the partitioned operating system, the second deployment space is divided in a space of the partitioned operating system.
4. The method of claim 3, wherein setting the application replacement identifier of the application replacement partition to support comprises:
and in the system configuration stage of the partition operating system, setting the application replacement identifier of the application replacement partition as support.
5. The method of claim 1, wherein deploying the application image to be loaded in the second deployment space comprises:
and deploying the application image to be loaded in the second deployment space in a network, serial port or I/O access mode.
6. The method of claim 1, wherein a size of the second deployment space is not less than a size of an application image to be loaded.
7. The method of claim 1, wherein determining the application replacement partition corresponding to the second deployment space comprises:
and adding a name to the second deployment space, and sending the name to the application replacement partition.
8. The device for replacing the application in the partition is applied to a partition operating system, wherein the partition operating system comprises at least one partition, each partition is divided into a first deployment space and a running space, and the running space is used for running the partition application in the first deployment space; the device comprises:
the partition module is used for partitioning a second deployment space in the space of the partition operating system and determining an application replacement partition corresponding to the second deployment space;
the deployment module is used for deploying the application image to be loaded in the second deployment space;
a restart module for restarting the application replacement partition;
the loading module is used for loading the application image to be loaded from the second deployment space to the running space of the application replacement partition;
and the running module is used for running the application image in the running space of the application replacement partition.
9. The apparatus of claim 8, further comprising:
the identifier setting module is used for setting the application replacement identifier of the application replacement partition as a support after the second deployment space is divided in the space of the partition operating system;
the loading module is specifically configured to determine that the application replacement identifier of the application replacement partition is a support before the application image to be loaded is loaded from the second deployment space into the running space of the application replacement partition.
10. The apparatus of claim 9, wherein the partitioning module is specifically configured to:
in a system configuration phase of the partitioned operating system, the second deployment space is divided in a space of the partitioned operating system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011376990.0A CN112328331B (en) | 2020-11-30 | 2020-11-30 | Method and device for replacing applications in partition mode |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011376990.0A CN112328331B (en) | 2020-11-30 | 2020-11-30 | Method and device for replacing applications in partition mode |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112328331A true CN112328331A (en) | 2021-02-05 |
CN112328331B CN112328331B (en) | 2023-03-24 |
Family
ID=74308178
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011376990.0A Active CN112328331B (en) | 2020-11-30 | 2020-11-30 | Method and device for replacing applications in partition mode |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112328331B (en) |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6557169B1 (en) * | 1998-10-11 | 2003-04-29 | International Business Machines Corporation | Method and system for changing the operating system of a workstation connected to a data transmission network |
US20070061441A1 (en) * | 2003-10-08 | 2007-03-15 | Landis John A | Para-virtualized computer system with I/0 server partitions that map physical host hardware for access by guest partitions |
US7668938B1 (en) * | 2000-01-14 | 2010-02-23 | Microsoft Corporation | Method and system for dynamically purposing a computing device |
CN101996111A (en) * | 2010-11-30 | 2011-03-30 | 华为技术有限公司 | Switching method, device and distributed blade server system |
CN104572206A (en) * | 2015-01-14 | 2015-04-29 | 厦门为那通信科技有限公司 | Application program self updating and backup recovery method |
US20150169329A1 (en) * | 2013-12-16 | 2015-06-18 | International Business Machines Corporation | Live Operating System Update Mechanisms |
CN104978231A (en) * | 2015-07-10 | 2015-10-14 | 上海斐讯数据通信技术有限公司 | Multisystem device based on internal storage partitions and loading and switching method thereof |
CN105094973A (en) * | 2015-07-31 | 2015-11-25 | 上海卫星工程研究所 | ADA program partition running supporting system based on sensitive instruction substitution |
US20160085543A1 (en) * | 2014-09-24 | 2016-03-24 | Oracle International Corporation | System and method for supporting patching in a multitenant application server environment |
CN105677335A (en) * | 2015-12-29 | 2016-06-15 | 广东欧珀移动通信有限公司 | Method and device for increasing first starting speed of mobile terminal |
CN105677413A (en) * | 2016-01-06 | 2016-06-15 | 中国航空无线电电子研究所 | Multi-partition application post-loading method for comprehensive modularized avionics system |
CN106201527A (en) * | 2016-07-15 | 2016-12-07 | 北京首都在线科技股份有限公司 | A kind of Application Container framework of logic-based subregion |
CN107967141A (en) * | 2017-11-27 | 2018-04-27 | 北京小米移动软件有限公司 | Operating system update method, apparatus and terminal |
CN111694585A (en) * | 2020-06-02 | 2020-09-22 | 深圳Tcl数字技术有限公司 | Method, system, terminal and storage medium for replacing system partition file |
-
2020
- 2020-11-30 CN CN202011376990.0A patent/CN112328331B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6557169B1 (en) * | 1998-10-11 | 2003-04-29 | International Business Machines Corporation | Method and system for changing the operating system of a workstation connected to a data transmission network |
US7668938B1 (en) * | 2000-01-14 | 2010-02-23 | Microsoft Corporation | Method and system for dynamically purposing a computing device |
US20070061441A1 (en) * | 2003-10-08 | 2007-03-15 | Landis John A | Para-virtualized computer system with I/0 server partitions that map physical host hardware for access by guest partitions |
CN101996111A (en) * | 2010-11-30 | 2011-03-30 | 华为技术有限公司 | Switching method, device and distributed blade server system |
US20150169329A1 (en) * | 2013-12-16 | 2015-06-18 | International Business Machines Corporation | Live Operating System Update Mechanisms |
US20160085543A1 (en) * | 2014-09-24 | 2016-03-24 | Oracle International Corporation | System and method for supporting patching in a multitenant application server environment |
CN104572206A (en) * | 2015-01-14 | 2015-04-29 | 厦门为那通信科技有限公司 | Application program self updating and backup recovery method |
CN104978231A (en) * | 2015-07-10 | 2015-10-14 | 上海斐讯数据通信技术有限公司 | Multisystem device based on internal storage partitions and loading and switching method thereof |
CN105094973A (en) * | 2015-07-31 | 2015-11-25 | 上海卫星工程研究所 | ADA program partition running supporting system based on sensitive instruction substitution |
CN105677335A (en) * | 2015-12-29 | 2016-06-15 | 广东欧珀移动通信有限公司 | Method and device for increasing first starting speed of mobile terminal |
CN105677413A (en) * | 2016-01-06 | 2016-06-15 | 中国航空无线电电子研究所 | Multi-partition application post-loading method for comprehensive modularized avionics system |
CN106201527A (en) * | 2016-07-15 | 2016-12-07 | 北京首都在线科技股份有限公司 | A kind of Application Container framework of logic-based subregion |
CN107967141A (en) * | 2017-11-27 | 2018-04-27 | 北京小米移动软件有限公司 | Operating system update method, apparatus and terminal |
CN111694585A (en) * | 2020-06-02 | 2020-09-22 | 深圳Tcl数字技术有限公司 | Method, system, terminal and storage medium for replacing system partition file |
Non-Patent Citations (5)
Title |
---|
D.P. SCARPAZZA等: "Transparent system-level migration of PGAS applications using Xen on InfiniBand", 《2007 IEEE INTERNATIONAL CONFERENCE ON CLUSTER COMPUTING》 * |
周虎等: "基于综合电子的某型运载器电气系统方案设计", 《宇航总体技术》 * |
张军红等: "基于软件虚拟化技术的新一代航空机载软件设计", 《南京航空航天大学学报》 * |
李运喜等: "时间分区的设计与实现", 《航空计算技术》 * |
郝继锋等: "多核分区管理方法的设计与实现", 《计算机工程与设计》 * |
Also Published As
Publication number | Publication date |
---|---|
CN112328331B (en) | 2023-03-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102609352A (en) | Parallel testing method and parallel testing server | |
CN111831289B (en) | Micro-service automatic deployment management system and method | |
CN111274033B (en) | Resource deployment method, device, server and storage medium | |
CN111857951A (en) | Containerized deployment platform and deployment method | |
CN111682973A (en) | Method and system for arranging edge cloud | |
US20190056942A1 (en) | Method and apparatus for hardware acceleration in heterogeneous distributed computing | |
CN105677413A (en) | Multi-partition application post-loading method for comprehensive modularized avionics system | |
CN113157379A (en) | Cluster node resource scheduling method and device | |
CN113204353A (en) | Big data platform assembly deployment method and device | |
CN112328331B (en) | Method and device for replacing applications in partition mode | |
CN108062239A (en) | A kind of accelerator loading method, system and accelerator loading device | |
CN110958138B (en) | Container expansion method and device | |
CN117435324A (en) | Task scheduling method based on containerization | |
WO2021098257A1 (en) | Service processing method based on heterogeneous computing platform | |
CN108255526B (en) | System starting and running method and device | |
CN115964176B (en) | Cloud computing cluster scheduling method, electronic equipment and storage medium | |
CN107015883B (en) | Dynamic data backup method and device | |
CN112181431A (en) | Distributed data packaging method and system, storage medium and computing device | |
CN111383704B (en) | Built-in self-test circuit of memory and test method for memory | |
CN110308914B (en) | Upgrade processing method, device, equipment, system and computer readable storage medium | |
US20020156611A1 (en) | Performance simulation process, and multiprocessor application production process, and devices for implementing said processes | |
CN116010093A (en) | Data processing method, apparatus, computer device and readable storage medium | |
CN115129449A (en) | Resource scheduling method and device for shared GPU | |
CN111897599A (en) | Service method, device, equipment and storage medium based on microkernel model plug-in mode | |
JP2021015588A (en) | System and method for module engineering with sequence library |
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 |