Mohammed Aristide Foughali, Marius Mikučionis, Maryline Zhang
{"title":"通过精确抽象实现内核间界限的可扩展计算","authors":"Mohammed Aristide Foughali, Marius Mikučionis, Maryline Zhang","doi":"arxiv-2405.06387","DOIUrl":null,"url":null,"abstract":"Real-time systems (RTSs) are at the heart of numerous safety-critical\napplications. An RTS typically consists of a set of real-time tasks (the\nsoftware) that execute on a multicore shared-memory platform (the hardware)\nfollowing a scheduling policy. In an RTS, computing inter-core bounds, i.e.,\nbounds separating events produced by tasks on different cores, is crucial.\nWhile efficient techniques to over-approximate such bounds exist, little has\nbeen proposed to compute their exact values. Given an RTS with a set of cores C\nand a set of tasks T , under partitioned fixed- priority scheduling with\nlimited preemption, a recent work by Foughali, Hladik and Zuepke (FHZ) models\ntasks with affinity c (i.e., allocated to core c in C) as a Uppaal timed\nautomata (TA) network Nc. For each core c in C, Nc integrates blocking (due to\ndata sharing) using tight analytical formulae. Through compositional model\nchecking, FHZ achieved a substantial gain in scalability for bounds local to a\ncore. However, computing inter-core bounds for some events of interest E,\nproduced by a subset of tasks TE with different affinities CE, requires model\nchecking the parallel composition of all TA networks Nc for each c in CE, which\nproduces a large, often intractable, state space. In this paper, we present a\nnew scalable approach based on exact abstractions to compute exact inter-core\nbounds in a schedulable RTS, under the assumption that tasks in TE have\ndistinct affinities. We develop a novel algorithm, leveraging a new query that\nwe implement in Uppaal, that computes for each TA network Nc in NE an\nabstraction A(Nc) preserving the exact intervals within which events occur on\nc, therefore drastically reducing the state space. The scalability of our\napproach is demonstrated on the WATERS 2017 industrial challenge, for which we\nefficiently compute various types of inter-core bounds where FHZ fails to\nscale.","PeriodicalId":501033,"journal":{"name":"arXiv - CS - Symbolic Computation","volume":"21 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-05-10","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Scalable Computation of Inter-Core Bounds Through Exact Abstractions\",\"authors\":\"Mohammed Aristide Foughali, Marius Mikučionis, Maryline Zhang\",\"doi\":\"arxiv-2405.06387\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Real-time systems (RTSs) are at the heart of numerous safety-critical\\napplications. An RTS typically consists of a set of real-time tasks (the\\nsoftware) that execute on a multicore shared-memory platform (the hardware)\\nfollowing a scheduling policy. In an RTS, computing inter-core bounds, i.e.,\\nbounds separating events produced by tasks on different cores, is crucial.\\nWhile efficient techniques to over-approximate such bounds exist, little has\\nbeen proposed to compute their exact values. Given an RTS with a set of cores C\\nand a set of tasks T , under partitioned fixed- priority scheduling with\\nlimited preemption, a recent work by Foughali, Hladik and Zuepke (FHZ) models\\ntasks with affinity c (i.e., allocated to core c in C) as a Uppaal timed\\nautomata (TA) network Nc. For each core c in C, Nc integrates blocking (due to\\ndata sharing) using tight analytical formulae. Through compositional model\\nchecking, FHZ achieved a substantial gain in scalability for bounds local to a\\ncore. However, computing inter-core bounds for some events of interest E,\\nproduced by a subset of tasks TE with different affinities CE, requires model\\nchecking the parallel composition of all TA networks Nc for each c in CE, which\\nproduces a large, often intractable, state space. In this paper, we present a\\nnew scalable approach based on exact abstractions to compute exact inter-core\\nbounds in a schedulable RTS, under the assumption that tasks in TE have\\ndistinct affinities. We develop a novel algorithm, leveraging a new query that\\nwe implement in Uppaal, that computes for each TA network Nc in NE an\\nabstraction A(Nc) preserving the exact intervals within which events occur on\\nc, therefore drastically reducing the state space. The scalability of our\\napproach is demonstrated on the WATERS 2017 industrial challenge, for which we\\nefficiently compute various types of inter-core bounds where FHZ fails to\\nscale.\",\"PeriodicalId\":501033,\"journal\":{\"name\":\"arXiv - CS - Symbolic Computation\",\"volume\":\"21 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-05-10\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Symbolic Computation\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2405.06387\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Symbolic Computation","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2405.06387","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
摘要
实时系统(RTS)是众多安全关键型应用的核心。实时系统通常由一组实时任务(软件)组成,这些任务按照调度策略在多核共享内存平台(硬件)上执行。在 RTS 中,计算内核间界限(即区分不同内核上的任务所产生的事件的界限)至关重要。虽然存在过度估算此类界限的高效技术,但很少有人提出计算其精确值的方法。Foughali, Hladik and Zuepke (FHZ) 最近的一项研究将具有亲和性 c 的任务(即分配给 C 中的核心 c)建模为 Uppaal timedautomata (TA) 网络 Nc。对于 C 中的每个核心 c,Nc 使用严密的分析公式整合阻塞(由于数据共享)。通过组合模型检查,FHZ 在 ac 核局部边界的可扩展性方面取得了重大进展。然而,要计算由具有不同亲缘关系 CE 的任务子集 TE 产生的某些相关事件 E 的核间界限,需要对 CE 中每个 c 的所有 TA 网络 Nc 的并行组成进行建模检查,这会产生一个庞大的、通常难以处理的状态空间。在本文中,我们提出了一种基于精确抽象的全新可扩展方法,在可调度 RTS 中计算精确的内核间边界,前提是 TE 中的任务具有不同的亲和力。我们开发了一种新算法,利用我们在 Uppaal 中实现的新查询,为 NE 中的每个 TA 网络 Nc 计算出保留事件发生精确时间间隔的抽象 A(Nc),从而大大减少了状态空间。我们在 WATERS 2017 工业挑战赛上展示了我们方法的可扩展性,在该挑战赛中,我们有效地计算了 FHZ 无法扩展的各种类型的内核间边界。
Scalable Computation of Inter-Core Bounds Through Exact Abstractions
Real-time systems (RTSs) are at the heart of numerous safety-critical
applications. An RTS typically consists of a set of real-time tasks (the
software) that execute on a multicore shared-memory platform (the hardware)
following a scheduling policy. In an RTS, computing inter-core bounds, i.e.,
bounds separating events produced by tasks on different cores, is crucial.
While efficient techniques to over-approximate such bounds exist, little has
been proposed to compute their exact values. Given an RTS with a set of cores C
and a set of tasks T , under partitioned fixed- priority scheduling with
limited preemption, a recent work by Foughali, Hladik and Zuepke (FHZ) models
tasks with affinity c (i.e., allocated to core c in C) as a Uppaal timed
automata (TA) network Nc. For each core c in C, Nc integrates blocking (due to
data sharing) using tight analytical formulae. Through compositional model
checking, FHZ achieved a substantial gain in scalability for bounds local to a
core. However, computing inter-core bounds for some events of interest E,
produced by a subset of tasks TE with different affinities CE, requires model
checking the parallel composition of all TA networks Nc for each c in CE, which
produces a large, often intractable, state space. In this paper, we present a
new scalable approach based on exact abstractions to compute exact inter-core
bounds in a schedulable RTS, under the assumption that tasks in TE have
distinct affinities. We develop a novel algorithm, leveraging a new query that
we implement in Uppaal, that computes for each TA network Nc in NE an
abstraction A(Nc) preserving the exact intervals within which events occur on
c, therefore drastically reducing the state space. The scalability of our
approach is demonstrated on the WATERS 2017 industrial challenge, for which we
efficiently compute various types of inter-core bounds where FHZ fails to
scale.