World Wide Web (Web) のキャッシュシステムおよびプリフェッチシステムの設計にこれらの原理を適用するためには、典型的な Web 参照ストリームに存在する局所性の度合いを特性評価することが不可欠である。Web アクセスにおける時間的局所性とは、あるアイテムが過去に頻繁にアクセスされた場合、将来的にもアクセスされる可能性が高いという性質を指す。一方、空間的局所性とは、過去に頻繁にアクセスされたアイテムに隣接する (neighboring) アイテムも、将来的にアクセスされる可能性が高いという性質を意味する。メモリシステムにおいては、このような隣接関係 (neighborhoods) はアドレス空間上の近接性という観点から容易に定義可能であり、これがキャッシュラインやメモリページといったプリフェッチ対象の単位を生み出す要因となっている。Web システムの場合、空間的局所性を適切に特性評価できれば、同様のプリフェッチ対象を特定することが可能であると考えられる。
データ収集: Web はクライアント・サーバー型アーキテクチャを基盤とした大規模分散情報システムである。したがって、サーバー側から観測される処理負荷は、多数の異なるクライアントから発信されるリクエストの集合体として現れる。参照局所性を分析するため、国立スーパーコンピューティング応用センター (NCSA) 設置の NCSA Web サーバー、サンディエゴ・スーパーコンピュータセンター (SDSC) 設置の SDSC Web サーバー、ノースカロライナ州リサーチ・トライアングル・パーク所在の EPA Web サーバー、ボストン大学コンピュータサイエンス学部 (BU) 設置の Web サーバーの 4 種類の Web サーバーのアクセスログを調査した。NCSA のデータに関しては、対象は単一のサーバー (Costello) のみである。SDSC および EPA のログデータはインターネット・トラフィック・アーカイブ [14] で公開されている。NCSA のログデータは現地スタッフへの問い合わせにより取得し、BU のログデータは学部内の Web サーバーから直接収集した。
各ログファイルには、サーバーが処理した各リクエストごとに 1 行の情報が記録されている。各行には、リクエストを送信したホスト名、リクエストが送信されたタイムスタンプ、要求されたオブジェクトのファイル名、および応答データのバイトサイズが含まれている。Table 1 に、これら 4 種類の Web サーバーのログに関する統計情報を要約する。
ログ
NCSA
SDSC
EPA
BU
期間
1 日
1 日
1 日
2週間
開始日
1995年12月
1995年8月
1995年8月
1995年10月
総リクエスト数
46,965件
28,338件
47,748件
80,518件
ユニークリクエスト数
4,891件
1,267件
6,318件
4,471件
Table 1: アクセスログデータの概要
2先行研究 [9] において、文書サイズと参照頻度の期待値との間に相関関係があることを実証している。この前提条件は、キャッシュ性能分析を直接的に適用する上でやや制約要因となる。このため、我々は現在この研究を拡張し、分析対象に文書サイズを含める作業を進めている。それにもかかわらず、現行の手法は Web 参照ストリームの空間的局所性と時間的局所性の両方を簡潔かつ効果的に捉える有効な手段であると確信している。
Web 参照の局所性の活用: 大規模分散情報システムにおけるキャッシュ、複製、配信、事前取得プロトコルに関する従来の研究では、本論文で検討した各種参照局所性特性が認識され、実際に活用されてきた。本節の残りの部分では、これらのプロトコルについて簡潔に概説する。紙面の制約上、ここでは Web 関連の研究に限定して述べる。
[18] において、Markatos はメインメモリ Web キャッシュの利用による性能向上の可能性について考察している。彼は、文書の人気度や小規模文書に対するユーザーの選好傾向に敏感なキャッシュ管理手法 [9] を採用すれば、少量のメインメモリであっても性能面で顕著な改善が得られることを実証している。
Web アクセスパターンに顕著に現れる参照の空間的局所性を活用する手法については、当研究グループの Oceans チームが最近実施した2つのプリフェッチング研究で調査されている。[7] において、Bestavros と Cunha は、クライアントの過去のアクセスパターンから構築したマルコフモデルに基づいて、クライアントが Web 文書を事前に取得できるようにするプロトコルを提案している。[5] では、Bestavros が、サーバーのアクセスログを分析して構築したマルコフモデルに基づき、サーバー側で生成したヒントを契機としてプリフェッチを開始させるプロトコルを提案している。
Acknowledgements: The authors thank John Dilley and PDIS anonymous referees for comments that improved the content and presentation of this paper.
References
Marc Abrams, Charles R. Standridge, Ghaleb Abdulla, Stephen Williams, and Edward A. Fox. Caching proxies: Limitations and potentials. In Proceedings of the Fourth International Conference on the WWW, Boston, MA, December 1995.
S. Acharya, R. Alonso, M. Franklin, and S. Zdonik. Broadcast disks: Data management for asymmetric communications environments. In Proceedings of ACM SIGMOD, San Jose, CA, May 1995.
Jan Beran. Statistics for Long-Memory Processes. Monographs on Statistics and Applied Probability. Chapman and Hall, New York, NY, 1994.
Azer Bestavros. Demand-based document dissemination to reduce traffic and balance load in distributed information systems. In Proceedings of SPDP: The 7th IEEE Symposium on Parallel and Distributed Processing, San Antonio, Texas, October 1995.
Azer Bestavros. Using speculation to reduce server load and service time on the www. In Proceedings of CIKM: The 4th ACM International Conference on Information and Knowledge Management, Baltimore, Maryland, November 1995.
Azer Bestavros, Robert Carter, Mark Crovella, Carlos Cunha, Abdelsalam Heddaya, and Sulaiman Mirdad. Application level document caching in the internet. In IEEE SDNE: The Second International Workshop on Services in Distributed and Networked Environments, Whistler, British Columbia, June 1995.
Azer Bestavros and Carlos Cunha. A prefetching protocol using client speculation for the www. Technical Report TR-95-011, Boston University CS Dept., Boston, MA 02215, April 1995.
Mark E. Crovella and Azer Bestavros. Self-similarity in World Wide Web traffic: Evidence and possible causes. In Proceedings of the ACM SIGMETRICS, May 1996.
Carlos A. Cunha, Azer Bestavros, and Mark E. Crovella. Characteristics of www client-based traces. Technical Report TR-95-010, Boston University, Department of Computer Science, April 1995.
P. Denning and S. Schwartz. Properties of the working set model. Communications of the ACM, 15(3):191–198, 1972.
Kenneth Falconer. Fractal Geometry. John Wiley & Sons Ltd, 1990.
Steven Glassman. A caching relay for the world wide web. In Proceedings of the First International Conference on the WWW, 1994.
James Gwertzman and Margo Seltzer. The case for geographical push caching. In Proceedings of HotOS: The Fifth IEEE Workshop on Hot Topics in Operating Systems, Washington, May 1995.
The Internet Town Hall. The internet traffic archive. http://www.town.hall.org/Archives/pub/ITA.
Changcheng Huang, Michael Devetsikiotis, Ioannis Lambadaris, and A. Roger Kaye. Modeling and simulation of self-similar variable bit rate compressed video: A unified approach. In Proceedings of ACM SIGCOMM 95, pages 114–125, 1995.
W.E. Leland, M.S. Taqqu, W. Willinger, and D.V. Wilson. On the self-similar nature of Ethernet traffic (extended version). IEEE/ACM Transactions on Networking, 2:1–15, 1994.
Benoit B. Mandelbrot. The Fractal Geometry of Nature. W. H. Freedman and Co., New York, 1983.
Evangelos Markatos. Main memory caching of web documents. In Proceedings of the Fifth International Conference on the WWW, Paris, France, 1996.
R. Mattson, J. Gecsei, D. Slutz, and I. Traiger. Evaluation techniques and storage hierarchies. IBM Systems Journal, 9(2):78–117, 1970.
Vern Paxson. Fast approximation of self-similar network traffic. Technical Report LBL-36750, Lawrence Berkeley Lab, Berkeley, CA, 1995.
Mimi M. Recker and James E. Pitkow. Predicting document access in large multimedia repositories. Technical Report Technical Report VU/GIT-95-02, Georgia Tech—Graphics, Visualization, and Usability Center, August 1995.
G. Shedlar and C. Tung. Locality in page reference strings. SIAM Journal of Computing, 1(3):218–241, Sept. 1972.
Alan Jay Smith. Cache memories. Computing Surveys, 14(3):473–530, September 1982.
Jeffrey Spirn. Distance string models for program behavior. IEEE Computer, 9(11):14–20, November 1976.
Dominique Thiebaut. On the fractal dimension of computer programs and its application to the prediction of the cache miss ratio. IEEE Transactions on Computers, 38(7):1012–1026, July 1989.
Jean Voldman, Benoit Mandelbrot, Lee W. Hoevel, Joshua Knight, and Philip L. Rosenfeld. Fractal nature of software-cache interaction. IBM Journal of Research and Development, 27(2):164–170, 1983.
G. K. Zipf. Human Behavior and the Principle of Least Effort. Addison-Wesley, Cambridge, MA, 1949.
翻訳抄
World Wide Web サーバーに到着するリクエストストリームにおける参照の局所性を、時間的・空間的側面から定量的に特徴づけた 1996 年の論文。スタック距離の対数正規分布と自己相似性に基づくモデルにより、従来の人気度ベースのモデルでは捉えられなかった局所性を表現できることを実証した。
ALMEIDA, Virgilio, BESTAVROS, Azer, CROVELLA, Mark, and DE OLIVEIRA, Adriana. Characterizing Reference Locality in the WWW. In: Proceedings of PDIS'96: The IEEE Conference on Parallel and Distributed Information Systems. Miami Beach, FL, December 1996.