On Wed, 2004-03-03 09:48:00 +0100, Michael Bramer <skolelinux@debsupport.de> wrote in message <[🔎] 20040303084754.GB4564@home.debsupport.de>: > On Mon, Mar 01, 2004 at 10:38:41AM +0100, Jan-Benedict Glaw wrote: > > On Sun, 2004-02-29 09:16:01 +0100, Kurt Gramlich <kurt@lugrav.de> > > wrote in message <20040229081601.GB815@lugrav.de>: > > > * "Marius Schröter" <mariusschroeter@gmx.de> [040229 04:05]: > > > mit rsync laesst sich diese Version auch zeit- und datensparend > > > updaten, es werden nur die Veraenderungen vom norwegischen Server > > > geholt. > > "datensparend" ist so eine Sache bei rsync in Verbindung mit CD-Images. > > Rsync vergleicht checksummen von (immer gleichgroßen) Blöcken. > > Verschiebst Du auf der CD alles ab dem 2. Byte um ein Byte nach hinten, > > läd rsync quasi die komplette CD herunter. > > das ist unsinn... Ist es nicht. Du hast falsch gemessen 8^P > michael@home:~$ cd /tmp/ > michael@home:/tmp$ mkdir rsynctest > michael@home:/tmp$ cd rsynctest > michael@home:/tmp/rsynctest$ ls -l > michael@home:/tmp/rsynctest$ cp /var/lib/apt/lists/ftp2.de.debian.org_debian_dists_sid_main_binary-i386_Packages datei1 > michael@home:/tmp/rsynctest$ echo -n A > t > michael@home:/tmp/rsynctest$ cat t datei1 > datei2 > michael@home:/tmp/rsynctest$ ls -l datei* > -rw-r----- 1 michael michael 11032377 3. Mär 09:37 datei1 > -rw-r----- 1 michael michael 11032378 3. Mär 09:37 datei2 > michael@home:/tmp/rsynctest$ rsync -v -n --stats datei1 datei2 > datei1 > > Number of files: 1 > Number of files transferred: 1 > Total file size: 11032377 bytes > Total transferred file size: 11032377 bytes > Literal data: 0 bytes > Matched data: 0 bytes > File list size: 25 > Total bytes written: 41 > Total bytes read: 20 > > wrote 41 bytes read 20 bytes 122.00 bytes/sec > total size is 11032377 speedup is 180858.64 > > Noch fragen? Ja. Wie sieht Deine --stats'istik aus, wenn Du den Schummel-Mode (-n) ausschaltest? Bei mir sieht das dann so aus: Script started on Wed Mar 3 10:58:39 2004 jbglaw@woody.devel:~/real_rsync_test$ dd if=/dev/urandom bs=1M count=50 of=random_data 50+0 records in 50+0 records out jbglaw@woody.devel:~/real_rsync_test$ echo AAAAA > random_data2 jbglaw@woody.devel:~/real_rsync_test$ cat random_data >> random_data2 jbglaw@woody.devel:~/real_rsync_test$ rsync -v -n --stats random_data random_data2 random_data rsync[28807] (server receiver) heap statistics: arena: 8856 (bytes from sbrk) rsync[28805] (sender) heap statistics: arena: 45720 (bytes from sbrk) ordblks: 2 (chunks not in use) smblks: 0 hblks: 0 (chunks from mmap) hblkhd: 0 (bytes from mmap) usmblks: 0 fsmblks: 0 uordblks: 37512 (bytes used) fordblks: 8208 (bytes free) keepcost: 4112 (bytes in releasable chunk) Number of files: 1 Number of files transferred: 1 Total file size: 52428800 bytes Total transferred file size: 52428800 bytes Literal data: 0 bytes Matched data: 0 bytes File list size: 30 Total bytes written: 46 Total bytes read: 24 wrote 46 bytes read 24 bytes 140.00 bytes/sec total size is 52428800 speedup is 748982.86 jbglaw@woody.devel:~/real_rsync_test$ rsync -v --stats random_data random_data2 random_data rsync[28810] (server receiver) heap statistics: arena: 49816 (bytes from sbrk) ordblks: 2 (chunks not in use) smblks: 0 hblks: 0 (chunks from mmap) hblkhd: 0 (bytes from mmap) usmblks: 0 fsmblks: 0 uordblks: 41576 (bytes used) fordblks: 8240 (bytes free) keepcost: 8192 (bytes in releasable chunk) rsync[28808] (sender) heap statistics: arena: 41624 (bytes from sbrk) ordblks: 2 (chunks not in use) smblks: 0 hblks: 0 (chunks from mmap) hblkhd: 0 (bytes from mmap) usmblks: 0 fsmblks: 0 uordblks: 37488 (bytes used) fordblks: 4136 (bytes free) keepcost: 40 (bytes in releasable chunk) Number of files: 1 Number of files transferred: 1 Total file size: 52428800 bytes Total transferred file size: 52428800 bytes Literal data: 52428800 bytes Matched data: 0 bytes File list size: 30 Total bytes written: 52435278 Total bytes read: 36 wrote 52435278 bytes read 36 bytes 34956876.00 bytes/sec total size is 52428800 speedup is 1.00 jbglaw@woody.devel:~/real_rsync_test$ Script done on Wed Mar 3 11:00:05 2004 Jetzt Du. MfG, JBG -- Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 "Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg fuer einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
Attachment:
signature.asc
Description: Digital signature