Need help fixing Xorg and kernel crash

BIOS

Micro-Star International Co., Ltd MS-7C02/B450 TOMAHAWK MAX II

You have an old BIOS version H.30 from 11/30/2020. A newer BIOS, H.50 from 05/13/2021, is available at https://www.msi.com/Motherboard/support/B450-TOMAHAWK-MAX-II#down-bios.

Memory/Swap

You may have more than one problem here. The miner application is getting killed by OOM (out of memory) process. The /swapfile should be enough for 32G of RAM, but maybe not. We'll try and increase the /swapfile from 2G to 4G and see if that helps.

Note: Incorrect use of the rm and dd commands can cause data loss. Suggest copy/paste.

In the terminal...

sudo swapoff -a           # turn off swap
sudo rm -i /swapfile      # remove old /swapfile

sudo dd if=/dev/zero of=/swapfile bs=1M count=4096

sudo chmod 600 /swapfile  # set proper file protections
sudo mkswap /swapfile     # init /swapfile
sudo swapon /swapfile     # turn on swap
free -h                   # confirm 32G RAM and 4G swap

Edit /etc/fstab, using sudo -H gedit /etc/fstab or sudo pico /etc/fstab.

Confirm this /swapfile line in /etc/fstab... and confirm no other “swap” lines... use SPACES in this line... confirm NO TABS...

/swapfile  none  swap  sw  0  0

reboot                    # reboot and verify operation

Memtest

Note: AMD Ryzen processors are very fussy with memory compatibility.

Go to https://www.memtest86.com/ and download/run their free memtest to test your memory. Get at least one complete pass of all the 4/4 tests to confirm good memory. This may take a few hours to complete.

Update #1:

Miner

Note: Check to assure that you're running the latest version of miner.

I did not have the latest miner software. Checked for the latest release; and comments for the new version include: "fixed memory leaks on AMD GPUs", and "fixed compatibility with latest linux distributions". Going to install latest software version, hopefully does the trick.

Update #2:

After changing some overclock settings, and installing the newer version of the miner software, the computer has been running great.