Embedded system secondary storage size is often constrained, yet storage demands are growing as a result of increasing application complexity and storage of personal data and multimedia flies. Filesystem compression offers a solution. This paper formalizes the problem of automatic filesystem compression using multiple compression algorithms. The average latency of on-line file accesses is optimized under a constraint on filesystem capacity. Our solution is based on predictive control. Predicted latency implications are used to solve the file compression state selection problem using a multiple choice knapsack problem formulation. This approach is evaluated on filesystem traces and compared with other efficient heuristics. Our approach results in 34.1% reduction in file access latency compared to a straight-forward heuristic that decompresses frequently-accessed files and compresses least recently used files with more aggressive compression algorithms. It reduces file access latency by 67.7% compared to uniformly compressing files to the shallowest level required to meet storage capacity constraints.
[1]
David Woodhouse,et al.
JFFS : The Journalling Flash File System
,
2001
.
[2]
Thomas R. Gross,et al.
Combining the concepts of compression and caching for a two-level filesystem
,
1991,
ASPLOS IV.
[3]
Timo Raita.
An Automatic System for File Compression
,
1987,
Comput. J..
[4]
Mahadev Satyanarayanan,et al.
Long Term Distributed File Reference Tracing: Implementation and Experience
,
1996,
Softw. Pract. Exp..
[5]
Mahadev Satyanarayanan,et al.
Long Term Distributed File Reference Tracing: Implementation and Experience" Technical Report CMU-CS
,
1994
.
[6]
T. Ibaraki,et al.
THE MULTIPLE-CHOICE KNAPSACK PROBLEM
,
1978
.
[7]
David Pisinger.
A minimal algorithm for the Multiple-choice Knapsack Problem
,
1995
.