Author

Topic: Right way to OC amd RX6600 under ubuntu 20 (Read 245 times)

member
Activity: 368
Merit: 15
February 03, 2022, 09:44:32 AM
#15
If you can run ubuntu OS for your mining rig then you can do the same with mining OS like hive, I'm here to tell you that hiveOS or simple mining OS will get your miner working straight away ubuntu OS is a very bad one too stressful to use for mining
member
Activity: 325
Merit: 42
February 03, 2022, 06:08:59 AM
#14
Well, as said its not in primary slot, its on riser, was not being detected then swapping opencL stuff from newer driver made it work but only under TeamRedMiner



For the purpose I use my 2 rigs haven't needed a riser yet I do have a PCIe riser for vertical mounting (not used yet). Maybe I should get just 1 mining riser to experiment with it.
I have tried lolMiner but after a few minutes I get a hard lock and have to reboot my rig with the RX 6600 XT same happens with NBMiner. GMiner and PhoenixMiner do work but I
use PhoenixMiner as it one of the few I can set -ttj, -ttmem, -fpwm -cclock, -cvddc and -mclock. Have to try TRM again when I feel like it.

I am open for different solutions as long as it is on linux.

Actually I found a utility for Amd big navi lineup, you may see my thread here.

Now only problem is that I need to understand how to use it as it has got a lot of things.



Ubuntu 22.04 is the next LTS version. AMDGPU drivers will be made for that release.
Do note that AMD only supplies drivers for Ubuntu LTS releases, RHEL, CentOS and SLED/SLES 15 anything other is just a hit or miss. I usually run Debian testing/bookworm and sofar am still unable to get the RX 6600 XT properly working. I have Ubuntu 20.04.3 installed in a seperate partition so I could use the RX 6600 XT for mining (dual-boot) and under Debian testing?bookworm I program/script/game with my GTX 1070.
newbie
Activity: 1
Merit: 0
February 02, 2022, 06:46:32 AM
#13
Well, as said its not in primary slot, its on riser, was not being detected then swapping opencL stuff from newer driver made it work but only under TeamRedMiner



For the purpose I use my 2 rigs haven't needed a riser yet I do have a PCIe riser for vertical mounting (not used yet). Maybe I should get just 1 mining riser to experiment with it.
I have tried lolMiner but after a few minutes I get a hard lock and have to reboot my rig with the RX 6600 XT same happens with NBMiner. GMiner and PhoenixMiner do work but I
use PhoenixMiner as it one of the few I can set -ttj, -ttmem, -fpwm -cclock, -cvddc and -mclock. Have to try TRM again when I feel like it.

I am open for different solutions as long as it is on linux.

Actually I found a utility for Amd big navi lineup, you may see my thread here.

Now only problem is that I need to understand how to use it as it has got a lot of things.



Hi Rickirs, did you upgrade to Ubuntu 21?

I'm on 21.04 and I'm unable to make it work, lolMiner and TeamRedMiner, tested.

I installed
Code:
amdgpu-install -y --opencl=legacy,rocr
and clinfo outputs a platform with no devices Sad

Code:
Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.0 AMD-APP (3314.0)
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd cl_amd_event_callback
  Platform Extensions function suffix             AMD

  Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 0

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  No platform
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   No platform
  clCreateContext(NULL, ...) [default]            No platform
  clCreateContext(NULL, ...) [other]             
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  No devices found in platform

Any advice?
member
Activity: 206
Merit: 20
November 23, 2021, 09:27:32 AM
#12
Well, as said its not in primary slot, its on riser, was not being detected then swapping opencL stuff from newer driver made it work but only under TeamRedMiner



For the purpose I use my 2 rigs haven't needed a riser yet I do have a PCIe riser for vertical mounting (not used yet). Maybe I should get just 1 mining riser to experiment with it.
I have tried lolMiner but after a few minutes I get a hard lock and have to reboot my rig with the RX 6600 XT same happens with NBMiner. GMiner and PhoenixMiner do work but I
use PhoenixMiner as it one of the few I can set -ttj, -ttmem, -fpwm -cclock, -cvddc and -mclock. Have to try TRM again when I feel like it.

I am open for different solutions as long as it is on linux.

Actually I found a utility for Amd big navi lineup, you may see my thread here.

Now only problem is that I need to understand how to use it as it has got a lot of things.

member
Activity: 325
Merit: 42
November 22, 2021, 12:25:00 PM
#11
Well, as said its not in primary slot, its on riser, was not being detected then swapping opencL stuff from newer driver made it work but only under TeamRedMiner



For the purpose I use my 2 rigs haven't needed a riser yet I do have a PCIe riser for vertical mounting (not used yet). Maybe I should get just 1 mining riser to experiment with it.
I have tried lolMiner but after a few minutes I get a hard lock and have to reboot my rig with the RX 6600 XT same happens with NBMiner. GMiner and PhoenixMiner do work but I
use PhoenixMiner as it one of the few I can set -ttj, -ttmem, -fpwm -cclock, -cvddc and -mclock. Have to try TRM again when I feel like it.

I am open for different solutions as long as it is on linux.
member
Activity: 206
Merit: 20
November 20, 2021, 09:00:52 AM
#10
Well, as said its not in primary slot, its on riser, was not being detected then swapping opencL stuff from newer driver made it work but only under TeamRedMiner

member
Activity: 325
Merit: 42
November 19, 2021, 03:42:03 PM
#9
Update, I got things messed up, nothing was working. Had to do clean install and everything.

My primary issue is to find way to increase memoryclock speed, since phoenixminer is not working and TeamRedminer doesn't have lots of choices to adjust it. What is right way for it ?

I am just wondering why PhoenixMiner is not working with you as it works fine with Ubuntu 20.4.2/3 and the andgpu-pro-drivers-21.30 here.

Following installed:
ii  amdgpu-core                                21.30-1290604                          all          Core meta package for unified amdgpu driver.
ii  amdgpu-dkms                                1:5.11.19.98-1290604                   all          amdgpu driver in DKMS format.
ii  amdgpu-dkms-firmware                       1:5.11.19.98-1290604                   all          firmware blobs used by amdgpu driver in DKMS format
ii  amdgpu-pin                                 21.30-1290604                          all          Meta package to pin a specific amdgpu driver version.
ii  amdgpu-pro-core                            21.30-1290604                          all          Core meta package for Pro components of the unified amdgpu driver.
ii  amdgpu-pro-rocr-opencl                     21.30-1290604                          amd64        Meta package to install ROCm OpenCL Pro components.
ii  clinfo-amdgpu-pro                          21.30-1290604                          amd64        AMD OpenCL info utility
ii  comgr-amdgpu-pro:amd64                     2.1.0-1290604                          amd64        Development files for ROCm ROCm Code Object Manager
ii  hip-rocr-amdgpu-pro                        21.30-1290604                          amd64        ROCr HIP Clang Runtime
ii  hsa-runtime-rocr-amdgpu:amd64              1.3.0-1290604                          amd64        The user-mode API interfaces used to interact with the Boltzmann
ii  hsakmt-roct-amdgpu:amd64                   1.0.9-1290604                          amd64        The user-mode API interfaces used to interact with the Boltzmann
ii  libdrm-amdgpu-amdgpu1:amd64                1:2.4.106-1290604                      amd64        Userspace interface to amdgpu-specific kernel DRM services -- runtime
ii  libdrm-amdgpu-common                       1.0.0-1290604                          all          List of AMD/ATI cards' device IDs, revision IDs and marketing names
ii  libdrm-amdgpu1:amd64                       2.4.105-3~20.04.2                      amd64        Userspace interface to amdgpu-specific kernel DRM services -- runtime
ii  libdrm2-amdgpu:amd64                       1:2.4.106-1290604                      amd64        Userspace interface to kernel DRM services -- runtime
ii  ocl-icd-libopencl1-amdgpu-pro:amd64        21.30-1290604                          amd64        AMD OpenCL ICD Loader library
ii  opencl-rocr-amdgpu-pro:amd64               21.30-1290604                          amd64        ROCr OpenCL Runtime
ii  xserver-xorg-video-amdgpu                  19.1.0-1                               amd64        X.Org X server -- AMDGPU display driver

