Rockbox General > Rockbox General Discussion

overactive dir cache?

<< < (3/4) > >>

bascule:
What it does is scan the disk and keep a map of the directories and folders so the File Browser (and Database?) do not cause the disk to spin when browsing, as it can display the filetree from memory.

In order to do this is *does* have to scan the disk for changes on startup, so it can modify the map it holds.

However, this should be very quick (my presumed FAT check) unless it actually finds some changes, in which case I believe it then physically scans the disk in order to update it's mental model of the file structure.

squidkidd:
I'm saying that when I get dircache info from the debug menu on the instances where it did not say scanning disk upon startup, it initially tells me that dircache is not initialized.  If I give it long enough, it will become initialized.  I have seen the time this takes be reported from 18s to 601s.  

I guess what I'm asking is when this is happening, is this the same as dircache scanning the disk?

Anyhow the bottom line is that every *other* time I turn the player on dircache must scan the disk which adds a livable but annoying 5-10 seconds to startup time.  this happens even by only turning the player on and off without connecting it to a computer.

Regards,
Brian



--- Quote from: Llorean on July 15, 2007, 01:33:23 PM ---

Are you saying it took a literal 10 minutes for dircache to scan your drive?

--- End quote ---

Llorean:
Yes, because if you turn it off, you *could* turn it back on and hold the button combination to go into disk mode bypassing entirely the Rockbox bootloader.

Rockbox *cannot* know that you haven't done anything while it's shut off. AFAIK it should at least check every boot to see if new files have been added,  and I'm somewhat surprised if it doesn't.

squidkidd:
Ok, well I can just live with it scanning the disk every other boot.  My question now though is when I turn dircache off and then back on, and it says it needs a reboot, and I do that, it takes 3 or 4 reboots before the player remembers I turned dircache on.  After the first couple reboots I go to the dircache setting, and "off" is still selected even though last time the player was on, I turned it to "on".  Why does it have a hard time remembering to initially turn dircache on?  Once it loads dircache, it's fine, but that first time to get it to do so is tricky.

Brian

Llorean:
Have you actually tried waiting to see if it's just doing a background scan?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version