Reducing application-stage latencies for real-time interactive systems

Jan-Philipp Stauffert, Florian Niebling, Marc Erich Latoschik
{"title":"Reducing application-stage latencies for real-time interactive systems","authors":"Jan-Philipp Stauffert, Florian Niebling, Marc Erich Latoschik","doi":"10.1109/SEARIS.2016.7551584","DOIUrl":null,"url":null,"abstract":"Latency is a pressing problem in Virtual Reality (VR) applications. Low latencies are required for VR to reduce perceptual artifacts and cyber sickness. Additionally, latency jitter denotes the variance in the pattern of latency changes which additionally may cause unwanted effects. This paper analyzes latency jitter caused by typical inter-thread communication (ITC) techniques commonly used in todays computer systems employed for VR, the influence of the operating system scheduler, and the effect of different garbage collection (GC) methods to understand their effect on latency spikes, here for different Java Virtual Machines (JVM). We measure the scalability and latencies for various ITC techniques with an increasing number of threads and actors performing prototypical concurrent tasks. Four different benchmark implementations on a vanilla Linux kernel as well as on a real-time (RT) Linux kernel assess if a RT variant of a multiuser multiprocess operating system can prevent latency spikes and how this behavior would apply to different programming languages and ITC techniques. We confirmed that scheduler and prioritization of the VR application both play an important role and identified the impact they have on the implementation strategies. Also, Linux RT can limit the latency jitter at the cost of throughput for certain implementations. As expected, the choice of a GC method also is critical and will change the latency patterns drastically. As a result, we suggest that coarse grained concurrency should be employed to avoid adding up of scheduler latencies and unwanted latency jitter for the native ITC case, while actor systems are found to support a higher degree of concurrency granularity and a higher level of abstraction.","PeriodicalId":131714,"journal":{"name":"2016 IEEE 9th Workshop on Software Engineering and Architectures for Realtime Interactive Systems (SEARIS)","volume":"29 13","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2016-03-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"6","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2016 IEEE 9th Workshop on Software Engineering and Architectures for Realtime Interactive Systems (SEARIS)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/SEARIS.2016.7551584","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 6

Abstract

Latency is a pressing problem in Virtual Reality (VR) applications. Low latencies are required for VR to reduce perceptual artifacts and cyber sickness. Additionally, latency jitter denotes the variance in the pattern of latency changes which additionally may cause unwanted effects. This paper analyzes latency jitter caused by typical inter-thread communication (ITC) techniques commonly used in todays computer systems employed for VR, the influence of the operating system scheduler, and the effect of different garbage collection (GC) methods to understand their effect on latency spikes, here for different Java Virtual Machines (JVM). We measure the scalability and latencies for various ITC techniques with an increasing number of threads and actors performing prototypical concurrent tasks. Four different benchmark implementations on a vanilla Linux kernel as well as on a real-time (RT) Linux kernel assess if a RT variant of a multiuser multiprocess operating system can prevent latency spikes and how this behavior would apply to different programming languages and ITC techniques. We confirmed that scheduler and prioritization of the VR application both play an important role and identified the impact they have on the implementation strategies. Also, Linux RT can limit the latency jitter at the cost of throughput for certain implementations. As expected, the choice of a GC method also is critical and will change the latency patterns drastically. As a result, we suggest that coarse grained concurrency should be employed to avoid adding up of scheduler latencies and unwanted latency jitter for the native ITC case, while actor systems are found to support a higher degree of concurrency granularity and a higher level of abstraction.
减少实时交互系统的应用程序阶段延迟
延迟是虚拟现实(VR)应用中一个亟待解决的问题。VR需要低延迟来减少感知伪影和网络病。此外,延迟抖动表示延迟变化模式的差异,这可能会导致不必要的影响。本文分析了当前用于VR的计算机系统中常用的典型线程间通信(ITC)技术所引起的延迟抖动,操作系统调度程序的影响,以及不同垃圾收集(GC)方法的影响,以了解它们对延迟尖尖的影响,这里是针对不同的Java虚拟机(JVM)。我们通过增加执行原型并发任务的线程和参与者的数量来度量各种ITC技术的可伸缩性和延迟。在普通Linux内核和实时(RT) Linux内核上的四个不同基准测试实现评估了多用户多进程操作系统的RT变体是否可以防止延迟峰值,以及这种行为如何应用于不同的编程语言和ITC技术。我们确认了VR应用程序的调度器和优先级都起着重要作用,并确定了它们对实施策略的影响。此外,Linux RT可以以牺牲某些实现的吞吐量为代价来限制延迟抖动。正如预期的那样,GC方法的选择也很关键,并且会极大地改变延迟模式。因此,我们建议采用粗粒度并发,以避免本机ITC情况下调度器延迟和不必要的延迟抖动的增加,而参与者系统则支持更高程度的并发粒度和更高级别的抽象。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信