Bitcoin Forum
December 15, 2017, 04:53:38 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: lwip connect/close cause memory leaks, which makes MCU crashed about every 60 s  (Read 2405 times)
aiwill
Member
**
Offline Offline

Activity: 114


btcman.com


View Profile WWW
October 31, 2013, 10:20:36 AM
 #1

our ASIC miner hardware is suffering a very big BUG,here it is

Our mcu environment is cortex-m3, os is rt thread, tcp / ip protocol stack is lwip.
The reason of the problem: lwip connect/close cause memory leaks, which makes MCU crashed about every 60 seconds.
So the mining performance can not match the hardware. The efficiency is lower than we expected.
our ideas:
1 fix the lwip's memory leak when connect/close socket, solve the reset problem .

2 reduces the times of connect / close socket , you need to change the stratum proxy side, get more works at one time.

mcu side: need to initiate a request to the stratum proxy side, and the work number could be configured.
stratum proxy side: needs to acknowledge the request from mcu side and find out how many works need to be transfer to mcu and then transfer them.
For example, There could be a  "getwork2" which has many "getwork" implemented in it.
So, once mcu client has a request (e.g. 10 works), then stratum could transfer 10 works to mcu by only one connetion transaction, rather than 10 times connection.


BTW:since we need to same time so much, we prefer the idea 2) very much,thank you for your time and if you think you can help us to code&achieve it,plz msg me.

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!