From: "Peter V. Saveliev" <peet@altlinux.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: [devel] ovz, tcpsndbuf && vsftpd
Date: Sun, 11 Nov 2007 00:30:26 +0300
Message-ID: <200711110030.26962.peet@altlinux.ru> (raw)
...
По мотивам обсуждения проблем с ftp в рассылке community:
<quote>
В сообщении от Wednesday 07 November 2007 14:19:07 Сергей Бялко написал(а):
> Здравствуйте, многоуважаемый ALL!
>
> Установил AltLinux Server 4, обновил из branch. Создал виртуальные
> машины для фтп, днс и др. - всё ок, всё работает. Виртуальные машины
> сделал в подсети 172.16.0.0/24 и на родительской машине сделал nat на
> эту подсеть + пробросил нужные порты для фтп и днс.
> Однако возникла такая проблема:
> когда я загружаю по фтп на виртуальную машину скорость нормальная, а
> когда пытаюсь скачивать, то скорость падает, падает и связь вообще
> теряется!
>
> Куда копать? Где искать?
>
> P.S. Сервак на SuperMicro 2U 6025B-TB
</quote>
В итоге обсуждения Сергей выдал доступ, и я проверил; думаю, что результат в
достаточной степени воспроизводим.
А ситуация вот какая. Скорость не падает. Просто в какой-то момент передача
обрывается. Обрывает её сервер. Как показывает наблюдение, обрывает именно
тогда, когда tcpsndbuf увеличивает failcnt. Клиент же этот обрыв не сечёт
и "подвисает" на коннекте.
В этих же условиях proftpd "продолжает работать и работать".
Чтобы воспроизвести, достаточно скачать по очень быстрому линку (>1Gbit)
большой (>10Mb) файл при достаточно небольшом tcpsndbuf.
...
Кто-нибудь сталкивался с этой багой? Пока только один ns@ признался, но он
решил проблему переходом на sftp.
Кто-нибудь анализировал? Мне неохота залезать в потроха vsftpd, но интересно:
это он дергает за ошибку в ядре или ошибка в самом vsftpd? А это, имхо,
ошибка, т.к. переполнение буфера tcp на отправку -- ситуация вполне
вероятная.
--
Peter V. Saveliev
next reply other threads:[~2007-11-10 21:30 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-10 21:30 Peter V. Saveliev [this message]
2007-11-10 21:43 ` Anton Gorlov
2007-11-11 10:38 ` Peter V. Saveliev
2007-11-11 12:10 ` Anton Gorlov
2007-11-11 18:20 ` Anton Gorlov
2007-11-12 7:02 ` Sergey Y. Afonin
2007-11-12 7:32 ` Peter V. Saveliev
2007-11-10 21:47 ` Konstantin A. Lepikhov
2007-11-10 22:01 ` Dmitry V. Levin
2007-11-11 10:31 ` Peter V. Saveliev
2007-11-11 9:38 ` Gennady Kovalev
2007-11-12 7:00 ` Sergey Y. Afonin
2007-11-12 7:30 ` Alexander Volkov
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=200711110030.26962.peet@altlinux.ru \
--to=peet@altlinux.ru \
--cc=devel@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 Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git