Forum Discussion

thetick's avatar
thetick
Roku Guru
12 years ago

Check channel memory used?

Is there a way to query the channel memory with the SDK? I would like to see the list of channels / version / channel memory installed / channel memory free.

Something like (I just pulled numbers off my head since I have no idea the memory footprint of channels or too lazy to lookup recent version numbers):

Model Roku3 - 4200 - 256MB channel memory on board plus 1.8GB SD Memory

Angry Birds Space (v1.1.6) -- 20MB
Netflix (v1.4.2) -- 5MB
Amazon (v2.1.2) -- 1MB
....

Totals: channel memory free 10MB
SD memory free 1.6GB

I have C/C++ and shell scripting experience so if there is an example or specific BrightScript API call for this in I can figure out the layout for the above.

3 Replies

  • "Channel memory used" is not really a meaningful concept for devices running 5.x firmware. The channel memory is used as a cache of the most recently used channels. If you open a channel that's not in memory, the channel is downloaded and, if necessary, enough least recently channels are removed from the cache to make room. So the amount of channel memory in use at any point in time wouldn't really tell you anything useful.

    --Mark
  • Thanks for the quick response.

    So with the Roku 3 there is no limit to the number channels since if the local memory and SD card are full the Roku will just pull "installed" channels from the online channel store. So am I correct guessing the SD is always used first if available and uses a LRU write thru cache algorithm to keep the latest used channels stored on the SD card?
  • Only the first generation boxes have channel storage limits. All the boxes after the XDS work as Mark says.