首页> 外文会议> >Garbage collector memory accounting in language-based systems
【24h】

Garbage collector memory accounting in language-based systems

机译:基于语言的系统中的垃圾收集器内存记帐

获取原文

摘要

Language run-time systems are often called upon to safely execute mutually distrustful tasks within the same run-time, protecting them from other tasks' bugs or otherwise hostile behavior Well-studied access controls exist in systems such as Java to prevent unauthorized reading or writing of data, but techniques to measure and control resource usage are less prevalent. In particular, most language run-time systems include no facility to account for and regulate heap memory usage on a per-task basis. This oversight can be exploited by a misbehaving task, which might allocate and hold live enough memory to cause a denial-of-service attack, crashing or slowing down other tasks. In addition, tasks can legitimately share references to the same objects, and traditional approaches that charge memory to its allocator fail to properly account for this sharing. We present a method for modifying the garbage collector, already present in most modern language run-time systems, to measure the amount of live memory reachable from each task as it performs its regular duties. Our system naturally distinguishes memory shared across tasks from memory reachable from only a single task without requiring incompatible changes to the semantics of the programming language. Our prototype implementation imposes negligible performance overheads in a variety of benchmarks, yet provides enough information for the expression of rich policies to express the limits on a task's memory usage.
机译:通常会要求语言运行时系统在同一运行时内安全地执行互不信任的任务,从而保护它们免受其他任务的错误或其他敌对行为的侵害。在诸如Java之类的系统中存在经过精心研究的访问控制,以防止未经授权的读写数据,但衡量和控制资源使用的技术并不普及。特别是,大多数语言运行时系统不包含按任务分配和管理堆内存使用情况的功能。行为不当可能会利用这种疏忽,该任务可能会分配并保留足够的活动内存,从而导致拒绝服务攻击,崩溃或减慢其他任务的速度。另外,任务可以合法地共享对相同对象的引用,并且向其分配器收取内存的传统方法无法正确解决这种共享问题。我们提出了一种修改垃圾收集器的方法,该方法已经存在于大多数现代语言运行时系统中,以测量每个任务在执行其常规任务时可达到的实时内存量。我们的系统自然地将跨任务共享的内存与仅单个任务可访问的内存区分开来,而无需对编程语言的语义进行不兼容的更改。我们的原型实现在各种基准中施加的性能开销可以忽略不计,但仍提供了足够的信息来表示丰富的策略,以表达对任务内存使用量的限制。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号