From owner-freebsd-performance@FreeBSD.ORG Fri Apr 18 09:58:12 2003 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A83B37B405; Fri, 18 Apr 2003 09:58:12 -0700 (PDT) Received: from samson.dc.luth.se (samson.dc.luth.se [130.240.112.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE59D43FE9; Fri, 18 Apr 2003 09:58:09 -0700 (PDT) (envelope-from bj@dc.luth.se) Received: from dc.luth.se (root@bompe.dc.luth.se [130.240.60.42]) by samson.dc.luth.se (8.12.5/8.12.5) with ESMTP id h3IGw8LG012691; Fri, 18 Apr 2003 18:58:08 +0200 (MET DST) Received: from bompe.dc.luth.se (bj@localhost.dc.luth.se [127.0.0.1]) by dc.luth.se (8.12.6/8.11.3) with ESMTP id h3IGw72F021961; Fri, 18 Apr 2003 18:58:07 +0200 (CEST) (envelope-from bj@bompe.dc.luth.se) Message-Id: <200304181658.h3IGw72F021961@dc.luth.se> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: "Jin Guojun [NCS]" In-reply-to: Your message of Thu, 17 Apr 2003 22:12:02 PDT. <3E9F8922.1166ABA8@lbl.gov> Dcc: From: Borje Josefsson X-Disposition-notification-to: Borje.Josefsson@dc.luth.se X-uri: http://www.dc.luth.se/~bj/index.html Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Fri, 18 Apr 2003 18:58:07 +0200 Sender: bj@dc.luth.se cc: freebsd-hackers@freebsd.org cc: freebsd-performance@freebsd.org Subject: Re: patch for test (Was: tcp_output starving -- is due to mbuf get delay?) X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: bj@dc.luth.se List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Apr 2003 16:58:12 -0000 On Thu, 17 Apr 2003 22:12:02 PDT "Jin Guojun [NCS]" wrote: > I have modified the sockbuf and mbuf operation to double the throughput= over > high bandwidth delay product path. > = > The patch is available at: > http://www-didc.lbl.gov/~jin/network/lion/content.html#FreeBSD_Patc= hes > = > The current modification is for tcp transmission only. > = > I have adapted some code of uipc_socket2.c from Sam Leffler > http://www.freebsd.org/~sam/thorpe-stable.patch > = > for tcp receiver, but it has not been tested yet, so the tcp_input.p is= empty. > = > I ignored all record chain (m_nextpkt) related code. The details is exp= lained at > = > http://www-didc.lbl.gov/~jin/network/lion/content.html#BSDMbuf > = > Once the tcp_input code is tested, I will submit the patch to bugs@free= bsd.org. > I may submit the patch regardless if tcp_input code works or not, becau= se the > tcp > sender (server) is more important in high-speed network than the receiv= er > (client). > = > It is appreciated if any one can verify the patch and provide feedback.= OK. I have now tried this patch on a newly-installed 4.8R. The patch = applied fine. When the sysctl net.inet.tcp.liondmask is unset, everything= = seems OK, but when setting it to 7 (as specified with the patch = instructions) i get: Fatal trap 12: page fault while in kernel mode. (I could write down all the stuff on addresses etc if it makes sense) when I run ttcp to test the performance. This is repeatable. I'm willing to test more, if someone provides me with some hints on what = to do. --B=F6rje