ii  amdgpu-pro-rocr-opencl                     21.30-1290604                          amd64        Meta package to install ROCm OpenCL Pro components.
ii  clinfo-amdgpu-pro                          21.30-1290604                          amd64        AMD OpenCL info utility
ii  nvidia-profiler                            10.1.243-3                             amd64        NVIDIA Profiler for CUDA and OpenCL
ii  ocl-icd-libopencl1:amd64                   2.2.11-1ubuntu1                        amd64        Generic OpenCL ICD Loader
ii  ocl-icd-libopencl1-amdgpu-pro:amd64        21.30-1290604                          amd64        AMD OpenCL ICD Loader library
ii  ocl-icd-opencl-dev:amd64                   2.2.11-1ubuntu1                        amd64        OpenCL development files
ii  opencl-c-headers                           2.2~2019.08.06-g0d5f18c-1              all          OpenCL (Open Computing Language) C header files
ii  opencl-clhpp-headers                       2.1.0~~git51-gc5063c3-1                all          C++ headers for OpenCL development
ii  opencl-headers                             2.2~2019.08.06-g0d5f18c-1              all          OpenCL (Open Computing Language) header files
ii  opencl-rocr-amdgpu-pro:amd64               21.30-1290604                          amd64        ROCr OpenCL Runtime

ii  binutils-x86-64-linux-gnu                  2.34-6ubuntu1.3                        amd64        GNU binary utilities, for x86-64-linux-gnu target
ii  liblinux-epoll-perl                        0.017-1                                amd64        perl epoll module for O(1) multiplexing
ii  linux-base                                 4.5ubuntu3.7                           all          Linux image base package
ii  linux-firmware                             1.187.20                               all          Firmware for Linux kernel drivers
ii  linux-headers-5.11.0-37-generic            5.11.0-37.41~20.04.2                   amd64        Linux kernel headers for version 5.11.0 on 64 bit x86 SMP
ii  linux-hwe-5.11-headers-5.11.0-37           5.11.0-37.41~20.04.2                   all          Header files related to Linux kernel version 5.11.0
ii  linux-image-5.11.0-37-generic              5.11.0-37.41~20.04.2                   amd64        Signed kernel image generic
ii  linux-libc-dev:amd64                       5.4.0-90.101                           amd64        Linux Kernel Headers for development
ii  linux-modules-5.11.0-37-generic            5.11.0-37.41~20.04.2                   amd64        Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
ii  linux-modules-extra-5.11.0-37-generic      5.11.0-37.41~20.04.2                   amd64        Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
ii  linux-objects-nvidia-470-5.11.0-37-generic 5.11.0-37.41~20.04.2                   amd64        Linux kernel nvidia modules for version 5.11.0-37 (objects)
ii  linux-sound-base                           1.0.25+dfsg-0ubuntu5                   all          base package for ALSA and OSS sound systems

ii  corectrl                                   1.3.0~git2110151511.58ac0fb~f~mesarc12 amd64        Core control application
ii  libegl-mesa0:amd64                         21.0.3-0ubuntu0.3~20.04.4              amd64        free implementation of the EGL API -- Mesa vendor library
ii  libgl1-mesa-dri:amd64                      21.0.3-0ubuntu0.3~20.04.4              amd64        free implementation of the OpenGL API -- DRI modules
ii  libglapi-mesa:amd64                        21.0.3-0ubuntu0.3~20.04.4              amd64        free implementation of the GL API -- shared library
ii  libglu1-mesa:amd64                         9.0.1-1build1                          amd64        Mesa OpenGL utility library (GLU)
ii  libglx-mesa0:amd64                         21.0.3-0ubuntu0.3~20.04.4              amd64        free implementation of the OpenGL API -- GLX vendor library
ii  mesa-utils                                 8.4.0-1build1                          amd64        Miscellaneous Mesa GL utilities
ii  mesa-vdpau-drivers:amd64                   21.0.3-0ubuntu0.3~20.04.4              amd64        Mesa VDPAU video acceleration drivers
ii  mesa-vulkan-drivers:amd64                  21.0.3-0ubuntu0.3~20.04.4              amd64        Mesa Vulkan graphics drivers

Forget the Nvidia stuff as I run a mixed rig.

See the options I used for PhoenixMiner do note some options are absolute options and some others option have a relative value for the Navi cards.

Eth: Mining ETH on gulf.moneroocean.stream:11024 for 28:44
Available GPUs for mining:
GPU1: NVIDIA GeForce GTX 1070 (pcie 4), CUDA cap. 6.1, 8 GB VRAM, 15 CUs
GPU2: ASRock Navi 23 [Radeon RX 6600/6600 XT/6600M] (pcie 45), OpenCL 2.0, 8 GB VRAM, 32 CUs
GPU1: 65C 65% 125W, GPU2: 61C 14% 79W
GPU1: cclock 1911 MHz, mclock 3802 MHz, p-state P2, pcap no, 198 kH/J
GPU2: cclock 2490 MHz, cvddc 943 mV, mclock 1019 MHz, Tj 65C, Tmem 78C, 371 kH/J
GPUs power: 204.0 W; cost: 0.34 USD/day; 265 kH/J
Current -gt 16,16
Eth: Accepted shares 6463 (1 stales), rejected shares 2 (0 stales)
Eth: Incorrect shares 0 (0.00%), est. stales percentage 0.02%
Eth: Maximum difficulty of found share: 21.5 TH (!!!)
Eth: Average speed (5 min): 54.007 MH/s
Eth: Effective speed: 53.89 MH/s; at pool: 53.88 MH/s
GPU2: set GPU clocks to 2490 MHz (Vddc -100 mV)

The rejected shares are from a hiccup at my isp and I still have to play around with the settings some more but I am a bit lazy.
The mmclock on Linux is fixed at 1000 MHz but I have manged to incraese it.
Hope this helps
member
Activity: 206
Merit: 20
November 19, 2021, 09:04:47 AM
#8
Update, I got things messed up, nothing was working. Had to do clean install and everything.

My primary issue is to find way to increase memoryclock speed, since phoenixminer is not working and TeamRedminer doesn't have lots of choices to adjust it. What is right way for it ?
member
Activity: 206
Merit: 20
November 18, 2021, 08:19:47 AM
#7
Followed this guide.

https://www.reddit.com/r/gpumining/comments/ptmyjd/ubuntu_20043_amdgpu_2130_opencl_rocr_rocm/

Used :
Code:
./amdgpu-install -y --opencl=legacy,rocr
since there was no error during install, I assume that makes opencl as installed.

Further, as said, can't find way to overclock memory.
member
Activity: 325
Merit: 42
November 17, 2021, 10:25:03 AM
#6
It is able to see my card but when I start it, I see this error :

Code:
GPU1: Failed to compile program: clBuildProgram (-11)

Currently running on teamredminer , 26.7 Mhz , 44W  .
Already set to compute mode using CoreCtrl

Have you install opencl-headers?

The only thing I did to install the drivers was amdgpu-install -y --opencl=rocr --headless and making sure opencl-headers was installed and made a symlink " ln -s /opt/amdgpu-pro/bin/clinfo  /usr/bin/clinfo" after purging the ubuntu clinfo.
The error tells me that opencl might not be correctly installed.
Had the same error when I was pixxing around installing the amdgpu-pro-driver-21.30

