public inbox for gentoo-user-de@lists.gentoo.org
 help / color / mirror / Atom feed
From: Andreas Baier <don.ande@gmx.de>
To: gentoo-user-de@lists.gentoo.org
Subject: Re: [gentoo-user-de] lvm2 (PEs) defragmentieren: geht das?
Date: Wed, 4 Jul 2007 22:41:06 +0200	[thread overview]
Message-ID: <200707042241.06281.don.ande@gmx.de> (raw)
In-Reply-To: <200707042216.17128.johannes-hirte@web.de>

Hallo,
> Was willst du an einem LV defragmentieren? Das stellt dir ein Block Device
> zur Verfügung, mit einer straight forward Allokation der Blöcke. Es kennt
> keinerlei Struktur wie ein Dateisystem, sprich man kann auch nichts
> defragmentieren.
Das ist meines Wissens nicht ganz richtig, da lvm2 das Gerät in Physical 
Extends (pe's) organisiert. Die sind normalerweise 4MB groß. Bei mir 
allerdings 16 da pro Physical Device nur 256, glaube ich, verwaltet werden 
und mein Array knapp 2TB groß ist und es sowieso noch auf die Datenart 
ankommt.
Es kommt aber darauf an, wie man das lv initialisiert, also contigous oder 
noncontigous. Im ersten Fall werden die Blöcke in einem Stück dem lv 
zugewiesen (somit kann keine Fragmentierung geschehen, ist auf Dauer aber 
unflexibel), im 2.Fall werden pe's nach Bedarf zugewiesen. So können dann, 
wenn man am Anfang mehrere lvs erstellt, diese aber bloß nach und nach mit 
Daten füllt, sich die zu den lv gehörenden pe's über das ganze Volume 
erstrecken. Kurz es ist fragmentiert. Bei großen Dateien und Sprüngen im 4 
oder hier 16MB Bereich auf der Festplatte kann dann ein Performance-Verlust 
schon spürbar werden. Bei mir macht es hier z.B. Unterschiede von mehr als 
15-40MB/s aus, bei ähnlich großen Dateien aber unterschiedlichen lvs. Daher 
die Frage.
Was ich jetzt nicht weiß, ist, was passiert, wenn man Daten löscht, ob dann 
bei einem noncontigous lv auch die pe's wieder freigegeben werden.

Gruß Andreas

--
gentoo-user-de@gentoo.org mailing list



  reply	other threads:[~2007-07-04 20:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-04 13:43 [gentoo-user-de] lvm2 (PEs) defragmentieren: geht das? Andreas Baier
2007-07-04 14:00 ` [gentoo-user-de] " Alexander Skwar
2007-07-04 14:20   ` Andreas Baier
2007-07-04 20:16 ` [gentoo-user-de] " Johannes Hirte
2007-07-04 20:41   ` Andreas Baier [this message]
2007-07-05  5:38   ` [gentoo-user-de] " Alexander W Skwar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200707042241.06281.don.ande@gmx.de \
    --to=don.ande@gmx.de \
    --cc=gentoo-user-de@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox