From: Alexey Borisenkov <grizlik78@gmail.com> To: ALT Linux Community general discussions <community@lists.altlinux.org> Subject: Re: [Comm] ALTLinux beta Date: Sat, 20 Sep 2008 23:03:41 +0500 Message-ID: <48D53AFD.3050304@gmail.com> (raw) In-Reply-To: <48D4C389.5070003@mail.ru> altlinuxuser пишет: > То же самое и при работе: даже при указании -vvv программа может > качать часами, не показывая никаких сообщений относительно того, что > она делает. Для этого есть другой ключ: '--progress' или включающий его '-P'. >> И еще один вопрос: поддерживает ли rsync закачку после временного >> обрыва связи? > Для этого вроде-бы служит ключ --inplace. Я вот некоторое время опасался напрямую использовать '--inplace', предполагая, что rsync с ним может затирать совпадающие куски. Сегодня вот провёл эксперимент по обновлению 20080916 => 20080918. Для начала просто скопировал файл и скормил его rsync'у $ cp altlinux-4.1.0-beta-20080916-desktop-i586-ru-dvd.iso altlinux-4.1.0-beta-20080918-desktop-i586-ru-dvd.iso $ rsync --inplace -Pva --stats --timeout=1000 192.168.1.26::pub/altlinux-4.1.0-beta-20080918-desktop-i586-ru-dvd.iso altlinux-4.1.0-beta-20080918-desktop-i586-ru-dvd.iso Результат не очень обнадёживающий: Literal data: 4506690160 bytes Matched data: 178038160 bytes Total bytes sent: 546206 Total bytes received: 4507251649 sent 546206 bytes received 4507251649 bytes 838270.17 bytes/sec total size is 4684728320 speedup is 1.04 Т.е. удалось сэкономить меньше 200 МБ. Тогда я создал пустой файл на 500 МБ и дописал старый файл к нему в конец: $ dd if=/dev/zero of=altlinux-4.1.0-beta-20080918-desktop-i586-ru-dvd.iso count=500 bs=1M 500+0 записей считано 500+0 записей написано скопировано 524288000 байт (524 MB), 1,48479 c, 353 MB/c $ cat altlinux-4.1.0-beta-20080916-desktop-i586-ru-dvd.iso >> altlinux-4.1.0-beta-20080918-desktop-i586-ru-dvd.iso $ rsync --inplace -Pva --stats --timeout=1000 192.168.1.26::pub/altlinux-4.1.0-beta-20080918-desktop-i586-ru-dvd.iso altlinux-4.1.0-beta-20080918-desktop-i586-ru-dvd.iso результат коренным образом изменился: Literal data: 419286544 bytes Matched data: 4265441776 bytes Total bytes sent: 576078 Total bytes received: 419577397 sent 576078 bytes received 419577397 bytes 323568.33 bytes/sec total size is 4684728320 speedup is 11.15 т.е. принято было меньше 10% от всего файла. Лично для себя сделал вывод, что если в старом файле совпадающие куски значительно (а может и чуть-чуть?) сдвинуты относительно нового к началу, то rsync при использовании '--inplace' их затирает и, соответственно, уже не может их использовать.
next prev parent reply other threads:[~2008-09-20 18:03 UTC|newest] Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-09-17 17:28 russian-linuxoid 2008-09-18 7:44 ` Андрей Черепанов 2008-09-18 16:56 ` russian-linuxoid 2008-09-19 5:10 ` Геннадий Ищенко 2008-09-19 5:29 ` Шишков Евгений 2008-09-19 17:49 ` russian-linuxoid 2008-09-19 17:57 ` Vladimir V. Kamarzin 2008-09-19 18:27 ` Maxim Tyurin 2008-09-19 20:07 ` altlinuxuser 2008-09-20 4:28 ` Геннадий Ищенко 2008-09-20 5:15 ` altlinuxuser 2008-09-20 9:34 ` altlinuxuser 2008-09-20 18:03 ` Alexey Borisenkov [this message] 2008-09-21 6:31 ` Геннадий Ищенко 2008-09-21 8:25 ` Alexey I. Froloff 2008-09-23 7:05 ` Геннадий Ищенко 2008-09-23 7:11 ` Андрей Черепанов 2008-09-24 13:24 ` Геннадий Ищенко 2008-09-20 7:12 ` Mikhail Gusarov
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=48D53AFD.3050304@gmail.com \ --to=grizlik78@gmail.com \ --cc=community@lists.altlinux.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
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git