Page 1 of 1

EV3: memory details about OS / FW

Posted: 07 Oct 2013, 07:54
by HaWe
hi,
how much memory needs the "pure" Linux OS on the EV3 flash and (when running) in the RAM ?
how much memory (flash/RAM) needs the Lego VM plus accessory files additionally?

Re: EV3: memory details about OS / FW

Posted: 07 Oct 2013, 08:57
by gloomyandy
Hi Doc,
those questions are not that simple to answer. The EV3 is way more complex than the NXT in this respect. You will probably get better answers if you can explain what it is you want to do, why you need the memory usage.

Andy

Re: EV3: memory details about OS / FW

Posted: 07 Oct 2013, 09:39
by HaWe
if it's more complicated than I thought it would be, then I'd probably simply try it out if the VM task once is killed.
For the flash I was curious how many different (large) programs probably could be stored,
and about the RAM I was curious how much would be free for code stack plus memory stack + heap.

Re: EV3: memory details about OS / FW

Posted: 07 Oct 2013, 11:12
by gloomyandy
Hi Doc,
trying it would probably be best! For RAM usage the problem is it depends what else you need to have running (WiFi etc.). The EV3 has 64Mb of memory I would be very surprised if there is less than 32Mb avilable for your program (so about 1000 times more than the NXT!). How much memory do you think you will need? If things get tight then I'm sure you have other options, you can probably reduce the number of background processes running and even enable swap on an SD card, but obviously that means using some sort of custom configuration. Sorry can't help with flash as all of my usage is with an SD card, if you use one of those then you can have Gb of storage...

Andy

Re: EV3: memory details about OS / FW

Posted: 07 Oct 2013, 13:10
by HaWe
thx for your reply, I will try then.
Most of the memory would be needed for my new neural backpropagation net, the size by which I may design it depends on learning speed...

Re: EV3: memory details about OS / FW

Posted: 14 Oct 2013, 05:27
by mightor
On my flash based OS (which does not have RAM drives), I have the following amounts of free memory:

Code: Select all

root@EV3:~# free
              total         used         free       shared      buffers
  Mem:        60932        19812        41120            0         2116
 Swap:            0            0            0
Total:        60932        19812        41120
So right now I have about 40-41MB free. I don't know how much memory the LEGO VM will allow you to allocate in your program.

= Xander