Hope this helps a bit.

Make sure you run under sudo/root
member
Activity: 206
Merit: 20
November 17, 2021, 04:32:57 AM
#5
It is able to see my card but when I start it, I see this error :

Code:
GPU1: Failed to compile program: clBuildProgram (-11)

Currently running on teamredminer , 26.7 Mhz , 44W  .
Already set to compute mode using CoreCtrl
member
Activity: 325
Merit: 42
November 16, 2021, 03:22:19 PM
#4
CoreCtrl, already tried that, since no binary is available, can't get it compiled as always one or other thing is messing.

EDIT:
Got CoreCtrl working but there is no way to set Memory Clock, only coreClock , voltage and fan is available.

There is a compute mode but you have to go through gpu the settings to find it.
Make sure OpenCL is working properly,as you seem to run Ubuntu 20.04.2/3 and if you have installed the amdgpu-pro-21.30 correctly PhoenixMiner should recognize your card. It may say unrecognized OpenCL but it should start mining.

Running GTX 1070 and RX 6600 XT.

My config.txt
# options linux
-cdm 1
-cdmport 10050
-cdmrs

#-amd
#-acm
#-nvidia
#-mi 12,12
#-gt 16,16
#-clKernel 2:1
-nvKernel 1:3
#-nvdo 1:1
-log 0
# -logdir /home/USER/Miners/logs
# -logfile pm.log
-hwm 2
-tt 1:60
-ttj 2:65
-hstats 2
-prate 0.0703
-fpwm 2:4
-powlim 1:-28
-cclock 1:+100,2:2490
-cvddc amd:-100
-mclock 1:+800,2:1020

# MoneroOcean mining
-pool stratum+tcp://gulf.moneroocean.stream:11024
-wal MoneroWallet
-pass rig1~ethash
-proto 4
-coin eth

Haven't had the time to play with the settings much as some RX 6xxx (XT) require relative value instead of absolut values and I am still finding out which ones.
Would wish PhoenixMiner would give some better instructions about the RX 6xxx (XT) cards as that would help alot.
member
Activity: 206
Merit: 20
November 16, 2021, 01:56:54 AM
#3
CoreCtrl, already tried that, since no binary is available, can't get it compiled as always one or other thing is messing.

EDIT:
Got CoreCtrl working but there is no way to set Memory Clock, only coreClock , voltage and fan is available.
member
Activity: 325
Merit: 42
November 15, 2021, 05:36:35 PM
#2
Hi,
I am on linux, I got my AMD MSI RX6600 working on a riser with some other Nvidia cards using this guide :
https://www.reddit.com/r/gpumining/comments/ptmyjd/ubuntu_20043_amdgpu_2130_opencl_rocr_rocm/

It is working under TeamRedMiner but not with phoenixMiner.

Now I am getting this :
Code:
Mining ethash with 1 GPU workers
[2021-11-15 22:14:06] GPU PCIe      CUs CoreMHz SocMHz MemMHz TEdge TJct  TMem  FanPct  FanRpm  VDDC   Power  ETH Cfg
[2021-11-15 22:14:06] 0   10:00.0   28  700     533    875    46C   51C  100C   80.78%  2187    737 mV  44 W  A448
[2021-11-15 22:14:06]
[2021-11-15 22:14:06] Stats Uptime: 0 days, 00:11:00
[2021-11-15 22:14:06] ----------------------------------------- GPU Status -------------------------------------------
[2021-11-15 22:14:06] GPU 0 [46C, fan 80%]       ethash: 23.77Mh/s, avg 24.64Mh/s, pool 13.01Mh/s a:2 r:0 hw:0
[2021-11-15 22:14:06] Total                      ethash: 23.77Mh/s, avg 24.64Mh/s, pool 13.01Mh/s a:2 r:0 hw:0
[2021-11-15 22:14:06] ----------------------------------------- Pool Status ------------------------------------------
[2021-11-15 22:14:06] eu1.ethermine.org          ethash: 23.77Mh/s, avg 24.38Mh/s, pool 13.01Mh/s a:2 r:0
I have already added following to Kernel boot, which reduced power usage automatically from 88W to 44W but also reduced 23MH from 26MH
Code:
GRUB_CMDLINE_LINUX_DEFAULT="amdgpu.ppfeaturemask=0xfffd7fff"


