Is a generational GC possible for 1.9.2?
新一代垃圾收集器能否和1.9.2有缘呢?
InfoQ: What are the difficulties in making a generational GC for the Ruby 1.9.x VM?
InfoQ:在Ruby 1.9 . x VM中使用这个新一代的GC有什么困难呢?
X and before IBM-developed Java implementations, as well as a generational GC memory model.
另一个模型为分代GC内存模型。
Currently, the only product quality GC for CVM is the generational GC (see here and here for GC specific implementation files).
当前,唯一一个有品质保证的CVM的GC是世代的(generational) GC(在这儿和这儿可以看到GC的细节执行文件)。
Switching to generational GC can improve performance on IBM JVMs, particularly for larger heap sizes, typically by around 5%.
切换到分代垃圾回收可以改善IBMJVM 的性能,对于较大的堆而言,性能可以提升 5% 左右。
The reason that a generational GC memory model is preferred with large JVMs has to do with minimizing the amount of time spent performing GC.
之所以首选分代GC内存模型,是因为大型JVM必须尽可能减少执行gc的时间。
Generational GC is a policy that is best suited to applications that create many short-lived objects, which is typical of middleware solutions.
分代GC策略非常适合创建很多短期存活的对象的应用程序,这种情况对于中间件解决方案很常见。
Because our GCStressThread generates a constantly changing set of live data, using a generational GC policy isn't expected to provide much pause-time benefit.
由于我们的gcstressthread生成了一个不断变化的活动数据集,所以使用分代GC策略并不能提供太多暂停时间优势。
InfoQ: it seems like the longlife GC patch is the first step towards a generational GC, particularly the introduction of code for handling write barriers and remembered sets.
InfoQ:看起来这个补丁将会是迈向新一代垃圾收集器的第一步,尤其是关于处理写屏障和可记忆化集合的代码介绍。
You should also analyze GC logs to understand how frequently the tenured space gets collected; an optimal generational application will have very infrequent collection in the tenured space.
还应该分析gc日志,以了解年老代空间回收的频率;最优的分代应用程序进行年老代空间回收操作的频率应该非常低。
Although each of the many GC models has its pros and cons, when the goal for an application is short GC pauses, the two main choices are generational and real-time collectors.
尽管许多GC模型都具有自己的优缺点,但当应用程序的目标是缩短GC暂停时,两个主要的选择将是分代(generational)和实时收集器。
Performance can also be improved by increasing the heap size, playing with the nursery size (for generational collectors), and trying a different GC policy.
其他性能改进方法包括提高堆大小、调整保育室(nursery)大小(用于分代收集器)和尝试另一个GC策略。
Performance can also be improved by increasing the heap size, playing with the nursery size (for generational collectors), and trying a different GC policy.
其他性能改进方法包括提高堆大小、调整保育室(nursery)大小(用于分代收集器)和尝试另一个GC策略。
应用推荐