Stories
Slash Boxes
Comments

SoylentNews is people

posted by cmn32480 on Sunday November 15 2015, @06:46PM   Printer-friendly

Device drivers commonly execute in the kernel to achieve high performance and easy access to kernel services. However, this comes at the price of decreased reliability and increased programming difficulty. Driver programmers are unable to use user-mode development tools and must instead use cumbersome kernel tools. Faults in kernel drivers can cause the entire operating system to crash. User-mode drivers have long been seen as a solution to this problem, but suffer from either poor performance or new interfaces that require a rewrite of existing drivers.

This paper introduces the Microdrivers architecture that achieves high performance and compatibility by leaving critical path code in the kernel and moving the rest of the driver code to a user-mode process. This allows data-handling operations critical to I/O performance to run at full speed, while management operations such as initialization and configuration run at reduced speed in user-level. To achieve compatibility, we present DriverSlicer, a tool that splits existing kernel drivers into a kernel-level component and a user-level component using a small number of programmer annotations. Experiments show that as much as 65% of driver code can be removed from the kernel without affecting common-case performance, and that only 1-6 percent of the code requires annotations.


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 0) by Anonymous Coward on Sunday November 15 2015, @08:04PM

    by Anonymous Coward on Sunday November 15 2015, @08:04PM (#263742)

    Been this way for years on real OS on REAL HARDWARE (main frames). I been writing this way since the 80's from my first C code on an IBM XT..

    Who is still doing it wrong?

  • (Score: 2, Insightful) by jimtheowl on Sunday November 15 2015, @10:08PM

    by jimtheowl (5929) on Sunday November 15 2015, @10:08PM (#263775)

    Mainframes are one thing, but what do you mean by 'that way' on an IBM XT.

    On DOS?