Home Forum Developers IP0x Architecture question on mtd ram

JRPassphrase Registration Control

In order to register on this site, you must first submit the passphrase below.

TODO list for each hardware target can be found as sticky topic in the corresponding forum


serenissimo
useravatar
User Info

Architecture question on mtd ram

Hi guys,
we would like to know why switchfin distro use ram based mtd.

Comparing with astfin this is a very different architecture choice and i would like to know it the motivations that had push the team to implement it .

regards


Administrator has disabled public posting
admin
useravatar
User Info

Re: Architecture question on mtd ram

Hi serenissimo,

Actually Astfin and Switchfin uses similar memory model.
Part of the SDRAM is used for Linux file system.
We have /persistent folder mounted on NAND flash for persistant storage of configurations, sound prompts and some simple logs.

NAND flash we have on our targets however is not good for frequently
write/erase so we had no other choice then using SDRAM.

Please let me know if this answers your question.

Best Regards
Dimitar


Administrator has disabled public posting
serenissimo
useravatar
User Info

Re: Architecture question on mtd ram

Dimitar,
once again thank you for your support.

Our project need a lot of other modules (SNMP, VLAN, PPP , lightppd, a custom web interface... )  so we need the maximum level of FREE RAM available on IP02.
In our actual "production" environment based on BAPS "evolution" with all the modules loaded and the web interface used more or less we have  this situation :

total         used         free       shared      buffers
59112        25308        33804            0            0

At the moment we would like to know how we can maximize the amount of SRAM free.

In your project the RAM disk used a lot of memory and we are going to understand (with your very appreciated support) how we can improve it maintaining /persistent structure and Ubifs file system.
Please notice that in our actual "productio" project we have jaffs2 file system.

Let's me know if i can give you other infos.
regards


Administrator has disabled public posting
admin
useravatar
User Info

Re: Architecture question on mtd ram

Hi serenissimo,

In Switchfin we have decided to put the root file system (currently around 18MB) in RAM memory for fast easy access and stable operation of the PBXs.

So now we have 18 MB less then BAPs

              total         used         free       shared      buffers
  Mem:        41736        33080         8656            0          704


If you need to load many applications you may get shortage of RAM so you will need to put some parts of the rootfs on persistent (NAND storage).
You can check /etc/rc on the target to see how /persistent is mounted and get the idea how to do this.

Please let us know as you get some results.

Cheers.
Dimitar


Administrator has disabled public posting
serenissimo
useravatar
User Info

Re: Architecture question on mtd ram

Hi Dimitar,

thank you very much for your kind support.

We are working on reduce the image dimension so we can have more ram free and to use the /persistent mtd moving them more content.


Administrator has disabled public posting
admin
useravatar
User Info

Re: Architecture question on mtd ram

Hi serenissimo,

Please share your results after you get it.
It may be interesting to others.

Thanks
Dimitar


Administrator has disabled public posting

Board Info

Board Stats:   Total Users: 2587  Total Topics: 299  Total Polls: 1  Total Posts: 1727  Dormant
User Info:   Newest User :  user2553   Members Online: 0   Guests Online: 285
Online  There are no members online
Topic
New
Locked
Topic
New
Locked
Sticky
Active
New/Active
Sticky
Active
New/Active
New/Closed
New Sticky
Closed/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky Active Locked
Active/Sticky
Sticky/Locked
Sticky/Active/Locked