New page in Wiki about camera RAM memory usage - General Help and Assistance on using CHDK stable releases - CHDK Forum

New page in Wiki about camera RAM memory usage

  • 12 Replies
  • 11794 Views
*

Offline fudgey

  • *****
  • 1705
  • a570is
New page in Wiki about camera RAM memory usage
« on: 08 / January / 2009, 18:51:54 »
Advertisements
The lack of RAM memory is a problem for CHDK, for some models more than for others. For properly ported cameras, lack of RAM is probably the #1 reason for crashes. I wrote what I know about it, and more (:haha) to our beloved wiki:

http://chdk.wikia.com/wiki/CHDK/Camera_RAM_memory_usage.

Developers: please fix what's wrong and add things you think are important (but maybe link hard devel stuff somewhere separate to keep the page user level).
Users: Read and learn. :D

Everybody: Please do the test in the end of the page to fill in (unless a developer comes and tells me a full table can already be gathered from trunk source tree somehow with reasonable accuracy!)

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: New page in Wiki about camera RAM memory usage
« Reply #1 on: 08 / January / 2009, 19:18:16 »
I am not very famaliar with Wiki editing,
Quote
DNG output (requirement depends on the size of your badpixel.bin, ca. 26 kB with about 9000 bad pixels).
And  ~40kb at shooting for DNG header with preview.
Quote
To free RAM used by DNG, disable DNG in RAW menu and power off camera (no need to delete badpixel.bin).
Memory is freed at moment of disabling DNG shooting, no camera restart required (but camera restart can decrease memory fragmentation :)).
Quote
Does the camera ever defragment RAM?

How? OS cannot join two free blocks if between them is located non-free block (no virtual memory in camera).
« Last Edit: 08 / January / 2009, 19:25:08 by ewavr »

*

Offline fe50

  • ******
  • 3152
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: New page in Wiki about camera RAM memory usage
« Reply #2 on: 08 / January / 2009, 21:01:52 »
Congratulations fudgey - a really great article, as always...

*

Offline reyalp

  • ******
  • 14126
Re: New page in Wiki about camera RAM memory usage
« Reply #3 on: 08 / January / 2009, 21:08:24 »
Good work.

Quote
If you have an old low range Digic II model, you are more likely to suffer from low RAM than if you have a recent higher end model.
This does not appear to be true: see my a540 results. If more people post, perhaps a pattern will emerge.
Don't forget what the H stands for.

*

Offline fe50

  • ******
  • 3152
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: New page in Wiki about camera RAM memory usage
« Reply #4 on: 08 / January / 2009, 21:46:59 »
Yep, my old SD400 seem to have much more free mem as e.g. the SX100 - i'll post my results later, need some sleep now...

*

Offline reyalp

  • ******
  • 14126
Re: New page in Wiki about camera RAM memory usage
« Reply #5 on: 08 / January / 2009, 22:59:18 »
I expect the cameras with less features need less RAM for the stock firmware. Lower resolution (for both capture and display) may also be a factor.
Don't forget what the H stands for.

*

Offline quietschi

  • ***
  • 116
  • Ixus70 102a
Re: New page in Wiki about camera RAM memory usage
« Reply #6 on: 09 / January / 2009, 04:38:59 »
result for ixus70_sd1000 ver 102a

ixus70_sd1000-102a-0.9.1-673.zip

Free Memory 662272, CHDK Size 333552, Total 995824

with my configuration (eg. German Lang)

Free Memory 593604, CHDK Size 333552, Total 927156

*

Offline whim

  • ******
  • 2046
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: New page in Wiki about camera RAM memory usage
« Reply #7 on: 09 / January / 2009, 06:04:08 »
Results for A590_101b @ trunk673:

MemFree:   542 216
CHDK size:  336 108
-- --------------------- +
Total:           878 324

wim

BTW: not that i can think of a better method, but this of course includes
          the 'overhead' of the running Default script ...
          Booting into Play/review mode i get 545 192 MemFree, so above
          overhead + Rec mode overhead is less than 3k

edit: checked P & Auto mode, same result. added to wiki

edit2: A620_100f: 418 640 / 327 632 / 746 272 (added to wiki)
           A630_100c: 319 564 / 329 568 / 649 132 (added to wiki)
« Last Edit: 09 / January / 2009, 07:26:19 by whim »

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: New page in Wiki about camera RAM memory usage
« Reply #8 on: 09 / January / 2009, 12:43:14 »
BTW: not that i can think of a better method, but this of course includes
          the 'overhead' of the running Default script ...
          Booting into Play/review mode i get 545 192 MemFree, so above
          overhead + Rec mode overhead is less than 3k

Yes, in play mode we have more RAM available maybe due to both CHDK and Canon... Actually I almost put in a requirement to shoot once before taking the measurement (because the camera allocates some memory at first half shoot or maybe even more at full shoot, you may have noticed the note about this in the memory fragmentation section), but I wanted to keep this simple (requiring a shoot brings out questions of whether shooting mode, flash state etc affect the result and so forth).

*

Offline reyalp

  • ******
  • 14126
Re: New page in Wiki about camera RAM memory usage
« Reply #9 on: 09 / January / 2009, 18:41:36 »
Note that different record modes (manual focus, movie etc) also can have quite different memory values. Finally, I've noticed +/- a few KB between boots, without changing anything. So these numbers should be regarded as approximate.
« Last Edit: 10 / January / 2009, 18:22:02 by reyalp »
Don't forget what the H stands for.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal