From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 18 07:41:59 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E2F637B401; Fri, 18 Apr 2003 07:41:59 -0700 (PDT) Received: from adsl-63-198-35-122.dsl.snfc21.pacbell.net (adsl-63-198-35-122.dsl.snfc21.pacbell.net [63.198.35.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5073943FE5; Fri, 18 Apr 2003 07:41:58 -0700 (PDT) (envelope-from j_guojun@lbl.gov) Received: from lbl.gov (localhost.pacbell.net [127.0.0.1]) by spode.pacbell.net (8.12.8p1/8.12.8) with ESMTP id h3I5C2u6000430; Thu, 17 Apr 2003 22:12:02 -0700 (PDT) (envelope-from j_guojun@lbl.gov) Sender: jin@adsl-63-198-35-122.dsl.snfc21.pacbell.net Message-ID: <3E9F8922.1166ABA8@lbl.gov> Date: Thu, 17 Apr 2003 22:12:02 -0700 From: "Jin Guojun [NCS]" X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.8-RELEASE i386) X-Accept-Language: zh, zh-CN, en-US, en MIME-Version: 1.0 To: freebsd-performance@freebsd.org Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: freebsd-hackers@freebsd.org Subject: patch for test (Was: tcp_output starving -- is due to mbuf get delay?) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Apr 2003 14:41:59 -0000 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. -- ------------ Jin Guojun ----------- v --- j_guojun@lbl.gov --- Distributed Systems Department http://www.itg.lbl.gov/~jin M/S 50B-2239 Ph#:(510) 486-7531 Fax: 486-6363 Lawrence Berkeley National Laboratory, Berkeley, CA 94720