Bitcoin Forum
April 25, 2024, 11:35:15 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 [43] 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 »
  Print  
Author Topic: An (even more) optimized version of cpuminer (pooler's cpuminer, CPU-only)  (Read 1958266 times)
mysticode
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
January 27, 2014, 11:11:19 PM
 #841

I have a quad core Intel chip, and CPUMiner is doing four threads (I assume this is how it's supposed to work, 1 thread per core?) I do not have a hyper-threaded processor.

Question 1: 1 thread to per 1 non-hyperthreaded core?
Question 2: I don't always see "accepted: x/y (%) xx.xx khash/s (yay!!!)". How often is this supposed to come up? I assume it's supposed to happen after every thread computes some khashes, but it isn't. Some additional information on this process would be very appreciated.


Thanks all!
1714044915
Hero Member
*
Offline Offline

Posts: 1714044915

View Profile Personal Message (Offline)

Ignore
1714044915
Reply with quote  #2

1714044915
Report to moderator
1714044915
Hero Member
*
Offline Offline

Posts: 1714044915

View Profile Personal Message (Offline)

Ignore
1714044915
Reply with quote  #2

1714044915
Report to moderator
1714044915
Hero Member
*
Offline Offline

Posts: 1714044915

View Profile Personal Message (Offline)

Ignore
1714044915
Reply with quote  #2

1714044915
Report to moderator
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
The One
Legendary
*
Offline Offline

Activity: 924
Merit: 1000



View Profile
January 28, 2014, 03:11:36 AM
 #842

Just using this for the first time....

I got accepted (100%) Yay!!!.......what does it mean? found a block or share

..C..
.....................
........What is C?.........
..............
...........ICO            Dec 1st – Dec 30th............
       ............Open            Dec 1st- Dec 30th............
...................ANN thread      Bounty....................

pooler (OP)
Hero Member
*****
Offline Offline

Activity: 838
Merit: 507


View Profile
January 28, 2014, 10:22:34 AM
 #843

I have a quad core Intel chip, and CPUMiner is doing four threads (I assume this is how it's supposed to work, 1 thread per core?) I do not have a hyper-threaded processor.
Question 1: 1 thread to per 1 non-hyperthreaded core?
I'm not sure I understand what the question is. Anyway, cpuminer defaults to starting as many mining threads as logical CPU cores, which normally gives the best results performance-wise. If your CPU does not support hyper-threading, then logical cores are basically the same as physical cores; if it does support hyper-threading, you will have 2 logical cores per physical.

Question 2: I don't always see "accepted: x/y (%) xx.xx khash/s (yay!!!)". How often is this supposed to come up? I assume it's supposed to happen after every thread computes some khashes, but it isn't. Some additional information on this process would be very appreciated.
You will see that message every time a solution (a share if you're mining in a pool) is accepted or rejected by the server. Since finding solutions is a random process, the message is not supposed to come up at regular intervals.

I got accepted (100%) Yay!!!.......what does it mean? found a block or share
If you're mining solo it means you found a block, if you're mining in a pool it means you found a share.
The percentage refers to how many of the solutions you've submitted so far have been accepted.

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
mysticode
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
January 28, 2014, 05:25:43 PM
 #844

Is mining on the CPU less effective than GPU, and that is why solutions aren't coming up as commonly as they do in a GPU based miner?
The One
Legendary
*
Offline Offline

Activity: 924
Merit: 1000



View Profile
January 28, 2014, 07:02:01 PM
 #845

xxxxx\pooler-cpuminer-2.3.2-win64\minerd.exe --url=stratum+tcp://de2.miningpool.co:4101 --userpass=xx:xx

Any other commands to expand on this as after 5 minutes it gets disconnected.

..C..
.....................
........What is C?.........
..............
...........ICO            Dec 1st – Dec 30th............
       ............Open            Dec 1st- Dec 30th............
...................ANN thread      Bounty....................

pooler (OP)
Hero Member
*****
Offline Offline

Activity: 838
Merit: 507


View Profile
January 29, 2014, 07:55:19 PM
 #846

Is mining on the CPU less effective than GPU, and that is why solutions aren't coming up as commonly as they do in a GPU based miner?
It depends on what you mean by "effective", but I would say it is. Mining with a "good" GPU is certainly more efficient than mining with a CPU, at least. For a more complete answer you should consult the mining hardware comparison.
The rate at which solutions get accepted depends both on your hash rate and on the share difficulty set by the pool. In general you need not care about it, especially given that share difficulty can vary dynamically.

xxxxx\pooler-cpuminer-2.3.2-win64\minerd.exe --url=stratum+tcp://de2.miningpool.co:4101 --userpass=xx:xx
Any other commands to expand on this as after 5 minutes it gets disconnected.
No. If it gets disconnected it's almost certainly either the pool's or your Internet connection's fault (most probably the pool's). I'm always happy to test mining servers for compatibility, but I cannot even connect to the one mentioned above.

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
pizzaBot
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile WWW
January 30, 2014, 06:15:25 PM
 #847

Is cpuminer customized for each type of coin, or can the same minerd be used to work against all kinds of coin mining pools?
Thanks
ikinga
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
January 31, 2014, 03:06:31 PM
 #848

Hi, I downloaded it and configured it by creating a shortcut to the "minered" and edited it with:

C:\Users\my.name.domain\Documents\mine\pooler-cpuminer-2.3.2-win64\minerd.exe – url=stratum+tcp://stratum7.dogehouse.org:9090 –userpass=ikinga:x

my.name.domain are obviously my personal info...

when I double click on it... it crashes. What did I do wrong?
mysticode
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
January 31, 2014, 09:00:19 PM
Last edit: January 31, 2014, 09:14:05 PM by mysticode
 #849

Hi, I downloaded it and configured it by creating a shortcut to the "minered" and edited it with:

C:\Users\my.name.domain\Documents\mine\pooler-cpuminer-2.3.2-win64\minerd.exe – url=stratum+tcp://stratum7.dogehouse.org:9090 –userpass=ikinga:x

my.name.domain are obviously my personal info...

when I double click on it... it crashes. What did I do wrong?

Make a bat file instead of a shortcut, with the same command line information. However, after the main line in the bat, add a second line that says Pause. This will keep the command prompt window open instead of closing, showing you the error you are encountering.

Is mining on the CPU less effective than GPU, and that is why solutions aren't coming up as commonly as they do in a GPU based miner?
It depends on what you mean by "effective", but I would say it is. Mining with a "good" GPU is certainly more efficient than mining with a CPU, at least. For a more complete answer you should consult the mining hardware comparison.
The rate at which solutions get accepted depends both on your hash rate and on the share difficulty set by the pool. In general you need not care about it, especially given that share difficulty can vary dynamically.

xxxxx\pooler-cpuminer-2.3.2-win64\minerd.exe --url=stratum+tcp://de2.miningpool.co:4101 --userpass=xx:xx
Any other commands to expand on this as after 5 minutes it gets disconnected.
No. If it gets disconnected it's almost certainly either the pool's or your Internet connection's fault (most probably the pool's). I'm always happy to test mining servers for compatibility, but I cannot even connect to the one mentioned above.

My GPU mining through cgminer is going fine to my pool, however CPUMiner is acting strange. It is not showing me sending any hashes. This is what it is showing almost all the time: https://i.imgur.com/eakS25T.png

What's going on?
HenriH
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile
January 31, 2014, 10:13:56 PM
 #850

Thanks for cpuminer! Smiley

I have two small wishes:
- add "--shares" parameter, as seen in CGMiner/BFGMiner, to quit the program after n number of shares.
- add "--sharelog" parameter, as seen in CGMiner/BFGMiner, to log the mining process to a text file.

BFGMiner's README.txt:
--sharelog <arg>    Append share log to file
--shares <arg>      Quit after mining N shares (default: unlimited)

Henri.
pooler (OP)
Hero Member
*****
Offline Offline

Activity: 838
Merit: 507


View Profile
February 01, 2014, 12:10:48 AM
 #851

minerd.exe – url=stratum+tcp://stratum7.dogehouse.org:9090 –userpass=ikinga:x
Please make sure those options start with two hyphens (--), not with a Unicode dash, and that there is no space after the hyphens.

My GPU mining through cgminer is going fine to my pool, however CPUMiner is acting strange. It is not showing me sending any hashes. This is what it is showing almost all the time: https://i.imgur.com/eakS25T.png
What's going on?
If you send me the exact parameters you're using to connect I can give it a try.

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
mysticode
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
February 01, 2014, 12:22:21 AM
 #852

minerd.exe – url=stratum+tcp://stratum7.dogehouse.org:9090 –userpass=ikinga:x
Please make sure those options start with two hyphens (--), not with a Unicode dash, and that there is no space after the hyphens.

My GPU mining through cgminer is going fine to my pool, however CPUMiner is acting strange. It is not showing me sending any hashes. This is what it is showing almost all the time: https://i.imgur.com/eakS25T.png
What's going on?
If you send me the exact parameters you're using to connect I can give it a try.

minerd.exe -o http://127.0.0.1:8332 -u <my BTC ID> -p <anything>

I am connecting to middlecoin.com:3333 within my Mining Proxy that is listening on 8332.
pooler (OP)
Hero Member
*****
Offline Offline

Activity: 838
Merit: 507


View Profile
February 01, 2014, 09:28:04 AM
 #853

My GPU mining through cgminer is going fine to my pool, however CPUMiner is acting strange. It is not showing me sending any hashes. This is what it is showing almost all the time: https://i.imgur.com/eakS25T.png
What's going on?
If you send me the exact parameters you're using to connect I can give it a try.
minerd.exe -o http://127.0.0.1:8332 -u <my BTC ID> -p <anything>
I am connecting to middlecoin.com:3333 within my Mining Proxy that is listening on 8332.
Which fork of slush's proxy are you using, exactly? Are you also connecting cgminer through the proxy, and if yes with what parameters? Does the issue also arise if you stay connected to the getwork port instead of letting it switch to Stratum (pass --no-stratum to minerd)?

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
noveske
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile
February 02, 2014, 11:59:30 AM
 #854

Hi,

I am trying to compile on XP 32bit (that's all I currently have available) and I am having some problems:

I have installed MinGW32, MSYS, C, and C++ compilers.
Downloaded and compiled curl-7.30.0.tar.gz, and copied over the libcurl.m4 and curl-config files.
Downloaded 'pooler-cpuminer-2.3.2.tar.gz' from Sourceforge (I am assuming this is the source to use?).

I am trying to build for 32bit Windows, so I use the config command:

Code:
./configure --host=i686-w64-mingw32 CFLAGS="-O3"

This appears to complete without any issues, so I issue the make command and get the following error message:

Code:
noveske@xp /c/cpuminer-2.3.2
$ make
make  all-recursive
make[1]: Entering directory `/c/cpuminer-2.3.2'
Making all in compat
make[2]: Entering directory `/c/cpuminer-2.3.2/compat'
Making all in jansson
make[3]: Entering directory `/c/cpuminer-2.3.2/compat/jansson'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/c/cpuminer-2.3.2/compat/jansson'
make[3]: Entering directory `/c/cpuminer-2.3.2/compat'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/c/cpuminer-2.3.2/compat'
make[2]: Leaving directory `/c/cpuminer-2.3.2/compat'
make[2]: Entering directory `/c/cpuminer-2.3.2'
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -fno-strict-aliasing -I./compat/jansson -I/c/MinGW/include   -O3 -MT minerd-cpu-miner.o -MD -MP -MF .deps/minerd-cpu-miner.Tpo -c -o minerd-cpu-miner.o `test -f 'cpu-miner.c' || echo './'`cpu-miner.c
In file included from c:\mingw\include\curl\curlbuild.h:124:0,
                 from c:\mingw\include\curl\curl.h:34,
                 from cpu-miner.c:37:
c:\mingw\include\ws2tcpip.h:38:2: error: #error "ws2tcpip.h is not compatible with winsock.h. Include winsock2.h instead."
 #error "ws2tcpip.h is not compatible with winsock.h. Include winsock2.h instead."
  ^
In file included from c:\mingw\include\curl\curlbuild.h:124:0,
                 from c:\mingw\include\curl\curl.h:34,
                 from cpu-miner.c:37:
c:\mingw\include\ws2tcpip.h:147:8: error: redefinition of 'struct ip_mreq'
 struct ip_mreq {
        ^
In file included from c:\mingw\include\windows.h:93:0,
                 from cpu-miner.c:23:
c:\mingw\include\winsock.h:315:8: note: originally defined here
 struct ip_mreq {
        ^
In file included from cpu-miner.c:39:0:
miner.h:9:21: fatal error: pthread.h: No such file or directory
 #include <pthread.h>
                     ^
compilation terminated.
make[2]: *** [minerd-cpu-miner.o] Error 1
make[2]: Leaving directory `/c/cpuminer-2.3.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/cpuminer-2.3.2'
make: *** [all] Error 2

noveske@xp /c/cpuminer-2.3.2

Any help would be great, thanks
unamis76
Legendary
*
Offline Offline

Activity: 1512
Merit: 1005


View Profile
February 02, 2014, 03:12:54 PM
 #855

Checksums in the first post don't match with the files, more specifically with the win32 one... Anything wrong?
pooler (OP)
Hero Member
*****
Offline Offline

Activity: 838
Merit: 507


View Profile
February 02, 2014, 03:56:47 PM
 #856

Checksums in the first post don't match with the files, more specifically with the win32 one... Anything wrong?
Re-downloaded it just now from Sourceforge, and it matches.
Code:
$ sha256sum pooler-cpuminer-2.3.2-win32.zip 
5cd04f0324f9f18f4bd989e981b1ac72edb68bf6b76498e616d22cfe0a798122  pooler-cpuminer-2.3.2-win32.zip

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
unamis76
Legendary
*
Offline Offline

Activity: 1512
Merit: 1005


View Profile
February 02, 2014, 04:57:11 PM
 #857

Checksums in the first post don't match with the files, more specifically with the win32 one... Anything wrong?
Re-downloaded it just now from Sourceforge, and it matches.
Code:
$ sha256sum pooler-cpuminer-2.3.2-win32.zip 
5cd04f0324f9f18f4bd989e981b1ac72edb68bf6b76498e616d22cfe0a798122  pooler-cpuminer-2.3.2-win32.zip

It matches. My mistake. Thank you.
HenriH
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile
February 02, 2014, 05:02:47 PM
 #858

https://github.com/cbuchner1/CudaMiner/commit/670c8ea83346006180ece0994c6044536873b9f9

Quote
--time-limit      maximum time (s) to mine before exiting the program.

Would be cool to see --time-limit parameter in cpuminer, too.
pooler (OP)
Hero Member
*****
Offline Offline

Activity: 838
Merit: 507


View Profile
February 02, 2014, 05:44:30 PM
 #859

Quote
--time-limit      maximum time (s) to mine before exiting the program.
Would be cool to see --time-limit parameter in cpuminer, too.
The same result can be obtained by using the timeout command from GNU coreutils (also available via Cygwin and Homebrew).

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
itsik78
Full Member
***
Offline Offline

Activity: 462
Merit: 100



View Profile
February 03, 2014, 04:23:49 PM
 #860

Here's a great 24 hours comparison done by ReviewOutlaw for ALL CPU COINS.
http://www.reviewoutlaw.com/most-profitable-cpu-coin-list-alt-coin-profits-24-hours-mining/

Guess who the winner is? Smiley
MemoryCoin of course!

Here's another thread explaining how to CPU mine MMC efficiently:
https://bitcointalk.org/index.php?topic=439874
(This doesn't use CPUMiner but rather a different miner which is built specifically for MMC mining)

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 [43] 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!