Monday, October 16, 2023

Change NFS Daemon systemd priority

 vim /usr/lib/systemd/system/nfs-server.service

 

 Add to [service]

IOSchedulingPriority=1
CPUSchedulingPolicy=fifo
CPUSchedulingPriority=20

 systemctl daemon-reload

 systemctl restart nfs-server

Wednesday, October 11, 2023

Check glibcxx version

 strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX

GLIBCXX_3.4

GLIBCXX_3.4.1

GLIBCXX_3.4.2

GLIBCXX_3.4.3

GLIBCXX_3.4.4

GLIBCXX_3.4.5

GLIBCXX_3.4.6

GLIBCXX_3.4.7

GLIBCXX_3.4.8

GLIBCXX_3.4.9

GLIBCXX_3.4.10

GLIBCXX_3.4.11

GLIBCXX_3.4.12

GLIBCXX_3.4.13

GLIBCXX_3.4.14

GLIBCXX_3.4.15

GLIBCXX_3.4.16

GLIBCXX_3.4.17

GLIBCXX_3.4.18

GLIBCXX_3.4.19

Wednesday, April 12, 2023

Remove unwanted kernel & version lock

  • boot in pervious kernel
  • list kernels: rpm -qa kernel-core
  • remove unwanted kernels: dnf remove ...
  • install version lock: dnf install 'dnf-command(versionlock)'
  • set version lock: dnf versionlock add kernel-core kernel-devel kernel-modules

Monday, March 27, 2023

GPU Settings

nvidia-smi -q -d POWER

nvidia-smi -i 0 -pl 100

nvidia-settings -a [gpu:0]/GPUFanControlState=1 -a [fan:0]/GPUTargetFanSpeed=70 -c :0

Tuesday, March 21, 2023

Notes about restoring LVM volumes

 https://www.suse.com/c/recovering-lost-lvm-volume-disk/

 Best to have backups of the config files in: /etc/lvm/backup

Thursday, March 16, 2023

Connection stats grouped by status

# netstat -nat | awk '{print $6}' | sort | uniq -c | sort -n
      1 established)
      1 Foreign
     17 LISTEN
     18 SYN_SENT
    198 ESTABLISHED

Friday, February 17, 2023

Tuesday, February 7, 2023

Spacemesh on Centos9

This assumes you got NVIDIA drivers loaded (525), clinfo, opencl all working. Also NVIDIA toolkit 11 installed.

POST

  • git clone https://github.com/spacemeshos/post
  • make install
  • cp /home/srv_spacemesh/post/build/libpost.so /usr/lib64/

GPU-POST first (may not be needed anymore)

  • dnf install libstdc++-static
  • git clone https://github.com/spacemeshos/gpu-post
  • cd gpu-post/
  • git checkout v0.1.28
  • git submodule update --init

vim CMakeLists.txt and comment out

#if(UNIX AND NOT APPLE)
#    set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libstdc++ -static-libgcc -pthread")
#endif()

  • cmake -B build -DSPACEMESHVULKAN=OFF -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-12.1/
  • cmake --build build -j24
  • cp /home/srv_spacemesh/gpu-post/build/src/libgpu-setup.so /usr/lib64/

 Now we can run the benchmarks

  • ./build/test/gpu-setup-test -c -n 100663296 -d 20
  • ./build/test/gpu-setup-test -b -n 2000000

GO-SPACEMESH second

  • git clone https://github.com/spacemeshos/go-spacemesh
  • cd go-spacemesh/
  • git checkout v0.2.21-beta.0
  • make install
  • make build
  • ./build/go-spacemesh version

 SMAPP last

  • git clone https://github.com/spacemeshos/smapp
  • cd smapp/
  • git checkout v0.2.11
  • mkdir node/linux
  • cp ../go-spacemesh/build/go-spacemesh node/linux/
  • export NODE_OPTIONS=--openssl-legacy-provider
  • yarn
  • yarn package-linux
Start the app:   ./release/linux-unpacked/spacemesh_app



 

 


Tuesday, January 31, 2023

Check NVIDIA GPU NUMA Affinity

> nvidia-smi topo -m
        GPU0    CPU Affinity    NUMA Affinity
GPU0     X      64-127,192-254  1

Legend:

  X    = Self
  SYS  = Connection traversing PCIe as well as the SMP interconnect between NUMA nodes (e.g., QPI/UPI)
  NODE = Connection traversing PCIe as well as the interconnect between PCIe Host Bridges within a NUMA node
  PHB  = Connection traversing PCIe as well as a PCIe Host Bridge (typically the CPU)
  PXB  = Connection traversing multiple PCIe bridges (without traversing the PCIe Host Bridge)
  PIX  = Connection traversing at most a single PCIe bridge
  NV#  = Connection traversing a bonded set of # NVLinks

Friday, January 27, 2023

Centos9 NVIDIA drivers

  • dnf makecache
  • dnf config-manager --set-enabled crb
  • dnf install epel-release epel-next-release -y
  • dnf makecache
  • dnf install -y 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 config-manager --add-repo http://developer.download.nvidia.com/compute/cuda/repos/rhel9/$(uname -i)/cuda-rhel9.repo
  • dnf makecache
  • dnf module install -y nvidia-driver
  • dnf install -y nvtop clinfo

(dnf module install nvidia-driver:latest-dkms) 


https://linuxhint.com/install-nvidia-drivers-centos/