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:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Directory Cache vs. Load to RAM - clarification.
« previous next »
  • Print
Pages: [1]

Author Topic: Directory Cache vs. Load to RAM - clarification.  (Read 4270 times)

Offline lalittle

  • Member
  • *
  • Posts: 103
Directory Cache vs. Load to RAM - clarification.
« on: April 24, 2007, 06:50:34 PM »
I'm not entirely clear on the difference between the "Directory Cache" disk setting and the "Load to RAM" database setting.

From the manual, it sounds like they provide similar functions for different types of viewing -- i.e. that they both speed up browsing by loading data to the RAM, but that the "Directory Cache" effects browsing by "files," whereas the "Load to RAM" setting effects browsing by the "database."

Is this correct?

Thanks for clarification on this,

Larry
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Directory Cache vs. Load to RAM - clarification.
« Reply #1 on: April 24, 2007, 06:53:39 PM »
Quote from: lalittle on April 24, 2007, 06:50:34 PM
Is this correct?
Yes.

Dircache caches the filesystem structure, so browsing the file system is much smoother as it can use the cached structure. "Load to RAM" is part of the database settings and selects whether the database itself is loaded to RAM. If it's not loaded to RAM every time you access the database the database file on disk needs to get accessed, resulting in a disk access (and thus disk spinup).
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline lalittle

  • Member
  • *
  • Posts: 103
Re: Directory Cache vs. Load to RAM - clarification.
« Reply #2 on: April 24, 2007, 07:42:07 PM »
Quote from: bluebrother on April 24, 2007, 06:53:39 PM
Quote from: lalittle on April 24, 2007, 06:50:34 PM
Is this correct?
Yes.

Dircache caches the filesystem structure, so browsing the file system is much smoother as it can use the cached structure. "Load to RAM" is part of the database settings and selects whether the database itself is loaded to RAM. If it's not loaded to RAM every time you access the database the database file on disk needs to get accessed, resulting in a disk access (and thus disk spinup).

Thanks.

Does the "Directory Cache" setting have any effect if you have Rockbox set to browse by database?  In other words, is the "Directory Cache" setting still something to consider if you only browse by database, or is it moot in this case?

Thanks again,

Larry
Logged

Offline Mad Cow

  • Member
  • *
  • Posts: 445
Re: Directory Cache vs. Load to RAM - clarification.
« Reply #3 on: April 24, 2007, 10:30:47 PM »
If you never use the directory browser, then it is completely useless.
Logged
iRiver H10 5GB, Gigabeat F40, Gigabeat S60, all rockboxed. :P

Offline mikeage

  • Member
  • *
  • Posts: 110
    • mikeage.net
Re: Directory Cache vs. Load to RAM - clarification.
« Reply #4 on: April 24, 2007, 10:47:30 PM »
I thought Directory Cache helps Database scan for new (and deleted?) files
Logged

Offline Mad Cow

  • Member
  • *
  • Posts: 445
Re: Directory Cache vs. Load to RAM - clarification.
« Reply #5 on: April 24, 2007, 11:31:34 PM »
Quote from: mikeage on April 24, 2007, 10:47:30 PM
I thought Directory Cache helps Database scan for new (and deleted?) files

That's true, but only if automatic scanning is turned on, and even then it doesn't always work.
Logged
iRiver H10 5GB, Gigabeat F40, Gigabeat S60, all rockboxed. :P

Offline mikeage

  • Member
  • *
  • Posts: 110
    • mikeage.net
Re: Directory Cache vs. Load to RAM - clarification.
« Reply #6 on: April 24, 2007, 11:47:03 PM »
Quote from: Mad Cow link=topic=10115.msg77516#msg77516
That's true, but only if automatic scanning is turned on, and even then it doesn't always work.

I assume you're referring to "Update Automatically".

When you say it doesn't work, are you suggesting there's a bug, or it's not designed to work in all cases.

If it's the first, then Directory Cache certainly has a purpose outside of file browsing...
« Last Edit: April 25, 2007, 12:07:50 AM by mikeage »
Logged

Offline lalittle

  • Member
  • *
  • Posts: 103
Re: Directory Cache vs. Load to RAM - clarification.
« Reply #7 on: April 24, 2007, 11:56:13 PM »
On the subject of "Update Now" feature, this has NEVER worked for me.  If I use the "Update" function, the database becomes completely corrupt, with songs listing out of order, some of which include track numbers while others don't.  A new "initialize" does not work, nor does deleting the database files (.tcd files if memory serves.)  In order to get the database correct again, I have to completley delete the rockbox folder and start over again.

Larry
Logged

Offline Mad Cow

  • Member
  • *
  • Posts: 445
Re: Directory Cache vs. Load to RAM - clarification.
« Reply #8 on: April 25, 2007, 07:00:39 PM »
Quote from: mikeage on April 24, 2007, 11:47:03 PM
Quote from: Mad Cow link=topic=10115.msg77516#msg77516
That's true, but only if automatic scanning is turned on, and even then it doesn't always work.

I assume you're referring to "Update Automatically".

When you say it doesn't work, are you suggesting there's a bug, or it's not designed to work in all cases.

If it's the first, then Directory Cache certainly has a purpose outside of file browsing...

It's probably a bug, but I don't really mind it because I always do a manual update every time I add more music.
Logged
iRiver H10 5GB, Gigabeat F40, Gigabeat S60, all rockboxed. :P

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Directory Cache vs. Load to RAM - clarification.
« Reply #9 on: April 25, 2007, 07:43:28 PM »
Quote from: Mad Cow on April 25, 2007, 07:00:39 PM
It's probably a bug, but I don't really mind it because I always do a manual update every time I add more music.
Dircache is required for the auto update of the database to find deleted files.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Directory Cache vs. Load to RAM - clarification.
 

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

Page created in 0.091 seconds with 16 queries.