annotate 5.tex @ 14:35f802ff2842 default tip

fix
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 24 Apr 2009 17:41:24 +0900
parents 624a45b40bfe
children 6be2afd7063c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 \section{ デバッグするには?}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 Federated Linda 上でデバッグする一つの方法は、デバッガ
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 からタプルスペースへ問い合わせの通信を行なうことである(図\ref{集中型デバッガ})。
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 \begin{figure}[htb]
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 \begin{center}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 \includegraphics[width=6cm]{fig/comDebug.eps}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 \caption{集中型デバッガ}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 \end{center}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 \label{集中型デバッガ}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 \end{figure}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
13
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 この方法では、Linda Serverのad-hocな改変が必要であり、
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 デバッガは各Linda Serverへ1対多の集中的な通信を行なう
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 必要がある。この方法では、デバッガはLinda Server への
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 直接の通信路を持つ必要があるが、分散環境では、ファイアウォール
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 などの関係で、それが可能であるとは限らない。
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
19
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 デバッグ自体は、
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 タプル空間に直接アクセス出来るプロトコルエンジンと
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 考えることができ、Federated Lindaのメタエンジン
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 ととらえることができる。メタエンジンのAPIを
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 Linda にそろえることにより、Linda Serverへの
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 ad-hoc な改変を、決まったAPI上のデバッグプロトコル
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 の設計にすることができる(図\ref{Debugger})。
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 \begin{figure}[htb]
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 \begin{center}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 \includegraphics[width=6cm]{fig/debugger.eps}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 \caption{Debugger}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 \end{center}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 \label{Debugger}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 \end{figure}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
34
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
35
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
36 デバッグ自体をScalableにして、分散計算への影響を少なく
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
37 するためには、デバッグ用の通信自体がScalable である必要が
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
38 ある。
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
39
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
40 それには、デバッグプロトコル自体が、Federated Linda に
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
41 よってScalable だと示されたプロトコルであることが望ましい。
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
42 つまり、最初に情報収集などに適したプロトコルをFederated
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
43 Linda で作成し、それをそのままデバッガのプロトコルに
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
44 採用できることが望ましい。
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
45 \begin{figure}[htb]
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
46 \begin{center}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
47 \includegraphics[width=6cm]{fig/obj2meta.eps}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
48 \caption{メタへの移行}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
49 \end{center}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
50 \label{メタへの移行}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
51 \end{figure}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
52
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
53
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
54
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
55
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
56