BitShares Forum

Other => Graveyard => MemoryCoin => Topic started by: alexxy on December 24, 2013, 04:12:48 am

Title: minerd based cpu miner
Post by: alexxy on December 24, 2013, 04:12:48 am
Hi all!

I'm releasing sources for minerd based cpuminer. Its not fully optimized but it at least suitable for solo mine. Also it will work with any getwork based pools.

Sources available cpuminer (https://github.com/alexxy/cpuminer)
64bit linux here (https://drive.google.com/file/d/0B3MNiK86m0F9aEh2dHFmeHlkWWs/edit?usp=sharing)
Title: Re: minerd based cpu miner
Post by: agran on December 24, 2013, 04:18:37 am
Hi all!

I'm releasing sources for minerd based cpuminer. Its not fully optimized but it at least suitable for solo mine. Also it will work with any getwork based pools.

Sources available https://github.com/alexxy/cpuminer (https://github.com/alexxy/cpuminer)
Upload binary please.
Title: Re: minerd based cpu miner
Post by: alexxy on December 24, 2013, 04:20:29 am
I can upload binary for 64bit linux only
Title: Re: minerd based cpu miner
Post by: FaSan on December 24, 2013, 04:27:28 am
I've work with Minerd too for my Pool.

Congratulations for your code  :)



FaSan
Title: Re: minerd based cpu miner
Post by: Delinquency on December 24, 2013, 05:26:46 am
Sorry, I have a missing dependency.. ?

Running Debian
Code: [Select]
uname -r
3.2.0-4-amd64
./minerd: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by ./minerd)
Title: Re: minerd based cpu miner
Post by: reorder on December 24, 2013, 09:41:10 am
Nice one, but doing one hash per thread instead of splitting the job between threads is asking for orphans..
Title: Re: minerd based cpu miner
Post by: alexxy on December 24, 2013, 01:06:57 pm
Nice one, but doing one hash per thread instead of splitting the job between threads is asking for orphans..

It will increase probability to find block btw.
Title: Re: minerd based cpu miner
Post by: alexxy on December 24, 2013, 01:07:59 pm
Sorry, I have a missing dependency.. ?

Running Debian
Code: [Select]
uname -r
3.2.0-4-amd64
./minerd: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by ./minerd)

If you're on linux then its better to build it from source. I have more recent glibc on my laptop
Title: Re: minerd based cpu miner
Post by: FreeTrade on December 24, 2013, 01:29:23 pm
Nice one, but doing one hash per thread instead of splitting the job between threads is asking for orphans..

I think there is probably a happy medium between all the threads working on one hash (stock) and one thread per hash.

Working two hashes at a time, with half the threads in each would probably maximise the hash rate with a low orphan rate. Maybe 4 hashes for very powerful comps.
Title: Re: minerd based cpu miner
Post by: FreeTrade on December 24, 2013, 01:35:00 pm
Hi all!

I'm releasing sources for minerd based cpuminer. Its not fully optimized but it at least suitable for solo mine. Also it will work with any getwork based pools.

Sources available cpuminer (https://github.com/alexxy/cpuminer)
64bit linux here (https://drive.google.com/file/d/0B3MNiK86m0F9aEh2dHFmeHlkWWs/edit?usp=sharing)


Thanks for this. Will try a windows compile later.
Title: Re: minerd based cpu miner
Post by: pvp1982 on December 24, 2013, 01:39:12 pm
How to use it for solo mining?
Title: Re: minerd based cpu miner
Post by: Grekk on December 24, 2013, 04:36:38 pm
I can`t compile from source.
Code: [Select]
mv -f .deps/minerd-momentum.Tpo .deps/minerd-momentum.Po
g++  -g -O2 -pthread  -o minerd minerd-cpu-miner.o minerd-util.o minerd-momentum.o -L/usr/lib/x86_64-linux-gnu -lcurl -ljansson -lpthread
/usr/bin/ld: minerd-momentum.o: undefined reference to symbol 'SHA512@@OPENSSL_1.0.0'
/lib/x86_64-linux-gnu/libcrypto.so.1.0.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [minerd] Error 1
make[2]: Leaving directory `/home/ubuntu/mmcminer'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ubuntu/mmcminer'
make: *** [all] Error 2
Title: Re: minerd based cpu miner
Post by: luckye on December 27, 2013, 04:23:22 pm

How to use it for solo mining?

This is a really good question ! Does anybody knows how to do it ?
Title: Re: minerd based cpu miner
Post by: ig0tik3d on December 27, 2013, 05:03:09 pm
to compile miner you need ssl library
in makefile.am change
Code: [Select]
minerd_LDADD        = @LIBCURL@ @JANSSON_LIBS@ @PTHREAD_LIBS@to
Code: [Select]
minerd_LDADD        = @LIBCURL@ @JANSSON_LIBS@ @PTHREAD_LIBS@ -lssl -lcrypto
Title: Re: minerd based cpu miner
Post by: barwizi on December 27, 2013, 05:32:50 pm
to compile miner you need ssl library
in makefile.am change
Code: [Select]
minerd_LDADD        = @LIBCURL@ @JANSSON_LIBS@ @PTHREAD_LIBS@to
Code: [Select]
minerd_LDADD        = @LIBCURL@ @JANSSON_LIBS@ @PTHREAD_LIBS@ -lssl -lcrypto

hey, i wonder, does it help anything to increase memory usage?
Title: Re: minerd based cpu miner
Post by: reorder on December 27, 2013, 05:38:45 pm
to compile miner you need ssl library
in makefile.am change
Code: [Select]
minerd_LDADD        = @LIBCURL@ @JANSSON_LIBS@ @PTHREAD_LIBS@to
Code: [Select]
minerd_LDADD        = @LIBCURL@ @JANSSON_LIBS@ @PTHREAD_LIBS@ -lssl -lcrypto

hey, i wonder, does it help anything to increase memory usage?

If you mean - adding RAM to the system or closing other applications, then yes, it will decrease paging out of data miner needs to access. Turning off swap in Linux or setting a very low swappiness would help achieve that too.