Bdbuf improvements

From RTEMSWiki
Revision as of 11:37, 18 March 2012 by Gedare (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Mentors: Sebastian Huber

Students:

Status: Uninitiated.

Introduction: The Bdbuf is the block device buffer management in RTEMS. It suffers from a number of inefficiencies that should be addressed and fixed.

Goal: To improve the Bdbuf implementation in terms of its replacement strategy, disk api, driver api, and block prefetching.

Requirements: Advanced C programming. Algorithmic evaluation and development.

Replacement Strategy

Bdbuf uses currently the LRU replacement strategy. This was easy to implement but has several severe drawbacks. Due to patent issues we should use LIRS instead of ARC. Steps to move from LRU to LIRS:

  1. Define a set of benchmarks
  2. Add test cases for LIRS
  3. Implement LIRS
  4. Run the benchmark with Bdbuf based on LRU and LIRS (optionally also ARC)

Further information:

Disk API

The access by device identifier should be replaced with the disk device structure. This avoids the look up overhead and ensures that the disks have a proper usage count.

Driver API

The driver API should be changed to use the buffer chains directly. Currently a table is allocated on the stack to hold the request structure.

Prefetch Strategy

Implement a proper block prefetch strategy. The current read ahead approach is virtually useless.

Personal tools
Namespaces

Variants
Actions
Navigation
Gedare's Special Help
Toolbox