silentarmy icon indicating copy to clipboard operation
silentarmy copied to clipboard

Memory leaks

Open aleksander opened this issue 8 years ago • 7 comments

Arch Linux / AMDGPU-Pro 16.30

At start SilentArmy memory consumption is about 40 Mb. After 20 hours of mining SilentArmy memory consumption is about 4 Gb.

Clang static analyzer found no problems. I'll try to find any with valgrind.

aleksander avatar Nov 24 '16 13:11 aleksander

Confirmed but only with eXtremal's optimizations.

ddobreff avatar Nov 24 '16 19:11 ddobreff

Confirmed on Ubuntu 16.04.1 / AMDGPU-Pro 16.40.

ghost avatar Dec 04 '16 17:12 ghost

@aleksander, give this a try: https://github.com/mbevand/silentarmy/pull/83

ghost avatar Dec 05 '16 02:12 ghost

@jramos, thank you! testing it right now.

aleksander avatar Dec 05 '16 11:12 aleksander

I let it run overnight on my machine. There's still a slight memory leak somewhere, but it's much better for me now.

ghost avatar Dec 05 '16 14:12 ghost

Here's a quick script that whipped up that restarts the miner every hour.

#!/bin/bash

trap ctrl_c INT
function ctrl_c() {
	/usr/bin/pkill silentarmy
	exit
}

while :
do
	/usr/bin/pkill silentarmy
	sleep 5
	/path-to-/silentarmy -c stratum+tcp://your-pool.com:2323 -u t1xxxxxxxxxxxxxxxxxxxxxxxx/xxxxxx0/[email protected] -p "password" --use=0 & 
	sleep 3600
done

RichAyotte avatar Dec 06 '16 13:12 RichAyotte

I have committed jramos's pull request #83. I am currently in the middle of a major rewrite. I'll investigate the (other?) leaks later.

mbevand avatar Dec 19 '16 06:12 mbevand