From owner-freebsd-current Wed Oct 3 21:13:12 2001 Delivered-To: freebsd-current@freebsd.org Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by hub.freebsd.org (Postfix) with ESMTP id 33ED137B407 for ; Wed, 3 Oct 2001 21:13:06 -0700 (PDT) Received: from dsto-ms2.dsto.defence.gov.au (dsto-ms2.dsto.defence.gov.au [131.185.2.150]) by digger1.defence.gov.au (8.10.1/8.10.1) with ESMTP id f944CS824615 for ; Thu, 4 Oct 2001 13:42:28 +0930 (CST) Received: from muttley.dsto.defence.gov.au (unverified) by dsto-ms2.dsto.defence.gov.au (Content Technologies SMTPRS 4.1.5) with ESMTP id ; Thu, 4 Oct 2001 13:40:52 +0930 Received: from salex001.dsto.defence.gov.au (salex001.dsto.defence.gov.au [131.185.2.9]) by muttley.dsto.defence.gov.au (8.9.3/8.9.3/8.9.3.LMD.990513) with ESMTP id NAA18132; Thu, 4 Oct 2001 13:39:40 +0930 (CST) Received: from fang.dsto.defence.gov.au ([131.185.2.5]) by salex001.dsto.defence.gov.au with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 4AVVRWTY; Thu, 4 Oct 2001 13:39:37 +0930 Received: from dsto.defence.gov.au (fuzz.dsto.defence.gov.au [131.185.75.229]) by fang.dsto.defence.gov.au (8.9.3/8.9.3/8.9.3.LMD.990513) with ESMTP id NAA19277; Thu, 4 Oct 2001 13:39:39 +0930 (CST) Message-ID: <3BBBE105.9863D667@dsto.defence.gov.au> Date: Thu, 04 Oct 2001 13:39:41 +0930 From: "Thyer, Matthew" X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: Andrew Gallatin Cc: "Brandon D. Valentine" , current@freebsd.org Subject: Re: NIS client performance seems very poor under network load References: <20010928022500.I24843-100000@turtle.looksharp.net> <3BBAD3F3.241A1FEE@dsto.defence.gov.au> <15291.10120.604882.602699@grasshopper.cs.duke.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Andrew Gallatin wrote: > > Thyer, Matthew writes: > > > > Now xterm 1 has the message "yp_first: clnt_call: RPC: Timed out" > > as its first line and xterm 2 has two of these messages. > The problem is that there is no global caching of NIS maps. Each app > maintains its own cache.. Since these are libc functions being used (gethostbyname, gethostbyaddr, getpwent etc etc) it is under the control of the operating system to do such caching and if most other operating systems do cache we are not likely to see many apps caching themselves. So the answer is a name service caching daemon ala nscd on Solaris. That's my preferred option as we still have control and can invalidate cache entries (nscd -i passwd) if required. The Solaris nscd is quite configurable.. see /etc/nscd.conf from Solaris 7: # # Copyright (c) 1994 by Sun Microsystems, Inc. # All rights reserved. # #ident "@(#)nscd.conf 1.3 96/10/09 SMI" # # # Currently supported cache names: passwd, group, hosts # # logfile /var/adm/nscd.log # enable-cache hosts no debug-level 0 positive-time-to-live passwd 600 negative-time-to-live passwd 5 suggested-size passwd 211 keep-hot-count passwd 20 old-data-ok passwd no check-files passwd yes positive-time-to-live group 3600 negative-time-to-live group 5 suggested-size group 211 keep-hot-count group 20 old-data-ok group no check-files group yes positive-time-to-live hosts 3600 negative-time-to-live hosts 5 suggested-size hosts 211 keep-hot-count hosts 20 old-data-ok hosts no check-files hosts yes Other options are to follow IRIX and have "nsd" and nsadmin to control it but I think following Sun would be more popular. -- Matthew Thyer Phone: +61 8 8259 7249 Science Corporate Information Systems Fax: +61 8 8259 5537 Defence Science and Technology Organisation, Edinburgh PO Box 1500 Edinburgh South Australia 5111 IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message