异步程序的命中调度族
Hitting Families of Schedules for Asynchronous Programs
摘要:
我们考虑以下并发系统测试中的基本任务。任务的输入是事件的偏序,它对系统执行的操作或由系统执行的操作进行建模,并指定它们之间的排序约束。任务是确定这些事件的某些调度是否会导致错误。要探索的调度的数量通常可以是指数级的。从经验上讲,并发程序中的许多错误都被观察到具有小的错误深度;也就是说,这些错误由以特定方式对$d$特定事件进行排序的每个调度暴露,而不管其他事件如何排序,并且与事件总数相比,$d$很小。为了找到深度为$d$的所有bug,只需要测试一个$d$命中的调度族:如果对于每个$d$事件集,并且对于这些事件的每个允许的顺序,在该族中有一些调度以这种顺序执行这些事件,则我们将一组调度称为$d$命中的调度族。$d$命中族的大小可能比所有可能的调度的数量小得多,并且一个自然的问题是是否可以找到具有小大小的$d$命中调度族。通常,找到最佳$d$命中家族的大小是困难的,即使是对于$d=2$也是如此.然而,我们发现,当偏序是一棵树,可以明确地构建$d$击中家庭的小尺寸的时间表。当树是平衡的,我们的建设是多对数的事件数。
英文摘要:
We consider the following basic task in the testing of concurrent systems. The input to the task is a partial order of events, which models actions performed on or by the system and specifies ordering constraints between them. The task is to determine if some scheduling of these events can result in a bug. The number of schedules to be explored can, in general, be exponential. Empirically, many bugs in concurrent programs have been observed to have small bug depth; that is, these bugs are exposed by every schedule that orders $d$ specific events in a particular way, irrespective of how the other events are ordered, and $d$ is small compared to the total number of events. To find all bugs of depth $d$, one needs to only test a $d$-hitting family of schedules: we call a set of schedules a $d$-hitting family if for each set of $d$ events, and for each allowed ordering of these events, there is some schedule in the family that executes these events in this ordering. The size of a $d$-hitting family may be much smaller than the number of all possible schedules, and a natural question is whether one can find $d$-hitting families of schedules that have small size. In general, finding the size of optimal $d$-hitting families is hard, even for $d=2$. We show, however, that when the partial order is a tree, one can explicitly construct $d$-hitting families of schedules of small size. When the tree is balanced, our constructions are polylogarithmic in the number of events.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。