Minimizing flow time nonclairvoyantly

We consider the problem of scheduling a collection of dynamically arriving jobs with unknown execution times so as to minimize the average flow time. This is the classic CPU scheduling problem faced by time-sharing operating systems where preemption is allowed. It is easy to see that every algorithm that doesn't unnecessarily idle the processor is at worst n-competitive, where n is the number of jobs. Yet there was no known nonclairvoyant algorithm, deterministic or randomized, with a competitive ratio provably O(n1−ε). In this article, we give a randomized nonclairvoyant algorithm, RMLF, that has competitive ratio O(log n log log n) against an oblivious adversary. RMLF is a slight variation of the multilevel feedback (MLF) algorithm used by the UNIX operating system, further justifying the adoption of this algorithm. It is known that every randomized nonclairvoyant algorithm is Ω(log n)-competitive, and that every deterministic nonclairvoyant algorithm is Ω(n1/3)-competitive.

[1]  Maurice J. Bach The Design of the UNIX Operating System , 1986 .

[2]  Eugene L. Lawler,et al.  Chapter 9 Sequencing and scheduling: Algorithms and complexity , 1993, Logistics of Production and Inventory.

[3]  Abraham Silberschatz,et al.  Operating System Concepts , 1983 .

[4]  Jirí Sgall,et al.  On-line Scheduling , 1996, Online Algorithms.

[5]  M. Malik,et al.  Operating Systems , 1992, Lecture Notes in Computer Science.

[6]  Ronald L. Rivest,et al.  Introduction to Algorithms , 1990 .

[7]  R. E. Wheeler Statistical distributions , 1983, APLQ.

[8]  M. Evans Statistical Distributions , 2000 .

[9]  Tsuyoshi Matsumoto Competitive Analysis of the Round Robin Algorithm , 1992, ISAAC.

[10]  Jeff Edmonds,et al.  Scheduling in the dark , 1999, STOC '99.

[11]  Rajeev Motwani,et al.  Non-clairvoyant scheduling , 1994, SODA '93.

[12]  Allan Borodin,et al.  Online computation and competitive analysis , 1998 .

[13]  Jeff Edmonds Scheduling in the dark , 2000, Theor. Comput. Sci..

[14]  Cynthia A. Phillips,et al.  Optimal Time-Critical Scheduling via Resource Augmentation , 1997, STOC '97.

[15]  Peter J. Denning,et al.  Operating Systems Theory , 1973 .

[16]  Stefano Leonardi,et al.  Approximating total flow time on parallel machines , 1997, STOC '97.

[17]  Bala Kalyanasundaram,et al.  Speed is as powerful as clairvoyance , 2000, JACM.

[18]  Alan C. Shaw,et al.  The logical design of operating systems (2. ed.) , 1988 .

[19]  Alan Shaw,et al.  The logical design of operating systems , 1987 .

[20]  Piotr Berman,et al.  Speed is More Powerful than Clairvoyance , 1998, Nord. J. Comput..

[21]  D. Atkin OR scheduling algorithms. , 2000, Anesthesiology.

[22]  Eugene L. Lawler,et al.  Sequencing and scheduling: algorithms and complexity , 1989 .