Now its confusing as there are guides to overclock however, none is working.
My AMD Card is on PCIe 10 lane,

I must follow this : https://wiki.archlinux.org/title/AMDGPU#Overclocking
eg:
Code:
# echo "c" > /sys/class/drm/card0/device/pp_od_clk_volta

Since I have multiple GPU but only one AMD GPU, is it card0 then ?

Can anyone point me what exactly I need to follow to get about 30MHz from this card (as others are getting )

It is said I need to do following overclocking but I am not sure where exactly ,
Code:
Core Voltage (VDD): 640
Memory Controller Voltage (VDDCI): 620
Core Clock (CClock): 965
Memory Clock (MClock): 2270 or 1135

Have a look at https://gitlab.com/corectrl/corectrl as it can control amd cpu and amd gpu. I have had mixed results with it YMMV.
It works a bit like the AMD Radeon Software on windows.
member
Activity: 206
Merit: 20
November 15, 2021, 11:51:44 AM
#1
Hi,
I am on linux, I got my AMD MSI RX6600 working on a riser with some other Nvidia cards using this guide :
https://www.reddit.com/r/gpumining/comments/ptmyjd/ubuntu_20043_amdgpu_2130_opencl_rocr_rocm/

It is working under TeamRedMiner but not with phoenixMiner.

Now I am getting this :
Code:
Mining ethash with 1 GPU workers
[2021-11-15 22:14:06] GPU PCIe      CUs CoreMHz SocMHz MemMHz TEdge TJct  TMem  FanPct  FanRpm  VDDC   Power  ETH Cfg
[2021-11-15 22:14:06] 0   10:00.0   28  700     533    875    46C   51C  100C   80.78%  2187    737 mV  44 W  A448
[2021-11-15 22:14:06]
[2021-11-15 22:14:06] Stats Uptime: 0 days, 00:11:00
[2021-11-15 22:14:06] ----------------------------------------- GPU Status -------------------------------------------
[2021-11-15 22:14:06] GPU 0 [46C, fan 80%]       ethash: 23.77Mh/s, avg 24.64Mh/s, pool 13.01Mh/s a:2 r:0 hw:0
[2021-11-15 22:14:06] Total                      ethash: 23.77Mh/s, avg 24.64Mh/s, pool 13.01Mh/s a:2 r:0 hw:0
[2021-11-15 22:14:06] ----------------------------------------- Pool Status ------------------------------------------
[2021-11-15 22:14:06] eu1.ethermine.org          ethash: 23.77Mh/s, avg 24.38Mh/s, pool 13.01Mh/s a:2 r:0
I have already added following to Kernel boot, which reduced power usage automatically from 88W to 44W but also reduced 23MH from 26MH
Code:
GRUB_CMDLINE_LINUX_DEFAULT="amdgpu.ppfeaturemask=0xfffd7fff"


Now its confusing as there are guides to overclock however, none is working.
My AMD Card is on PCIe 10 lane,

I must follow this : https://wiki.archlinux.org/title/AMDGPU#Overclocking
eg:
Code:
# echo "c" > /sys/class/drm/card0/device/pp_od_clk_volta

Since I have multiple GPU but only one AMD GPU, is it card0 then ?

Can anyone point me what exactly I need to follow to get about 30MHz from this card (as others are getting )

It is said I need to do following overclocking but I am not sure where exactly ,
Code:
Core Voltage (VDD): 640
Memory Controller Voltage (VDDCI): 620
Core Clock (CClock): 965
Memory Clock (MClock): 2270 or 1135
Jump to: