System Memory - 0.5mb - 1.6mb

Hi, we are trying to find out if the system memory used by our app is appropriate.

Tested on iPad 3 Retina 64GB

We are testing a book app with 32 pages. System memory starts at 0.517mb. Reloading a page doesn’t increment the system memory but a new scene/page does increase the memory until by the end of 32 scenes the system memory is at 1.65mb. When the book starts from the beginning again it stays at 1.65 and goes up and down slightly at this level for repetitive views through the 32 scenes but stays at around 1.65mb.

We have followed all memory leak tutorials. Our gut feeling is the rise in memory is associated with the audio even though printing their state shows they are being disposed on exit from scenes.

Is this normal behaviour? I haven’t found benchmarks for system memory. 1.65mb doesn’t seem like much - is it?

1.65mb isn’t much at all.  If your memory isn’t going up on your 2nd or 3rd pass through, then you’re not leaking memory.  It’s okay for memory to grow, its when it grows when it shouldn’t be that’s the problem.

Audio doesn’t show up in that 1.65mb amount.  That memory is your lua variables and tables.  

That’s a relief, thanks very much Rob.

1.65mb isn’t much at all.  If your memory isn’t going up on your 2nd or 3rd pass through, then you’re not leaking memory.  It’s okay for memory to grow, its when it grows when it shouldn’t be that’s the problem.

Audio doesn’t show up in that 1.65mb amount.  That memory is your lua variables and tables.  

That’s a relief, thanks very much Rob.