speedfire87 7 Posted 2015-09-13 14:01:17 Share Posted 2015-09-13 14:01:17 (edited) Есть такая проблема с шейпером вроди режит 19.5/mbit но в какие то моменты не ровно 12-19.5/mbit из трех спиидтестов подряд разные показатели, убираю себя из таблици шейпера показует полку 94.5/mbit канала хватает полок нет, проца хватает core i-5, канал потребляется не больше 300/mbit. Кто подскажет по конфигам какие есть идеи ? cat /etc/firewall # nat ip_in=xx.xx.xxx.xxx if_in=vlan2XX ${CMD} nat 1 config ip ${ip_in} log unreg_only same_ports reset ${CMD} add 1200 nat 1 ip from table\(1\) to not table\(9\) via $if_in ${CMD} add 1300 nat 1 ip from any to $ip_in via $if_in # Shaper # 20mbit ${CMD} pipe 25 config bw 20Mbit/s mask dst-ip 0x000000ff ${CMD} pipe 26 config bw 20Mbit/s mask src-ip 0x000000ff ${CMD} add 65 pipe 25 ip from any to table\(18\) out ${CMD} add 66 pipe 26 ip from table\(18\) to any in cat /etc/sysctl.conf net.inet.ip.forwarding=1 net.inet.ip.fastforwarding=1 cat /boot/loader.conf autoboot_delay="0" hw.igb.rxd=4096 hw.igb.txd=4096 hw.igb.max_interrupt_rate=32000 cat /etc/stargazer/OnConnect ipfw table 1 add $IP ipfw table 18 add $IP Edited 2015-09-13 17:08:36 by speedfire87 Link to post Share on other sites
l1ght 377 Posted 2015-09-13 15:32:08 Share Posted 2015-09-13 15:32:08 (edited) dst-ip 0x000000ff ну криво же, откуда 0x000000ff? если ип у каждого свой - то 0xffffffff Edited 2015-09-13 15:32:24 by L1ght Link to post Share on other sites
speedfire87 7 Posted 2015-09-13 15:45:09 Author Share Posted 2015-09-13 15:45:09 (edited) маску поменял но проблема осталась. Edited 2015-09-13 15:45:18 by speedfire87 Link to post Share on other sites
Melanxolik 63 Posted 2015-09-13 15:51:54 Share Posted 2015-09-13 15:51:54 сетевые какие? iperf пробовали пускать? ну и что сам шейпер показывает, дропы. переполнение? Link to post Share on other sites
speedfire87 7 Posted 2015-09-13 15:56:26 Author Share Posted 2015-09-13 15:56:26 (edited) сетевиые 2 intel гигабит приход - уход, по дропам ipfw pipe show | grep 10.10.3.223 203 ip 0.0.0.0/0 10.10.3.223/0 85372 70058477 0 0 63 180 ip 10.10.3.223/0 0.0.0.0/0 134939 122117413 0 0 1112 Edited 2015-09-13 16:28:58 by speedfire87 Link to post Share on other sites
l1ght 377 Posted 2015-09-13 16:55:33 Share Posted 2015-09-13 16:55:33 сетевиые 2 intel гигабит приход - уход, по дропам ipfw pipe show | grep 10.10.3.223 203 ip 0.0.0.0/0 10.10.3.223/0 85372 70058477 0 0 63 180 ip 10.10.3.223/0 0.0.0.0/0 134939 122117413 0 0 1112 конкретнее сетевые какие Link to post Share on other sites
speedfire87 7 Posted 2015-09-13 17:05:12 Author Share Posted 2015-09-13 17:05:12 (edited) Сетевые dmeseg igb0: <Intel® PRO/1000 Network Connection version - 2.4.0> port 0xef00-0xef1f mem 0xfbda0000-0xfbdbffff,0xfb8rq 16 at device 0.0 on pci1 igb0: Using MSIX interrupts with 5 vectors igb0: Ethernet address: 00:25:90:63:50:e0 igb0: Bound queue 0 to cpu 0 igb0: Bound queue 1 to cpu 1 igb0: Bound queue 2 to cpu 2 igb0: Bound queue 3 to cpu 3 igb1: <Intel® PRO/1000 Network Connection version - 2.4.0> port 0xee00-0xee1f mem 0xfbdc0000-0xfbddffff,0xfbarq 17 at device 0.1 on pci1 igb1: Using MSIX interrupts with 5 vectors igb1: Ethernet address: 00:25:90:63:50:e1 igb1: Bound queue 0 to cpu 0 igb1: Bound queue 1 to cpu 1 igb1: Bound queue 2 to cpu 2 igb1: Bound queue 3 to cpu 3 pciconf -lv igb0@pci0:1:0:0: class=0x020000 card=0x10a715d9 chip=0x10a78086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82575EB Gigabit Network Connection' class = network subclass = ethernet igb1@pci0:1:0:1: class=0x020000 card=0x10a715d9 chip=0x10a78086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82575EB Gigabit Network Connection' class = network subclass = ethernet cat /boot/loader.conf autoboot_delay="0" hw.igb.rxd=4096 hw.igb.txd=4096 hw.igb.max_interrupt_rate=32000 Edited 2015-09-13 17:12:12 by speedfire87 Link to post Share on other sites
l1ght 377 Posted 2015-09-13 17:42:56 Share Posted 2015-09-13 17:42:56 sysctl.conf? Link to post Share on other sites
speedfire87 7 Posted 2015-09-13 17:59:08 Author Share Posted 2015-09-13 17:59:08 (edited) sysctl.conf? cat /etc/sysctl.conf net.inet.ip.fw.one_pass=1 net.inet.ip.forwarding=1 net.inet.ip.fastforwarding=1 net.inet.ip.dummynet.io_fast=1 net.inet.ip.dummynet.hash_size=65535 net.inet.ip.dummynet.pipe_slot_limit=2048 net.inet.ip.fw.dyn_buckets=1024 dev.igb.0.rx_processing_limit=4096 dev.igb.1.rx_processing_limit=4096 net.graph.maxdgram=8388608 net.graph.recvspace=8388608 net.inet.icmp.icmplim=100 kern.ipc.maxsockbuf=4097152 net.graph.recvspace=512000 net.graph.maxdgram=512000 net.inet.tcp.blackhole=2 net.inet.udp.blackhole=1 Edited 2015-09-13 18:00:27 by speedfire87 Link to post Share on other sites
major12 12 Posted 2015-09-14 06:42:29 Share Posted 2015-09-14 06:42:29 Попробуйте з GRED щось типу gred 0.002/200/250/0.1 queue 400 buckets 65536 Link to post Share on other sites
speedfire87 7 Posted 2015-09-14 10:09:14 Author Share Posted 2015-09-14 10:09:14 А по конфигам критика есть ? Link to post Share on other sites
l1ght 377 Posted 2015-09-14 22:19:38 Share Posted 2015-09-14 22:19:38 ну судя по тюнингу нетграфа - используется какой-то PPP? PPTP/PPoE? Link to post Share on other sites
speedfire87 7 Posted 2015-09-14 22:39:32 Author Share Posted 2015-09-14 22:39:32 (edited) ppoe уже не используем, на данный момент статик ip. Edited 2015-09-14 22:50:33 by speedfire87 Link to post Share on other sites
l1ght 377 Posted 2015-09-14 23:42:37 Share Posted 2015-09-14 23:42:37 net.inet.raw.recvspace=4194304net.inet.raw.maxdgram=4194304 net.inet.udp.recvspace=4194304 kern.ipc.maxsockets=262144 kern.ipc.maxsockbuf=10485760 net.inet.udp.maxdgram=262144 kern.ipc.somaxconn=8096 вот это из моего sysctl.conf пока вроде боков не замечено Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now