Esempio pratico.
Mi sono scaricato l'ultimo pacchetto stabile ufficiale presente nel sito del produttore.
Phoronix Test Suite - Generic Package
Perché quando è possibile preferisco usare soluzioni indipendenti dal sistema di gestione dei pacchetti di una specifica distro ed inoltre, in questo modo, è possibile usare test più aggiornati di quanto possibile avere usando i pacchetti nei propri repository.
Nel mio caso, usando Debian ho installato le seguenti dipendenze:
sudo apt-get install php5-cli php5-gd
nel caso di altri sistemi i nomi dei pacchetti potrebbero variare leggermente.
Spacchettare il pacchetto principale:
phoronix-test-suite-2.4.1.tar.gz
nella vostra /home/[nome_utente].
Quando lanciare lo script:
./phoronix-test-suite
vi appare un'elenco di informazioni sui parametri da utilizzare.
Es. il comando:
./phoronix-test-suite list-tests
vi mostrerà un lungo esempio di test eseguibili usando questa suite di benchmarking.
Io, per motivi di tempo e di spazio sull'hdd, ho proceduto ad effettuare un test su un singolo pacchetto.
La prima volta dovreste scaricarvi i dati necessari per il test:
./phoronix-test-suite install apache
in questo caso sono poco più di 6 mb ma per altri test possono essere moltiiiiiiiii di più.
Per eseguire il test:
./phoronix-test-suite run apache
Vedrete qualcosa del genere:
Quote:
Would you like to save these test results (Y/n)? y
Enter a name to save these results: apache_test
Enter a unique name for this test run: apache_test
###########################################
If you wish, enter a new description below.
Press ENTER to proceed without changes.
###########################################
Current Description: This is a test of ab, which is the Apache Benchmark program. This test prer second a given system can sustain when carrying out 500,000 requests with 100 requests bein
|
Risultati del test:
Quote:
New Description:
Apache Benchmark:
apache
Expected Trial Run Count: 3
Running Pre-Test Script @ 12:35:51
Started Run 1 @ 12:35:57
Started Run 2 @ 12:38:12
Started Run 3 @ 12:40:25
Running Post-Test Script @ 12:42:31
Test Results:
....
....
....
Average: .... Requests Per Second
Results Saved To: /home/[nome_utente]/.phoronix-test-suite/test-results/apache_test_result/composite.xml
Do you want to view the results in your web browser (y/N)? y
Would you like to upload these results to Phoronix Global (Y/n)? n
|
Come potete vedere vi viene indicato chiaramente il file dove vengono salvati i vostri risultati (una directory nascosta all'interno della vostra home).
Se con *firefox andate sul file:
/home/[nome_utente]/.phoronix-test-suite/test-results/apache_test/composite.xml
vi apparirà una schermata grafica con il vostro risultato corredata da una descrizione dettagliata del vostro hardware, kernel, X server, del vostro sistema.
Vedrete qualcosa del genere.
Come postare i dati su Global Phoronix (dopo avere effettuato la registrazione).
./phoronix-test-suite upload-results apache_test
Global phoronix
Test fatti usando il dual-core (però posto su un disco meno recente, quindi meno performante, usando debian squeeze a 64 bit (mentre il primo è stato fatto usando Debian Lenny a 32 bit):
Test effettuato fuori da X.
Test con X Window e Icewm.
Tips & Tricks.
Con:
./phoronix-test-suite list-installed-tests
vedrete i test installati sul vostro sistema.
Quote:
========================================
Phoronix Test Suite - Installed Tests
========================================
apache - Apache Benchmark
|
Con:
./phoronix-test-suite list-results
vedrete i test che avete salvato sul vostro sistema locale.
Quote:
========================================
Phoronix Test Suite - Saved Results
========================================
apache_test
Saved Name: apache_test Test: apache
- apache_result
|
./phoronix-test-suite system-info
Quote:
========================================
Phoronix Test Suite v2.4.1 (Lenvik)
System Information
========================================
Hardware:
Processor: AMD Athlon 64 3200+ @ 2.00GHz (Total Cores: 1), Motherboard: ASUSTeK A8N-VM CSM, Chipset: nVidia C51, System Memory: 948MB, Disk: 160GB ST3160815AS, Graphics: nVidia C51PV [GeForce 6150], Monitor: SyncMaster
Software:
OS: Debian 5.0.4, Kernel: 2.6.26-2-686 (i686), Display Server: X.Org Server 1.4.2, Display Driver: vesa 1.3.0, Compiler: GCC 4.3.2, File-System: ext3, Screen Resolution: 1280x1024
|
* Con google-chrome invece la pagina resta vuota probabilmente è un problema banale ma non ho avuto tempo di guardarci.