ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Igor <altlinux@aaanet.ru>
To: community@altlinux.ru
Subject: Re: [Comm] ip link show &пониже скорость?
Date: Mon, 15 Dec 2003 20:01:34 +0300
Message-ID: <3FDDE8EE.2010901@aaanet.ru> (raw)
In-Reply-To: <3FDD6023.000009.25083@soapbox.yandex.ru>

Alexey Novikov пишет:

>>Есть
>>[root@xxx root]# ip link show
>>1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
>>   link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
>>2: eth0: <BROADCAST,MULTICAST,NOARP,UP> mtu 1500 qdisc pfifo_fast qlen 
>>100 *из ADSL модема*
>>   link/ether 00:10:48:5e:0a:2a brd ff:ff:ff:ff:ff:ff
>>3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
>>   link/ether 00:01:02:16:82:43 brd ff:ff:ff:ff:ff:ff
>>4: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP> mtu 1492 qdisc pfifo_fast qlen 
>>3 *ADSL подключение*
>>   link/ppp
>>
>>Вопрос
>>Почему mtu разные у eth0 и ppp0?
>>Что будет если eth0 по максимуму отправит  (т.е. пекет в 1500)  на ppp0?
>>Полез в эти дебри  по проблеме описанной ниже(с ответом из fido).
>>
>>ПЕ> Есть довольно загадочная проблема. Обычное ADSL-подключение (параметры
>>ПЕ> ниже, чего не хватает - скажите), но если один процесс начинает
>>ПЕ> использовать подключение, то делает это на полную катушку, не оставляя
>>ПЕ> другим ничего. Например, отправляет MTA наружу почту - и time в пинге
>>ПЕ> увеличивается как минимум в 100 раз, а большая часть пингов просто
>>ПЕ> теряются, HTTP-запросы не проходят и т.д.
>> Проблема стандартная: eth0 льет в модем больше, чем тот успевает передать.
>> Искать "решение" по ключевым словам tc, tbf, cbq, htb, egress, bandwidth,
>> lartc.org. :) С одним каналом - только шейпить и снижать mtu до
>>
>>Скорее всего это правильный ответ т.к. если кто-то что-то качает то со 
>>связью вроде все нормально.
>>Может можно проще решить проблему чем tc, tbf, cbq, htb, egress, 
>>bandwidth а просто указать скорость сетевой карте например не 10Мб а 
>>1Мб. Вот только как ?
>>    
>>
>
>Посмотрите вот эту статью, думаю это как раз оно:
>http://gazette.linux.ru.net/rus/articles/adsl_bandwidth_management-howto.html
>
>  
>
*Прочитал но не вышло
* - Что то мне непонятно пробывал просто снизить mtu до 1400 после чего 
сетка умирает, а в скрипте снижают аж до 1000.
 - Читал доку на http://solaris.opennet.ru/base/net/qos_linux.txt.html 
"Пример, ограничение скорости на eth0 к которому подключен dsl модем  
$TC qdisc add dev eth0 root tbf rate 128kbit latency 50ms burst 1500" 
сделал
#tc qdisc add dev eth0 root tbf rate 128kbit latency 50ms burst 1500
результат: ping ходят нормально, а все остальное www, ftp нет. Смотрю 
netstat вижу что сначала есть ESTABLISHED потом TIME_WAIT потом 
FIN_WAIT1. Маленькие пакеты проходят, но очень маленькие.

*Про скрипт из ссылки 
*http://gazette.linux.ru.net/rus/articles/adsl_bandwidth_management-howto.html

*lsmod*
Module                  Size  Used by    Not tainted
sch_htb                18496   0  (unused)
ipt_mark                 472   1  (autoclean)
ipt_length               472   1  (autoclean)
ipt_MARK                 792  14  (autoclean)
sch_prio                2464   0  (unused)
sch_cbq                12160   0  (autoclean)
sch_tbf                 2432   0  (autoclean)
autofs4                 8116   1  (autoclean)
es1371                 26440   0  (unused)
soundcore               3524   4  [es1371]
ac97_codec              9896   0  [es1371]
gameport                1516   0  [es1371]
pcnet32                13604   1  (autoclean)
mii                     2352   0  (autoclean) [pcnet32]
iptable_nat            14808   0  (autoclean) (unused)
ip_conntrack           17568   1  (autoclean) [iptable_nat]
iptable_filter          1636   0  (autoclean) (unused)
iptable_mangle          2128   1  (autoclean)
ip_tables              11064   8  [ipt_mark ipt_length ipt_MARK 
iptable_nat iptable_filter iptable_mangle]
usb-uhci               21612   0  (unused)
usbcore                57844   1  [usb-uhci]
agpgart                31848   0  (unused)
ide-scsi                7700   0
rtc                     6044   0  (autoclean)
reiserfs              165440   4
BusLogic               87728   5
sd_mod                 10940  10
scsi_mod               91620   3  [ide-scsi BusLogic sd_mod]

*запуск скрипта приведенного в ссылке
*Unknown qdisc "htb", hence option "default" is unparsable
Error: Qdisc "htb" is classless.
Error: Qdisc "htb" is classless.
Error: Qdisc "htb" is classless.
Error: Qdisc "htb" is classless.
Error: Qdisc "htb" is classless.
Error: Qdisc "htb" is classless.
Error: Qdisc "htb" is classless.
Error: Qdisc "htb" is classless.
RTNETLINK answers: No such file or directory
RTNETLINK answers: No such file or directory
RTNETLINK answers: No such file or directory
RTNETLINK answers: No such file or directory
RTNETLINK answers: No such file or directory
RTNETLINK answers: No such file or directory
RTNETLINK answers: No such file or directory
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
Outbound shaping added to eth0.  Rate: 90Kbit/sec.
*
*



  reply	other threads:[~2003-12-15 17:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-12 12:24 [Comm] ip link show & пониже скорость? Igor
2003-12-15  7:17 ` [Comm] ip link show &пониже скорость? Alexey Novikov
2003-12-15 17:01   ` Igor [this message]
2003-12-16  5:38     ` [Comm] ip link show&пониже скорость? Alexey Novikov

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=3FDDE8EE.2010901@aaanet.ru \
    --to=altlinux@aaanet.ru \
    --cc=community@altlinux.ru \
    /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