From owner-freebsd-net@freebsd.org Mon Jul 11 00:43:16 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 93EB5B84966 for ; Mon, 11 Jul 2016 00:43:16 +0000 (UTC) (envelope-from donaldbaud@yahoo.com) Received: from nm26-vm0.bullet.mail.bf1.yahoo.com (nm26-vm0.bullet.mail.bf1.yahoo.com [98.139.213.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B6951D3F for ; Mon, 11 Jul 2016 00:43:15 +0000 (UTC) (envelope-from donaldbaud@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1468197789; bh=91GC+Q83m2jDD+E3XQUQx+e9L1mYI5HUJu/0HzkqzLg=; h=Subject:To:References:From:Date:In-Reply-To:From:Subject; b=cG/gajeBd1fPjekzbBICxLuj93Czpq2l4aoz3MifLNaQw/ylq7uRxUTFDs6HrysJqpWXdu0wz0c9iQ5opCSc1dgCk2TlcyhSehkar8w3/3DyhifhaTaa6OArZMxZpav4WutaUUmX4FwXY605kmAeaw75tX0W4LQxeVM01mpc/7LfIMEcyHlpjdxkODX9QXufq0f2h5VYeJoSW1/o6IGwQi6P/NJRBYXX/l7J/QVqXh4dGjJMY5FayG5onocZ82ta9DJbFMxYARJL0w01PclOsliV3WILZWfpWDbkaWOzNVCHXstBuPh448To/TmpL70dz50nhtp80tkLba0p5DyOOw== Received: from [98.139.215.142] by nm26.bullet.mail.bf1.yahoo.com with NNFMP; 11 Jul 2016 00:43:09 -0000 Received: from [98.139.211.205] by tm13.bullet.mail.bf1.yahoo.com with NNFMP; 11 Jul 2016 00:43:09 -0000 Received: from [127.0.0.1] by smtp214.mail.bf1.yahoo.com with NNFMP; 11 Jul 2016 00:43:09 -0000 X-Yahoo-Newman-Id: 370315.65779.bm@smtp214.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: Va6DLhgVM1kaGuUcflz9XGtTCgQKUisWPVvmcQ.yunYzkvU VhOEytOX41BDZ_wCE01bmVZNuLKT1vWAbiT5dprKfGAajxl8IABgs13_Bufg zd.7aC8LSivwajrvp.3S1s4JLAnwlApaOAYsQWN2AFdmdmZWtqkmrI2Q79Yd .WJ.nmpHjuQ2nlOpIGS9jOGMhyRD0kLK6BUIrR9VoD43sU57Rd6ZrTxf8mZY kJGJN7AQWb5jmOTw_jotBkQ9rziSaDB17AFQ2Y.gs5wMsTAVhWTHlCbt2yN2 Cgu1XDHDf0sPgwGs2KQVdWPlerhH.6NED3MG8HBqo4KPX6Ck5pmE7dnyv1zk MEmbrBcAJq5x8u53V8w4_EE1gUf8W5L2ntjmXT.dKrBARvprCQbYOLk6CArD yiTlaDFvSKj_Vs5FJ5NjgvH74s4yOnSdYQ2C1DRHzE23Y6WPr2IA2Ds53JMZ JBnDjm8O734415Myhg9UWtytWxgSYeU5j_pJjuu4Z1fyGemQw7DXZ5_FoIPK ObnMoUeY8FHu62vkflXcIL4AoriUQB_Uop2S0_NyXameAfJw0BXZvn5w- X-Yahoo-SMTP: fRRiyyGswBB1GYfBhw8frTz_QYRdpxY- Subject: Re: kernel panic with netgraph and mpd3.8 To: freebsd-net References: <58413371.417578.1468131588156.JavaMail.yahoo.ref@mail.yahoo.com> <58413371.417578.1468131588156.JavaMail.yahoo@mail.yahoo.com> <5782BAA4.2090606@gmail.com> From: Donald Baud Message-ID: <3b3c7a0a-35d4-93c5-c283-1b03f627ac38@yahoo.com> Date: Sun, 10 Jul 2016 20:43:11 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <5782BAA4.2090606@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2016 00:43:16 -0000 > On 2016-07-10 10:49, Donald Baud via freebsd-net wrote: >> Hi I'm running an l2tp lns through mpd3.8 and it's been crashing >> twice in 24h. >> This is a new project replacing a cisco 7206, 700-sessions 800mbit/s >> >> >> I am not familiar with troubleshooting kernel panic's, >> >> I am suspecting that the crash is happening inside the netgraph >> module because the crash is happening at the >> >> instruction pointer = 0x20:0xffffffff81c38283 >> I included the 2 two crash logs. I need some help to to figure out >> what to do next. >> >> -Dbaud >> >> > On 7/10/16 5:14 PM, Hooman Fazaeli wrote: > - Upgrade to mpd 5 (/usr/ports/net/mpd5) > - Try below workarounds: > https://lists.freebsd.org/pipermail/freebsd-bugs/2014-June/056548.html > https://lists.freebsd.org/pipermail/freebsd-bugs/2014-June/056549.html > https://lists.freebsd.org/pipermail/freebsd-net/2014-June/038954.html > > - I'm already using the latest mpd5: > mpd5 --version Version 5.8 (root@101amd64-quarterly-job-15 12:36 5-Jun-2016) - I had already reviewed those links you mentioned. Here is a summary of the main suggestions in them. * Add a "sleep 1" to up-down interface events. * Revert to RELENG8 or 9 * boost net.graph sysctl/loader.conf net.graph.maxdata=262140 # /boot/loader.conf net.graph.maxalloc=262140 # /boot.loader.conf I was using the following tunings net.graph.maxdgram=524288 (via sysctl.conf default=20480) net.graph.recvspace=524288 (via sysctl.conf default=20480) net.graph.maxdata=65536 (via loader.conf default=4096 ) net.graph.maxalloc=65536 (via loader.conf default=4096 ) I am suspecting that the panic might be caused by a too high maxdata and maxalloc values: I reduced the value to 20480, I'll report back if that will reduce the occurence of kernel panics. > vmstat -z | head -1 ; vmstat -z | grep -i graph ITEM SIZE LIMIT USED FREE REQ FAIL SLEEP NetGraph items: 72, 20491, 2, 1672,467166841, 0, 0 NetGraph data items: 72, 20491, 0, 1643,1240166475, 0, 0