Sunday, October 23, 2022

Fedora turn off zram swap

swapoff /dev/zram0; zramctl --reset /dev/zram0
yum remove zram-generator-defaults -y
touch /etc/systemd/zram-generator.conf

Saturday, October 22, 2022

Install NVIDIA drives Fedora

dnf install   https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm -y

dnf install   https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm -y

dnf update -y

reboot

#fedora 38
dnf module disable nvidia-driver

dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda clinfo nvtop -y

reboot

clinfo

 

 

dnf upgrade --refresh
dnf autoremove nvidia* --purge
dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/fedora37/x86_64/cuda-fedora37.repo
dnf install kernel-headers kernel-devel tar bzip2 make automake gcc gcc-c++ pciutils elfutils-libelf-devel libglvnd-opengl libglvnd-glx libglvnd-devel acpid pkgconfig dkms
dnf module install nvidia-driver:latest-dkms

Trim all flash drive HBA

 NVME SSD

  • nvme format /dev/nvme0n1

SATA/SAS SSD

  • blkdiscard /dev/sda