AnsweredAssumed Answered

Crashes occur : failure to allocate memory on heavy data transfers

Question asked by laeeq on Jun 15, 2012
Latest reply on Jun 22, 2012 by laeeq

I am working on BF548 Ez Kit , we wrote a simple script to transfer via tftp  (upload and download) data , the script is as follows,

# sending to HOST PC

md5sum  $1 | grep  -o '^[0-9a-f]*'> $1.chsum

cp $1 /tmp

i=0

host=192.168.9.118

while true

do

echo copying $1

tftp -p -r $1 -l /tmp/$1 $host

tftp -g -r $1 -l /tmp/$1.down $host

md5sum /tmp/$1.down | grep  -o '^[0-9a-f]*'> $1.chsum2

diff $1.chsum $1.chsum2

i=`expr $i + 1`

echo $i `date`

done

 

After twenty minutes , errors messages occur , it mentions memory cannot be allocated , commands like sh etc. are also included .

Any clue as what is going wrong ?  We need to system to rigid and hence this is critical , Any help is appreciated , Thanks

Outcomes