skip to main content
10.1145/502034.502046acmconferencesArticle/Chapter ViewAbstractPublication PagessospConference Proceedingsconference-collections
Article

Anticipatory scheduling: a disk scheduling framework to overcome deceptive idleness in synchronous I/O

Published:21 October 2001Publication History

ABSTRACT

Disk schedulers in current operating systems are generally work-conserving, i.e., they schedule a request as soon as the previous request has finished. Such schedulers often require multiple outstanding requests from each process to meet system-level goals of performance and quality of service. Unfortunately, many common applications issue disk read requests in a synchronous manner, interspersing successive requests with short periods of computation. The scheduler chooses the next request too early; this induces deceptive idleness, a condition where the scheduler incorrectly assumes that the last request issuing process has no further requests, and becomes forced to switch to a request from another process.We propose the anticipatory disk scheduling framework to solve this problem in a simple, general and transparent way, based on the non-work-conserving scheduling discipline. Our FreeBSD implementation is observed to yield large benefits on a range of microbenchmarks and real workloads. The Apache webserver delivers between 29% and 71% more throughput on a disk-intensive workload. The Andrew filesystem benchmark runs faster by 8%, due to a speedup of 54% in its read-intensive phase. Variants of the TPC-B database benchmark exhibit improvements between 2% and 60%. Proportional-share schedulers are seen to achieve their contracts accurately and efficiently.

