CN102306112B - Method for improving scheduling flexibility and resource utilization rate of automotive open system architecture operating system (AUTOSAR OS) based on Contract - Google Patents

Method for improving scheduling flexibility and resource utilization rate of automotive open system architecture operating system (AUTOSAR OS) based on Contract Download PDF

Info

Publication number
CN102306112B
CN102306112B CN 201110230201 CN201110230201A CN102306112B CN 102306112 B CN102306112 B CN 102306112B CN 201110230201 CN201110230201 CN 201110230201 CN 201110230201 A CN201110230201 A CN 201110230201A CN 102306112 B CN102306112 B CN 102306112B
Authority
CN
China
Prior art keywords
contract
scheduling
server
autosar
module
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.)
Expired - Fee Related
Application number
CN 201110230201
Other languages
Chinese (zh)
Other versions
CN102306112A (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.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
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 Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN 201110230201 priority Critical patent/CN102306112B/en
Publication of CN102306112A publication Critical patent/CN102306112A/en
Application granted granted Critical
Publication of CN102306112B publication Critical patent/CN102306112B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明涉及一种基于contract的提高AUTOSAR OS调度灵活性和资源利用率的方法,在原来的AUTOSAR OS软件平台结构上增加一层抽象层,该抽象层由四个模块构成,分别为核心模块core、动态回收模块Dynamic reclamation、分层调度模块Hierarchical scheduling和空闲能力共享模块Spare capacity sharing;该方法把contract模型应用到AUTOSAROS上,使AUTOSAR OS对于用户提出的复杂的时间需求更加容易满足,与此同时引入contract模型之后,还可以使AUTOSAROS支持动态变化的时间需求。本发明与现有技术相比,有益的效果是:1.基于contract模型,能够满足用户复杂的时间需求。2.通过资源预留和线上/线下可调度性分析保证系统的最小资源需求和可调度性。3.通过回收和重分配空闲处理器能力获得较优的资源利用率。4.用户可以自由选择最合适的调度算法来调度相应的tasks。

Figure 201110230201

The invention relates to a contract-based method for improving AUTOSAR OS scheduling flexibility and resource utilization. An abstraction layer is added to the original AUTOSAR OS software platform structure. The abstraction layer is composed of four modules, which are core modules core , Dynamic reclamation module, Hierarchical scheduling module and Spare capacity sharing module; this method applies the contract model to AUTOSAROS, making it easier for AUTOSAR OS to meet the complex time requirements put forward by users, and at the same time After introducing the contract model, AUTOSAROS can also support dynamically changing time requirements. Compared with the prior art, the present invention has the following beneficial effects: 1. Based on the contract model, it can meet the complex time requirements of users. 2. Ensure the minimum resource requirements and schedulability of the system through resource reservation and online/offline schedulability analysis. 3. Obtain better resource utilization by reclaiming and reallocating idle processor capacity. 4. Users can freely choose the most appropriate scheduling algorithm to schedule corresponding tasks.

Figure 201110230201

Description

基于contract的提高AUTOSAR OS调度灵活性和资源利用率的方法Method of Improving AUTOSAR OS Scheduling Flexibility and Resource Utilization Based on Contract

技术领域 technical field

本发明涉及嵌入式实时操作系统对资源的的调度机制,尤其是一种基于contract的提高AUTOSAR OS调度灵活性和资源利用率的方法。 The invention relates to a resource scheduling mechanism of an embedded real-time operating system, in particular to a contract-based method for improving AUTOSAR OS scheduling flexibility and resource utilization.

背景技术 Background technique

Contract模型是应用层和调度层之间的接口,它提出了一个较高层的抽象,使开发者只需要制定应用程序的需要,而不需要把这些需求和特定的调度算法的参数相关联起来。AUTOSAR(AUTomotive Open System Architecture)是一个标准化的开放式汽车软件架构。AUTOSAR OS是符合AUTOSAR标准的嵌入式实时操作系统,是一个静态配置的多任务单处理器的RTOS。本发明所参照的AUTOSAR标准为3.0.1版本,并且实现在由浙江大学自主研发的符合AUTOSAR标准的OS——SmartOSEK OS上。 The contract model is the interface between the application layer and the scheduling layer. It proposes a higher-level abstraction, so that developers only need to formulate the needs of the application without associating these needs with the parameters of a specific scheduling algorithm. AUTOSAR (AUTomotive Open System Architecture) is a standardized open automotive software architecture. AUTOSAR OS is an embedded real-time operating system that conforms to the AUTOSAR standard, and is a statically configured multi-task single-processor RTOS. The AUTOSAR standard referred to in the present invention is version 3.0.1, and it is realized on the SmartOSEK OS, an OS conforming to the AUTOSAR standard independently developed by Zhejiang University.

在实时系统领域,传统理念认为RTOS只需要满足汽车功能需求说明书规定的时间需求即可。事实上,在现如今较多的场合下,RTOS中软实时的task比硬实时的task要常见的多。此外,随着在汽车领域用到的微处理器的处理能力的不断提升,满足那些时间需求变得相对容易。然而由于越来越多的功能单元被集成到一个处理器上,对于处理器资源的划分问题变得越来越重要。所以,目前大多数AUTOSAR OS实现过程中,开发者为了避免不同的task间因为资源占用的问题相互冲突,在配置时每个task都只能申请最小的资源。在这样的配置前提下,对于处理器资源的整体利用率会比较低。在引进contract模型之后,就可以把几个任务指派到一个contract上,这样contract和contract之间就可以通过协商的形式来动态的回收空闲的处理器资源并且分配到比较忙的contract对应的server上,从而提高RTOS的资源调度的灵活性及利用率。 In the field of real-time systems, the traditional concept holds that RTOS only needs to meet the time requirements stipulated in the automotive functional requirements specification. In fact, in many occasions nowadays, soft real-time tasks in RTOS are more common than hard real-time tasks. Furthermore, meeting those timing requirements has become relatively easy as the processing power of microprocessors used in the automotive field continues to increase. However, since more and more functional units are integrated into one processor, the problem of dividing processor resources becomes more and more important. Therefore, in the implementation process of most AUTOSAR OS at present, in order to avoid conflicts between different tasks due to resource occupation, developers can only apply for the minimum resource during configuration. Under such a configuration premise, the overall utilization rate of processor resources will be relatively low. After the contract model is introduced, several tasks can be assigned to a contract, so that contract and contract can dynamically reclaim idle processor resources and allocate them to the server corresponding to the busy contract through negotiation. , so as to improve the flexibility and utilization rate of resource scheduling of RTOS.

在现在的实时操作系统中,存在如下问题:由于要把多个功能模块映射到一个处理器执行,为不使各功能模块相应的task起冲突,需要降低每个task的资源占用量,因而导致整个处理器资源利用率的下降。 In the current real-time operating system, there are the following problems: since multiple functional modules are to be mapped to one processor for execution, in order not to cause conflicts between the corresponding tasks of each functional module, it is necessary to reduce the resource usage of each task, resulting in A drop in overall processor resource utilization.

发明内容 Contents of the invention

本发明的目的正是要解决上述技术存在的不足,而提供一种基于contract的提高AUTOSAR OS调度灵活性和资源利用率的方法,基于contract的方法用来提高嵌入式实时操作系统灵活性和对资源的利用率。 The purpose of the present invention is to solve the deficiencies in the above-mentioned technology, and provide a method based on contract to improve AUTOSAR OS scheduling flexibility and resource utilization. The method based on contract is used to improve the flexibility and support of embedded real-time operating system resource utilization.

本发明解决其技术问题采用的技术方案:一般的AUTOSAR OS是静态配置的,这种基于contract的提高AUTOSAR OS调度灵活性和资源利用率的方法把contract模型应用到AUTOSAR OS上,使AUTOSAR  OS对于用户提出的复杂的时间需求更加容易满足,与此同时引入contract模型之后,还可以使AUTOSAR OS支持动态变化的时间需求。 The technical solution adopted by the present invention to solve the technical problem: the general AUTOSAR OS is statically configured, and this contract-based method for improving the scheduling flexibility and resource utilization of the AUTOSAR OS applies the contract model to the AUTOSAR OS, so that the AUTOSAR OS is suitable for the AUTOSAR OS The complex time requirements put forward by users are easier to meet. At the same time, after introducing the contract model, AUTOSAR OS can also support dynamically changing time requirements.

在原来的AUTOSAR OS软件平台结构上增加一层抽象层,该抽象层由四个模块构成,分别为核心模块core、动态回收模块Dynamic reclamation、分层调度模块Hierarchical scheduling和空闲能力共享模块Spare capacity sharing; A layer of abstraction is added to the original AUTOSAR OS software platform structure. The abstraction layer consists of four modules, namely the core module core, the dynamic reclamation module Dynamic reclamation, the hierarchical scheduling module Hierarchical scheduling and the spare capacity sharing module Spare capacity sharing ;

(1)、通过核心模块指定contract的属性和相关的操作,Contract的属性就是一些参数,用于创建contract,进行contract之间的协商,绑定task到server以及RTOS用来保证最小资源需求的资源预留机制; (1) Specify the properties of the contract and related operations through the core module. The properties of the contract are some parameters, which are used to create a contract, negotiate between contracts, bind tasks to servers and RTOS resources to ensure minimum resource requirements reservation mechanism;

(2)、动态回收模块是一个功能模块,通过动态回收模块在系统存在空闲处理器能力时执行动态回收,通过空闲能力共享模块分配那些server没有使用的挂起的空闲处理器能力;如果在运行时,由于task的异常终止或是在调度点之前完成而产生了额外的空闲处理器能力,根据contract的配置,通过动态回收和空闲能力共享两个模块的合作,这些空闲的处理能力会被分配到那些需要额外的处理能力的不同的server上。 (2) The dynamic recovery module is a functional module, which executes dynamic recovery when there is idle processor capacity in the system through the dynamic recovery module, and allocates the suspended idle processor capacity that is not used by the server through the idle capacity sharing module; if it is running When the task is abnormally terminated or completed before the scheduling point, additional idle processing capacity is generated. According to the configuration of the contract, through the cooperation of the two modules of dynamic recycling and idle capacity sharing, these idle processing capacity will be allocated to different servers that require additional processing power.

(3)、通过分层调度模块进行全局调度和局部调度,分层调度主要发生在两个层面——全局调度和局部调度。如附图2所示,全局调度用于决定哪个server能够访问处理器资源,而局部调度是在server内部的调度,用于决定调度哪个task进行执行。 (3) Global scheduling and local scheduling are carried out through the hierarchical scheduling module. Hierarchical scheduling mainly occurs at two levels—global scheduling and local scheduling. As shown in Figure 2, the global scheduling is used to determine which server can access processor resources, and the local scheduling is the internal scheduling of the server, which is used to determine which task is scheduled for execution.

在本发明中,该方法能够把几个task指派到某个contract,配置contract的属性,这些contract的属性包括了创建contract、contract之间的协商、绑定task到server以及资源预留机制的相应参数。通过资源预留机制来保证AUTOSAR OS的最小化资源需求,通过contract协商和再协商机制(线上和线下的可调度性分析)来保证OS任务的可调度性。 In the present invention, the method can assign several tasks to a certain contract, and configure the properties of the contract. These contract properties include creating a contract, negotiating between contracts, binding tasks to servers, and corresponding resource reservation mechanisms. parameter. The minimum resource requirements of AUTOSAR OS are guaranteed through the resource reservation mechanism, and the schedulability of OS tasks is guaranteed through the contract negotiation and renegotiation mechanism (online and offline schedulability analysis).

在本发明中,该方法引入了contract模型,每多个task对应于一个contract,对于每个contract的调度策略进行配置。这样用户就能够从目前实现的众多高级的实时调度算法中选择最合适的调度策略来满足自己的需求,可以实现对不同的task指定不同的调度策略。 In the present invention, the method introduces a contract model, and each multiple tasks corresponds to a contract, and the scheduling policy of each contract is configured. In this way, users can choose the most suitable scheduling strategy to meet their needs from many advanced real-time scheduling algorithms currently implemented, and can specify different scheduling strategies for different tasks.

作为优选,当contracts准备就绪之后,这些contracts需要进行协商,评价其能否通过可调度性测试,系统会检查在保证先前已有contracts正常运行的情况下,是否有足够的资源满足新添加的contract的最小资源需求;如果协商通过,系统会保留足够的资源预算来满足新添加的contract的最小资源需求,同时会新建一个对应contract的server,server是contract在系统运行状态下的软件对象,它存储了contract的所有信息;server会对绑定到它上面的task的执行条件进行管理,只要task被绑定到了某一server上面,那么分层调度器就会调度其执行。在附图2中,全局调度器为基于sporadic server的固定优先级调度(FP),而局部调度器有三个,实现的算法分别为EDF,FP和FIFO。 Preferably, when the contracts are ready, these contracts need to be negotiated to evaluate whether they can pass the schedulability test. The system will check whether there are enough resources to satisfy the newly added contract under the condition of ensuring the normal operation of the previous contracts. The minimum resource requirement of the contract; if the negotiation is passed, the system will reserve enough resource budget to meet the minimum resource requirement of the newly added contract, and will create a new server corresponding to the contract. The server is the software object of the contract in the system running state. It stores All the information of the contract; the server will manage the execution conditions of the tasks bound to it, as long as the task is bound to a certain server, the hierarchical scheduler will schedule its execution. In Figure 2, the global scheduler is fixed priority scheduling (FP) based on sporadic server, and there are three local schedulers, and the implemented algorithms are EDF, FP and FIFO.

本发明与现有技术相比,有益的效果是: Compared with the prior art, the present invention has beneficial effects as follows:

1. 基于contract模型,能够满足用户复杂的时间需求。 1. Based on the contract model, it can meet the complex time requirements of users.

2. 通过资源预留和线上/线下可调度性分析保证系统的最小资源需求和可调度性。 2. Ensure the minimum resource requirements and schedulability of the system through resource reservation and online/offline schedulability analysis.

3. 通过回收和重分配空闲处理器能力获得较优的资源利用率。 3. Obtain better resource utilization by reclaiming and reallocating idle processor capacity.

4. 用户可以自由选择最合适的调度算法来调度相应的tasks。 4. Users are free to choose the most appropriate scheduling algorithm to schedule corresponding tasks.

附图说明 Description of drawings

图1是应用本发明之前的SmartSAR软件平台架构示意图; Fig. 1 is a schematic diagram of the SmartSAR software platform architecture before applying the present invention;

图2是分层调度模型示意图; Fig. 2 is a schematic diagram of a hierarchical scheduling model;

图3是应用本发明之后的SmartSAR软件平台架构; Fig. 3 is the SmartSAR software platform architecture after applying the present invention;

图4是SmartOSEK OS中task的执行过程。 Figure 4 is the execution process of the task in SmartOSEK OS.

具体实施方式 Detailed ways

下面结合附图和实施例对本发明作进一步说明: Below in conjunction with accompanying drawing and embodiment the present invention will be further described:

本发明在浙大自主研发的符合AUTOSAR标准的RTOS——SmartOSEK OS上得到了实现。SmartOSEK OS和SmartSAR软件平台的其他模块紧密相连,在没有引入本发明之前,SmartSAR的软件平台架构如附图1所示,在引入本发明之后,在SmartOSEK OS模块内增加了另外一个子模块如附图3所示。 The present invention is realized on the RTOS——SmartOSEK OS, which conforms to the AUTOSAR standard independently developed by Zhejiang University. SmartOSEK OS is closely connected with other modules of the SmartSAR software platform. Before the introduction of the present invention, the software platform architecture of SmartSAR is shown in Figure 1. After the introduction of the present invention, another sub-module is added in the SmartOSEK OS module as shown in the attached Figure 3 shows.

在引入本发明到SmartOSEK之后,定义的数据结构如下: After introducing the present invention to SmartOSEK, the defined data structure is as follows:

表1.contract结构的属性 Table 1. Properties of the contract structure

参数名parameter name 参数描述Parameter Description max_periodmax_period Server的最大周期.The maximum period of the server. min_budgetmin_budget Server每个周期最小的执行能力.The minimum execution capability of the server in each cycle. deadlinedeadline Server的截止时间Server deadline D=TD=T Server的截止时间是否等于周期.Whether the server's deadline is equal to the period. budget_overranbudget_overran 当前正在运行的任务的预算已经过期.The budget for the currently running task has expired. deadline_misseddeadline_missed 当前任务超过了截止时间.The current task has exceeded its deadline. granularitygranularity 指示需要使用额外的空闲能力以及使用额外空闲能力的方式:连续、离散或无.Indicates that additional spare capacity needs to be used and how: continuous, discrete, or none. min_periodmin_period Server的最小周期.The minimum period of the server. max_budgetmax_budget 可用的最大预算.The maximum budget available. utilization_setutilization_set {bdget,period}序偶的集合,用于离散的空闲能力分配.A collection of {bdget,period} ordinal pairs, used for discrete idle capacity allocation. importanceimportance 用于连续的空闲能力分配的固定优先级.Fixed priority for continuous allocation of free capacity. qualityquality 在连续的空闲能力分配中,两个固定优先级相同的server所分配的相对比例.In continuous idle capacity allocation, the relative proportion allocated by two servers with the same fixed priority. scheduling policyscheduling policy 局部调度器调度策略选择: FP, EDF, FIFO, NON.Local scheduler scheduling strategy selection: FP, EDF, FIFO, NON.

表2.server结构额外的属性 Table 2. Additional attributes of the server structure

参数名parameter name 参数描述Parameter Description prioritypriority 调度参数.Scheduling parameters. vres_idvres_id API的id.id of the API. Tasktask 绑定到server上的tasks.Bind to the tasks on the server. task_numtask_num 绑定到server上的task的数目.The number of tasks bound to the server. task_finished_numtask_finished_num 在一个周期内完成的task的数目.The number of tasks to complete in one cycle. sporadic serversporadic server Sporadic server被分配到这个server上.The Sporadic server is assigned to this server. spare_capacityspare_capacity 系统分配的空闲的能力.Free capacity allocated by the system. used_capacityused_capacity Server已经使用掉的能力.The capacity that the server has already used.

表3.sporadic server结构 Table 3. sporadic server structure

参数名parameter name 参数描述Parameter Description replenishment queuereplenishment queue 用来存储补充时间和空闲处理器能力数量的数组.An array to store replenishment times and the amount of free processor power. Alarm [2]Alarm [2] 指示哪个alarm到期后被消耗的处理器能力能进行补充.Indicates which alarm expires and consumes processor power that can be replenished. remaining budgetremaining budget Server上没有使用的累积的预算.The accumulated budget that is not used on the server. budget startbudget start 当sporadic server从空闲状态进入激活态时,task开始执行,处理器能力开始被消耗.When the sporadic server enters the active state from the idle state, the task starts to execute and the processor power starts to be consumed.

表1所列的为SmartOSEK OS中的contract的属性以及各个属性的描述。由于server基本上包含了contract的所有信息,所以表2只列出了除contract之外的属性和相应的描述。需要注意的是有些模块是可扩展的,属于这些模块的属性也是可扩展的。在AUTOSAR OS中,server可以被认为是特殊的task由全局调度器进行调度。本发明采用基于固定优先级的sporadic server来调度server。表3描述的即为每个server使用的sporadic server。 Table 1 lists the attributes of the contract in SmartOSEK OS and the description of each attribute. Since the server basically contains all the information of the contract, Table 2 only lists the attributes and corresponding descriptions other than the contract. It should be noted that some modules are extensible, and attributes belonging to these modules are also extensible. In AUTOSAR OS, server can be regarded as a special task to be scheduled by the global scheduler. The present invention uses sporadic servers based on fixed priorities to schedule servers. Table 3 describes the sporadic server used by each server.

由附图3可知,在引入本发明之后并不会改变原先的OS内核,用户在OS中可以通过宏开关来确定是否需要使用本发明的功能。本发明在SmartOSEK的详细处理流程图如附图4所示。 It can be seen from FIG. 3 that the original OS kernel will not be changed after the introduction of the present invention, and the user can determine whether to use the functions of the present invention through a macro switch in the OS. The detailed processing flowchart of the present invention in SmartOSEK is shown in accompanying drawing 4.

具体实施步骤如下: The specific implementation steps are as follows:

(1)    根据应用需求配置表1中定义的contract的属性,生成contract。 (1) According to the application requirements, configure the properties of the contract defined in Table 1 to generate a contract.

(2)    对各个contract之间进行协商,判断系统的可调度性,如果不可调度则执行(3),如果可调度则执行(4) (2) Negotiate between each contract to judge the schedulability of the system. If it is not schedulable, execute (3), if it is schedulable, execute (4)

(3)    返回错误,系统不可调度,拒绝添加该contract的请求 (3) An error is returned, the system cannot be scheduled, and the request to add the contract is rejected

(4)    新建一个contract对应的server并且设置相应的sporadic server (4) Create a new server corresponding to the contract and set the corresponding sporadic server

(5)    对空闲的处理机能力进行动态回收,预留处理机资源 (5) Dynamically recover idle processor capacity and reserve processor resources

(6)    将task绑定到相应的具有处理器能力的server上 (6) Bind the task to the corresponding server with processor capability

(7)    OS开始对分配到不同server上的task进行调度,Sporadic server利用固定优先级调度算法对分配到它上面的不同的server进行调度,而不同的server又采用不同的调度策略(EDF,FP,FIFO)调度分配到其上的task。 (7) The OS starts to schedule tasks assigned to different servers. The Sporadic server uses a fixed priority scheduling algorithm to schedule different servers assigned to it, and different servers use different scheduling strategies (EDF, FP , FIFO) schedules tasks assigned to it.

(8)    到所有任务都执行结束之后,OS再动态回收处理器资源并进行重新分配 (8) After all tasks are executed, the OS then dynamically reclaims processor resources and reallocates them

虽然通过上述具体实例对本发明进行了说明,但是本发明并不局限于上述实例,对于本领域的相关人员,可以根据本发明的技术方案和思想,作出其他各种改变和变形,而所有这些都应该属于本发明权利要求的保护范围内。 Although the present invention has been described by the above specific examples, the present invention is not limited to the above examples. For those skilled in the art, other various changes and modifications can be made according to the technical scheme and thought of the present invention, and all of these are It should belong to the protection scope of the claims of the present invention.

Claims (2)

1.一种基于contract的提高AUTOSAR OS调度灵活性和资源利用率的方法,其特征在于:在原来的AUTomotive Open System Architecture OS软件平台结构上增加一层抽象层,该抽象层由四个模块构成,分别为核心模块core、动态回收模块Dynamic reclamation、分层调度模块Hierarchical scheduling和空闲能力共享模块Spare capacity sharing;1. A method for improving AUTOSAR OS scheduling flexibility and resource utilization based on contract, characterized in that: an abstraction layer is added on the original AUTomotive Open System Architecture OS software platform structure, and the abstraction layer is composed of four modules , which are the core module core, the dynamic reclamation module Dynamic reclamation, the hierarchical scheduling module Hierarchical scheduling and the spare capacity sharing module Spare capacity sharing; (1)、通过核心模块指定contract的属性和相关的操作,Contract的属性就是一些参数,用于创建contract,进行contract之间的协商,绑定task到server以及嵌入式实时操作系统RTOS用来保证最小资源需求的资源预留机制;(1) Specify the properties of the contract and related operations through the core module. The properties of the contract are some parameters, which are used to create a contract, negotiate between contracts, bind tasks to the server and the embedded real-time operating system RTOS to ensure Resource reservation mechanism for minimum resource requirements; (2)、通过动态回收模块在系统存在空闲处理器能力时执行动态回收,通过空闲能力共享模块分配那些server没有使用的挂起的空闲处理器能力;如果在运行时,由于task的异常终止或是在调度点之前完成而产生了额外的空闲处理器能力,这些空闲的处理能力会根据contract中指定的方法被分配到需要处理器能力的不同的server上去;(2) Use the dynamic recovery module to perform dynamic recovery when there is idle processor capacity in the system, and use the idle capacity sharing module to allocate the suspended idle processor capacity that is not used by the server; if during runtime, due to abnormal termination of the task or It is completed before the scheduling point and generates additional idle processor capacity, which will be allocated to different servers that require processor capacity according to the method specified in the contract; (3)、通过分层调度模块进行全局调度和局部调度,全局调度用于决定哪个server能够访问处理器资源,而局部调度是在server内部的调度,用于决定调度哪个task进行执行;(3) Global scheduling and local scheduling are performed through the hierarchical scheduling module. The global scheduling is used to determine which server can access processor resources, while the local scheduling is the internal scheduling of the server, which is used to determine which task to schedule for execution; 当contracts准备就绪之后,这些contracts需要进行协商,评价其能否通过可调度性测试,系统会检查在保证先前已有contracts正常运行的情况下,是否有足够的资源满足新添加的contract的最小资源需求;如果协商通过,系统会保留足够的资源预算来满足新添加的contract的最小资源需求,同时会新建一个对应contract的server,server是contract在系统运行状态下的软件对象,它存储了contract的所有信息;server会对绑定到它上面的task的执行条件进行管理,只要task被绑定到了某一server上面,那么分层调度器就会调度其执行;When the contracts are ready, these contracts need to be negotiated to evaluate whether they can pass the schedulability test. The system will check whether there are enough resources to meet the minimum resources of the newly added contract under the condition of ensuring the normal operation of the previous contracts. Requirements; if the negotiation is passed, the system will reserve enough resource budget to meet the minimum resource requirements of the newly added contract, and will create a server corresponding to the contract at the same time. The server is the software object of the contract in the system running state, which stores the contract All information; the server will manage the execution conditions of the tasks bound to it, as long as the task is bound to a certain server, the hierarchical scheduler will schedule its execution; 其中contract是指应用层和调度层之间的接口Contract模型。The contract refers to the interface contract model between the application layer and the scheduling layer. 2.根据权利要求1所述的基于contract的提高AUTOSAR OS调度灵活性和资源利用率的方法,其特征在于:该方法引入了contract模型,每多个task对应于一个contract,对于每个contract的调度策略进行配置。2. the method for improving AUTOSAR OS scheduling flexibility and resource utilization based on contract according to claim 1, characterized in that: the method introduces a contract model, every multiple tasks correspond to a contract, for each contract Scheduling policies are configured.
CN 201110230201 2011-08-11 2011-08-11 Method for improving scheduling flexibility and resource utilization rate of automotive open system architecture operating system (AUTOSAR OS) based on Contract Expired - Fee Related CN102306112B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110230201 CN102306112B (en) 2011-08-11 2011-08-11 Method for improving scheduling flexibility and resource utilization rate of automotive open system architecture operating system (AUTOSAR OS) based on Contract

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110230201 CN102306112B (en) 2011-08-11 2011-08-11 Method for improving scheduling flexibility and resource utilization rate of automotive open system architecture operating system (AUTOSAR OS) based on Contract

Publications (2)

Publication Number Publication Date
CN102306112A CN102306112A (en) 2012-01-04
CN102306112B true CN102306112B (en) 2013-06-05

Family

ID=45379977

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110230201 Expired - Fee Related CN102306112B (en) 2011-08-11 2011-08-11 Method for improving scheduling flexibility and resource utilization rate of automotive open system architecture operating system (AUTOSAR OS) based on Contract

Country Status (1)

Country Link
CN (1) CN102306112B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070101316A1 (en) * 2005-09-12 2007-05-03 Don Berndt Software Architecture and Program for the Concurrent Execution of Finite State Machine-Encoded Processes, on Single or Multiple-Processor-Based Embedded Systems
US20070204271A1 (en) * 2006-02-28 2007-08-30 Andrew Gaiarsa Method and system for simulating a multi-CPU/multi-core CPU/multi-threaded CPU hardware platform
CN101452404B (en) * 2008-12-09 2013-11-06 中兴通讯股份有限公司 Task scheduling apparatus and method for embedded operating system
CN101833477B (en) * 2010-05-28 2013-06-12 浙江大学 Aperiodic task scheduling method based on SmartOSEK OS
CN102096605B (en) * 2011-02-17 2012-10-03 成电汽车电子产业园(昆山)有限公司 Multi-level resource management implementation method in embedded real-time operation system
CN102135903B (en) * 2011-03-09 2013-01-09 上海交通大学 Hardware virtualization-based Xen real-time performance improving system and method thereof

Also Published As

Publication number Publication date
CN102306112A (en) 2012-01-04

Similar Documents

Publication Publication Date Title
RU2481618C2 (en) Hierarchical infrastructure of resources backup planning
Calheiros et al. Cost-effective provisioning and scheduling of deadline-constrained applications in hybrid clouds
Gu et al. Dynamic budget management with service guarantees for mixed-criticality systems
CN101452404B (en) Task scheduling apparatus and method for embedded operating system
CN109564528B (en) System and method for computing resource allocation in distributed computing
CN105045658B (en) A method of realizing that dynamic task scheduling is distributed using multinuclear DSP embedded
WO2012103728A1 (en) Method for dispatching central processing unit of hotspot domain virtual machine and virtual machine system
CN111861412B (en) Scientific workflow scheduling method and system for completion time optimization
CN108123980B (en) A resource scheduling method and system
Huang et al. A workflow for runtime adaptive task allocation on heterogeneous MPSoCs
CN109992418B (en) SLA-aware resource priority scheduling method and system for multi-tenant big data platform
CN102831015A (en) Method and equipment for scheduling multi-core processor
CN104021040A (en) Cloud computing associated task scheduling method and device based on time constraint
CN103500119B (en) A kind of method for allocating tasks based on pre-scheduling
Mascitti et al. Dynamic partitioned scheduling of real-time dag tasks on arm big. little architectures
CN112799837A (en) Container dynamic balance scheduling method
Guo et al. The concurrent consideration of uncertainty in WCETs and processor speeds in mixed-criticality systems
Davis et al. An investigation into server parameter selection for hierarchical fixed priority pre-emptive systems
WO2020108337A1 (en) Cpu resource scheduling method and electronic equipment
US8850445B2 (en) Scheduling flows in a multi-platform cluster environment
Monaco et al. Shared resource orchestration extensions for kubernetes to support real-time cloud containers
Walraven et al. Adaptive performance isolation middleware for multi-tenant saas
CN102306112B (en) Method for improving scheduling flexibility and resource utilization rate of automotive open system architecture operating system (AUTOSAR OS) based on Contract
Wang et al. Minimizing stack memory for hard real-time applications on multicore platforms with partitioned fixed-priority or EDF scheduling
CN117608760A (en) Cloud application hybrid deployment method applied to Kubernetes

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB03 Change of inventor or designer information

Inventor after: Li Hong

Inventor after: Gu Zonghua

Inventor after: Chen Haojie

Inventor after: Wang Xuyang

Inventor after: Zhang Chengshuo

Inventor after: Wu Chaohui

Inventor before: Li Hong

Inventor before: Gu Zonghua

Inventor before: Chen Haojie

Inventor before: Wang Xuyang

Inventor before: Zhang Chengshuo

COR Change of bibliographic data

Free format text: CORRECT: INVENTOR; FROM: LI HONG GU ZONGHUA CHEN HAOJIE WANG XUYANG ZHANG CHENGSHUO TO: LI HONG GU ZONGHUA CHEN HAOJIE WANG XUYANG ZHANG CHENGSHUO WU ZHAOHUI

C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130605

CF01 Termination of patent right due to non-payment of annual fee