Giter Site home page Giter Site logo

janusminer's Introduction

NOT UNDER ACTIVE DEVELOPMENT

Note that this miner was only intended to be a temporary solution in the early days of Warthog and to serve as a reference for miner devs. There are probably better miners available today, see here.


WARTHOG JANUSHASH MINER Copyright (c) 2023 CoinFuMasterShifu, Pumbaa, Timon & Rafiki

πŸ“¦ What is in the box?

  • GPU+CPU Miner for Janushash

πŸ’» System Requirements

  • Linux
  • gcc11 or newer
  • meson
  • ninja
  • opencl

Note: Ubuntu 20.04 does not meet these requirements.

πŸ˜΅β€πŸ’« BUILD INSTRUCTIONS

  • Install dependencies (gcc, meson, ninja): sudo apt install meson ninja-build build-essential
  • Clone the repo: git clone https://github.com/CoinFuMasterShifu/janusminer
  • cd into the repo: cd janusminer
  • Create build directory: meson build . (meson build . --buildtype=release for better performance)
  • cd into build directory: cd build
  • [Optional] For old OpenCL headers (like on Ubuntu 20.04):
    • meson configure -Dopencl-legacy=true
  • Compile using ninja: ninja

Docker build

System Requirements

  • Linux
  • Docker

Build for Linux

Ubuntu 18.04
  • Run DOCKER_BUILDKIT=1 docker build . -f Dockerfiles/Dockerfile_Ubuntu18 --output build in the repo directory.
Ubuntu 20.04
  • Run DOCKER_BUILDKIT=1 docker build . -f Dockerfiles/Dockerfile_Ubuntu20 --output build in the repo directory.
Ubuntu 22.04
  • Run DOCKER_BUILDKIT=1 docker build . -f Dockerfiles/Dockerfile_Ubuntu22 --output build in the repo directory.

Binaries are located in ./build directory.

▢️ USAGE

  • Linux only at the moment
  • Compile with meson/ninja
  • Run the miner (use some restarter in case it crashes)
  • In case you are unsure, things should work exactly as in this Warthog node guide

General Options

Parameter Description
--help Help screen.
-V, --version Print version and exit.
-a,
--address=WALLETADDRESS
Specify wallet address to mine on.
--gpus=STRING Specify GPUs as comma separated list like "0,2,3".
By default all GPUs are used.
-t, --threads=INT Number of CPU worker threads, use 0 for hardware concurrency. (default='0')
-h, --host=STRING Host (RPC-Node / Pool URL) (default='localhost')
-p, --port=INT Port (RPC-Node / Pool PORT) (default='3000')
-u, --user=STRING Enable stratum protocol and specify username ( default='')
--password=STRING Password (for Stratum) (default='')

One line example to start mining

  • with restarter: screen -dmS janusminer bash -c "while true; do ~/janusminer-ubuntu22 -a YOUR_WALLET_ADDRESS -h YOU_NODE_IP -p YOUR_NODE_PORT; done"

  • without restarter: screen -dmS janusminer ~/janusminer-ubuntu22 -a YOUR_WALLET_ADDRESS -h YOU_NODE_IP -p YOUR_NODE_PORT

Custom miner for HiveOS

To use it you need to select β€œCustom” miner when you create Flight Sheet and paste the direct link on HiveOS build (e.g. janusminer_hiveos-0.0.1.tgz) from Releases into "Installation URL'".

Flight Sheet example for HiveOS

mmpOS implementation

  • After installing and running the miner using the custom miner feature in mmpOS, the below mmp-stats.sh file can be pulled into the miner directory to enable hashrate reporting in mmpOS for the Janusminer.

sudo wget https://update.mmpos.eu/fixes/j/mmp-stats.sh -O mmp-stats.sh sudo chmod +x mmp-stats.sh

janusminer's People

Contributors

babelfish2001 avatar bu11ettrain avatar coinfumastershifu avatar followgeo avatar julskawa avatar realsetvin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

janusminer's Issues

Possible Memleak

image

[Fri Dec 22 03:22:08 2023] Out of memory: Killed process 128001 (wart-miner) total-vm:143693604kB, anon-rss:126727712kB, file-rss:141504kB, shmem-rss:4224kB, UID:1000 pgtables:252888kB oom_score_adj:0

Miner crashes with more than 1 gpu

So far I have not been able to get any combination of two gpus to work with janus miner. Cpus range from 3600-5900 and gpus from 6500xt - 6600 - 6700xt

Is that how Janus is designed or should it be possible for me to use multiple gpus with one cpu?

Threads parameter ignored when used alone

I've noticed in both hiveos stable and beta versions, if I have --threads=INT (10 for example) as the only parameter in the miner config, it will ignore the INT I've given and use all threads. But if I also use the --gpus=STRING (0 for example) in combination with --threads, it will use the number of threads I specified. I've confirmed across multiple rigs and HiveOS versions.
Screenshot 2024-02-15 134317

HSA_STATUS_ERROR_MEMORY_APERTURE_VIOLATION

  1. HiveOS 0.6-225@240129
  2. AMD driver (default) 5.4.6 (6.1.2307)
  3. janusminer_hiveos.0.0.13
  4. GPU AMD BC-250
  5. GPU CPU OC 1400/750 MEM 1000

Miner started at :

Janushash Miner (By CoinFuMasterShifu) βš’ ⛏
[2024-01-30 16:00:30.234] [warning] Stratum parameter '-u' is ignored because direct-to-node mining is enabled via '-a'
OpenCL installations for the following GPUs were detected:
[0]: gfx1013:xnack-
Using all GPUs.
Using 12 CPU threads for Verushash
[2024-01-30 16:00:30.283] [info] Node RPC is 192.168.3.43:3000

