Question

Since our application grows, we need more space on our Windows CE devices. If I install CF app in RAM on win ce device this app vanished after cold restart.

I have used the simplest choice install on flash card. As I mentioned running applications from the sd card is slow and there are some heavy issues with demand-paging if you run the apps from persistent paths. Isn't it? Is it worth to install it there? Will we get performance problems?

Should I use another solution - install after cold restart/new start on RAM from flash disk (if it possible)? Where can/should I store settings/log files? On flash/sd card?

Was it helpful?

Solution

There's no "one size fits all" answer for this.

If you move the app from memory to storage you'll gain RAM. Maybe that boost in RAM will give the EE more heap space and thereby prevent GC thrashing. That would give you better perceived performance. But maybe it won't and it will just increase demand-paging for your app and hurt performance. Maybe you'll get a little of both and it's a wash.

How would you handle persistence to RAM? That depends on what your device supports for auto-running apps.

Where should you store settings and logs? Again, that depends on the device, the storage, the size, the frequency of access and loads of other things.

Basically the answer for all of these is only going to be found by you testing your actual app on your actual hardware. Try the difference scenarios and collect metrics to see which performs better. That's the only "correct" answer.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top