Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50510 - MLDOnkey causes network problems.
Summary: MLDOnkey causes network problems.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-08 22:27 UTC by Alexey Parshin
Modified: 2005-05-15 01:18 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Parshin 2004-05-08 22:27:19 UTC
When MLDonkey is working (even if the downloads are very slow) it causes any Internet browser to work really slow. To be more exact, the original connect to any site that is not in cache takes 20-40 seconds, or forever. Someone tried to observe the trafic and found (on his machine) a significant packet loss (up to 90%):

http://forums.gentoo.org/viewtopic.php?t=149947&highlight=mldonkey+network+loss

Anyway, I have this effect on both of my computers.

root@screamer $ emerge info
Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.6.5)
=================================================================
System uname: 2.6.5 i686 AMD Athlon(TM) MP 2400+
Gentoo Base System version 1.4.11
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-mp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-mp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aim alsa amd apache2 apm arts autofs avantgo avi berkdb cddb cdr client crypt cups dga directfb dvd dvdr encode esd fax fbdev ffmpeg flac fltk foomaticdb freetype fs gd gdbm gif glut gnome gpm gtk gtk2 icq imap imlib informix jabber java javascript joystick jpeg kde lesstif libg++ libwww mad maildir mbox mcal mdb mikmod mmx mng motif mozcalendar mozilla mpeg mpeg4 msn music mysql ncurses neXt net netcdf nls nvidia oci8 offensive oggvorbis opengl oss pam pcap pda pdflib perl php png postgres ppds pthreads python qt quicktime readline rplay samba scanner sdl slang snmp spell ssl svga tcltk tcpd tiff transcode truetype type1 usb virus-scan wmf x86 xine xml2 xmms xv xvid yahoo zlib zvbi"
Comment 1 teedog 2004-05-31 11:18:55 UTC
Cannot duplicate this bug.  Have you tried reducing the max number of connections or the number of connections per second?  The problem is most likely with your MLDonkey configuration.
Comment 2 Alexey Parshin 2004-05-31 18:25:51 UTC
Yes, it does work little bit better with the # of connections as 100. But effect still stays, just not that serious
Comment 3 Andreas Mohrhard 2004-08-02 13:29:44 UTC
i had the same problem with my mldonkey but it occured after the 24h-disconnect of my ADSL-connection. i have a /etc/init.d/mldonkey restart in my ip-up. After a restart with the init script the mldonkey core leaves many connections opened and the will stay in the kernel ip_conntrack table until next restart. Try to add
 wget --spider ${BASE}/submit?q=close_all_sockets -q
And reboot. this is working for me.
Comment 4 Johannes Ballé 2004-09-01 00:01:58 UTC
Have you made sure that there is enough upload bandwidth available for your browser? If you use up all the upload capacity of your connection with mldonkey, other tcp connections over the same line will be very slow, since TCP/IP is a two-way protocol. This effect does not only apply to mldonkey, but to any application that uses a lot of upload bandwith. You should have a reserve of at least 4-5 kbytes/s for your browser.

Another thing that could be a problem is that DSL routers often have a maximum capacity of incoming / outgoing connections; because of the "IP masquerading" they need to reserve a little space for every TCP connection that is made through them, and space is a costly resource. So you might try to reduce the maximum number of simultaneous connections, too. Maybe you can find the values of your router in its data sheet / documentation.
Comment 5 Alexey Parshin 2004-09-01 10:31:45 UTC
Yeah, I already found out that decreasing the number of outgoing connections to 50 does it.
Comment 6 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-10-16 21:10:10 UTC
I added ewarn to reduce the maximum number of connections
if network problem occurs. Thanks for the bug report.
Comment 7 Christian Schlotter 2005-05-15 01:18:43 UTC
I think this bug was assigned to the wrong herd, it should be assigned to the Gentoo net-p2p team <net-p2p@gentoo.org>.

I think it would make more sense to remove the ewarn from the app-emacs/mldonkey ebuilds and add it to the net-p2p/mldonkey ebuilds.  app-emacs/mldonkey cannot cause the slowdowns because it's only a GUI for net-p2p/mldonkey.