Bitcoin Forum
November 15, 2018, 01:01:54 AM *
News: Latest Bitcoin Core release: 0.17.0 [Torrent].
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Need help with a project - mimic network latency through cgminer  (Read 833 times)
VentMine
Full Member
***
Offline Offline

Activity: 229
Merit: 100


View Profile
November 15, 2016, 12:37:55 AM
 #1

Hi guys,

First off I am not a developer or coder, I have am new to the world of bitcoin and have some idea's I want to test. So keep this context in mind for this request.

I have a GekkoScience compac USB miner running on cgminer (its AWESOME by the way). Right now it's been running for a couple days at an average hashrate of 7 gh/s, of which it's produced 725000 accepted shares, 250 rejected shares, and 6 stale shares (according to CGminer).

I want to test how my miner performance changes as I increase my network latency. For example, I want to artificially introduce an additional latency between my miner and my pool (currently using slushpool) of 100 ms, 200 ms, 300 ms... etc up to 1000 ms or so.

Any idea's or instructions on how I can do this? My own research has led me to CharlesProxy - this is an application that should be able to throttle the network. However, I cannot figure out how to get CGminer to run through Charles.

Any help at all would be hugely appreciated  Smiley

Sincerely,
VM


1ESSdoVYKm8sNtYMfdkFBajhAe2e6G8keH
1542243714
Hero Member
*
Offline Offline

Posts: 1542243714

View Profile Personal Message (Offline)

Ignore
1542243714
Reply with quote  #2

1542243714
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2702
Merit: 1145


Ruu \o/


View Profile WWW
November 15, 2016, 01:07:48 AM
 #2

Just as a quick heads up to save you the time, miner performance in terms of hashrate is completely unaffected by network latency - only your stale share count will go up.

Developer/maintainer for cgminer and ckpool/ckproxy.
ZERO FEE Pooled mining at ckpool.org, 1% Fee Solo mining at solo.ckpool.org
-ck
VentMine
Full Member
***
Offline Offline

Activity: 229
Merit: 100


View Profile
November 15, 2016, 03:14:03 AM
 #3

Right! Yes, I am looking to find out how stale share rate is affected as latency approaches 1000 ms. I'm hoping to see the change in performance and profitability as my stale share count changes.


1ESSdoVYKm8sNtYMfdkFBajhAe2e6G8keH
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2702
Merit: 1145


Ruu \o/


View Profile WWW
November 15, 2016, 04:18:17 AM
 #4

It's much simpler than it appears. Blocks come on average every 10 minutes, or 600 seconds. If your latency is 1 second, your stale rate from network latency alone is 1/600.

Developer/maintainer for cgminer and ckpool/ckproxy.
ZERO FEE Pooled mining at ckpool.org, 1% Fee Solo mining at solo.ckpool.org
-ck
VentMine
Full Member
***
Offline Offline

Activity: 229
Merit: 100


View Profile
November 15, 2016, 06:05:18 PM
 #5

OK thanks CK. I was concerned because the application that I have for mining may have a latency up to 1000-1400 ms. I'll continue under the assumption that I will receive up to 1.4/600 stale shares, which isn't too bad really.

Cheers

1ESSdoVYKm8sNtYMfdkFBajhAe2e6G8keH
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!