Professional Documents
Culture Documents
Jae-Dong Lee
Department of Computer Science and Engineering
Kyungnam University, Korea
jdlee@eros.kyungnam.ac.kr
Disk
Client v) ∑ t ij = C i / R
C om m un j=0
VBR
Video server -ication Client vi) C
max
i
= max C ik
1 ≤ k ≤ Li
Server
When the current round is jth round of Si , let t(Si) = t ij ,
…
i i
and
Client B ( S i ) = ∑ t ik * R − ∑ C ik
k=0 k =1
. .
(b)
t(Si) means time to need for execution of Si and B(Si)
means the buffer size to need for Si at the current round.
Figure 2: VBR video server
Thus, for all rounds the following requirements must be
satisfied.
We assume that there are n tasks (streams) in the server
and tasks are represented with S1, S2, .... Sn. Each task is .T
i) t(S1)+t(S2)+…. +t(Sn) ….(condition-2)
maximum buffer size needed for Si is following: An algorithm described in section 3.1 requires buffer
B imax is increased according to the degree of change excessively and that in section 3.2 wastes server’s
of Cij . B max is very large as compared with other processing time very much and must save many
algorithms. i information of tasks and must calculate execution time of
Assume that S1, S2, … , Sn are currently scheduled. To tasks at each round. In this section we propose a new
schedule Sn+1 the requirements which Sn+1 can be algorithm which is mixed two algorithms above and
scheduled at next round are following: complements problems.
i) n + 1 t i ≤ T In this algorithm the execution time function ti(x) of
∑
task Si is determined previously, and a scheduling
.
i=1
n +1
ii) ∑ B max
≤ algorithm schedules tasks with function ti(x). Let ti(x), 1
.
i=1
i B max
algorithm for video server. This makes the buffer needed c1) is a condition for continuity of streams, c2) is a
minimize as it produces the data at each round as much as condition to reduce server’s idle time at each round and
tasks will be consumed at next round. c3) is a condition to reduce buffer size to need.
As tij is Cij/R , the execution time of task at each round Assume that S1, S2, … Sn are currently scheduled. To
is changed . B imax = 2 * C imax is sufficient for correct schedule Sn+1 the following conditions must be satisfied.
execution of Si. To schedule a new task into current
schedule of tasks, tij is assumed to at all rounds.
max
1) t1(r(S1)) + t2(r(S2))+…+ tn(r(Sn)) + tn+1 ≤ T
/ i
In other words, using this algorithm C makes the idle time of , where r(Si) is the current round number of
server be large. Even though the server is idle other task task Si which means the number of round
cannot be scheduled. If it schedule a task in an idle time for which Si was executed .
condition-1 may be violated. The scheduled tasks must be 2)
max
+
max
+ ..... +
max
+ B n +1 ≤
max
gaaaa
4. Simulation eaaaa
caaaa
To analyze the performance of algorithms we obtain the Figure 3: The maximum buffer size for a stream
buffer size needed and the number of streams serviced
simultaneously in each round by simulation with following ¥ ¦ £ ¥£ ¤
ef
parameters.
• The length of a round, T, is 1 second.
ea
da
distributed between 20Kbyte/sec and 128K
cf
byte/sec.
• The maximum disk reading rate is
ca
bf
2000Kbyte/sec.
• The total playback time of a stream is four
ba w vr
~ sr
f }w r
of five trials. df
wvr
~sr
da
}wr
ca
buffer are needed in FEA algorithm which is based on ~ © ¦£Y ~ ª¥Z
CBR. LFA algorithm suggested in our paper needs about a (b) total playback time = 600 sec
half of the buffer size needed in FCA.
¥ ¦£ ¥£¤
ea
4.2.2 T h e n u m b er of serviced stream s in a rou n d
df
wvr
~sr
Figure 4 shows the average number of serviced streams da
}wr
df
Sensitive Multimedia Data Storage and Retrieval,” ACM
Trans. of Information Systems, Vol. 10, No. 1, pp. 51-90,
da
w vr
1992.
cf ~ sr [4] K.L. Wu and P.S. Yu, “Consumption-Based Buffer
}w r
Management for Maximizing System throughout of a
ca
Reference
[1] H.J. Chen and T.D.C. Little, “Storage Allocation Policies for
Time-Dependent Multimedia Data, ” IEEE Trans. on
Knowledge and Data Engineering, Vol. 8, No. 5, pp.855-864,
1996
[2] Ghandeharizadeh, S.H. Kim, and C. Shahabi, “On
Configuring a Single Disk Continuous Media Server,” in
Proc. of ACM SIGMETRICS /ERFORMANCE Conf. On
Measurement and Modeling of Computer Systems, pp.164-