Sida 1 av 1
Automatisk defragmentering i 11.04?
Postat: 06 sep 2011, 00:31
av niklasskoglund.se
Jag undrar alltså som rubriken antyder om det finns någon automatisk defragmenteringsfunktion aktiverad från start i Ubuntu 11.04? Om så är fallet skulle jag vilja ha hjälp med hur man avaktiverar den på enklaste sätt. Jag har skaffat en SSD-disk och har läst att den ej bör/behöver defragmenteras.
Tack på förhand /Niklas
Re: Automatisk defragmentering i 11.04?
Postat: 06 sep 2011, 00:37
av ubot
Det finns knappast någon sådan funktion. Ubuntus filsystem behöver in defragmenteras eftersom dess filsystem gör att hårddisken aldrig fragmenteras:
http://en.wikipedia.org/wiki/Ext3#Defragmentation
http://askubuntu.com/questions/1090/why ... nnecessary
Det verkar som om det finns planer på att ha en defragmentation-funktion i filsystemet ext4. Nu använder Ubuntu 11.04 filsystemet ext4 som standard men jag tror inte det finns en defragmentationsfunktion inbyggd i filsystemet även om det har förekommit förslag om detta?
Re: Automatisk defragmentering i 11.04?
Postat: 06 sep 2011, 00:44
av Elfa
Jag vet inte om du har koll på TRIM, men här kommer en länk:
http://askubuntu.com/questions/18903/how-to-enable-trim
Re: Automatisk defragmentering i 11.04?
Postat: 06 sep 2011, 00:57
av ubot
While delayed allocation, extents and multiblock allocation help to reduce the fragmentation, with usage filesystems can still fragment. For example: You write three files in a directory and continually on the disk. Some day you need to update the file of the middle, but the updated file has grown a bit, so there's not enough room for it. You have no option but fragment the excess of data to another place of the disk, which will cause a seek, or allocate the updated file continually in another place, far from the other two files, resulting in seeks if an application needs to read all the files on a directory (say, a file manager doing thumbnails on a directory full of images). Besides, the filesystem can only care about certain types of fragmentation, it can't know, for example, that it must keep all the boot-related files contiguous, because it doesn't know which files are boot-related. To solve this issue, Ext4 will support online fragmentation, and there's a e4defrag tool which can defragment individual files or the whole filesystem.
http://kernelnewbies.org/Ext4#head-38e6 ... 2ef7217fb0
(This feature is being developed and will be included in future releases). While delayed allocation, extents and multiblock allocation help to reduce the fragmentation, with usage filesystems can still fragment. For example: You write three files in a directory and continually on the disk. Some day you need to update the file of the middle, but the updated file has grown a bit, so there's not enough room for it. You have no option but fragment the excess of data to another place of the disk, which will cause a seek, or allocate the updated file continually in another place, far from the other two files, resulting in seeks if an application needs to read all the files on a directory (say, a file manager doing thumbnails on a directory full of images). Besides, the filesystem can only care about certain types of fragmentation, it can't know, for example, that it must keep all the boot-related files contiguous, because it doesn't know which files are boot-related. To solve this issue, Ext4 will support online defragmentation, and there's a e4defrag tool which can defragment individual files or the whole filesystem.
https://ext4.wiki.kernel.org/index.php/ ... gmentation
(This feature is being developed and will be included in future releases)
Det verkar ju inte finnas ännu?
Re: Automatisk defragmentering i 11.04?
Postat: 06 sep 2011, 06:02
av philip5
Störtats problemen med det här vid vanlig användning brukar vara om man laddar torrent-filer och man inte har eller använder funktion i sin torrent-klient för att allokera data när den börjar ladda utan fyller på eftersom.
Fsck tror jag kan "trimma" non-continuous data. Den talar i alla fall om hur mycket sådan data som finns på partitionen.
Re: Automatisk defragmentering i 11.04?
Postat: 06 sep 2011, 14:40
av niklasskoglund.se
Elfa: Tack för det. Trim var nästa fråga på min lista :-)
ubot: Du verkar ha helt rätt där.
philip5: Kommer nog inte ladda ner några torrents på denna dator. Det är nog mest Chromium och Skype som kommer användas. Men jag kommer kanske att få nytta av ditt tips på windows burken.