From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ole Holm Nielsen Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Tru64 server can't handle 900 network clients Date: Thu, 22 Dec 2005 09:36:42 +0100 Message-ID: <43AA659A.8000303@fysik.dtu.dk> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1135240656 30822 80.91.229.2 (22 Dec 2005 08:37:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Dec 2005 08:37:36 +0000 (UTC) Cc: John Lanier , =?ISO-8859-1?Q?Karsten_Elgaard_?= =?ISO-8859-1?Q?S=F8rensen?= Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Dec 22 09:37:35 2005 Return-path: Envelope-to: gotm-tru64-unix-managers@gmane.org Original-Received: from sws1.ornl.gov ([160.91.1.101]) by ciao.gmane.org with smtp (Exim 4.43) id 1EpLx2-0001fP-J1 for gotm-tru64-unix-managers@gmane.org; Thu, 22 Dec 2005 09:37:28 +0100 Original-Received: (qmail 21232 invoked by uid 49509); 22 Dec 2005 08:37:08 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 21140 invoked by uid 49501); 22 Dec 2005 08:37:08 -0000 Original-Received: from 160.91.86.17 by sws1 (envelope-from , uid 49491) with qmail-scanner-1.25 (clamdscan: 0.83/743. spamassassin: 3.0.2. Clear:RC:0(160.91.86.17):SA:0(-2.4/5.0):. Processed in 1.936791 secs); 22 Dec 2005 08:37:08 -0000 X-Spam-Status: No, hits=-2.4 required=5.0 Original-Received: from emroute2.cind.ornl.gov (160.91.86.17) by sws1.ornl.gov with SMTP; 22 Dec 2005 08:37:06 -0000 Original-Received: from emroute2.cind.ornl.gov (localhost [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2-1x9 #31038) with ESMTP id <0IRW00EQA59TLU@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 22 Dec 2005 03:37:05 -0500 (EST) Original-Received: from VIRUSCAN-DAEMON.emroute2.cind.ornl.gov by emroute2.cind.ornl.gov (PMDF V6.2-1x9 #31038) id <0IRW0020259OZN@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 22 Dec 2005 03:37:05 -0500 (EST) Original-Received: from servfys.fysik.dtu.dk (servfys.fysik.dtu.dk [130.225.86.25]) by emroute2.cind.ornl.gov (PMDF V6.2-1x9 #31038) with ESMTPS id <0IRW00MEM59IML@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 22 Dec 2005 03:37:00 -0500 (EST) Original-Received: from [130.225.86.55] (dirac.fysik.dtu.dk [130.225.86.55]) by servfys.fysik.dtu.dk (8.13.1/8.13.1/CanIt+Blacklists+accessDB) with ESMTP id jBM8ahFn010438; Thu, 22 Dec 2005 09:36:43 +0100 In-reply-to: Original-To: tru64-unix-managers@ornl.gov X-Envelope-from: Ole.H.Nielsen@fysik.dtu.dk X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.7-1.4.1.centos4 (X11/20051007) X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on spam2.ornl.gov X-Spam-Level: X-Qmail-Scanner-MOVED-X-Spam-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.1.0 X-Canit-Stats-ID: Bayes signature not available X-CanItPRO-Stream: 00_Normal X-Scanned-By: CanIt (www . roaringpenguin . com) on 130.225.86.25 Xref: news.gmane.org gmane.os.tru64.managers:8700 Archived-At: This is an old question, but for anyone with >512 machines on the local network you need to know how to increase the Ethernet ARP cache size in Tru64 UNIX. I received a resolution of the problem from an HP Denmark consultant: You need to look at and possibly increase the Tru64 kernel's internal variable "arpqmaxlen", which unfortunately cannot be set through the usual /etc/sysconfigtab method. This variable is the number of Ethernet MAC addresses kept in the cache, and should be somewhat larger than 2 times the number of nodes on your network. The kernel variables related to the ARP cache are defined in /usr/sys/include/netinet/inet_config.h. To display the "arpqmaxlen" value use /usr/bin/dbx on the kernel: # dbx -k /vmunix (dbx) p arpqmaxlen 1024 To assign a new value until next reboot: (dbx) assign arpqmaxlen = 2048 To assign a new value permanently in /vmunix: (dbx) patch arpqmaxlen = 2048 Then exit dbx by a "quit" command. If a new kernel gets installed, for example by installing a new Patch Kit, you will need to modify /vmunix again as described. We've been running a local network with about 950 nodes without ARP cache problems for over a year now, so this solution seems to be well tested. Additional note in case anyone is interested: On Linux hosts the same modification can be implemented via the /etc/sysctl.conf file (Redhat RHEL4 with kernel 2.6.9) at boot time: # Don't allow the arp table to become bigger than this net.ipv4.neigh.default.gc_thresh3 = 4096 # Tell the gc when to become aggressive with arp table cleaning. # Adjust this based on size of the LAN. net.ipv4.neigh.default.gc_thresh2 = 2048 # Adjust where the gc will leave arp table alone net.ipv4.neigh.default.gc_thresh1 = 1024 # Adjust to arp table gc to clean-up more often net.ipv4.neigh.default.gc_interval = 3600 # ARP cache entry timeout net.ipv4.neigh.default.gc_stale_time = 3600 Ole Holm Nielsen wrote: > I'm stumped by an apparent limit in the Tru64 UNIX kernel (v5.1A pk6) to > handle client node MAC-addresses for close to 1000 NFS clients. > We expanded our Linux cluster to 900+ nodes, and suddenly the > Tru64 UNIX NFS file-server randomly looses network communication with > many (or most) of the new nodes. A "ping" doesn't work at either end of > the server-client connection. Communication between Linux servers and > nodes works perfectly, however, so we do not believe there to be a > problem with the network setup. > > What happens is I believe "ARP cache trashing": The Tru64 kernel > apparently can't cope with close to 1000 MAC-addresses simultaneously > because a fixed-size ARP cache fills up, and the kernel starts deleting > MAC-addresses from the ARP cache randomly. See "man 7 arp" > on a Linux box about the cache. On the Linux boxes we solve the ARP > cache problem by loading a static cache from the /etc/ethers file, but > on Tru64 UNIX this causes a dead-sure communications failure :-( > > Browsing the Tru64 UNIX manuals and the "dxkerneltuner" tool, I haven't > been able to find any kernel parameter which may increase the maximum > size of the ARP cache. Can anyone help ? > Note: The 900 nodes are divided about equally between two Gigabit > interfaces on the Tru64 UNIX server. -- Ole Holm Nielsen Department of Physics, Technical University of Denmark, Building 307, DK-2800 Kongens Lyngby, Denmark