Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  FAT read ahead
« previous next »
  • Print
Pages: [1]

Author Topic: FAT read ahead  (Read 1302 times)

Offline dreamlayers

  • Developer
  • Member
  • *
  • Posts: 425
  • Boris Gjenero
    • My Blog
FAT read ahead
« on: December 09, 2008, 04:41:30 PM »
I noticed that when filling the buffer my iPod does noticeable seeks at semi-regular intervals even if reading from a single non-fragmented file.  It seems this is due to having to read the next FAT sector.  In firmware/drivers/fat.c there is a FAT cache but no read-ahead of the FAT.

I created a function to preload the FAT cache, and I use it on files right before they're loaded into the buffer.  This got rid of that regular seeking and it seems to it can remove about two seconds from the time needed to fill the buffer when reading a single non-fragmented file.  Currently the code is quite simple and unintelligent.  Fragmentation or other activity can overwrite the pre-loaded FAT sectors in the cache, and in such cases the pre-load leads to extra reads.  I didn't submit a patch because I'm not sure if such simple experiments should be submitted.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: FAT read ahead
« Reply #1 on: December 09, 2008, 04:45:21 PM »
Open an FS entry.
Logged

Offline dreamlayers

  • Developer
  • Member
  • *
  • Posts: 425
  • Boris Gjenero
    • My Blog
Re: FAT read ahead
« Reply #2 on: December 09, 2008, 09:42:03 PM »
Here you go http://www.rockbox.org/tracker/task/9621
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  FAT read ahead
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.177 seconds with 17 queries.