Crashed at:
[2024-01-30 16:04:38.855] [info] Janusscore: 57.790685 mh/s
[2024-01-30 16:04:46.411] [warning] CPU queue drained
:0:rocdevice.cpp :2672: 9751346262 us: 804147: [tid:0x7f267c61d700] Device::callbackQueue aborting with error : HSA_STATUS_ERROR_MEMORY_APERTURE_VIOLATION: The agent attempted to access memory beyond the largest legal address. code: 0x29

01/31/2024 Removed the memory overclock yesterday. OC's are now just GPU 1400/750. Still getting failures every 5-30 minutes with janusminer-0.0.13

this mornings latest failure:
[2024-01-31 08:42:22.170] [info] Thread#11: 934.381000 kh/s
[2024-01-31 08:42:22.170] [info] Janusscore: 58.043071 mh/s
:0:rocdevice.cpp :2672: 69608825994 us: 1672875: [tid:0x7f8f4181d700] Device::callbackQueue aborting with error : HSA_STATUS_ERROR_MEMORY_APERTURE_VIOLATION: The agent attempted to access memory beyond the largest legal address. code: 0x29

Tried the hiveosbeta miner 0.0.13. Also failed after mining a while:
hiveosbeta-0.0.13 log beginning:
Janushash Miner (By CoinFuMasterShifu) βš’ ⛏
OpenCL installations for the following GPUs were detected:
[0]: gfx1013:xnack-
Using all GPUs.
Using 12 CPU threads for Verushash
[2024-01-31 09:11:33.521] [info] Node RPC is 192.168.3.43:3000
[2024-01-31 09:11:41.857] [warning] CPU queue drained
[2024-01-31 09:11:51.352] [info] Total hashrate (GPU): 217.244836 mh/s
[2024-01-31 09:11:51.352] [info] gfx1013:xnack-: 217.244836 mh/s
[2024-01-31 09:11:51.352] [info] Total hashrate (CPU): 10.574412 mh/s
[2024-01-31 09:11:51.352] [info] Thread#0: 859.670000 kh/s
[2024-01-31 09:11:51.352] [info] Thread#1: 813.949000 kh/s
[2024

hiveosbeta-0.0.13 log at failure:
[2024-01-31 09:28:54.280] [info] Thread#8: 892.980000 kh/s
[2024-01-31 09:28:54.280] [info] Thread#9: 882.697000 kh/s
[2024-01-31 09:28:54.280] [info] Thread#10: 906.225000 kh/s
[2024-01-31 09:28:54.280] [info] Thread#11: 875.293000 kh/s
[2024-01-31 09:28:54.280] [info] Janusscore: 57.825421 mh/s
:0:rocdevice.cpp :2672: 72407039462 us: 1843781: [tid:0x7fa5cba1d700] Device::callbackQueue aborting with error : HSA_STATUS_ERROR_MEMORY_APERTURE_VIOLATION: The agent attempted to access memory beyond the largest legal address. code: 0x29

Only overclocks are Core 1400 VDD 750 (Removed the memory overclock)

unable to compile on ubuntu 22.04 / not accept gnu++20 parameter

The Meson build system
Version: 0.53.2
Source dir: /home/user/warth/Warthog/build/src/miner/janusminer
Build dir: /home/user/warth/Warthog/build/src/miner/janusminer/build
Build type: native build
Project name: Warthog Miner (Janushash)
Project version: 0.0.1
C compiler for the host machine: cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
C linker for the host machine: cc ld.bfd 2.38

meson.build:1:0: ERROR: Value "gnu++20" for combo option is not one of the choices. Possible choices are: "none", "c++98", "c++03", "c++11", "c++14", "c++17", "c++1z", "c++2a", "gnu++03", "gnu++11", "gnu++14", "gnu++17", "gnu++1z", "gnu++2a".

Can't install GPU drivers

image

I have followed all the instructions downloaded nvidia drivers through this link: sudo apt install nvidia-driver-525

Still It says number of platform 0

miner crash

0.2.1-0.2.4 version always carsh
0.2.0 is fine,but Duplicated share
here is the windows report,fix it pls

  • System

    • Provider

    [ Name] Application Error
    [ Guid] {a0e9b465-b939-57d7-b27d-95d8e925ff57}

    EventID 1000

    Version 0

    Level 2

    Task 100

    Opcode 0

    Keywords 0x8000000000000000

    • TimeCreated

    [ SystemTime] 2024-02-23T16:01:33.2270921Z

    EventRecordID 77563

    Correlation

    • Execution

    [ ProcessID] 15236
    [ ThreadID] 27512

    Channel Application

    Computer DESKTOP-LSVIRQA

    • Security

    [ UserID] S-1-5-21-3540249434-4152126014-3272293555-1001

  • EventData

    AppName janusminer-windows.exe
    AppVersion 0.0.0.0
    AppTimeStamp 65c909a5
    ModuleName ntdll.dll
    ModuleVersion 10.0.22621.2050
    ModuleTimeStamp faa1c853
    ExceptionCode c0000374
    FaultingOffset 000000000010c2d9
    ProcessId 0x59f0
    ProcessCreationTime 0x1da6671915f3b05
    AppPath C:\Users\EFEE\Desktop\wart\janusminer-windows.exe
    ModulePath C:\Windows\SYSTEM32\ntdll.dll
    IntegratorReportId 064da2fc-c848-4949-a82f-207d987fff5e
    PackageFullName
    PackageRelativeAppId

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.