soluzioni


Si guarda quanto tempo occorre per scrivere 51MBytes su un file, quando la macchina non ha altri utenti e non ci sono altri processi pesanti in corso:
[steffe@monge steffe]$ date
Thu Oct  2 14:17:03 CEST 2003
[steffe@monge steffe]$ time dd if=/dev/zero of=/tmp/prova count=100000
100000+0 records in
100000+0 records out
0.46user 3.79system 0:13.18elapsed 32%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (120major+18minor)pagefaults 0swaps
[steffe@monge steffe]$ ls -la /tmp/prova
-rw-rw-r--    1 steffe   steffe   51200000 Oct  2 14:16 /tmp/prova
[steffe@monge steffe]$ rm /tmp/prova

------------------------------
[steffe@lab3 steffe]$ date
Thu Oct  2 14:18:54 CEST 2003
[steffe@lab3 steffe]$ time dd if=/dev/zero of=/tmp/prova count=100000
100000+0 records in
100000+0 records out

real    0m5.686s
user    0m0.080s
sys     0m1.430s
[steffe@lab3 steffe]$ ls -la /tmp/prova 
-rw-rw-r--    1 steffe   steffe   51200000 Oct  2 14:19 /tmp/prova
[steffe@lab3 steffe]$ rm /tmp/prova


Dunque: 13 secondi su monge e 5.6 secondi su lab3, che risulta un po' più veloce.
(In realta' la stima non è molto accurata perchè su lab3 c'e' un processo i di calcolo in background e su monge parecchi utenti che però consumano poca CPU).  
CHIUDI

Laboratorio di Comunicazione mediante Calcolatore - Sergio Steffè - AA 2003/2004 - PISA