• 検索結果がありません。

世代別Mostly-Copying GCのRuby VMへの実装に向けて

N/A
N/A
Protected

Academic year: 2021

シェア "世代別Mostly-Copying GCのRuby VMへの実装に向けて"

Copied!
1
0
0

読み込み中.... (全文を見る)

全文

(1)情報処理学会論文誌. プログラミング. Vol. 3. No. 2. 49 (Mar. 2010). 発表概要. 世代別 Mostly-Copying GC の Ruby VM への実装に向けて 永. 原. 治†1. 鵜. 川. 始. 陽†2. 岩. 崎. 英. 哉†2. 近年,Web アプリケーションをはじめとする Ruby による大規模アプリケーショ ンの開発が行われるようになってきている.大規模なアプリケーションの特徴として, 大量のデータを扱い長時間動作し続けるという特徴があげられる.既存の Ruby 処理 系は保守的マークスイープ方式でごみ集め(GC)をしているが,このような特徴を 持つアプリケーションでは,世代別コピー GC で GC の時間を短縮できることが知 られている.しかし,Ruby 処理系には保守的 GC を前提に作られている部分があり, 移動できないオブジェクトがあるため,通常のコピー GC は実現できない.そこで, 移動できないオブジェクトが存在しても,コピー GC を実現できる Mostly-Copying GC を用いることにした.本研究では,世代別 Mostly-Copying GC の実装による GC 時間の短縮を目標として,Ruby1.9 の VM に Mostly-Copying GC の実装を行 い,Ruby on Rails 組み込みの Web サーバなどを対象に移動できないオブジェクト の数やその寿命など世代別 GC の設計に必要なデータ収集を行った.その結果,移動 できないオブジェクトの割合は少なくないが,それらは長寿命であるという傾向が分 かった.本発表では,これらのデータを基に世代別 Mostly-Copying GC の実装方針 と設計について述べる.. cannot implement the copying GC on the Ruby VM, because part of the VM depends on the conservative GC, and some objects cannot be moved. Therefore we decided to use the mostly-copying GC, which collects garbage by copying only movable objects. In this research, we aim to reduce the time spent on GC by implementing the mostly-copying GC on the VM of Ruby 1.9. We implemented the mostly-copying GC on the VM and examined the behavior of objects in the heap, such as the ratio of immovable objects and their lifetime, using the VM and a web server program of Ruby on Rails. As a result, we found immovable objects tend to be long-lived though the ratio of them is not small. In this presentation, we present the design of generational mostly-copying GC based on the observation.. (平成 21 年 10 月 29 日発表). Toward an Implementation of Generational Mostly-Copying GC on Ruby VM Osamu Nagahara,†1 Tomoharu Ugawa†2 and Hideya Iwasaki†2 Recently, large-scale applications, such as web applications, have come to be developed in Ruby. A large-scale application tends to treat a large amount of data and to keep working for a long time. While the Ruby VM has the conservative mark-sweep GC, it is known that the time spent on GC in such an application can be reduced by using the generational copying GC. However, we. 49. †1 電気通信大学大学院電気通信学研究科情報工学専攻 Department of Computer Science, Graduate School of Electro-Communications, The University of Electro-Communications †2 電気通信大学情報工学科 Department of Computer Science, The University of Electro-Communications. c 2010 Information Processing Society of Japan .

(2)

参照

関連したドキュメント

データベースには,1900 年以降に発生した 2 万 2 千件以上の世界中の大規模災 害の情報がある

全国の宿泊旅行実施者を抽出することに加え、性・年代別の宿泊旅行実施率を知るために実施した。

新設される危険物の規制に関する規則第 39 条の 3 の 2 には「ガソリンを販売するために容器に詰め 替えること」が規定されています。しかし、令和元年

・「SBT (科学と整合した目標) 」参加企業 が所有する制度対象事業所の 割合:約1割. ・「TCFD

当面の間 (メタネーション等の技術の実用化が期待される2030年頃まで) は、本制度において

としたアプリケーション、また、 SCILLC

を育成することを使命としており、その実現に向けて、すべての学生が卒業時に学部の区別なく共通に

を育成することを使命としており、その実現に向けて、すべての学生が卒業時に学部の区別なく共通に