From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Iain Barker Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Tuning the tu: tulip Ethernet buffers Date: Tue, 20 Jan 2004 08:43:00 -0500 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1074606500 17761 80.91.224.253 (20 Jan 2004 13:48:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Jan 2004 13:48:20 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue Jan 20 14:48:11 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1AiwEl-0001AO-00 for ; Tue, 20 Jan 2004 14:48:11 +0100 Original-Received: (qmail 12920 invoked by uid 5); 20 Jan 2004 13:47:57 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 12905 invoked by uid 49493); 20 Jan 2004 13:47:57 -0000 Original-Received: from ibarker@aastra.com by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-2.6/5.0):. Processed in 1.871353 secs); 20 Jan 2004 13:47:57 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 20 Jan 2004 13:47:55 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HRS00L2BJNSEG@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 20 Jan 2004 08:47:54 -0500 (EST) Original-Received: from mailfrnt.aastra.com (mail.aastra.com [216.94.98.95]) by emroute3.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HRS00K8DJNPTV@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 20 Jan 2004 08:47:50 -0500 (EST) Original-Received: from bilmail.aastra.com ([10.50.2.10]) by mailfrnt.aastra.com with Microsoft SMTPSVC(6.0.3790.0); Tue, 20 Jan 2004 08:43:01 -0500 Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft Exchange V6.5.6944.0 Thread-Topic: df hung Thread-Index: AcPbh3IX0+FWs3IsQeqdeESzYnxHoAABblAQAALWc4AAQi3sEAAkB5ag Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: X-OriginalArrivalTime: 20 Jan 2004 13:43:01.0724 (UTC) FILETIME=[529859C0:01C3DF5B] Xref: main.gmane.org gmane.os.tru64.managers:6248 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:6248 Thanks to Dr. Blinn who provided the following hint: >On my V5.1B system I see: > >pc164lx (root) # sysconfig -q tu >tu: >StoreAndForward =3D 0 >delay_6694F =3D 1 > >There might be a way to tweak the initial value with "dbx" if you >had kernel sources to reference and knew what you were doing. Thanks to John Lanier who provided the dbx information: >The following write-up was forwarded from the HP Tru64 Network Team: > >The message "tu0 transmit fifo underflow:threshold raised to 256 bytes" = means=20 >that the ethernet controller tu was sending characters faster than the = PCI=20 >bus could fill the transmit FIFO. So the controller raised the = threshold for=20 >how much data gets put in the FIFO before it starts transmitting.i.e., = the=20 >controller is dynamically adjusting itself to optimize network = throughput.=20 > >But does this mean that I lost some packets? When the device can't get = enough data=20 >to transmit, it "jams" the frame it's currently transmitting (which = makes it=20 >appear to be a CRC and/or Frame error). In general, Ethernet is a = datagram=20 >medium, and no datagram transmit is ever guaranteed to make it to the = destination.=20 > >Store-forward mode is never an issue in 10mb mode but it is in 100mb. = Store-forward=20 >mode insures that the entire packet is in the chip BEFORE the transmit = starts=20 >because some systems cannot DMA data fast enough to the chip in 100mb = mode. >=20 >Basically, the system cannot keep up with the chip. The customer needs = to run=20 >with store-forward enabled to avoid the fifo underflow.=20 > >To enable store-forward mode when the tu driver starts,=20 >patch the variable "tu_sf_mode" using dbx. > >EX: >=3D=3D=3D=3D > ># dbx -k /vmunix =20 > >(dbx) print tu_sf_mode=20 >0 > >(dbx) patch tu_sf_mode=3D1=20 >1 =20 > >(dbx) print tu_sf_mode=20 >1 > >(dbx) quit > >************** >=20 >You may want/need to restart the network (#/usr/sbin/rcinet restart)=20 To survive a reboot, use the dbx 'assign' command rather than 'patch' There is also the option of changing to use DE60x interface instead of = the DE50x. The DE60x does not suffer from the buffering problems caused by the = delay_6694F patch. -----Original Message----- On Tru64 4.0f I am getting the following messages during heavy IP = traffic: tu0: transmit FIFO undeflow: threshold raised to : 256 bytes tu0: transmit FIFO undeflow: threshold raised to : 512 bytes etc. Each time the buffer is increased, data trasnfers are interrupted for a = short time. Is there any way to pre-configure the FIFO to a larger size? Perhaps via sysconfig or an option during a kernel build perhaps? thanks.