Bitcoin Forum
May 04, 2024, 03:20:36 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Need help with a project - mimic network latency through cgminer  (Read 933 times)
VentMine (OP)
Full Member
***
Offline Offline

Activity: 236
Merit: 105


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
1714792836
Hero Member
*
Offline Offline

Posts: 1714792836

View Profile Personal Message (Offline)

Ignore
1714792836
Reply with quote  #2

1714792836
Report to moderator
1714792836
Hero Member
*
Offline Offline

Posts: 1714792836

View Profile Personal Message (Offline)

Ignore
1714792836
Reply with quote  #2

1714792836
Report to moderator
The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714792836
Hero Member
*
Offline Offline

Posts: 1714792836

View Profile Personal Message (Offline)

Ignore
1714792836
Reply with quote  #2

1714792836
Report to moderator
1714792836
Hero Member
*
Offline Offline

Posts: 1714792836

View Profile Personal Message (Offline)

Ignore
1714792836
Reply with quote  #2

1714792836
Report to moderator
-ck
Legendary
*
Offline Offline

Activity: 4102
Merit: 1631


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, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
VentMine (OP)
Full Member
***
Offline Offline

Activity: 236
Merit: 105


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
Legendary
*
Offline Offline

Activity: 4102
Merit: 1631


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, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
VentMine (OP)
Full Member
***
Offline Offline

Activity: 236
Merit: 105


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:  

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