EV3: memory details about OS / FW

Discussion specific to the intelligent brick, sensors, motors, and more.
Post Reply
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

EV3: memory details about OS / FW

Post 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?
gloomyandy
Posts: 323
Joined: 29 Sep 2010, 05:03

Re: EV3: memory details about OS / FW

Post 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
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: EV3: memory details about OS / FW

Post 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.
gloomyandy
Posts: 323
Joined: 29 Sep 2010, 05:03

Re: EV3: memory details about OS / FW

Post 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
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: EV3: memory details about OS / FW

Post 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...
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: EV3: memory details about OS / FW

Post 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
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 2 guests