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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Cache size setting for allowing ram-intensive plugings to run better?
« previous next »
  • Print
Pages: [1]

Author Topic: Cache size setting for allowing ram-intensive plugings to run better?  (Read 1979 times)

Offline Jason Arthur Taylor

  • Member
  • *
  • Posts: 39
  • Now: Sansa clip zip. Exes: over 20
Cache size setting for allowing ram-intensive plugings to run better?
« on: February 06, 2012, 10:20:21 PM »
I was having some issues with some plugins and read in a thread the solution was to decrease the cache size.  I think a recompile was needed.

I think the cache uses a lot of ram.  If you are listening to high bitrate mp3s on a physical hdd, sure, might be useful to have a big cache.  For me, however, I'd like a small cache, especially when certain plugins crash.  

Present options are only:

o Directory Cache: Y/N
o Browser limits
o Max playlist size, and 
o Gylphs to cache

But I suspect the biggest thing one can alter to change ram is mp3 pre-read cache.

I propose adding it, so one does not need to do a recompile to test an intermittant crash of a plug in.  And just because more ram is better.  

There are some hardware limits, like IRAM per chip.  But still, this seems to be a good option to me.  I am half expecting I am wrong, based purely on the acceptance rate of ideas here, so I look forward to reading posts by the experts explaining why this is actually a dumb idea.  On the other chance, perhaps I will get lucky and someone will code it.  Thanks in advance either way.

Jason
« Last Edit: February 06, 2012, 10:22:46 PM by Jason Taylor »
Logged
http://twitter.com/jasontaylor7

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Cache size setting for allowing ram-intensive plugings to run better?
« Reply #1 on: February 06, 2012, 10:27:42 PM »
Quote from: Jason Taylor on February 06, 2012, 10:20:21 PM
I was having some issues with some plugins and read in a thread the solution was to decrease the cache size.  I think a recompile was needed.

I think the cache uses a lot of ram.  If you are listening to high bitrate mp3s on a physical hdd, sure, might be useful to have a big cache.  For me, however, I'd like a small cache, especially when certain plugins crash.  

Plugins can already use as much of the compressed audio buffer as they want.  No setting is required, they automatically take it. 
Logged

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: Cache size setting for allowing ram-intensive plugings to run better?
« Reply #2 on: February 07, 2012, 05:35:37 AM »
To be more specific: plugins get a fixed amount of memory by default, which you cannot change by changing any settings. If they need more than that (because you've loaded a large file) then they stop audio playback and take over the audio buffer, which is the majority of RAM. If that's still not enough memory then you can get just a *little* more by disabling the dircache and reducing some of the limits, but the difference is very small.

There's not really anything else that can be done; at that point the only large thing left in memory will be Rockbox's actual code :)
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

Offline dreamlayers

  • Developer
  • Member
  • *
  • Posts: 425
  • Boris Gjenero
    • My Blog
Re: Cache size setting for allowing ram-intensive plugings to run better?
« Reply #3 on: February 07, 2012, 12:14:44 PM »
Can a plugin also use the codec buffer?
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Cache size setting for allowing ram-intensive plugings to run better?
« Reply #4 on: February 07, 2012, 09:32:21 PM »
yes they can. I'm curious, what plgin was crashing? I very much doubt disabling dircache would solve the problem.
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline Jason Arthur Taylor

  • Member
  • *
  • Posts: 39
  • Now: Sansa clip zip. Exes: over 20
Re: Cache size setting for allowing ram-intensive plugings to run better?
« Reply #5 on: February 11, 2012, 01:18:37 PM »
I was reading this post:

http://forums.rockbox.org/index.php/topic,25727.msg171853.html#msg171853

which, based on the above I assume is out of date and incorrect.

I am mostly using gameboy plugins, as the rockchess game is worthless.  (Ancient time-based difficulty algorithm combined with moore's law = nearly impossible to beat even on level 1). 
Logged
http://twitter.com/jasontaylor7

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Cache size setting for allowing ram-intensive plugings to run better?
 

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

Page created in 0.092 seconds with 15 queries.