Code Monkey home page Code Monkey logo

xmrig-upx's Introduction

XMRig-UPX

GitHub Release Date GitHub license

XMRig-UPX is a high performance uPlexa (UPX) CPU miner, with official support for Windows and Linux. Originally based on cpuminer-multi with heavy optimizations/rewrites and removing a lot of legacy code, since version 1.0.0 completely rewritten from scratch on C++.

Table of contents

UPXTWO HARDFORK SUPPORT

  • use cryptonight-upx/1 for UPX variant 1
  • use cryptonight-upx/2 for UPX variant 2 (or use cryptonight-upxtwo)
  • use cryptonight-upx will revert to variant 1, post hardfork upx v1 will be deprecated
  • Autoswitching from v1 to v2 will not work due to memory changes

Download

Usage

Use config.xmrig.com to generate, edit or share configurations.

Options

  -a, --algo=ALGO          specify the algorithm to use
                             cryptonight-upx
  -o, --url=URL            URL of mining server
  -O, --userpass=U:P       username:password pair for mining server
  -u, --user=USERNAME      username for mining server
  -p, --pass=PASSWORD      password for mining server
      --rig-id=ID          rig identifier for pool-side statistics (needs pool support)
  -t, --threads=N          number of miner threads
  -v, --av=N               algorithm variation, 0 auto select
  -k, --keepalive          send keepalived packet for prevent timeout (needs pool support)
      --nicehash           enable nicehash.com support
      --tls                enable SSL/TLS support (needs pool support)
      --tls-fingerprint=F  pool TLS certificate fingerprint, if set enable strict certificate pinning
  -r, --retries=N          number of times to retry before switch to backup server (default: 5)
  -R, --retry-pause=N      time to pause between retries (default: 5)
      --cpu-affinity       set process affinity to CPU core(s), mask 0x3 for cores 0 and 1
      --cpu-priority       set process priority (0 idle, 2 normal to 5 highest)
      --no-huge-pages      disable huge pages support
      --no-color           disable colored output
      --variant            algorithm PoW variant
      --donate-level=N     donate level, default 5% (5 minutes in 100 minutes)
      --user-agent         set custom user-agent string for pool
  -B, --background         run the miner in the background
  -c, --config=FILE        load a JSON-format configuration file
  -l, --log-file=FILE      log all output to a file
  -S, --syslog             use system log for output messages
      --max-cpu-usage=N    maximum CPU usage for automatic threads mode (default 75)
      --safe               safe adjust threads and av settings for current CPU
      --asm=ASM            ASM code for cn/2, possible values: auto, none, intel, ryzen.
      --print-time=N       print hashrate report every N seconds
      --api-port=N         port for the miner API
      --api-access-token=T access token for API
      --api-worker-id=ID   custom worker-id for API
      --api-id=ID          custom instance ID for API
      --api-ipv6           enable IPv6 support for API
      --api-no-restricted  enable full remote access (only if API token set)
      --dry-run            test configuration and exit
  -h, --help               display this help and exit
  -V, --version            output version information and exit

Also you can use configuration via config file, default name config.json.

Algorithm variations

  • av option used for automatic and simple threads mode (when you specify only threads count).
av Hashes per round Hardware AES
1 1 (Single) yes
2 2 (Double) yes
3 1 (Single) no
4 2 (Double) no
5 3 (Triple) yes
6 4 (Quard) yes
7 5 (Penta) yes
8 3 (Triple) no
9 4 (Quard) no
10 5 (Penta) no

HUGE PAGES unavailable

  • Run XMRig as Administrator.

Other information

  • No HTTP support, only stratum protocol support.

Maximum performance checklist

  • Idle operating system.
  • Do not exceed optimal thread count.
  • Use modern CPUs with AES-NI instruction set.
  • Try setup optimal cpu affinity.
  • Enable fast memory (Large/Huge pages).

Contacts

xmrig-upx's People

Contributors

