Bitcoin Forum
May 05, 2024, 08:24:37 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 1958268 times)
pekv2
Hero Member
*****
Offline Offline

Activity: 770
Merit: 502



View Profile
May 06, 2013, 02:21:17 PM
 #541

I am having trouble working out how to add my pool details to this string. For example does my username replace "userpass username.1" or "username" or "username.1", I am confused about the where to add the url, port and password too.

Perhaps someone could add some fake details and bold each input field?

Code:
C:\***
[2013-05-06 10:50:53] 3 miner threads started, using 'scrypt' algorithm.
[2013-05-06 10:51:15] Long-polling activated for http://ltc.kattare.com:9332/LP
[2013-05-06 10:51:15] thread 1: 4104 hashes, 7.09 khash/s
[2013-05-06 10:51:15] thread 0: 4104 hashes, 6.90 khash/s
[2013-05-06 10:51:15] thread 2: 4104 hashes, 6.81 khash/s

It seems as though it is mining and longpoll blocks are being detected, however the activity is not updating on my @ the pool. I must have the my info written in wrong or something?

This is what I input...
minerd --url http://ltc.kattare.com:9332/ --userpass username.1:*passwordhere* --threads 3

Example: Instead of me mining directly to a pool, I am mining towards mining proxy which is stratum supported, which in your case, the above you have is correct.
minerd --url 192.168.1.166:8332 --userpass pekv2.1:password-here --threads 3

To better yourself, use mining proxy to lower stales.
https://www.litecoinpool.org/help
Quote
Advanced Setup

If you have more than one miner (especially CPU miners) running within a local network, it is best to use the Stratum proxy for Litecoin mining. This proxy allows you to achieve a much lower rate of stale shares while reducing your bandwidth usage. The Python source is available here, and a binary for Windows here. You start the proxy on one of your machines as follows:

    mining_proxy -nm -pa scrypt -o litecoinpool.org -p 3333

Then you connect your miners to that machine on port 8332 with the usual pool worker username and password.

You point cpuminer @ your PC local ip, at port 8332, with your same username and password.
Batch file cmd for mining proxy.
mining_proxy -nm -pa scrypt -o ltc.kattare.com -p 3333

Once mining proxy is up and running.

Batch file for poolers cpuminer

minerd --url local-ip:8332/ --userpass username.1:passwordhere --threads 3
1714897477
Hero Member
*
Offline Offline

Posts: 1714897477

View Profile Personal Message (Offline)

Ignore
1714897477
Reply with quote  #2

1714897477
Report to moderator
Every time a block is mined, a certain amount of BTC (called the subsidy) is created out of thin air and given to the miner. The subsidy halves every four years and will reach 0 in about 130 years.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
wrenchmonkey
Full Member
***
Offline Offline

Activity: 224
Merit: 100



View Profile
May 09, 2013, 08:54:13 PM
 #542

I am having trouble working out how to add my pool details to this string. For example does my username replace "userpass username.1" or "username" or "username.1", I am confused about the where to add the url, port and password too.

Perhaps someone could add some fake details and bold each input field?

Code:
C:\***
[2013-05-06 10:50:53] 3 miner threads started, using 'scrypt' algorithm.
[2013-05-06 10:51:15] Long-polling activated for http://ltc.kattare.com:9332/LP
[2013-05-06 10:51:15] thread 1: 4104 hashes, 7.09 khash/s
[2013-05-06 10:51:15] thread 0: 4104 hashes, 6.90 khash/s
[2013-05-06 10:51:15] thread 2: 4104 hashes, 6.81 khash/s

It seems as though it is mining and longpoll blocks are being detected, however the activity is not updating on my @ the pool. I must have the my info written in wrong or something?

This is what I input...
minerd --url http://ltc.kattare.com:9332/ --userpass username.1:*passwordhere* --threads 3

Example: Instead of me mining directly to a pool, I am mining towards mining proxy which is stratum supported, which in your case, the above you have is correct.
minerd --url 192.168.1.166:8332 --userpass pekv2.1:password-here --threads 3

To better yourself, use mining proxy to lower stales.
https://www.litecoinpool.org/help
Quote
Advanced Setup

