Fórum Ubuntu CZ/SK
Ostatní => Archiv => Téma založeno: LS 19 Srpna 2006, 11:19:25
-
Pekne vysvetlene, dokonce i ja jsem to pochopil ;)
http://geekblog.oneandoneis2.org/index.php/2006/08/17/why_doesn_t_linux_need_defragmenting
-
ešte keby to niekto preložil pre tých menej zdatných... inak je to super blog..
-
Linux ma urcite advanced filesystemy, ktery se fragmentaci snazi co nejvic eliminovat, ale urcite to neni uplne bez fragmentu, napr muj disk:
/ - ext3 zaplneno z 11%:
5.60330010312822% non contiguous files, 1.11275352354761 average fragments.
/home - reiserfs zaplnen ze 74%:
9.86859056944087% non contiguous files, 7.60680237052306 average fragments
Tech 10% jeste jde, ale uz jsem slysel i o 40% fragmentacich, takze ono to asi taky nebude uplne bezchybny :(
-
/home - ext3 zaplnene 96%
17.9669251611698% non contiguous files, 2.37157806222554 average fragments.
-
no, ono u 96% zaplneny je tezky nefragmentovat...
-
a po uvolneni tazke defragmentovat... :-)
-
:D
co treba cp?
-
:D
co treba cp?
Neco lepsiho:
http://freshmeat.net/projects/defrag/ ;)
-
Nevim jestli presne tento, ale nejaky "defrag" je i v repozitarich...
-
cim ste ziskali ty vystupy?
-
cim ste ziskali ty vystupy?
#!/usr/bin/perl -w
#this script search for frag on a fs
use strict;
#number of files
my $files = 0;
#number of fragment
my $fragments = 0;
#number of fragmented files
my $fragfiles = 0;
#search fs for all file
open (FILES, "find " . $ARGV[0] . " -xdev -type f -print0 |");
$/ = "\0";
while (defined (my $file = )) {
open (FRAG, "-|", "filefrag", $file);
my $res = ;
if ($res =~ m/.*:\s+(\d+) extents? found/) {
my $fragment = $1;
$fragments += $fragment;
if ($fragment > 1) {
$fragfiles++;
}
$files++;
} else {
print ("$res : not understand for $file.\n");
}
close (FRAG);
}
close (FILES);
print ( $fragfiles / $files * 100 . "% non contiguous files, " . $fragments / $files . " average fragments.\n");
uloz si to ako nazov.pl a sputi ./nazov.pl /adresar/ktory/skumas
-
pod tim clankem o defragovani je zuriva diskuze:-)
-
http://www.root.cz/clanky/proc-linux-nepotrebuje-defragmentaci/
-
Hehe bezva, to je preklad toho clanku na ktery jsem odkazoval :)
-
zajimava diskuze k danemu tematu:
http://www.abclinuxu.cz/forum/show/145194