Bdbuf improvements

From RTEMSWiki
Revision as of 07:19, 31 July 2011 by Sh (Talk | contribs)

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

The Bdbuf is the block device buffer management in RTEMS.

Contents

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