If you have more than one miner (especially CPU miners) running within a local network, it is best to use the Stratum proxy for Litecoin mining. This proxy allows you to achieve a much lower rate of stale shares while reducing your bandwidth usage. The Python source is available here, and a binary for Windows here. You start the proxy on one of your machines as follows:

    mining_proxy -nm -pa scrypt -o litecoinpool.org -p 3333

Then you connect your miners to that machine on port 8332 with the usual pool worker username and password.

You point cpuminer @ your PC local ip, at port 8332, with your same username and password.
Batch file cmd for mining proxy.
mining_proxy -nm -pa scrypt -o ltc.kattare.com -p 3333

Once mining proxy is up and running.

Batch file for poolers cpuminer

minerd --url local-ip:8332/ --userpass username.1:passwordhere --threads 3

False. ltc.kattare.org does NOT support Stratum. They promised it weeks ago and then the pool owner stopped responding to anybody... Sad

Too bad, I liked the pool, but I was getting too many stales, and now I'm abandoning ship.

Block Erupter Overclocking 447 M/Hash, .006 (discounts if done in quantity) https://bitcointalk.org/index.php?topic=300206.msg3218480#msg3218480

Buy and sell mining shares (Bitfury). https://cex.io/r/1/wrenchmonkey/0/
knybe
Hero Member
*****
Offline Offline

Activity: 658
Merit: 500


decentralize EVERYTHING...


View Profile
May 14, 2013, 10:51:12 PM
 #543

I could use some help getting this to work on my mac.  I'm getting the "dyld: Library not loaded: /opt/local/lib/libidn.11.dylib
  Referenced from: /usr/bin/minerd
  Reason: image not found"
error.  I read and someone was saying something about macports.  I downloaded it but I have no idea what to do with it at this point.  Can someone help me?


Install Xcode from the app store, go to preferences and find the tab where you can install commandline tools. Then download and install the latest macports package.

In the terminal run:

sudo port -v selfupdate
sudo port install wget
sudo port install openssl

you should be able to run it then  Smiley

I ran:
sudo port -v selfupdate

and it worked fine

but when I run:

sudo port install wget
sudo port install openssl

I get:
Error: Processing of port wget failed
and
Error: Processing of port openssl failed

what can I do to remedy this? I've scoured the google to no avail...



dermo
Sr. Member
****
Offline Offline

Activity: 336
Merit: 250



View Profile
May 23, 2013, 09:00:28 AM
 #544

I have an error when trying to run reaper

Quote
Error 6 getting work. See http://curl.haxx.se/libcurl/c/libcurl-errors.html for error code explanations.
Couldn't connect to server. Trying again in a few seconds...


Reaper.conf

Quote
kernel reaper.cl
save_binaries yes
enable_graceful_shutdown no
long_polling yes


mine litecoin

Litecoin.conf

Quote
host stratum+tcp://ltc.coinat.com:3333
port 3333
user xxx
pass xxx


protocol litecoin

worksize 256
aggression 18
threads_per_gpu 1
sharethreads 32
lookup_gap 2
gpu_thread_concurrency 24000

Anyone have an idea ?
Thanks in advance
pooler (OP)
Hero Member
*****
Offline Offline

Activity: 838
Merit: 507


View Profile
May 23, 2013, 10:24:08 AM
 #545

I have an error when trying to run reaper
1. You're in the wrong thread.
2. Don't use Reaper. It's obsolete, buggy and unmaintained. Use cgminer or bfgminer instead.

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
dermo
Sr. Member
****
Offline Offline

Activity: 336
Merit: 250



View Profile
May 23, 2013, 10:29:25 AM
 #546

Thanks
drummerjdb666
Full Member
***
Offline Offline

Activity: 244
Merit: 101



View Profile
May 27, 2013, 09:55:57 AM
 #547

Is this for linux users or is this something I should or need to use or try on win7?  CFLAGS = -g -O3
cr003l7y
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
May 27, 2013, 10:04:24 AM
 #548

I have an error when trying to run reaper

Quote
Error 6 getting work. See http://curl.haxx.se/libcurl/c/libcurl-errors.html for error code explanations.
Couldn't connect to server. Trying again in a few seconds...


