<<< Previous topic - Next topic >>> |
|
Author |
Message |
Tushar chavadar
Joined: 06 Dec 2012 Posts: 2 Location: Pune
|
Posted: 06.12.2012, 10:55 Post subject: How to increase memory utilization in arm linux |
|
|
Our GPRS Gateway application is working with Linux kernel 2.6.16. Basic working of gateway is we collect data from serial & create new file for every data.
This data dir is maintained in /flash of ssv module. Once GPRS connection is established then I am sending all these data filed through modem & clearing the memory in flash after successful sending.
When GPRS connection is active, all these files get sent over GPRS, but during disconnection the files are stored for having backup to avoid data loss.
Hence during disconnection state these files in /flash folder get increased due to which free memory decreases & all processes like GPRS,httpd get restart. These process need enough memory to restart again. Hence I have limitation on number of backup files.
Here can I store more no of files in other directory?
Also I need help regarding how can I increase user memory in ssv module.
SSV module is linux ported 32bit microcontroller module.
Do you have any suggestions for this ? _________________ Our company basically working in wireless Domain. |
|
Back to top |
|
|
hne
Joined: 11 Jul 2008 Posts: 210 Location: Hannover
|
Posted: 08.01.2013, 13:50 Post subject: |
|
|
Hello,
have you always enabled the user's flash area?
Please check it with "mount ; df -h"
If you not have always used mtdblock3 with 8 MB, then use it.
Here are the command:
Code: | mkdir /flash3
mount /dev/mtdblock3 /flash3 -t jffs2
|
Restarting GPRS, httpd or rebooting, if flash is full, should never be a problem, because these daemons does not create or write files in directory /flash. If it is so in your case, than these daemons are wrong configured. Never of permanently task should write data into a flash.
Remember to avoid permanently writes into /flash!!! This will degrease life time of this flash area drastically. A process should consumption small data sizes into a ram-disk area /tmp, and after a good limit was summered, a bigger file should store into /flash in one write cyle. _________________ Henry Nestler |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|