Shuai Zhao, Hanzhi Xu, Nan Chen, Ruoxian Su, Wanli Chang
{"title":"FRAP:多处理器实时系统的灵活资源访问协议","authors":"Shuai Zhao, Hanzhi Xu, Nan Chen, Ruoxian Su, Wanli Chang","doi":"arxiv-2408.13772","DOIUrl":null,"url":null,"abstract":"Fully-partitioned fixed-priority scheduling (FP-FPS) multiprocessor systems\nare widely found in real-time applications, where spin-based protocols are\noften deployed to manage the mutually exclusive access of shared resources.\nUnfortunately, existing approaches either enforce rigid spin priority rules for\nresource accessing or carry significant pessimism in the schedulability\nanalysis, imposing substantial blocking time regardless of task execution\nurgency or resource over-provisioning. This paper proposes FRAP, a spin-based\nflexible resource accessing protocol for FP-FPS systems. A task under FRAP can\nspin at any priority within a range for accessing a resource, allowing flexible\nand fine-grained resource control with predictable worst-case behaviour. Under\nflexible spinning, we demonstrate that the existing analysis techniques can\nlead to incorrect timing bounds and present a novel MCMF (minimum cost maximum\nflow)-based blocking analysis, providing predictability guarantee for FRAP. A\nspin priority assignment is reported that fully exploits flexible spinning to\nreduce the blocking time of tasks with high urgency, enhancing the performance\nof FRAP. Experimental results show that FRAP outperforms the existing\nspin-based protocols in schedulability by 15.20%-32.73% on average, up to\n65.85%.","PeriodicalId":501333,"journal":{"name":"arXiv - CS - Operating Systems","volume":"78 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-08-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"FRAP: A Flexible Resource Accessing Protocol for Multiprocessor Real-Time Systems\",\"authors\":\"Shuai Zhao, Hanzhi Xu, Nan Chen, Ruoxian Su, Wanli Chang\",\"doi\":\"arxiv-2408.13772\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Fully-partitioned fixed-priority scheduling (FP-FPS) multiprocessor systems\\nare widely found in real-time applications, where spin-based protocols are\\noften deployed to manage the mutually exclusive access of shared resources.\\nUnfortunately, existing approaches either enforce rigid spin priority rules for\\nresource accessing or carry significant pessimism in the schedulability\\nanalysis, imposing substantial blocking time regardless of task execution\\nurgency or resource over-provisioning. This paper proposes FRAP, a spin-based\\nflexible resource accessing protocol for FP-FPS systems. A task under FRAP can\\nspin at any priority within a range for accessing a resource, allowing flexible\\nand fine-grained resource control with predictable worst-case behaviour. Under\\nflexible spinning, we demonstrate that the existing analysis techniques can\\nlead to incorrect timing bounds and present a novel MCMF (minimum cost maximum\\nflow)-based blocking analysis, providing predictability guarantee for FRAP. A\\nspin priority assignment is reported that fully exploits flexible spinning to\\nreduce the blocking time of tasks with high urgency, enhancing the performance\\nof FRAP. Experimental results show that FRAP outperforms the existing\\nspin-based protocols in schedulability by 15.20%-32.73% on average, up to\\n65.85%.\",\"PeriodicalId\":501333,\"journal\":{\"name\":\"arXiv - CS - Operating Systems\",\"volume\":\"78 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-08-25\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Operating Systems\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2408.13772\",\"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 - Operating Systems","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2408.13772","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
FRAP: A Flexible Resource Accessing Protocol for Multiprocessor Real-Time Systems
Fully-partitioned fixed-priority scheduling (FP-FPS) multiprocessor systems
are widely found in real-time applications, where spin-based protocols are
often deployed to manage the mutually exclusive access of shared resources.
Unfortunately, existing approaches either enforce rigid spin priority rules for
resource accessing or carry significant pessimism in the schedulability
analysis, imposing substantial blocking time regardless of task execution
urgency or resource over-provisioning. This paper proposes FRAP, a spin-based
flexible resource accessing protocol for FP-FPS systems. A task under FRAP can
spin at any priority within a range for accessing a resource, allowing flexible
and fine-grained resource control with predictable worst-case behaviour. Under
flexible spinning, we demonstrate that the existing analysis techniques can
lead to incorrect timing bounds and present a novel MCMF (minimum cost maximum
flow)-based blocking analysis, providing predictability guarantee for FRAP. A
spin priority assignment is reported that fully exploits flexible spinning to
reduce the blocking time of tasks with high urgency, enhancing the performance
of FRAP. Experimental results show that FRAP outperforms the existing
spin-based protocols in schedulability by 15.20%-32.73% on average, up to
65.85%.