View previous topic :: View next topic |
Author |
Message |
xxchris n00b
Joined: 07 Oct 2004 Posts: 23
|
Posted: Fri Oct 08, 2004 9:26 am Post subject: [DISCUSSIONE ] - filesystem |
|
|
Oggi dopo una discussione con Gutter via skype ho deciso di fare qualche piccola prova con alcuni filesystem.
Ho preso in considerazione ext2,ext3,xfs,reiserfs(3),jfs
Non ho considerato reiserfs4 per 2 motivi. (il mio kernel,immaturita' IMHO!!!!)
I test di certo non si possono considerare un granche'.
Avrei potuto usare bonnie...ma per il momento i test condotti sono stati semplicissimi.
Copiare /usr/portage
Come ben sappiamo e' pieno di piccoli file!
Code: |
find /usr/portage/ | wc -l
101870
|
Credo che nella norma il nostro bel pinguino lavori con piccoli file,soprattutto gentoo che compila come una dannata
Come ho fatto i test?
la mia root e' su disco scsi UW320 (e quindi anche /usr/portage)
il disco target e' un IDE neanche molto performante.
Quindi i test sono stai condotti copiando e rimuovendo /usr/portage.
Code: |
time `mount /dev/hda3 /mnt/test/ && cp /usr/portage/ /mnt/test/ -rp && umount /mnt/test/`
time `mount /dev/hda3 /mnt/test/ && rm /mnt/test/* -r && umount /mnt/test/`
|
Ho preferito includere il mount e l'unmount per essere sicuro che i dati venissero scritti realmente su HD
ok ora i risultati:
Code: |
---------------- ext2
root@lyra root # time `mount /dev/hda3 /mnt/test/ && cp /usr/portage/ /mnt/test/ -rp && umount /mnt/test/`
real 0m41.015s
user 0m0.711s
sys 0m6.865s
root@lyra root # time `mount /dev/hda3 /mnt/test/ && rm /mnt/test/ -r && umount /mnt/test/`
real 0m32.430s
user 0m0.202s
sys 0m2.374s
---------------- fine ext2
---------------- ext3
root@lyra root # time `mount /dev/hda3 /mnt/test/ && cp /usr/portage/ /mnt/test/ -rp && umount /mnt/test/`
real 1m1.679s
user 0m0.701s
sys 0m9.113s
root@lyra root # time `mount /dev/hda3 /mnt/test/ && rm /mnt/test/* -r && umount /mnt/test/`
real 0m35.740s
user 0m0.188s
sys 0m3.995s
---------------- fine xt3
---------------- xfs
root@lyra root # time `mount /dev/hda3 /mnt/test/ && cp /usr/portage/ /mnt/test/ -rp && umount /mnt/test/`
real 1m18.207s
user 0m0.881s
sys 0m16.320s
root@lyra root # time `mount /dev/hda3 /mnt/test/ && rm /mnt/test/* -r && umount /mnt/test/`
real 1m19.890s
user 0m0.276s
sys 0m8.842s
---------------- fine xfs
---------------- reiser3
root@lyra root # time `mount /dev/hda3 /mnt/test/ && cp /usr/portage/ /mnt/test/ -rp && umount /mnt/test/`
real 0m25.206s
user 0m0.708s
sys 0m15.423s
root@lyra root # time `mount /dev/hda3 /mnt/test/ && rm /mnt/test/* -r && umount /mnt/test/`
real 0m21.272s
user 0m0.238s
sys 0m8.394s
---------------- fine reiser3
---------------- jfs
root@lyra root # time `mount /dev/hda3 /mnt/test/ && cp /usr/portage/ /mnt/test/ -rp && umount /mnt/test/`
real 2m4.506s
user 0m0.793s
sys 0m8.821s
root@lyra root # time `mount /dev/hda3 /mnt/test/ && rm /mnt/test/* -r && umount /mnt/test/`
real 1m43.252s
user 0m0.224s
sys 0m2.763s
---------------- fine jfs
EDIT:Aggiunto
---------------- reiser4
root@lyra xchris # time `mount /dev/hda3 /mnt/test/ && cp /usr/portage/ /mnt/test/ -rp && umount /mnt/test/`
real 0m24.080s
user 0m0.760s
sys 0m14.258s
root@lyra xchris # time `mount /dev/hda3 /mnt/test/ && rm /mnt/test/* -r && umount /mnt/test/`
real 0m23.279s
user 0m0.284s
sys 0m15.366s
---------------- fine reiser4
|
ultimo test fatto:
montare /var/tmp/portage su /dev/hda3
emerge lopster: 43s sia con reiserfs che con ext3
Probabilmente il collo di bottiglia non e' il fs! (peccato...speravo di rubare un po' di tempo mettendo su /var/tmp/portage un fs veloce...anche se meno sicuro)
Commenti? _________________ while true...Gentoo
Last edited by xxchris on Fri Oct 08, 2004 4:10 pm; edited 1 time in total |
|
Back to top |
|
|
gutter Bodhisattva
Joined: 13 Mar 2004 Posts: 7162 Location: Aarau, Aargau, Switzerland
|
Posted: Fri Oct 08, 2004 1:50 pm Post subject: |
|
|
IMHO questo test privilegia reiserfs, dal momento che riesce a gestire meglio i file di piccole dimensioni. L'unico test che aggiungerei e quello di copiare un file di 2GB.
@xchris: gutter si scrive con lettera iniziale minuscola _________________ Registered as User #281564 and Machines #163761 |
|
Back to top |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Fri Oct 08, 2004 1:55 pm Post subject: |
|
|
ahem... scusa per il nick
diciamo che e' nella norma lavorare con file piccoli. (situazione standard)
Chiaro che se poi uno lavora con filmati,immagini il discorso cambia
magari provero' + avanti
ciao _________________ while True:Gentoo() |
|
Back to top |
|
|
motaboy Retired Dev
Joined: 15 Dec 2003 Posts: 1483
|
Posted: Fri Oct 08, 2004 2:01 pm Post subject: |
|
|
Hai lasciato indietro proprio il migliore... _________________ ... |
|
Back to top |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Fri Oct 08, 2004 2:03 pm Post subject: |
|
|
di cosa parli? reiser4?
purtroppo (o forse no) il mio kernel non lo ha...
per i miei gusti e' immaturo ancora...IMHO IMHO!
magari butto su un nitro (scelta accettabile?) e provo.
ciao _________________ while True:Gentoo() |
|
Back to top |
|
|
motaboy Retired Dev
Joined: 15 Dec 2003 Posts: 1483
|
Posted: Fri Oct 08, 2004 2:09 pm Post subject: |
|
|
Io mi fido cosi tanto che tutte le mie partizioni a parte la home (non ho tempo di spostarla visto che é di soli 20 GB) sono reiser4. _________________ ... |
|
Back to top |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Fri Oct 08, 2004 2:18 pm Post subject: |
|
|
questione di gusti
sono rimasto scottato in passato da reiser...
...non vorrei ripetere
Chiaramente ognuno usa quello che preferisce
ciao
EDIT:mi consigli un kernel che supporti reiser4 senza problemi?(link magari ) vorrei provare il test _________________ while True:Gentoo() |
|
Back to top |
|
|
randomaze Bodhisattva
Joined: 21 Oct 2003 Posts: 9985
|
Posted: Fri Oct 08, 2004 2:22 pm Post subject: |
|
|
xchris wrote: | diciamo che e' nella norma lavorare con file piccoli. (situazione standard) |
Si e no... in realtà dovresti definire "piccoli" dato che gli ebuild sono veramente piccoli.
Sul Reiser4 ti do abbastanza ragione, l'unico campo in cui lo userei al momento sono proprio le directory di portage (esclusa /var/db ) _________________ Ciao da me! |
|
Back to top |
|
|
motaboy Retired Dev
Joined: 15 Dec 2003 Posts: 1483
|
Posted: Fri Oct 08, 2004 2:23 pm Post subject: |
|
|
Io sto ancora usando il 2.6.9_rc1-mm2. _________________ ... |
|
Back to top |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Fri Oct 08, 2004 2:26 pm Post subject: |
|
|
randomaze wrote: |
Si e no... in realtà dovresti definire "piccoli" dato che gli ebuild sono veramente piccoli.
|
si effettivamente gli ebuild sono proprio piccoli.
Magari rifaccio quando ho su anche reiser4 i test con bonnie.
ciao _________________ while True:Gentoo() |
|
Back to top |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Fri Oct 08, 2004 3:25 pm Post subject: |
|
|
messo 2.6.9-rc3-nitro2.
compilato con supporto per reiser4 come modulo (per fortuna)
inziato il primo test...
mentre smontavo la partizione ecco che mi esce un bel
SEGMENTATION FAULT!!!
poco dopo freeze totale della macchina!
Premessa: e' una macchina ottima con ottima ram,accesa 24h/24h senza nessun problema.Nessun fs mi ha mai fatto questo scherzo.
Ipotesi:
1 ho preso un kernel sbagliato
2 e' un fs veramente immaturo
3 sono sfigato^99
BTW, al reboot il vecchio e vetusto ext3 si e' ripreso senza problemi.
Questo e' il mio approccio con reiser4.
Prima,unica,ultima (a breve tempo) esperienza con reiser&co.
LUNGI DA ME SCATENARE FLAME!
E' SOLO QUELLO CHE MI E' SUCCESSO.
chiaramente non posso continuare il test :S _________________ while True:Gentoo() |
|
Back to top |
|
|
motaboy Retired Dev
Joined: 15 Dec 2003 Posts: 1483
|
Posted: Fri Oct 08, 2004 3:28 pm Post subject: |
|
|
Probabilmente hai preso un kernel sbagliato. Gli unici che devono essere usati con reiser4 sono gli mm. sono giá anche troppo patchati loro, se poi ce ne aggiuingi anche delle altre... _________________ ... |
|
Back to top |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Fri Oct 08, 2004 3:32 pm Post subject: |
|
|
ok.
Provo gli mm.
vediamo un po'... _________________ while True:Gentoo() |
|
Back to top |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Fri Oct 08, 2004 4:14 pm Post subject: |
|
|
ok ... con gli mm non mi va in segfault.
I test pero' non sono un granche' rispetto reiser3.
Mi sorge il dubbio che ci sia un collo altrove.
In teoria si potrebbe pensare al fs della dir /usr/portage (che e' ext3)
e' anche vero che ormai era tutto cacheato...
mi sa' che passero' a dei test con bonnie.
ciao _________________ while True:Gentoo() |
|
Back to top |
|
|
motaboy Retired Dev
Joined: 15 Dec 2003 Posts: 1483
|
Posted: Fri Oct 08, 2004 4:20 pm Post subject: |
|
|
prova a fare un "emerge search"... _________________ ... |
|
Back to top |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Fri Oct 08, 2004 4:34 pm Post subject: |
|
|
Non credo sia un buon test per diversi motivi.
1 La mia root e' su UWSCSI320 con ext3
reiser4 e' su ide-uma100
2 la cache
Reiser4
emerge -s alsa
....
real 0m1.667s
user 0m1.373s
sys 0m0.283s
Ext3
emerge -s alsa
.....
real 0m1.581s
user 0m1.336s
sys 0m0.232s
Credo che questi risultati non significhino molto.
Non sento neanche l'hd frullare un po'
Mi affidero' a bonnie
ciao _________________ while True:Gentoo() |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31476 Location: here
|
Posted: Fri Oct 08, 2004 4:35 pm Post subject: |
|
|
Prova a lanciare un emerge -S _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
randomaze Bodhisattva
Joined: 21 Oct 2003 Posts: 9985
|
Posted: Fri Oct 08, 2004 4:42 pm Post subject: |
|
|
xchris wrote: | Non credo sia un buon test per diversi motivi.
1 La mia root e' su UWSCSI320 con ext3
reiser4 e' su ide-uma100
2 la cache
|
Concordo, le situazioni sono troppo differenti... quel tipo di prova ha quasi senso se le partizioni sono sullo stesso disco....
EDIT: Aggiunto il "quasi" dopo che mi ha cazziato motaboy _________________ Ciao da me!
Last edited by randomaze on Fri Oct 08, 2004 4:49 pm; edited 1 time in total |
|
Back to top |
|
|
motaboy Retired Dev
Joined: 15 Dec 2003 Posts: 1483
|
Posted: Fri Oct 08, 2004 4:45 pm Post subject: |
|
|
qualsiasi test ha senso se la partizione é la STESSA. _________________ ... |
|
Back to top |
|
|
motaboy Retired Dev
Joined: 15 Dec 2003 Posts: 1483
|
Posted: Fri Oct 08, 2004 4:53 pm Post subject: |
|
|
Anzi adesso che ci penso, i test non hanno nessun senso... _________________ ... |
|
Back to top |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Fri Oct 08, 2004 4:55 pm Post subject: |
|
|
bhe.. anche la vita a volte non ha senso
ocio che non finiamo +
ciao _________________ while True:Gentoo() |
|
Back to top |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Fri Oct 08, 2004 5:08 pm Post subject: |
|
|
vediamo se questo testino puo' dare qc risultato...
Code: |
#!/bin/bash
mount /dev/hda3 /mnt/test
dd if=/dev/urandom of=/mnt/test/1 count=400k
umount /mnt/test && mount /dev/hda3 /mnt/test
cp /mnt/test/1 /mnt/test/2
umount /mnt/test && mount /dev/hda3 /mnt/test
rm /mnt/test/*
umount /mnt/test
|
continuo a montare e smontare per essere sicuro che i dati siano salvati!
risultati:
ext2 -->1m1.157s
ext3 -->0m59.891s
reiser3-->1m3.828s
reiser4-->1m14.052s
xfs -->0m58.801s
jfs -->0m58.196s
ok.
i risultati sono ribaltati.
File grossini reiser e' + lento (mi pare fosse gia' nota come cosa)
bhe per oggi basta test!
se qc ha voglia di scrivere uno scrippettino + sensato... lo testo poi.
ciao _________________ while True:Gentoo() |
|
Back to top |
|
|
Benve l33t
Joined: 13 Mar 2003 Posts: 897 Location: Italy Romagna
|
Posted: Sat Oct 09, 2004 11:43 am Post subject: |
|
|
Penso che questi siano test che non danno una reale percezione delle prestazioni.
Un bel test sarebbe montare /var/tmp/portage con vari filesystem e calcolare i tempi di compilazione.
Se spostiamo in un solo comando grandi quantità di file piccoli o file grandi, non si tiene conto della frammentazione, o della contiguità dei blocchi. |
|
Back to top |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Sat Oct 09, 2004 6:34 pm Post subject: |
|
|
si e no..
ho gia' fatto delle prove del genere e ext3 e reiser4 hanno fornito le stesse prestazioni.
Al momento ho provato con "iozone"..
Appena ho un attimo di tempo sistemo e posto i risultati.
ciao _________________ while True:Gentoo() |
|
Back to top |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Sat Oct 09, 2004 10:04 pm Post subject: |
|
|
per ora ultima prova..
ho una distro residente sulla mia macchina da cui derivare i vari server che poi installo nei vari uffici.
Operazione:
-mkfs.specifico
-copia
-mount
-emerge -f openvpn (tira giu' 3 pacchetti. nasm,lzo,openvp)
-time emerge openvp
Code: |
reiser4 397722
real 1m48.699s
user 1m43.043s
sys 1m8.110s
2nd run - and install
real 1m44.669s
user 1m43.072s
sys 1m8.364s
xfs
real 1m37.502s
user 1m42.923s
sys 0m55.570s
ext2 781756
real 1m33.975s
user 1m43.068s
sys 0m51.383s
ext3 781756
real 1m35.485s
user 1m42.850s
sys 0m51.956s
jfs
real 1m38.358s
user 1m42.111s
sys 0m53.667s
|
a reiser4 ho dato un'altra opportunita'...visti i risultati inaspettati deludenti.
A questo punto mi sono fatto l'idea che reiser4 sia ottimo con file molto piccoli.
e infatti un "emerge -S ben"
mi ha restituito:
Code: |
ext3
real 0m41.331s
user 0m23.471s
sys 0m6.803s
reiser4
real 0m32.691s
user 0m23.578s
sys 0m9.092s
jfs
real 0m31.820s
user 0m23.005s
sys 0m5.272s
|
una cosa che mi ha realmente stupito e' la dimensione!!
du /mnt/reiser4
400394
du /mnt/ext3
781968
du /mnt/jfs
742780
impressionante!!!
A occhio avere reiser4 non implica migliori tempi di emerge.
Sicuramente velocizza le ricerche e qualunque applicativo che richieda la lettura,scrittura di migliaia di piccoli file.
Ero alla ricerca di un sostituto di ext3.
Per il momento penso non ne valga la pena.
Se parliamo di reiser4 poi...
...devo pregare la madonna ogni volta che metto un kernel nuovo?
mah
tutto IMHO
ciao _________________ while True:Gentoo() |
|
Back to top |
|
|
|