CN112328331B - Method and device for replacing applications in partition mode - Google Patents

Method and device for replacing applications in partition mode Download PDF

Info

Publication number
CN112328331B
CN112328331B CN202011376990.0A CN202011376990A CN112328331B CN 112328331 B CN112328331 B CN 112328331B CN 202011376990 A CN202011376990 A CN 202011376990A CN 112328331 B CN112328331 B CN 112328331B
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.)
Active
Application number
CN202011376990.0A
Other languages
Chinese (zh)
Other versions
CN112328331A (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.)
Xian Aeronautics Computing Technique Research Institute of AVIC
Original Assignee
Xian Aeronautics Computing Technique Research Institute of AVIC
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 Xian Aeronautics Computing Technique Research Institute of AVIC filed Critical Xian Aeronautics Computing Technique Research Institute of AVIC
Priority to CN202011376990.0A priority Critical patent/CN112328331B/en
Publication of CN112328331A publication Critical patent/CN112328331A/en
Application granted granted Critical
Publication of CN112328331B publication Critical patent/CN112328331B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • 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/4406Loading of operating system

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

Method and device for replacing applications in partition mode
Technical Field
The invention belongs to the technical field of computer system software, and particularly relates to a method and a device for partition replacement application.
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 running space by the system once in the system starting process and started to run.
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 partitions, which enable system integrators or developers to replace the applications in target partitions under the condition of not influencing the execution states 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 a 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 a partition operating system to run. At this time, each partition is scheduled in turn according to the arrangement of the time schedule.
And S3, loading the new application image of the partition into the space divided in the S1 through a network.
And S4, restarting the partition, and copying the new image to the running space.
And S5, the system jumps into a partition application entrance for execution.
And S6, if the partition application needs to be replaced for multiple times, repeating the step S3 to the step S5.
The method for replacing the application provided by the invention supports the replacement of the application for a plurality of partitions.

Claims (7)

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 image in the running space of the application replacement partition;
after the 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;
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.
2. The method of claim 1, 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.
3. The method according to claim 2, wherein the setting the application replacement identifier of the application replacement partition as 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.
4. 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.
5. 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.
6. 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;
the running module is used for running the application image in the running space of the application replacement partition;
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 supported before loading the application image to be loaded from the second deployment space into the running space of the application replacement partition;
the partitioning module is further configured to add a name to the second deployment space, and send the name to the application replacement partition.
7. The apparatus of claim 6, 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.
CN202011376990.0A 2020-11-30 2020-11-30 Method and device for replacing applications in partition mode Active CN112328331B (en)

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 CN112328331A (en) 2021-02-05
CN112328331B true 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 (11)

* Cited by examiner, † Cited by third party
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
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
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
US9626180B2 (en) * 2013-12-16 2017-04-18 International Business Machines Corporation Live operating system update mechanisms
EP3198431A1 (en) * 2014-09-24 2017-08-02 Oracle International Corporation System and method for supporting patching in a multitenant application server environment

Patent Citations (11)

* Cited by examiner, † Cited by third party
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
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
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)

* Cited by examiner, † Cited by third party
Title
Transparent system-level migration of PGAS applications using Xen on InfiniBand;D.P. Scarpazza等;《2007 IEEE International Conference on Cluster Computing》;20080919;全文 *
基于综合电子的某型运载器电气系统方案设计;周虎等;《宇航总体技术》;20190515(第03期);全文 *
基于软件虚拟化技术的新一代航空机载软件设计;张军红等;《南京航空航天大学学报》;20191215(第06期);全文 *
多核分区管理方法的设计与实现;郝继锋等;《计算机工程与设计》;20180216(第02期);全文 *
时间分区的设计与实现;李运喜等;《航空计算技术》;20100430;第40卷(第4期);全文 *

Also Published As

Publication number Publication date
CN112328331A (en) 2021-02-05

Similar Documents

Publication Publication Date Title
CN102609352B (en) Parallel testing method and parallel testing server
CN111682973B (en) Method and system for arranging edge cloud
CN111274033B (en) Resource deployment method, device, server and storage medium
CN102279766A (en) Method and system for concurrently simulating processors and scheduler
US20190056942A1 (en) Method and apparatus for hardware acceleration in heterogeneous distributed computing
CN111857951A (en) Containerized deployment platform and deployment method
CN111831289B (en) Micro-service automatic deployment management system and method
CN113157379A (en) Cluster node resource scheduling method and device
CN105677413A (en) Multi-partition application post-loading method for comprehensive modularized avionics system
CN111666210A (en) Chip verification method and device
CN116382880A (en) Task execution method, device, processor, electronic equipment and storage medium
CN112328331B (en) Method and device for replacing applications in partition mode
CN110958138B (en) Container expansion method and device
CN115964176B (en) Cloud computing cluster scheduling method, electronic equipment and storage medium
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
CN115129449A (en) Resource scheduling method and device for shared GPU
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
CN113176929A (en) Containerized deployment method and platform for domestic operating system
CN110308914B (en) Upgrade processing method, device, equipment, system and computer readable storage medium
CN111897599A (en) Service method, device, equipment and storage medium based on microkernel model plug-in mode
CN108573142B (en) Method and device for realizing hook
JP2021015588A (en) System and method for module engineering with sequence library
CN111581041A (en) Method and equipment for testing performance of magnetic disk

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