memory specifications for Mono FW

HomeForumsMonoBrick EV3 Firmwarememory specifications for Mono FW

Tagged: , , ,

This topic contains 5 replies, has 3 voices, and was last updated by Author Image Helmut Wunder 3 years, 3 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #4298
    Author Image
    Helmut Wunder
    Participant

    heya,
    what are the exact memory specifications for Mono FW on EV3?
    Is this depending (and by what degree) on the 512k, 2G, or 4G image ?

    Given one has a 16GB SD card what are the maximum amounts:

    - static stored data like several stored programs, accessory data files like look-up tables or init~ or log files (flash)

    - actively executable program code (RAM, possibly flash)

    - is the memory for an executable program organized by stack and heap?

    - usable static memory for variables (RAM, possibly flash)

    - usable dynamically allocated memory for variables (RAM, possibly flash)

    - how much of the available memory (flash and RAM) is used by Linux OS ?

    - how much of the available memory (flash and RAM) is used by the .net VM ?

    #4317
    Author Image
    Lars Jeppesen
    Key Master

    Hi,

    I will try to answer your questions to my best knowledge.

    The reason for the different image sizes is that the image contains the complete SD card, including the partition table.
    This means that we have to decide the sizes of the partitions when we make the image.
    The image contains 2 partitions. 1 FAT of 50MB and the rest is an EXT3 partition.
    If you write the 2GB image to a 16GB flash card you will still have an 50MB FAT partition and a (2GB-50MB) EXT3 partiton.
    The rest 14GB of the SD card will not be allocated.
    If you want to have use all of a 16GB it is possible to make the image directly from the source (https://github.com/Larsjep/monoev3image)

    - static stored data like several stored programs, accessory data files like look-up tables or init~ or log files (flash)

    Depends on the size of the EXT3 partition. Linux and the Mono runtime takes about 400MB.

    - actively executable program code (RAM, possibly flash)

    When the system is started it uses about 24MB af RAM. The EV3 has 64MB ram, so this leaves apx. 40MB for your programs.
    This can be extended by creating a swap file, but this will be very slow.

    - is the memory for an executable program organized by stack and heap?

    Yes internally. But the mono runtime will take care of this for you.

    - usable static memory for variables (RAM, possibly flash)

    - usable dynamically allocated memory for variables (RAM, possibly flash)

    The memory space for variables, dynamically allocated and executable code is the same. See previous answer.

    - how much of the available memory (flash and RAM) is used by Linux OS ?

    Around 24MB of the 64MB available.

    - how much of the available memory (flash and RAM) is used by the .net VM ?

    Sorry, but I have no idea.

    Regards
    Lars

    • This reply was modified 3 years, 3 months ago by Author Image Lars Jeppesen.
    #4319
    Author Image
    Helmut Wunder
    Participant

    thank you very much for your detailed reply, it helped me a lot to understand more about this system.
    So using the 4GB image will actually not be a limitation.
    40 MB RAM is fine, and it’s very interesting that we may have optionally a swap file additionally – I’ll keep that in mind if I’ll once run in lack of memory 8-)

    #4346
    Author Image
    Helmut Wunder
    Participant

    what will happen if I enlarged the partion sizes for FAT and EXT3 manually, e.g. using the “Partition Magic” disk tool?
    Will it still work as expected?

    #4350
    Author Image
    Anders Søborg
    Key Master

    Hi

    I am not sure – I haven’t tried it. Try it yourself and let us know what happens…

    Anders

    #4351
    Author Image
    Helmut Wunder
    Participant

    I surely will – ASAP, i.e.: as soon as USB file upload will be enabled 8-)

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Posted in

Make a donation