###### tags: `Linux Test` # Linux OS Test ## CentOS 8 1.CPU CPU Burn-in Geekbench 2.Memory Intel® Memory Latency Checker stream memory benchmark java performance testing tools 3.Disk hdparm dd iometer – Quick start , iometer Fio – Flexible I/O Tester VDBench diskspd ATTO Disk Benchmark 4.Network iperf qperf Pktgen Reference: ## Redhat 使用yum需要註冊 subscription-manager register --auto-attach 輸入redhat帳號跟密碼 subscription-manager register subscription-manager refresh subscription-manager attach --auto # install pciutils (lspci) net-tools (ifconfig) ethtool openssh-server stress-ng iperf iperf3 linux-tools-common (cpupower) linux-tools-5.8.0-43-generic (ubuntu 20.04) firewalld https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages ex : rpm -ivh https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/n/ninja-build-1.10.2-3.el7.x86_64.rpm rpm -ivh https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/m/meson-0.55.1-1.el7.noarch.rpm ### PCIe slot/device speed #lspci #lspci -tv  #lspci | grep --color MT2892  #lspci -n | grep -i 01:00.0  #lspci -n -d 15b3:101d -vvv |grep -i width  graphics card  NVMe  Intel 900p PCIe storage  NVMe Gen4 PCIeX4(AORUS NVMe Gen4 SSD PCIe 4.0 x4)   Intel Corporation Ethernet Controller E810-C  ### 查網路pci bus #lshw -class network  ### 查USB TYPE yum install usbutils #lsusb Reference: https://www.cnblogs.com/lsgxeva/p/9542975.html ### CPU #lscpu  #cat /proc/cpuinfo  #sensors  Reference: https://magiclen.org/linux-view-cpu/ ### stress-ng #yum install -y epel-release.noarch && yum -y update #yum install -y stress stress-ng redhat 7 rpm -ivh https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libbsd-0.8.3-1.el7.x86_64.rpm yum install lksctp-tools rpm -ivh https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/s/stress-ng-0.07.29-2.el7.x86_64.rpm Reference: https://snapcraft.io/install/stress-ng/centos ### Install BurnInTest yum install libGLU /bitlinux/burnintest #./burnintest.sh /bitlinux/burnintest/x64 #./bit_gui_x64 yum install libQt5Gui.so.5 double-clicking on the "bit_gui_x64" icon ### GPU Test glxgears yum install glx-utils  $glxgears Usage: -display <displayname> set the display to run on -stereo run in stereo mode -fullscreen run in fullscreen mode -info display OpenGL renderer info -geometry WxH+X+Y window geometry https://programmersought.com/article/93137538178/ yum -y install libjpeg-devel yum install libpng12 yum install libpng15 ### Console centos 8修改Grub的方式,不適用el7的方法,經由更改檔案/boot/grub2/grubenv,更改完直接重新開機後 #vi /boot/grub2/grubenv  #cat /proc/tty/driver/serial  #echo "1111" > /dev/ttyS0 dmesg | grep tty  Ubuntu #vi /etc/default/grub GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200n8" GRUB_TERMINAL=serial GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1" #sudo update-grub #vim /etc/init/ttyS0.conf #ttyS0 - getty #This service maintains a getty on ttyS0 from the point the system is #started until it is shut down again. start on stopped rc RUNLEVEL=[2345] stop on runlevel [!2345] respawn exec /sbin/getty -L 115200 ttyS0 vt100 https://minipc.netlify.app/posts/38655/ RedHat 7 localhost login: root Password:adminadmin #vi /etc/default/grub  add (要先進hackmd編輯模式複製) GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS0,115200" GRUB_TERMINAL="console serial" GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"  On BIOS-based machines: ~]# grub2-mkconfig -o /boot/grub2/grub.cfg On UEFI-based machines: ~]# grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg ex : UEFI   #reboot https://access.redhat.com/articles/7212#config7 # iperf3 # centos install firewalld firewall disable [root@localhost data1]# [root@localhost data1]# firewall-cmd --state running [root@localhost data1]# systemctl stop firewalld.service [root@localhost data1]# firewall-cmd --state # iperf cpupower frequency-set -g performance cpupower -c 48-63 idle-set -d 1 cpupower -c 48-63 monitor # install(centos 8) #yum install epel-release #yum install iperf (centos 8 not support) #wget Package.rpm (https://centos.pkgs.org/7/epel-x86_64/iperf-2.0.13-1.el7.x86_64.rpm.html) #rpm -Uvh Package.rpm Reference: http://support.moonpoint.com/os/unix/linux/centos/iperf-install.php ## Change link speed 關閉網路介面的自動 Auto-Negotiation 設定 #ethtool -s eth0 autoneg off 重新指定網路介面的連接速度 #ethtool -s eth0 speed 10 duplex full 查看 #ethtool eth0 ## cpupower (setting cpu frequency) #cpupower frequency-info #cpupower frequency-set -g performance #cpupower -c idle-set -d 1 #cpupower -c monitor ## storage R/W tool "FIO" #vi fio.cfg [global] filename=/dev/nvme0n1 direct=1 ioengine=libaio time_based runtime=10 iodepth=32 refill_buffers group_reporting wait_for_previous ramp_time=5 [JOB1] bs=4k rw=randread [JOB2] bs=4k rw=read [JOB3] bs=128k rw=read [JOB4] bs=1M rw=read [JOB5] bs=4k rw=randwrite [JOB6] bs=4k rw=write [JOB7] bs=128k rw=write [JOB8] bs=1M rw=write #fio fio.cfg fio 壓力測試 http://benjr.tw/96736 # lm-sensors yum install lm-sensors sh -c yes | sensors-detect sensors vi /etc/ ## Memory https://www.pcsuggest.com/benchmarking-linux-systems-with-simple-command-line-tools/ Basemark GPU Benchmark installation on Ubuntu 20.04 Linux https://www.how2shout.com/linux/install-basemark-gpu-benchmark-on-ubuntu-20-04-linux/ ## SMBIOS dmidecode -t 0  dmidecode -t 1  dmidecode -t 2  ## TPM2.0 dmesg | grep -i tpm  cat /sys/class/tpm/tpm*/tpm_version_major  ls /dev/tpm0  apt-get install tpm2-abrmd systemctl status tpm2-abrmd  apt-get install tpm2-tools https://paolozaino.wordpress.com/2021/02/21/linux-configure-and-use-your-tpm-2-0-module-on-linux/ https://jiruiwu.pixnet.net/blog/post/353060333-tpm-%28trusted-platform-module%29-2.0-linux-check-status-and-dev ## IPMI redhat 7 yum install OpenIPMI-modalias rpm -ivh http://mirror.centos.org/centos/7/os/x86_64/Packages/ipmitool-1.8.18-9.el7_7.x86_64.rpm
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up