Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบ >> Linux

วิธี Benchmark ระบบ Linux

Benchmarks ใช้ประเมิน performance ของ software applications และ computer hardware ยอดนิยมใน Windows PC gaming community hardware benchmarking วัด attributes ต่างๆ: memory, processor, และ hard disk performance

Diagnostics เหล่านี้ทำได้บน Linux OS ส่วนใหญ่ ให้ Linux users กำหนดได้ว่า hardware ทำงานดีแค่ไหน โดยให้ข้อมูลเกี่ยวกับ capabilities และความจำเป็นในการ refurbishments ผลลัพธ์ Linux system benchmark ช่วยตัดสินใจว่าควรเปลี่ยน hardware และ identify system bottlenecks

มี open-source Linux benchmarking tools เยอะช่วย users fine-tune network และ system ด้วย objective comparisons บทความนี้ outline tools หลายตัวสำหรับ Linux system benchmark

Hardinfo

Hardinfo ให้ basic benchmarks และ detailed system information พร้อมใน Linux distribution repositories ส่วนใหญ่ สร้าง comprehensive reports ได้

  • Download และ install Hardinfo
  • Launch application: ไป System Tools > System Profiler and Benchmark
  • หรือ launch จาก command line $ hardinfo

Tests ที่มีใน Hardinfo:

  • CPU Fibonacci
  • CPU Blowfish
  • FPU Raytracing
  • CPU CryptoHash
  • CPU N-Queens
  • FPU FFT

แต่ละ Linux system benchmark test ให้ score เปรียบเทียบกับระบบอื่นได้ ดู quick system information โดยคลิก test และดู details ขวามือ

Run benchmark: คลิก tab ที่อยากได้ Hardinfo จะรัน test ดูผลขวามือ

คลิก Generate Report จาก top toolbar export device, network, computer, หรือ benchmark results ไป HTML file หลัง export เสร็จ จะมี option เปิดไฟล์ทันทีดูได้

Phoronix Test Suite

Phoronix Test Suite ฟรีและ open-source เข้าถึง 100+ Linux system benchmark test suites และ 450+ test profiles ติดตั้งแค่ tests ที่อยากได้ เข้าถึง reports และ system logs

หา Phoronix ใน Ubuntu Software Center และ package managers อื่นๆ ให้ menu ของ benchmarking และ information options

3 วิธีติดตั้ง Phoronix Test Suite วิธีแรก: เปิด terminal install ด้วยคำสั่ง:

# sudo apt-get install phoronix-test-suite

วิธีที่สอง: ค้นหา Phoronix ใน Ubuntu Software Center install package

หรือไป product website ดาวน์โหลด latest version ดาวน์โหลดเสร็จ install จาก terminal:

# sudo dpkg -i /path/to/packagename.deb

ต้อง install basic dependencies ด้วยคำสั่ง:

php5-cli php5-gd

Phoronix มี 100+ tests แต่ละ test ต้อง download dependencies Users รัน individual tests หรือ groups (suites) สร้าง suites เอง หรือใช้ suites ที่ Phoronix ให้มา

คำสั่งดู available suites:

# phoronix-test-suite list-available-suites

คำสั่งดู available Linux system benchmark tests:

# phoronix-test-suite list-available-tests

ก่อนรัน Phoronix บน Ubuntu ต้อง install test dependency packages ก่อน บนหลาย distros Phoronix ใช้ software package management system ติดตั้ง additional dependencies

วิธีง่ายสุดเริ่ม test: ดู lists available tests เลือกหนึ่ง รันด้วยคำสั่ง:

# phoronix-test-suite benchmark <TEST NAME>

ถ้าเป็นครั้งแรกใช้ Phoronix ต้องตอบคำถามนิดหน่อยและ accept user agreement Benchmarking results upload ไป OpenBenchmarking.org

GtkPerf

GtkPerf เป็น test suite วัดว่า system render lines, สร้าง graphics, และ scroll through dropdowns เร็วแค่ไหน Users วัดได้ว่า desktop responsive แค่ไหน

ติดตั้ง: พิมพ์คำสั่งใน terminal:

do apt-get install gtkperf

หรือค้นหาใน package installer

เริ่ม Linux system benchmark GtkPerf จะ perform GTK+ widget operations บอกว่านานแค่ไหน

Users reproduce tests ด้วย GtkPerf เช็ค system performance across multiple devices

Geekbench

Geekbench เป็น Linux system benchmark tool มี scoring system วัด single และ multi-core performance มีแค่ command-line executable ใน Linux

Geekbench score ยิ่งสูง CPU ยิ่งเร็วและดี เริ่มดาวน์โหลด latest version จาก official download page

หรือดาวน์โหลด Geekbench ไป server ด้วยคำสั่ง:

wget https://cdn.geekbench.com/Geekbench-5.0.4-Linux.tar.gz

Extract ด้วย tar -zxvf Geekbench-5.0.4-Linux.tar.gz เปลี่ยน directory ไป folder ที่ extracted Geekbench files:

cd Geekbench-4.3.3-Linux

รัน test ใน tryout mode:

./geekbench_x86_64

จบ test จะเห็น unique website link สำหรับแต่ละ test ดู results Results organized เป็นตาราง

Complete score บนสุดตาราง Scroll ดู results แต่ละ test ที่รัน

Results upload ไป web ให้ browse scores ได้

ใช้ Linux system benchmark tools ด้านบนประเมิน system performance และ strength เปรียบเทียบ results กับคอมพิวเตอร์อื่น Benchmarking process ช่วยหา weak links และ upgrade ที่จำเป็น