Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2009-05-21 11:28:24

  dumb - Użytkownik

dumb
Użytkownik
Zarejestrowany: 2006-11-29

amule 2.2.5-1 po upgradzie do lenny zabija upload

Witam!

Ostatnio zafundowałem sobie upgrade do lenny, zupgradowalo sie przy okazji amule do wersji 2.2.5-1
Po upgradzie amule zabija cały upload, cały traffic shaping który jest na routerze (imq, htb, layer7, ipp2p) przed amule wziął szlag.

Spotkał się ktoś z takim czymś ?

Pozdrawiam
dumb

Offline

 

#2  2009-05-21 13:17:48

  dumb - Użytkownik

dumb
Użytkownik
Zarejestrowany: 2006-11-29

Re: amule 2.2.5-1 po upgradzie do lenny zabija upload

a jednak nie.. amule zabija upload

oto regulki traffic shapinga:

upload

ip link set imq1 up
tc qdisc del root dev imq1
tc qdisc add dev imq1 root handle 1: htb default 10

tc class add dev imq1 parent 1: classid 1:1 htb rate 256kbit ceil 256kbit
tc class add dev imq1 parent 1:1 classid 1:10 htb rate 150kbit ceil 256kbit prio 2
tc class add dev imq1 parent 1:1 classid 1:11 htb rate 86kbit ceil 86kbit prio 3
tc class add dev imq1 parent 1:1 classid 1:12 htb rate 20kbit ceil 256kbit prio 1

#tc filter add dev imq1 parent 1: protocol ip prio 1 handle 10 fw classid 1:10
tc filter add dev imq1 parent 1: protocol ip handle 11 fw classid 1:11
tc filter add dev imq1 parent 1: protocol ip u32 match ip sport 10000 0xffff flowid 1:12
tc filter add dev imq1 parent 1: protocol ip u32 match ip sport 10001 0xffff flowid 1:12
tc filter add dev imq1 parent 1: protocol ip u32 match ip dport 443 0xffff flowid 1:12
tc filter add dev imq1 parent 1: protocol ip u32 match ip dport 22 0xffff flowid 1:12
tc filter add dev imq1 parent 1: protocol ip u32 match ip sport 22 0xffff flowid 1:12

tc qdisc add dev imq1 parent 1:10 handle 10:0 esfq perturb 10
tc qdisc add dev imq1 parent 1:11 handle 11:0 esfq perturb 10
tc qdisc add dev imq1 parent 1:12 handle 12:0 esfq perturb 10

#iptables -t mangle -A POSTROUTING -o ppp0 -j CONNMARK --restore-mark
#iptables -t mangle -A POSTROUTING -o ppp0 -m mark ! --mark 0 -j ACCEPT
iptables -t mangle -A POSTROUTING -o ppp0 -m ipp2p --ipp2p -j MARK --set-mark 11
#iptables -t mangle -A POSTROUTING -o ppp0 -m mark --mark 11 -j CONNMARK --save-mark

#iptables -t mangle -A POSTROUTING  -p udp -j CONNMARK --restore-mark
#iptables -t mangle -A POSTROUTING  -p udp -m mark ! --mark 0 -j ACCEPT
#iptables -t mangle -A POSTROUTING  -p udp -m ipp2p --ipp2p -j MARK --set-mark 11
#iptables -t mangle -A POSTROUTING  -p udp -m mark --mark 11 -j CONNMARK --save-mark


iptables -t mangle -A POSTROUTING -o ppp0 -m layer7 --l7proto bittorrent -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -o ppp0 -m layer7 --l7proto applejuice -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -o ppp0 -m layer7 --l7proto directconnect -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -o ppp0 -m layer7 --l7proto fasttrack -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -o ppp0 -m layer7 --l7proto gnutella -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -o ppp0 -m layer7 --l7proto openft -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -o ppp0 -m layer7 --l7proto goboogy -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -o ppp0 -m layer7 --l7proto hotline -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -o ppp0 -m layer7 --l7proto tesla -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -o ppp0 -m layer7 --l7proto 100bao -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -o ppp0 -m layer7 --l7proto kugoo -j MARK --set-mark 11

iptables -t mangle -A POSTROUTING -o ppp0 -m layer7 --l7proto poco -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -o ppp0 -m layer7 --l7proto mute -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -o ppp0 -m layer7 --l7proto gnucleuslan -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -o ppp0 -m layer7 --l7proto edonkey -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -o ppp0 -m layer7 --l7proto ares -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -o ppp0 -m layer7 --l7proto soribada -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -o ppp0 -m layer7 --l7proto freenet -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -o ppp0 -m layer7 --l7proto napster -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -o ppp0 -m layer7 --l7proto soulseek -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -o ppp0 -m layer7 --l7proto thecircle -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -o ppp0 -m layer7 --l7proto xunlei -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -o ppp0 -m layer7 --l7proto imesh -j MARK --set-mark 11
#iptables -t mangle -A POSTROUTING  -m layer7 --l7proto unknown -j MARK --set-mark 11

iptables -t mangle -A POSTROUTING -o ppp0 -m mark --mark 11 -j CLASSIFY --set-class 1:11
iptables -t mangle -A POSTROUTING -o ppp0 -j IMQ --todev 1

jak sobie pooglądam za pomocą
watch -n1 -d "tc -s -d qdisc show dev imq1"
to coś tam do kolejki 1:11 trafia ale jest tego bardzo mało

przykład:
qdisc htb 1: r2q 10 default 10 direct_packets_stat 0 ver 3.17
Sent 2090706 bytes 9933 pkt (dropped 0, overlimits 351 requeues 0)
rate 0bit 0pps backlog 0b 10p requeues 0
qdisc esfq 10: parent 1:10 quantum 1500b limit 128p flows 128/1024 perturb 10sec hash: classic
Sent 1898929 bytes 8963 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 10p requeues 0
qdisc esfq 11: parent 1:11 quantum 1500b limit 128p flows 128/1024 perturb 10sec hash: classic
Sent 78717 bytes 380 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0
qdisc esfq 12: parent 1:12 quantum 1500b limit 128p flows 128/1024 perturb 10sec hash: classic
Sent 113060 bytes 590 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0

Ostatnio edytowany przez dumb (2009-05-21 19:48:29)

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Możesz wyłączyć AdBlock — tu nie ma reklam ;-)

[ Generated in 0.009 seconds, 9 queries executed ]

Informacje debugowania

Time (s) Query
0.00012 SET CHARSET latin2
0.00005 SET NAMES latin2
0.00203 SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='18.188.205.95' WHERE u.id=1
0.00109 REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '18.188.205.95', 1732802512)
0.00050 SELECT * FROM punbb_online WHERE logged<1732802212
0.00089 SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=14195 AND t.moved_to IS NULL
0.00007 SELECT search_for, replace_with FROM punbb_censoring
0.00167 SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=14195 ORDER BY p.id LIMIT 0,25
0.00111 UPDATE punbb_topics SET num_views=num_views+1 WHERE id=14195
Total query time: 0.00753 s