Abstract
Multimedia systems serving audio and video require strict real-time continuity, often leading to underutilized resources due to conservative admission control. This paper introduces a buffer-sharing scheme and an "Intelligent Prefetching" (IP) strategy designed to maximize throughput in "news on-demand" environments. By exploiting the staggered nature of cyclic disk reads and using idle disk time to reduce the effective consumption rates of queued streams, these methods achieve up to a 50% reduction in buffer requirements and a 40% increase in system throughput.
Introduction
In multimedia systems, once a video starts playing, it cannot pause to wait for disk access. To guarantee smooth playback, admission control only permits new streams if both disk bandwidth and buffer space (RAM) are sufficient. However, this often results in resource underutilization—for instance, a disk might be idle while new streams are blocked due to fully allocated buffer space. This paper addresses how to dynamically manage disk reads and memory to maximize concurrent streams within fixed hardware constraints.
Methodology
Buffer Sharing
Traditionally, systems reserve the maximum required buffer space for a stream throughout its duration. However, in a cyclic, round-robin scheduling model, streams do not reach their peak buffer usage simultaneously. As one stream finishes its disk read and reaches peak buffer occupancy, another is being consumed and approaches zero.
By pooling buffers, the system can support the same number of streams with significantly less total memory. Mathematical analysis and simulations show that this approach can reduce required buffer space by 20% to 40%, approaching a theoretical maximum of 50%.
Intelligent Prefetching (IP)
The authors propose using idle disk cycles to prefetch data for queries waiting in the queue. While Simple Prefetching (SP) naively loads data for the next query, it often fails because it doesn't address the underlying bandwidth bottleneck.
In contrast, Intelligent Prefetching (IP) identifies the shortest media clip in the queue and calculates the exact prefetch amount needed to lower its "effective consumption rate."
As shown in the figure above, prefetching an amount $pf$ allows the remaining data to be read at a lower "new rate" (dashed line) compared to the "original rate" (solid line). This rate reduction allows streams to pass admission control limits that would otherwise block them.
Key Insights
- Prefetching as Rate Reduction: The primary benefit of prefetching is not just early data availability, but the reduction of the disk bandwidth required during playback.
- Length Sensitivity: Prefetching is most effective for short clips (e.g., news segments). Reducing the rate of a 30-second clip by 50KB/s requires far less buffer space than doing the same for a 90-minute movie, making IP ideal for news-on-demand.
- The Failure of Naive Approaches: Simple prefetching can be counterproductive if the prefetched data occupies buffer space without enabling the stream to start, thereby blocking other potential optimizations.
Results
Simulation results using a custom discrete-event package demonstrated significant performance gains:
- Throughput: IP reduced the total processing time for a batch of 50 queries by 30%, translating to a ~40% increase in system throughput over no-prefetching or SP strategies.
- Disk Utilization: IP successfully utilized idle cycles to perform productive work, pushing average disk utilization closer to 1.0.
- Buffer Efficiency: Buffer sharing consistently reduced memory overhead by 20-40% depending on disk utilization levels.
Conclusion and Future Work
While highly effective for short-form content, the proposed IP strategy is less practical for long-form movies due to the massive buffer requirements needed for significant rate reduction. Additionally, the current buffer-sharing model assumes a fixed reading order. Future work will explore integrating these techniques with dynamic scheduling (like SCAN) to further minimize seek times and extending the model to distributed, multi-disk environments.
Summary updated