Reaper.conf

Quote
kernel reaper.cl
save_binaries yes
enable_graceful_shutdown no
long_polling yes


mine litecoin

Litecoin.conf

Quote
host stratum+tcp://ltc.coinat.com:3333
port 3333
user xxx
pass xxx


protocol litecoin

worksize 256
aggression 18
threads_per_gpu 1
sharethreads 32
lookup_gap 2
gpu_thread_concurrency 24000

Anyone have an idea ?
Thanks in advance
In the "host" line you should only put ltc.coinat.com
pooler (OP)
Hero Member
*****
Offline Offline

Activity: 838
Merit: 507


View Profile
May 27, 2013, 10:05:35 AM
 #549

Is this for linux users or is this something I should or need to use or try on win7?  CFLAGS = -g -O3
Those are compile-time flags.

Q: Is there any command-line option I can play with to make cpuminer mine faster?
A: No. (But you can lower the number of threads to make it go slower.)

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

Activity: 244
Merit: 101



View Profile
May 27, 2013, 08:23:39 PM
 #550

Thank you sir! 
proden
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
May 31, 2013, 04:54:55 AM
 #551

Hi.

I have PC with 4 CPUs x 4 cores. I run minerd --threads 16, but each thread uses inly 25% of cpu. Then I run minerd --threads 4, each thread uses 100% of cpu. What is problem?
pieppiep
Hero Member
*****
Offline Offline

Activity: 1596
Merit: 502


View Profile
May 31, 2013, 06:01:42 AM
 #552

Are you sure you really have 4 CPUs with each 4 cores?
It sounds like you have 1 CPU with 4 cores.
MooC Tals
Hero Member
*****
Offline Offline

Activity: 644
Merit: 500


View Profile
May 31, 2013, 06:21:59 AM
 #553

Hi.

I have PC with 4 CPUs x 4 cores. I run minerd --threads 16, but each thread uses inly 25% of cpu. Then I run minerd --threads 4, each thread uses 100% of cpu. What is problem?

Press control + alt + del at the same time and then click then click start taskmanager

then you will see something like this



The number of windows you see under CPU Usage History is the number of cores you have.

1 thread per cpu core is what you should set it at.

eg this is a 2 core cpu so I would use --threads 2
     if it had 4 windows then use --threads 4
MooC Tals
Hero Member
*****
Offline Offline

Activity: 644
Merit: 500


View Profile
May 31, 2013, 06:27:03 AM
 #554

Is this for linux users or is this something I should or need to use or try on win7?  CFLAGS = -g -O3
Those are compile-time flags.

Q: Is there any command-line option I can play with to make cpuminer mine faster?
A: No. (But you can lower the number of threads to make it go slower.)

I'm sorry but that made me laugh. Watching a movie and playing games make it go slower too. I found turning the computer off gives the best results. Although the performance suffers but the savings in energy is wonderful.

To make it go faster you can increase the priority of minerd.exe in the taskmanager utility under processes. It's a bit more performance but not a lot.
pooler (OP)
Hero Member
*****
Offline Offline

Activity: 838
Merit: 507


View Profile
May 31, 2013, 07:18:44 AM
 #555

Q: Is there any command-line option I can play with to make cpuminer mine faster?
A: No. (But you can lower the number of threads to make it go slower.)
I'm sorry but that made me laugh. Watching a movie and playing games make it go slower too. I found turning the computer off gives the best results. Although the performance suffers but the savings in energy is wonderful.
That reminded me of the barometer question. Cheesy
Seriously, what you say is true, but is outside the scope of the question, which specifically addressed command-line options.

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
MooC Tals
Hero Member
*****
Offline Offline

Activity: 644
Merit: 500


View Profile
May 31, 2013, 07:26:49 AM
 #556

Q: Is there any command-line option I can play with to make cpuminer mine faster?
A: No. (But you can lower the number of threads to make it go slower.)
I'm sorry but that made me laugh. Watching a movie and playing games make it go slower too. I found turning the computer off gives the best results. Although the performance suffers but the savings in energy is wonderful.
That reminded me of the barometer question. Cheesy
Seriously, what you say is true, but is outside the scope of the question, which specifically addressed command-line options.