References

  1. 1.J. Almeida, M. Dabu, A. Manikutty, and P. Gao. Providing differentiated quality of service in web hosting services. In WISP, June 1998.]]Google ScholarGoogle Scholar
  2. 2.M. Aron and P. Druschel. Soft timers: Efficient microsecond software timer support for network processing. In 17th ACM SOSP, Dec. 1999.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. 3.M. Aron, S. Iyer, and P. Druschel. A resource management framework for predictable quality of service in web servers, July 2001. Submitted. http://www.cs.rice.edu/-ssiyer/r/mbqos/.]]Google ScholarGoogle Scholar
  4. 4.G. Banga, P. Druschel, and J. C. Mogul. Resource containers: A new facility for resource management in server systems. In 3rd USENIX OSDI, Feb. 1999.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. 5.J. Bennett and H. Zhang. WF2Q: Worst-case fair weighted fair queueing. In IEEE Infocom, Mar. 1996.]]Google ScholarGoogle ScholarCross RefCross Ref
  6. 6.HTTP log files at the University of California, Berkeley. http: //www.cs.berkeley.edu/logs/http /.]]Google ScholarGoogle Scholar
  7. 7.J. Bruno, J. Brustoloni, E. Gabber, B. Ozden, and A. Silberschatz. Disk scheduling with quality of service guarantees. In IEEE ICMCS, June 1999.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. 8.J. Bruno, E. Gabber, B. ()zden, and A. Silberschatz. The Eclipse operating system: Providing quality of service via reservation domains. In USENIX 1998 Annual Technical Conference, June 1998.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. 9.S. Chen, J. A. Stankovic, J. F. Kurose, and D. Towsley. Performance evaluation of two new disk scheduling algorithms for real-time systems. Journal of Real-Time Systems, 3(3):307-336, Sept. 1991.]]Google ScholarGoogle ScholarCross RefCross Ref
  10. 10.L. Golubchik, J. C. S. Lui, E. de Souza e Silva, and H. R. Gail. Evaluation of tradeoffs in resource management techniques for multimedia storage servers. In IEEE ICMCS, June 1999.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. 11.P. Goyal, X. Guo, and H. Vin. A hierarchical CPU scheduler for multimedia operating systems. In 2nd USENIX OSDI, Oct. 1996.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. 12.J. Howard, M. Kazar, S. Menees, D. Nichols, M. Satyanarayanan, R. Sidebotham, and M. West. Scale and performance in a distributed file system. ACM Transactions on Computer Systems, 6(1):51-81, Feb. 1988.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. 13.L. Huang and T. Chiueh. Implementation of a rotation latency sensitive disk scheduler. Technical Report ECSL-TR81, SUNY, Stony Brook, Mar. 2000.]]Google ScholarGoogle Scholar
  14. 14.S. Iyer and P. DruscheL The effect of deceptive idleness on disk schedulers. Technical Report CSTR01-379, Rice University, June 2001.]]Google ScholarGoogle Scholar
  15. 15.D. Jacobson and J. Wilkes. Disk scheduling algorithms based on rotational position. Technical Report HPL-CSP-91-Trevl, Hewlett-Packard, Feb. 1991.]]Google ScholarGoogle Scholar
  16. 16.C. Lumb, J. Schindler, G. Ganger, D. Nagle, and E. Riedel. Towards higher disk head utilization: Extracting free bandwidth from busy disk drives. In 4th USENIX OSDI, Oct. 2000.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. 17.T. Mowry, A. Demke, and O. Krieger. Automatic compiler inserted I/O prefetching for out-of-core applications. In Pnd USENIX OSDI, Oct. 1996.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. 18.H. Patterson, G. Gibson, E. Ginting, D. Stodolsky, and J. Zelenka. Informed prefetching and caching. In 15th ACM SOSP, Dec. 1995.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. 19.D. Roselli, J. R. Lorch, and T. E. Anderson. A comparison of file system workloads. In USENIX Annual Technical Conference, June 2000.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. 20.E. Rosti, E. Smirni, G. Serazzi, and L. W. Dowdy. Analysis of non-work-conserving processor partitioning policies. Lecture Notes in Computer Science, 949:165-181, 1995.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. 21.C. Ruemmler and J. Wilkes. An introduction to disk drive modeling. IEEE Computer, 27(3):17-28, 1994.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. 22.M. Seltzer, P. Chen, and J. Ousterhout. Disk scheduling revisited. In USENIX Winter Technical Conference, Jan. 1990.]]Google ScholarGoogle Scholar
  23. 23.P. Shenoy and H. Via. Cello: A disk scheduling framework for next generation operating systems. In ACM Sigmetrics, June 1998.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  24. 24.E. Shriver, C. Small, and K. Smith. Why does file system prefetching work? In USENIX Annual Technical Conference, June 1999.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  25. 25.J. B. Siegal, Jan. 2000. http://www.cs.rice.edu/~ssiyer/r/antsched/linux.html.]]Google ScholarGoogle Scholar
  26. 26.D. Sullivan and M. Seltzer. Isolation with flexibility: A resource management framework for central servers. In USENIX Annual Technical Conference, June 2000.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  27. 27.Transaction Processing Performance Council. TPC-B standard specification, revision 2.0, 1994.]]Google ScholarGoogle Scholar
  28. 28.R. Vaswani and J. Zahorjan. The implications of cache affinity on processor scheduling for shared memory multiprocessors. In 13th ACM SOSP, Oct. 1991.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  29. 29.B. Verghese, A. Gupta, and M. Rosenblum. Performance isolation: Sharing and isolation in shared memory multiprocessors. In ASPLOS, Oct. 1998.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  30. 30.W. Vogels. File system usage in Windows NT 4.0. In 17th ACM SOSP, June 2000.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  31. 31.C. Waldspurger and W. Weihl. Lottery scheduling: Flexible proportional-share resource management. In 1st USENIX OSDI, Nov. 1994.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  32. 32.C. Waldspurger and W. Weihl. Stride scheduling: Deterministic proportional resource management. Technical report, MIT/LCS/TM-528, June 1995.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  33. 33.F. Waters. AIX performance tuning guide, chapter 8. Prentice Hall, 1994.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  34. 34.B. Worthington, G. Ganger, and Y. Part. Scheduling algorithms for modern disk drives. In ACM Sigmetrics, 1994.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  35. 35.X. Yu, B. Gum, Y. Chen, R. Wang, K. Li, A. Krishnamurthy, and T. Anderson. Trading capacity for performance in a disk array. In 4th USENIX OSDI, Oct. 2000.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  36. 36.H. Zhang. Providing end-to-end performance guarantees using non-work-conserving disciplines. Computer Communications, 18(10), Oct. 1995.]]Google ScholarGoogle Scholar

Index Terms

  1. Anticipatory scheduling: a disk scheduling framework to overcome deceptive idleness in synchronous I/O

Recommendations

Comments

Login options

Check if you have access through your login credentials or your institution to get full access on this article.

Sign in
  • Published in

    cover image ACM Conferences
    SOSP '01: Proceedings of the eighteenth ACM symposium on Operating systems principles
    October 2001
    254 pages
    ISBN:1581133898
    DOI:10.1145/502034

    Copyright © 2001 ACM

    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    • Published: 21 October 2001

    Permissions

    Request permissions about this article.

    Request Permissions

    Check for updates

    Qualifiers

    • Article

    Acceptance Rates

    SOSP '01 Paper Acceptance Rate17of85submissions,20%Overall Acceptance Rate131of716submissions,18%

    Upcoming Conference

    SOSP '24

PDF Format

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader