Meritler için çok teşekkürler. Güzel motivasyon aracı. Sil baştan yazımı kontrol etmek için yeniden kurdum. Çok küçük bir değişikliği atlamışım. 4G Enabled etmek için.
Gelelim overclock mevzusuna. Linux'ta nvidia kartları overclock yapacaksanız bir pencere ortamına ihtiyacınız var. Çünkü overclock eden yazılım sadece grafik ortamında çalışıyor. Ama komut satırından kontrol ediyorsunuz. Asgari pencere ortamını kuralım, ıvır zıvıra gerek yok:
22:00sudo apt-get install --no-install-recommends xfce4 lightdm
sudo apt-get install xserver-xorg
22:44'te hikayesi
Kurulum sorunsuz. Şimdi işin en önemli kısımlarından birisi. xorg.conf dosyası oluşturma. Öncelikle ekran kartlarının pci adreslerini bilmemiz lazım. Bende şuan tek 1050ti ve onboard kart var.
sudo lspci
00:00.0 Host bridge: Intel Corporation Skylake Host Bridge/DRAM Registers (rev 07)
00:01.0 PCI bridge: Intel Corporation Skylake PCIe Controller (x16) (rev 07)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 510 (rev 06)
00:08.0 System peripheral: Intel Corporation Skylake Gaussian Mixture Model
00:14.0 USB controller: Intel Corporation 200 Series PCH USB 3.0 xHCI Controller
00:14.2 Signal processing controller: Intel Corporation 200 Series PCH Thermal Subsystem
00:16.0 Communication controller: Intel Corporation 200 Series PCH CSME HECI #1
00:17.0 SATA controller: Intel Corporation 200 Series PCH SATA controller [AHCI mode]
00:1c.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #1 (rev f0)
00:1c.3 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #4 (rev f0)
00:1f.0 ISA bridge: Intel Corporation 200 Series PCH LPC Controller (Z270)
00:1f.2 Memory controller: Intel Corporation 200 Series PCH PMC
00:1f.4 SMBus: Intel Corporation 200 Series PCH SMBus Controller
01:00.0 VGA compatible controller: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
Jenerik kullandığım bir config dosyam var. Sadece PCI adresini değiştiriyorum. Bir deneyeceğim bakalım olacak mı?
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 1050 Ti"
BusID "PCI:1:0:0"
Screen 0
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "AllowEmptyInitialConfiguration" "True"
Option "Coolbits" "28"
Option "RegistryDwords" "PerfLevelSrc=0x2222"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Deniyorum: (Yukarıda üstü çizili olanı yapmadıysanız bunlar çıkmaz)
sudo service lightdm start
Job for lightdm.service failed because the control process exited with error code.
See "systemctl status lightdm.service" and "journalctl -xe" for details.
ehehe cortladı. Bakalım ne sorun?
systemctl status lightdm.service
● lightdm.service - Light Display Manager
Loaded: loaded (/lib/systemd/system/lightdm.service; indirect; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2018-05-06 19:11:34 UTC; 8s ago
Docs: man:lightdm(1)
Process: 1476 ExecStart=/usr/sbin/lightdm (code=exited, status=1/FAILURE)
Process: 1464 ExecStartPre=/bin/sh -c [ "$(basename $(cat /etc/X11/default-display-manager 2>/dev/null))" = "lightdm" ] (code=exited, status=
Main PID: 1476 (code=exited, status=1/FAILURE)
May 06 19:11:34 rig3 systemd[1]: lightdm.service: Service hold-off time over, scheduling restart.
May 06 19:11:34 rig3 systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 5.
May 06 19:11:34 rig3 systemd[1]: Stopped Light Display Manager.
May 06 19:11:34 rig3 systemd[1]: lightdm.service: Start request repeated too quickly.
May 06 19:11:34 rig3 systemd[1]: lightdm.service: Failed with result 'exit-code'.
May 06 19:11:34 rig3 systemd[1]: Failed to start Light Display Manager.
Google amcaya soruyoruz: lightdm.service: Start request repeated too quickly.
Amcanın önerisi:
22:15sudo lightdm –-test-mode --debug
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.26.0, UID=0 PID=1495
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-disable-guest.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-disable-log-backup.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-greeter-wrapper.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-guest-wrapper.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-xserver-command.conf
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Registered seat module unity
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Monitoring logind for seats
[+0.00s] DEBUG: New seat added from logind: seat0
[+0.00s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.00s] DEBUG: Seat seat0: Starting
[+0.00s] DEBUG: Seat seat0: Creating greeter session
[+0.00s] DEBUG: Seat seat0: Failed to find session configuration default
[+0.00s] DEBUG: Seat seat0: Failed to create greeter session
[+0.00s] DEBUG: Failed to start seat: seat0
22:44İnternette bir arkadaş xorg'u boşver xcfe4 kur demiş.
sudo nano /etc/lightdm/lightdm.conf
[Seat:*]
user-session=xfce
#kullanıcı adınızı değiştirin sizinki ile
autologin-user=rig3
autologin-user-timeout=0
sudo service lightdm start
sudo service lightdm status
Son satır şunu görüyorsanız olay tamam:
May 06 19:50:38 rig3 lightdm[1729]: pam_unix(lightdm-autologin:session): session opened for user rig3 by (uid=0)
Şimdi bir deneme yapalım:
export DISPLAY=:0
sudo nvidia-smi -pm 1
Enabled persistence mode for GPU 00000000:01:00.0.
All done.
sudo nvidia-smi -i 0 -pl 70
Power limit for GPU 00000000:01:00.0 was set to 70.00 W from 90.00 W.
All done.
sudo DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -a [gpu:0]/GpuPowerMizerMode=1
Attribute 'GPUPowerMizerMode' (rig3:0[gpu:0]) assigned value 1.
DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -a [gpu:0]/GPUFanControlState=1
Attribute 'GPUFanControlState' (rig3:0[gpu:0]) assigned value 1.
DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -a [fan:0]/GPUTargetFanSpeed=60
Attribute 'GPUTargetFanSpeed' (rig3:0[fan:0]) assigned value 60.
Fan döndü mü?
Şimdi işi biraz derleyip toplayalım (make install ehehehehe)
sudo nano /usr/sbin/setNvidia.sh
#!/bin/bash
export TERM=xterm
export DISPLAY=:0
memoryOffset="400"
cpuOffset="100"
powerLimitWatt="70"
fanSpeedPercent="60"
nvidia-smi -pm 1
nvidia-smi -i 0 -pl $powerLimit
DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -a [gpu:0]/GpuPowerMizerMode=1
DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -a [gpu:0]/GPUMemoryTransferRateOffset[2]=$memoryOffset
DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -a [gpu:0]/GPUGraphicsClockOffset[2]=$cpuOffset
DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -a [gpu:0]/GPUFanControlState=1
DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -a [fan:0]/GPUTargetFanSpeed=$fanSpeedPercent
sudo chmod +x /usr/sbin/setNvidia.sh
sudo setNvidia.sh
Deneyelim claymore ile
cd ~/Claymore
./start.bash
23:05Mikemmel. Şimdi bu işi otomatikleştirelim:
sudo nano /etc/systemd/system/setNvidia.service
,
[Unit]
Description=Sets Nvidia GPUs
After=lightdm.service
[Service]
Type=oneshot
WorkingDirectory=/usr/sbin/
RemainAfterExit=false
ExecStart=/bin/bash --login -c "/usr/sbin/setNvidia.sh"
StandardOutput=journal
[Install]
WantedBy=multi-user.target
Claymore'u adam akıllı bir yere alalım:
sudo mv ~/Claymore /usr/local/Claymore
Claymore'da otomatikleşsin:
sudo nano /etc/systemd/system/claymore.service
[Unit]
Description=Claymore ETH/MAX Miner
[Service]
Environment=GPU_FORCE_64BIT_PTR=0
Environment=GPU_MAX_HEAP_SIZE=100
Environment=GPU_USE_SYNC_OBJECTS=1
Environment=GPU_MAX_ALLOC_PERCENT=100
Environment=GPU_SINGLE_ALLOC_PERCENT=100
Environment=DISPLAY=:0
Environment=XAUTHORITY=/home/rig3/.Xauthority
WorkingDirectory=/usr/local/Claymore/
ExecStart=/bin/bash --login -c "/usr/local/Claymore/start.bash"
Restart=always
[Install]
WantedBy=multi-user.target
Açılışta otomatik çalışsın:
sudo systemctl enable setNvidia.service
sudo systemctl enable claymore.service
sudo reboot
Valla mikemmel olmuş
12.7 ETH 63 MAX
Windows ile performans farkı sıfır. Duvardan güç farkına bakmak lazım.
Rig'de kart sayısı arttıkça bu başlığı güncellerim. Büyük ölçekte herşeyi nasıl otomatikleştiririz onları paylaşacağım ileride.