No, there is not! I was just havin a bit of fun.
gdassori
Hero Member
*****
Offline Offline

Activity: 980
Merit: 1002



View Profile
May 31, 2013, 04:08:37 PM
 #557

Hello, I'm expecting problems under linux debian squeeze.

I updated my gcc to 4.7.3, to been able to compile with AVX flags:

Code:
./configure CFLAGS="-O3 -march=corei7-avx"

My cpu:

Code:
processor       : 7
vendor_id       : GenuineIntel
cpu family      : 6
model           : 42
model name      : Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
(x8)

Well, according this thread: https://bitcointalk.org/index.php?topic=196196.2780

I should expect something like this:

Intel Core i7 2600K: 320 KH/s [AVX version, 4.43 GHz]

or, in a worst scenario, AT LEAST 200kh\s on scrypt-jane, mining YAC, since the 3d talks about a 4.43GHz CPU, and I'm on a 3.40GHz, as u can see.

Well, when I run the miner (on every pool) with 8 threads, it starts with something like this:

Code:
[2013-05-31 18:01:04] thread 3: 932 hashes, 7.37 khash/s
[2013-05-31 18:01:04] thread 4: 930 hashes, 7.36 khash/s
[2013-05-31 18:01:04] thread 2: 717 hashes, 5.67 khash/s
[2013-05-31 18:01:04] thread 6: 920 hashes, 7.28 khash/s
[2013-05-31 18:01:04] thread 1: 933 hashes, 7.38 khash/s
[2013-05-31 18:01:04] thread 5: 925 hashes, 7.31 khash/s
[2013-05-31 18:01:04] thread 7: 926 hashes, 7.32 khash/s
[2013-05-31 18:01:04] thread 0: 916 hashes, 7.24 khash/s

It immediatly slow down.

Code:
[2013-05-31 18:01:39] thread 3: 17820 hashes, 4.51 khash/s
[2013-05-31 18:01:39] thread 4: 17494 hashes, 4.43 khash/s
[2013-05-31 18:01:39] thread 6: 16017 hashes, 4.06 khash/s
[2013-05-31 18:01:39] thread 2: 18066 hashes, 4.58 khash/s
[2013-05-31 18:01:39] thread 7: 17667 hashes, 4.47 khash/s
[2013-05-31 18:01:39] thread 1: 16570 hashes, 4.20 khash/s
[2013-05-31 18:01:39] thread 5: 16521 hashes, 4.18 khash/s
[2013-05-31 18:01:39] thread 0: 17694 hashes, 4.48 khash/s
[2013-05-31 18:01:41] thread 1: 9825 hashes, 4.39 khash/s
[2013-05-31 18:01:41] accepted: 1/1 (100.00%), 35.10 khash/s (yay!!!)

And, after a couple of minutes:

Code:
[2013-05-31 18:03:08] thread 0: 3880 hashes, 2.18 khash/s
[2013-05-31 18:03:08] thread 5: 3905 hashes, 2.20 khash/s
[2013-05-31 18:03:08] thread 4: 3907 hashes, 2.20 khash/s
[2013-05-31 18:03:08] thread 7: 3923 hashes, 2.21 khash/s
[2013-05-31 18:03:08] thread 1: 3924 hashes, 2.21 khash/s
[2013-05-31 18:03:08] thread 2: 3123 hashes, 1.86 khash/s
[2013-05-31 18:03:08] thread 3: 3766 hashes, 2.12 khash/s
[2013-05-31 18:03:08] thread 6: 2219 hashes, 1.24 khash/s
[2013-05-31 18:03:11] thread 0: 7316 hashes, 2.23 khash/s
[2013-05-31 18:03:11] accepted: 3/3 (100.00%), 16.27 khash/s (yay!!!)
[2013-05-31 18:03:12] LONGPOLL detected new block
[2013-05-31 18:03:12] thread 7: 7781 hashes, 2.22 khash/s
[2013-05-31 18:03:12] thread 3: 7840 hashes, 2.23 khash/s
[2013-05-31 18:03:12] thread 6: 6390 hashes, 1.83 khash/s
[2013-05-31 18:03:12] thread 5: 7787 hashes, 2.22 khash/s
[2013-05-31 18:03:12] thread 0: 377 hashes, 2.10 khash/s
[2013-05-31 18:03:12] thread 4: 7800 hashes, 2.22 khash/s
[2013-05-31 18:03:12] thread 1: 7836 hashes, 2.23 khash/s
[2013-05-31 18:03:12] thread 2: 6690 hashes, 1.91 khash/s
[2013-05-31 18:03:12] thread 0: 715 hashes, 2.13 khash/s
[2013-05-31 18:03:12] accepted: 4/4 (100.00%), 16.98 khash/s (yay!!!)


