Hello! it is about 2 month I am trying to setup PPPOE server with more than 7000 conected users, everything is working! But I get kernel panics
I tried many hardware! There is no SHAPING or NAT! Just FreeBSD 9.0, MPD 5.6, and routing for internet access! When I use polling it panics faster! About 10 min uptime, and when I remove polling about one hour and panic again 
Hardware I used:
IBM SERVER, with 2 XEON Cpu 2.0 Mhz, 8 GB DDR2 RAM, 2 intel (em) Interfaces
cpu usage when crashed in one core is about 40% idle (all used by system) and all other cores is about 70% or 80% idle
6400 connected user, 400 MB BW, and more than 100 Vlan
Here one is of the panics
Tunings:
Where is the problem? Or what am I doing wrong? 


Hardware I used:
IBM SERVER, with 2 XEON Cpu 2.0 Mhz, 8 GB DDR2 RAM, 2 intel (em) Interfaces
cpu usage when crashed in one core is about 40% idle (all used by system) and all other cores is about 70% or 80% idle
6400 connected user, 400 MB BW, and more than 100 Vlan
Here one is of the panics
Code:
PPPOESERVER dumped core - see /var/crash/vmcore.0
Wed Aug 29 15:16:52 IRDT 2012
FreeBSD PPPOESERVER 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Wed Aug 29 13:56:46 IRDT 2012 root@pppoe_server:/usr/obj/usr/src/sys/GENERIC amd64
panic: page fault
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...
Unread portion of the kernel message buffer:
Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address = 0x5b600000099
fault code = supervisor read data, page not present
instruction pointer = 0x20:0xffffffff8093738c
stack pointer = 0x28:0xffffff824d18c6d0
frame pointer = 0x28:0xffffff824d18c700
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 (em0 taskq)
trap number = 12
panic: page fault
cpuid = 0
KDB: stack backtrace:
#0 0xffffffff8086b1de at kdb_backtrace+0x5e
#1 0xffffffff80835d97 at panic+0x187
#2 0xffffffff80b40ec0 at trap_fatal+0x290
#3 0xffffffff80b41209 at trap_pfault+0x1f9
#4 0xffffffff80b416cf at trap+0x3df
#5 0xffffffff80b2bbff at calltrap+0x8
#6 0xffffffff8093d8d8 at ng_pppoe_rcvdata_ether+0x2b8
#7 0xffffffff80938fdb at ng_apply_item+0x22b
#8 0xffffffff80937f8e at ng_snd_item+0x39e
#9 0xffffffff808ea897 at ether_demux+0x127
#10 0xffffffff808eab94 at ether_nh_input+0x1f4
#11 0xffffffff808f4e8b at netisr_dispatch_src+0x20b
#12 0xffffffff808ea7df at ether_demux+0x6f
#13 0xffffffff808eab94 at ether_nh_input+0x1f4
#14 0xffffffff808f4e8b at netisr_dispatch_src+0x20b
#15 0xffffffff8047303a at em_rxeof+0x1ca
#16 0xffffffff804734bb at em_handle_que+0x5b
#17 0xffffffff808774e5 at taskqueue_run_locked+0x85
Uptime: 23m37s
Dumping 662 out of 8173 MB:..3%..13%..22%..32%..42%..51%..61%..71%..83%..92%
Reading symbols from /boot/kernel/ng_socket.ko...Reading symbols from /boot/kernel/ng_socket.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ng_socket.ko
Reading symbols from /boot/kernel/ng_mppc.ko...Reading symbols from /boot/kernel/ng_mppc.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ng_mppc.ko
Reading symbols from /boot/kernel/rc4.ko...Reading symbols from /boot/kernel/rc4.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/rc4.ko
Reading symbols from /boot/kernel/ng_ether.ko...Reading symbols from /boot/kernel/ng_ether.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ng_ether.ko
Reading symbols from /boot/kernel/ng_tee.ko...Reading symbols from /boot/kernel/ng_tee.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ng_tee.ko
Reading symbols from /boot/kernel/ng_iface.ko...Reading symbols from /boot/kernel/ng_iface.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ng_iface.ko
Reading symbols from /boot/kernel/ng_ppp.ko...Reading symbols from /boot/kernel/ng_ppp.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ng_ppp.ko
Reading symbols from /boot/kernel/ng_vjc.ko...Reading symbols from /boot/kernel/ng_vjc.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ng_vjc.ko
#0 doadump (textdump=Variable "textdump" is not available.
) at pcpu.h:224
224 pcpu.h: No such file or directory.
in pcpu.h
(kgdb) #0 doadump (textdump=Variable "textdump" is not available.
) at pcpu.h:224
#1 0xffffffff808358d5 in kern_reboot (howto=260)
at /usr/src/sys/kern/kern_shutdown.c:442
#2 0xffffffff80835d81 in panic (fmt=Variable "fmt" is not available.
)
at /usr/src/sys/kern/kern_shutdown.c:607
#3 0xffffffff80b40ec0 in trap_fatal (frame=0xc, eva=Variable "eva" is not available.
)
at /usr/src/sys/amd64/amd64/trap.c:819
#4 0xffffffff80b41209 in trap_pfault (frame=0xffffff824d18c620, usermode=0)
at /usr/src/sys/amd64/amd64/trap.c:735
#5 0xffffffff80b416cf in trap (frame=0xffffff824d18c620)
at /usr/src/sys/amd64/amd64/trap.c:474
#6 0xffffffff80b2bbff in calltrap ()
at /usr/src/sys/amd64/amd64/exception.S:228
#7 0xffffffff8093738c in ng_address_hook (here=0x0, item=0xfffffe0199acab00,
hook=0xfffffe01b7a5ac00, retaddr=0)
at /usr/src/sys/netgraph/ng_base.c:3487
#8 0xffffffff8093d8d8 in ng_pppoe_rcvdata_ether (hook=Variable "hook" is not available.
)
at /usr/src/sys/netgraph/ng_pppoe.c:1655
#9 0xffffffff80938fdb in ng_apply_item (node=0xfffffe0024cb9900,
item=0xfffffe0199acab00, rw=0) at /usr/src/sys/netgraph/ng_base.c:2318
#10 0xffffffff80937f8e in ng_snd_item (item=Variable "item" is not available.
)
at /usr/src/sys/netgraph/ng_base.c:2235
#11 0xffffffff808ea897 in ether_demux (ifp=0xfffffe002400b800, m=Variable "m" is not available.
)
at /usr/src/sys/net/if_ethersubr.c:954
#12 0xffffffff808eab94 in ether_nh_input (m=Variable "m" is not available.
)
at /usr/src/sys/net/if_ethersubr.c:756
#13 0xffffffff808f4e8b in netisr_dispatch_src (proto=9, source=Variable "source" is not available.
)
at /usr/src/sys/net/netisr.c:1013
#14 0xffffffff808ea7df in ether_demux (ifp=0xfffffe00054aa000,
m=0xfffffe0199e12600) at /usr/src/sys/net/if_ethersubr.c:846
#15 0xffffffff808eab94 in ether_nh_input (m=Variable "m" is not available.
)
at /usr/src/sys/net/if_ethersubr.c:756
#16 0xffffffff808f4e8b in netisr_dispatch_src (proto=9, source=Variable "source" is not available.
)
at /usr/src/sys/net/netisr.c:1013
#17 0xffffffff8047303a in em_rxeof (rxr=0xfffffe0009044400, count=97,
done=0x0) at /usr/src/sys/dev/e1000/if_em.c:4340
#18 0xffffffff804734bb in em_handle_que (context=Variable "context" is not available.
)
at /usr/src/sys/dev/e1000/if_em.c:1518
#19 0xffffffff808774e5 in taskqueue_run_locked (queue=0xfffffe0009042200)
at /usr/src/sys/kern/subr_taskqueue.c:308
#20 0xffffffff80878466 in taskqueue_thread_loop (arg=Variable "arg" is not available.
)
at /usr/src/sys/kern/subr_taskqueue.c:497
#21 0xffffffff8080990f in fork_exit (
callout=0xffffffff80878420 <taskqueue_thread_loop>,
arg=0xffffff800230c748, frame=0xffffff824d18cc50)
at /usr/src/sys/kern/kern_fork.c:995
#22 0xffffffff80b2c12e in fork_trampoline ()
at /usr/src/sys/amd64/amd64/exception.S:602
#23 0x0000000000000000 in ?? ()
#24 0x0000000000000000 in ?? ()
#25 0x0000000000000000 in ?? ()
#26 0x0000000000000000 in ?? ()
#27 0x0000000000000000 in ?? ()
#28 0x0000000000000000 in ?? ()
#29 0x0000000000000000 in ?? ()
#30 0x0000000000000000 in ?? ()
#31 0x0000000000000000 in ?? ()
#32 0x0000000000000000 in ?? ()
#33 0x0000000000000000 in ?? ()
#34 0x0000000000000000 in ?? ()
#35 0x0000000000000000 in ?? ()
#36 0x0000000000000000 in ?? ()
#37 0x0000000000000000 in ?? ()
#38 0x0000000000000000 in ?? ()
#39 0x0000000000000000 in ?? ()
#40 0x0000000000000000 in ?? ()
#41 0x0000000000000000 in ?? ()
#42 0x0000000000000000 in ?? ()
#43 0x0000000000000000 in ?? ()
#44 0x0000000000000000 in ?? ()
#45 0x0000000000000000 in ?? ()
#46 0x0000000000000000 in ?? ()
#47 0xffffffff8117ed78 in sleepq_chains ()
#48 0xfffffe0005472428 in ?? ()
#49 0x0000000000000000 in ?? ()
#50 0xfffffe0005472000 in ?? ()
#51 0xffffff824d18cb00 in ?? ()
#52 0xffffff824d18caa8 in ?? ()
#53 0xfffffe00052ab460 in ?? ()
#54 0xffffffff8085dda2 in sched_switch (td=0xffffffff80878420,
newtd=0xffffff800230c748, flags=Variable "flags" is not available.
) at /usr/src/sys/kern/sched_ule.c:1848
Previous frame inner to this frame (corrupt stack?)
(kgdb)
Tunings:
Code:
kern.ipc.maxpipekva=536870912
net.inet.tcp.delayed_ack=0
net.isr.maxthreads=7
net.isr.direct=1
net.isr.direct_force=1
net.isr.bindthreads=0
kern.maxfiles=204800
kern.maxfilesperproc=200000
net.graph.maxalloc=4096
kern.maxusers=2048
kern.ipc.maxsockbuf=16777216
kern.ipc.nmbclusters=262144
kern.ipc.somaxconn=32768
kern.ipc.maxsockets=204800
