Beruflich Dokumente
Kultur Dokumente
Disk Layout
The layout of a disk determines
• the way in which content is addressed
• how much storage space on the media is actually addressable and usable
• the density of stored content on the media
Tracks and sectors
• A hard disk consists of one or more heads
• A hard disk is divided into tracks
and further into sectors (512 Byte)
• The same track on all heads is called cylinder
• Storage of a file is done in terms of sectors
• Unused space of a sector is wasted
• Easy mapping of file location information
to head movement and disc rotation
• Constant angular velocity (CAV),
i.e. same access time to inner/outer tracks
• Access to a sector by a movable disk arm
Chapter 4.2: Multimedia File Systems Page 3
Lehrstuhl für Informatik 4
Kommunikation und verteilte Systeme
Disk Layout
Contiguous Placement
Non-contiguous Placement
1st file
2nd file
3rd file
In traditional file systems, efficient usage of storage capacity is the main goal. The total
time to service a request to a file in such a system consist of:
• Seek time, head positioning to appropriate track (diameter)
Delay
• Latency (rotation time), time to find the block in the track
• Actual data transfer time
Technique to reduce delay:
• Seek operation → Scheduling algorithms
• Latency → File allocation methods
Next, we will consider strategies for minimizing the seek time, i.e. for the positioning time
of the head to the appropriate track. Tracks are numbered 0, ..., N - 1. Here, 0 is the
innermost and N - 1 the outermost track.
successive requests
i+1 173 i+1
31 i+2
130
i+2 13
133
order of
63
69
Queue
(51)
108
173
31
SSTF movement: 243 130
13
133
63
Optimal overall 69
movement: 198
+ Fair service
- More uniform waiting time
- Performance not as good as SCAN
+Chapter
Middle4.2: Multimedia
tracks a better service than edge tracks (such as with SCAN or withPage
File Systems
don’t get 13
SSTF)
Lehrstuhl für Informatik 4
Kommunikation und verteilte Systeme
G S+G
To fulfill the requirements of multimedia data, scheduling has another focus than in
traditional file systems:
• Goals in Traditional File Systems:
Reduce cost of seek time (effective utilization of disk arm)
Achieve fair throughput
Provide fair disk access
Achieve short average response times
• Goals in Multimedia File Systems are different:
Meet deadlines of all time-critical tasks
Keep the necessary buffer space requirements low
Find balance between time constraints and efficiency
3 50
2 42
1 45
1 12 1 12 1 45 2 42 3 50 2 16 3 30
2 40 2 40 1 12 1 45 2 42 3 50 2 16
1 22 2 40 2 40 2 40 2 42 3 50
1 22
22 12 45 40 42 16
• Poor throughput due to excessive seek time. Only deadlines are taken into account, but
not track number.
Chapter
• Very4.2: Multimedia
similar File Systems
to FCFS: Page 17
inefficient. Does not reflect the geographical position of tracks.
Lehrstuhl für Informatik 4
Kommunikation und verteilte Systeme
• Thus if the deadline for a task on track 42 is equal to 3 then the perturbed deadline is
3 + 100
42
= 3,42
• This deadline is given to the task at arrival time
3.50 50 2.16 16
3.50 50
2.42 42 3.50 50
2.42 42
1.45 45 2.42 42 2.42 42
2.40 40 2.40 40 16
1.12 12 1.45 45
2.40 40 1.45 45
2.40 40 1.12 12 40
deadline 2, i.e. ∈ [2:3]
2.40 40 1.22 22
1.22 22 45
1.22 22
22
deadline 1, i.e. ∈ [1:2]
12
• Optimization only applies for requests with
• Among the same deadline SCAN is applied the same deadline before the comma
• Request with the earliest deadline is served • Increase this probability by grouping the
• Chapter
Sensible4.2:only
Multimedia File Systems
for a large number of requests requests Page 20
Lehrstuhl für Informatik 4
Kommunikation und verteilte Systeme
0 10 20 30 40 50
SCAN-EDF EDF
Deadlines
Disk Scheduling
• Filling status of buffers indicate when to switch from SSTF to “Balanced“ and vice
versa
1
• “Urgency“ criterion: Urgency = ∑
( all streams i ) Fullness i
Conclusion
Multimedia Systems…
• … is not only about the media format (MPEG, PCM, …)
• … also needs considerations how to store and access the media
• … can be distributed: how to transmit the media over a network
• (… needs new user interfaces and programming concepts)