Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Forum italiano (Italian)
  • Search

[DISCUSSIONE ] - filesystem

Questa è la sezione italiana del forum gentoo destinata a fornire supporto all'omonima distribuzione.

Moderator: ago

Post Reply
  • Print view
Advanced search
30 posts
  • 1
  • 2
  • Next
Author
Message
xxchris
n00b
n00b
Posts: 23
Joined: Thu Oct 07, 2004 6:35 am

[DISCUSSIONE ] - filesystem

  • Quote

Post by xxchris » Fri Oct 08, 2004 9:26 am

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: Select all

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 :lol:

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: Select all

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: Select all

---------------- 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?
Last edited by xxchris on Fri Oct 08, 2004 4:10 pm, edited 1 time in total.
while true...Gentoo
Top
gutter
Bodhisattva
Bodhisattva
User avatar
Posts: 7162
Joined: Sat Mar 13, 2004 10:37 pm
Location: Aarau, Aargau, Switzerland
Contact:
Contact gutter
Website

  • Quote

Post by gutter » Fri Oct 08, 2004 1:50 pm

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 :wink:
Registered as User #281564 and Machines #163761
Top
xchris
Advocate
Advocate
User avatar
Posts: 2824
Joined: Thu Jul 10, 2003 10:21 pm

  • Quote

Post by xchris » Fri Oct 08, 2004 1:55 pm

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()
Top
motaboy
Retired Dev
Retired Dev
User avatar
Posts: 1483
Joined: Mon Dec 15, 2003 2:38 pm

  • Quote

Post by motaboy » Fri Oct 08, 2004 2:01 pm

Hai lasciato indietro proprio il migliore...
...
Top
xchris
Advocate
Advocate
User avatar
Posts: 2824
Joined: Thu Jul 10, 2003 10:21 pm

  • Quote

Post by xchris » Fri Oct 08, 2004 2:03 pm

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()
Top
motaboy
Retired Dev
Retired Dev
User avatar
Posts: 1483
Joined: Mon Dec 15, 2003 2:38 pm

  • Quote

Post by motaboy » Fri Oct 08, 2004 2:09 pm

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.
...
Top
xchris
Advocate
Advocate
User avatar
Posts: 2824
Joined: Thu Jul 10, 2003 10:21 pm

  • Quote

Post by xchris » Fri Oct 08, 2004 2:18 pm

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()
Top
randomaze
Bodhisattva
Bodhisattva
User avatar
Posts: 9985
Joined: Tue Oct 21, 2003 7:55 am
Contact:
Contact randomaze
Website

  • Quote

Post by randomaze » Fri Oct 08, 2004 2:22 pm

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 :roll: )
Ciao da me!
Top
motaboy
Retired Dev
Retired Dev
User avatar
Posts: 1483
Joined: Mon Dec 15, 2003 2:38 pm

  • Quote

Post by motaboy » Fri Oct 08, 2004 2:23 pm

Io sto ancora usando il 2.6.9_rc1-mm2.
...
Top
xchris
Advocate
Advocate
User avatar
Posts: 2824
Joined: Thu Jul 10, 2003 10:21 pm

  • Quote

Post by xchris » Fri Oct 08, 2004 2:26 pm

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()
Top
xchris
Advocate
Advocate
User avatar
Posts: 2824
Joined: Thu Jul 10, 2003 10:21 pm

  • Quote

Post by xchris » Fri Oct 08, 2004 3:25 pm

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! 8O


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()
Top
motaboy
Retired Dev
Retired Dev
User avatar
Posts: 1483
Joined: Mon Dec 15, 2003 2:38 pm

  • Quote

Post by motaboy » Fri Oct 08, 2004 3:28 pm

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...
...
Top
xchris
Advocate
Advocate
User avatar
Posts: 2824
Joined: Thu Jul 10, 2003 10:21 pm

  • Quote

Post by xchris » Fri Oct 08, 2004 3:32 pm

ok.
Provo gli mm.
vediamo un po'...
while True:Gentoo()
Top
xchris
Advocate
Advocate
User avatar
Posts: 2824
Joined: Thu Jul 10, 2003 10:21 pm

  • Quote

Post by xchris » Fri Oct 08, 2004 4:14 pm

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()
Top
motaboy
Retired Dev
Retired Dev
User avatar
Posts: 1483
Joined: Mon Dec 15, 2003 2:38 pm

  • Quote

Post by motaboy » Fri Oct 08, 2004 4:20 pm

prova a fare un "emerge search"...
...
Top
xchris
Advocate
Advocate
User avatar
Posts: 2824
Joined: Thu Jul 10, 2003 10:21 pm

  • Quote

Post by xchris » Fri Oct 08, 2004 4:34 pm

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()
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Fri Oct 08, 2004 4:35 pm

Prova a lanciare un emerge -S
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
randomaze
Bodhisattva
Bodhisattva
User avatar
Posts: 9985
Joined: Tue Oct 21, 2003 7:55 am
Contact:
Contact randomaze
Website

  • Quote

Post by randomaze » Fri Oct 08, 2004 4:42 pm

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 :-P
Last edited by randomaze on Fri Oct 08, 2004 4:49 pm, edited 1 time in total.
Ciao da me!
Top
motaboy
Retired Dev
Retired Dev
User avatar
Posts: 1483
Joined: Mon Dec 15, 2003 2:38 pm

  • Quote

Post by motaboy » Fri Oct 08, 2004 4:45 pm

qualsiasi test ha senso se la partizione é la STESSA.
...
Top
motaboy
Retired Dev
Retired Dev
User avatar
Posts: 1483
Joined: Mon Dec 15, 2003 2:38 pm

  • Quote

Post by motaboy » Fri Oct 08, 2004 4:53 pm

Anzi adesso che ci penso, i test non hanno nessun senso... :lol:
...
Top
xchris
Advocate
Advocate
User avatar
Posts: 2824
Joined: Thu Jul 10, 2003 10:21 pm

  • Quote

Post by xchris » Fri Oct 08, 2004 4:55 pm

bhe.. anche la vita a volte non ha senso :D :lol:
ocio che non finiamo + :lol:
ciao
while True:Gentoo()
Top
xchris
Advocate
Advocate
User avatar
Posts: 2824
Joined: Thu Jul 10, 2003 10:21 pm

  • Quote

Post by xchris » Fri Oct 08, 2004 5:08 pm

vediamo se questo testino puo' dare qc risultato...

Code: Select all

#!/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()
Top
Benve
l33t
l33t
User avatar
Posts: 897
Joined: Thu Mar 13, 2003 4:37 pm
Location: Italy Romagna
Contact:
Contact Benve
Website

  • Quote

Post by Benve » Sat Oct 09, 2004 11:43 am

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.
Top
xchris
Advocate
Advocate
User avatar
Posts: 2824
Joined: Thu Jul 10, 2003 10:21 pm

  • Quote

Post by xchris » Sat Oct 09, 2004 6:34 pm

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()
Top
xchris
Advocate
Advocate
User avatar
Posts: 2824
Joined: Thu Jul 10, 2003 10:21 pm

  • Quote

Post by xchris » Sat Oct 09, 2004 10:04 pm

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: Select all

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: Select all

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!!! :o

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()
Top
Post Reply
  • Print view

30 posts
  • 1
  • 2
  • Next

Return to “Forum italiano (Italian)”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic