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!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Strony: 1
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
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
Strony: 1
Time (s) | Query |
---|---|
0.00011 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00109 | 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='3.128.226.128' WHERE u.id=1 |
0.00081 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.128.226.128', 1732808295) |
0.00051 | SELECT * FROM punbb_online WHERE logged<1732807995 |
0.00070 | SELECT topic_id FROM punbb_posts WHERE id=118981 |
0.00076 | SELECT id FROM punbb_posts WHERE topic_id=14195 ORDER BY posted |
0.00058 | 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.00005 | SELECT search_for, replace_with FROM punbb_censoring |
0.00071 | 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.00077 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=14195 |
Total query time: 0.00613 s |