From owner-freebsd-performance@FreeBSD.ORG Fri Apr 18 13:04:29 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 93C0D37B401; Fri, 18 Apr 2003 13:04:29 -0700 (PDT) Received: from postal2.lbl.gov (postal2.lbl.gov [131.243.248.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id C122D43F93; Fri, 18 Apr 2003 13:04:28 -0700 (PDT) (envelope-from j_guojun@lbl.gov) Received: from postal2.lbl.gov (localhost [127.0.0.1]) by postal2.lbl.gov (8.12.9/8.12.9) with ESMTP id h3IK4RCY007628; Fri, 18 Apr 2003 13:04:28 -0700 (PDT) Received: from lbl.gov (gracie.lbl.gov [131.243.2.175]) by postal2.lbl.gov (8.12.9/8.12.9) with ESMTP id h3IK4O1b007621; Fri, 18 Apr 2003 13:04:27 -0700 (PDT) Sender: jin@lbl.gov Message-ID: <3EA05A48.D9BB85E7@lbl.gov> Date: Fri, 18 Apr 2003 13:04:24 -0700 From: "Jin Guojun [DSD]" X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.7-RELEASE i386) X-Accept-Language: zh, zh-CN, en MIME-Version: 1.0 To: bj@dc.luth.se References: <200304181658.h3IGw72F021961@dc.luth.se> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Apr 2003 20:04:29 -0000 Opps, there was a bad file -- tcp_input.p -- which is not working yet. Also, a patch file -- tcp_usrreq.p -- was missing. I will take the tcp_input.p out and put tcp_usrreq.p in. When it is finished, I will send another mail out. -Jin Borje Josefsson wrote: > 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_Patches > > > > 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 explained 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@freebsd.org. > > I may submit the patch regardless if tcp_input code works or not, because the > > tcp > > sender (server) is more important in high-speed network than the receiver > > (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örje