ad01 ng_car vs dummynet - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Firewalls

Firewalls IPFW, PF, IPF (but not limited) related discussion

Reply
 
Thread Tools Display Modes
  #1  
Old January 19th, 2010, 21:55
Antti Antti is offline
Junior Member
 
Join Date: Nov 2008
Location: Ukraine
Posts: 14
Thanks: 2
Thanked 1 Time in 1 Post
Default ng_car vs dummynet

Hello!

We're currently using ng_ipfw + ng_car for traffic shaping.
This has been working good until we got some more heavy traffic load, and now it crashes our system (FreeBSD 8.0-RELEASE-p2) constantly.
Now we are thinking about moving back to dummynet.
Stupid question: when testing speed with speedtest.net ng_car shows "stable" speed, while dummynet shows some "speedometer" twitching. Is there any way to "fix this"?


P.S.: Can someone help me submit PR?
Code:
Fatal trap 12: page fault while in kernel mode
cpuid = 2; apic id = 02
fault virtual address   = 0xffff80402408c050
fault code              = supervisor read data, page not present
instruction pointer     = 0x20:0xffffffff8085d1ee
stack pointer           = 0x28:0xffffff800012d9f0
frame pointer           = 0x28:0xffffff800012da00
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 0 (em1 taskq)
trap number             = 12
panic: page fault
cpuid = 2
Uptime: 4h42m2s
Code:
#0  doadump () at pcpu.h:223
223     pcpu.h: No such file or directory.
        in pcpu.h
(kgdb) #0  doadump () at pcpu.h:223
#1  0xffffffff80584049 in boot (howto=260)
    at /usr/src/sys/kern/kern_shutdown.c:416
#2  0xffffffff8058447c in panic (fmt=0xffffffff8092afec "%s")
    at /usr/src/sys/kern/kern_shutdown.c:579
#3  0xffffffff808656f8 in trap_fatal (frame=0xffffff00026e1ab0, eva=Variable "eva" is not available.
)
    at /usr/src/sys/amd64/amd64/trap.c:852
#4  0xffffffff80865ac4 in trap_pfault (frame=0xffffff800012d940, usermode=0)
    at /usr/src/sys/amd64/amd64/trap.c:768
#5  0xffffffff808663b4 in trap (frame=0xffffff800012d940)
    at /usr/src/sys/amd64/amd64/trap.c:494
#6  0xffffffff8084c6a3 in calltrap ()
    at /usr/src/sys/amd64/amd64/exception.S:224
#7  0xffffffff8085d1ee in pmap_kextract (va=158480021258311)
    at /usr/src/sys/amd64/amd64/pmap.c:1048
#8  0xffffffff8084b2e9 in bus_dmamap_load_mbuf_sg (dmat=0xffffff00026d9500,
    map=0xffffffff80c281e0, m0=Variable "m0" is not available.
)
    at /usr/src/sys/amd64/amd64/busdma_machdep.c:653
#9  0xffffffff80319995 in em_get_buf (adapter=0xffffff80005b7000, i=194)
    at /usr/src/sys/dev/e1000/if_em.c:4121
#10 0xffffffff8031ce4b in em_rxeof (adapter=0xffffff80005b7000, count=98)
    at /usr/src/sys/dev/e1000/if_em.c:4519
#11 0xffffffff8031f38b in em_handle_rxtx (context=Variable "context" is not available.
)
    at /usr/src/sys/dev/e1000/if_em.c:1763
#12 0xffffffff805bf233 in taskqueue_run (queue=0xffffff00026d9480)
    at /usr/src/sys/kern/subr_taskqueue.c:239
#13 0xffffffff805bf4b6 in taskqueue_thread_loop (arg=Variable "arg" is not available.
)
    at /usr/src/sys/kern/subr_taskqueue.c:360
#14 0xffffffff8055b208 in fork_exit (
    callout=0xffffffff805bf470 <taskqueue_thread_loop>,
    arg=0xffffff80005bb768, frame=0xffffff800012dc80)
    at /usr/src/sys/kern/kern_fork.c:843
#15 0xffffffff8084cb7e in fork_trampoline ()
    at /usr/src/sys/amd64/amd64/exception.S:561
Reply With Quote
  #2  
Old January 19th, 2010, 22:19
rhyous's Avatar
rhyous rhyous is offline
Member
 
Join Date: Apr 2009
Location: West Jordan, Utah
Posts: 136
Thanks: 1
Thanked 26 Times in 14 Posts
Default

You should be able to type send-pr on your own server and fill it out and send it.

Or use the web based form.
http://www.freebsd.org/support/bugreports.html
__________________
http://www.rhyous.com/freebsd-friday
The only thing you take with you when you die is your knowledge. Never stop acquiring it.
Reply With Quote
  #3  
Old February 18th, 2010, 14:53
elapus elapus is offline
Junior Member
 
Join Date: Feb 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've encountered a "somewhat" the same problem. I filed a PR http://www.freebsd.org/cgi/query-pr.cgi?pr=143573. Could this be an em(4) problem as opposed to the suspected ng_ipfw+ng_car combination that Antti mentioned?
Reply With Quote
Reply

Tags
dummynet, em(4), ng_car, ng_ipfw, panic

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dummynet and lot of queues symmetrx Firewalls 5 June 23rd, 2010 08:50
Multiple hops with Dummynet j4linux Firewalls 0 December 23rd, 2009 14:22
simulate WAN with Dummynet RiK Firewalls 1 November 14th, 2009 17:24
dummynet problem. azfar Firewalls 9 March 24th, 2009 18:20
Dummynet for IPF and IPNAT hirnsaege Firewalls 1 January 25th, 2009 22:56


All times are GMT +1. The time now is 19:48.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0