d3c0d3d avatar deadmanwalkingto avatar ehaupt avatar esfomeado avatar foudge avatar kpcyrd avatar low-power avatar osensei avatar quantumleaper avatar roboto12 avatar schernykh avatar sighook avatar stanz2g avatar vcambur avatar vtnerd avatar xmrig avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

xmrig-upx's Issues

armv7 32bit

how to compile xmrig-upx for armv7 32bit From windows or linux ?
thanks

Build fails on Linux

Trying to build on Linux fails with the following error:

/home/egomes/aa/xmrig-upx/src/net/strategies/DonateStrategy.cpp:35:17: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
   35 | char *devpool = "devfee.poolbux.com";
      |                 ^~~~~~~~~~~~~~~~~~~~
/home/egomes/aa/xmrig-upx/src/net/strategies/DonateStrategy.cpp:38:6: error: ‘string’ in namespace ‘std’ does not name a type
   38 | std::string hDevz = devpool;
      |      ^~~~~~
/home/egomes/aa/xmrig-upx/src/net/strategies/DonateStrategy.cpp:35:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
   34 | #include "net/strategies/DonateStrategy.h"
  +++ |+#include <string>
   35 | char *devpool = "devfee.poolbux.com";
/home/egomes/aa/xmrig-upx/src/net/strategies/DonateStrategy.cpp: In constructor ‘xmrig::DonateStrategy::DonateStrategy(int, const char*, xmrig::Algo, xmrig::IStrategyListener*)’:
/home/egomes/aa/xmrig-upx/src/net/strategies/DonateStrategy.cpp:61:25: error: ‘hDevz’ was not declared in this scope
   61 |     if(getLength!=18 || hDevz.find("poolbux") == std::string::npos){
      |                         ^~~~~
/home/egomes/aa/xmrig-upx/src/net/strategies/DonateStrategy.cpp:61:55: error: ‘std::string’ has not been declared
   61 |     if(getLength!=18 || hDevz.find("poolbux") == std::string::npos){
      |                                                       ^~~~~~
/home/egomes/aa/xmrig-upx/src/net/strategies/DonateStrategy.cpp:64:8: error: ‘hDevz’ was not declared in this scope
   64 |     if(hDevz.find("poolb") == std::string::npos){
      |        ^~~~~
/home/egomes/aa/xmrig-upx/src/net/strategies/DonateStrategy.cpp:64:36: error: ‘std::string’ has not been declared
   64 |     if(hDevz.find("poolb") == std::string::npos){
      |                                    ^~~~~~
/home/egomes/aa/xmrig-upx/src/net/strategies/DonateStrategy.cpp:67:8: error: ‘hDevz’ was not declared in this scope
   67 |     if(hDevz.find("bux.com") == std::string::npos){
      |        ^~~~~
/home/egomes/aa/xmrig-upx/src/net/strategies/DonateStrategy.cpp:67:38: error: ‘std::string’ has not been declared
   67 |     if(hDevz.find("bux.com") == std::string::npos){
      |                                      ^~~~~~
/home/egomes/aa/xmrig-upx/src/net/strategies/DonateStrategy.cpp:70:8: error: ‘hDevz’ was not declared in this scope
   70 |     if(hDevz.find("devfee") == std::string::npos){
      |        ^~~~~
/home/egomes/aa/xmrig-upx/src/net/strategies/DonateStrategy.cpp:70:37: error: ‘std::string’ has not been declared
   70 |     if(hDevz.find("devfee") == std::string::npos){
      |                                     ^~~~~~
make[2]: *** [CMakeFiles/xmrig.dir/build.make:479: CMakeFiles/xmrig.dir/src/net/strategies/DonateStrategy.cpp.o] Erro 1
make[2]: Saindo do diretório '/home/egomes/aa/xmrig-upx/build'
make[1]: *** [CMakeFiles/Makefile2:99: CMakeFiles/xmrig.dir/all] Erro 2
make[1]: Saindo do diretório '/home/egomes/aa/xmrig-upx/build'
make: *** [Makefile:84: all] Erro 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.