My stats:

Code:
top - 18:02:40 up 109 days,  3:58,  2 users,  load average: 8.20, 3.79, 3.33
Tasks: 226 total,   3 running, 223 sleeping,   0 stopped,   0 zombie
Cpu(s): 36.0%us,  1.0%sy, 62.9%ni,  0.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st

Any help is appreciated.

EDIT:

Code:
[2013-05-31 18:04:20] LONGPOLL detected new block
[2013-05-31 18:04:20] thread 4: 78 hashes, 2.42 khash/s
[2013-05-31 18:04:20] thread 1: 89 hashes, 2.74 khash/s
[2013-05-31 18:04:20] thread 7: 78 hashes, 2.40 khash/s
[2013-05-31 18:04:20] thread 0: 77 hashes, 2.38 khash/s
[2013-05-31 18:04:20] thread 3: 78 hashes, 2.40 khash/s
[2013-05-31 18:04:20] thread 5: 15 hashes, 0.06 khash/s
[2013-05-31 18:04:20] thread 2: 10 hashes, 0.01 khash/s
[2013-05-31 18:04:21] thread 6: 6 hashes, 0.00 khash/s
[2013-05-31 18:04:21] thread 2: 437 hashes, 0.39 khash/s
[2013-05-31 18:04:21] thread 6: 258 hashes, 0.61 khash/s
[2013-05-31 18:04:22] thread 5: 3577 hashes, 1.91 khash/s

oh, cmon!  Angry

AH, OBV:

Code:
# file minerd
minerd: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, not stripped

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

Activity: 838
Merit: 507


View Profile
June 02, 2013, 03:13:10 PM
 #558

Well, according this thread: https://bitcointalk.org/index.php?topic=196196.2780

I should expect something like this:

Intel Core i7 2600K: 320 KH/s [AVX version, 4.43 GHz]

or, in a worst scenario, AT LEAST 200kh\s on scrypt-jane, mining YAC, since the 3d talks about a 4.43GHz CPU, and I'm on a 3.40GHz, as u can see.

The cpuminer discussed in this thread does not support YAC mining.
You are probably referring to ali1234's fork, which is discussed here.

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
elvisrene
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250



View Profile
June 10, 2013, 08:04:11 PM
 #559

men how do you use this do i have to make a bat file or what cant use ti can anyone help
pooler (OP)
Hero Member
*****
Offline Offline

Activity: 838
Merit: 507


View Profile
June 12, 2013, 02:41:55 PM
Last edit: June 12, 2013, 03:31:50 PM by pooler
 #560

Version 2.3

  • This version adds support for the Stratum mining protocol. The miner now recognizes URLs starting with stratum+tcp://, and can also switch from getwork to Stratum if the mining server supports the X-Stratum extension. For those who still don't know, Stratum reduces network resources consumption (only needs one TCP connection), and allows a significant reduction of the stale rate.
  • The miner should now automatically set CPU affinity on FreeBSD as it already did on Linux.
  • No speed improvements over version 2.2.3.

The source code is, as always, available at GitHub. Source tarball and binaries are available at Sourceforge (I had to switch from GitHub because they've deprecated their Downloads Tab).
Thanks to Tachikoma, we now also have a static 64-bit binary for Mac OS X.

NB: Stratum support does not render the Stratum proxy useless. You should keep using the Stratum proxy when pool mining, unless you only have one miner.

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
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!