From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 12 09:11:44 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4D97562D for ; Tue, 12 Aug 2014 09:11:44 +0000 (UTC) Received: from cdptpa-oedge-vip.email.rr.com (cdptpa-outbound-snat.email.rr.com [107.14.166.228]) by mx1.freebsd.org (Postfix) with ESMTP id 119972FD8 for ; Tue, 12 Aug 2014 09:11:43 +0000 (UTC) Received: from [72.132.160.201] ([72.132.160.201:40452] helo=bsdfull.Belkin) by cdptpa-oedge01 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id A5/56-00396-889D9E35; Tue, 12 Aug 2014 09:08:25 +0000 Message-ID: <53E9D986.8000605@SDF.org> Date: Tue, 12 Aug 2014 02:08:22 -0700 From: Cary User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26 MIME-Version: 1.0 To: "Eggert, Lars" Subject: Re: nscd not caching References: <9F8FBD79-2825-4B22-BD14-EACF65A7DD50@netapp.com> <20140811172755.GA1414@SDF.ORG> <8068C863-0F02-45CF-AF15-C4230BE65255@netapp.com> <53E9CDA7.2020600@SDF.org> <6FDCA8B5-AD2D-4A8F-A6AC-95AD69C8E227@netapp.com> In-Reply-To: <6FDCA8B5-AD2D-4A8F-A6AC-95AD69C8E227@netapp.com> X-Enigmail-Version: 1.6.1_pre20140112 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-RR-Connecting-IP: 107.14.168.118:25 X-Cloudmark-Score: 0 Cc: "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2014 09:11:44 -0000 Eggert, Lars wrote: > Hi, > > On 2014-8-12, at 10:17, Cary wrote: >> perform-actual-lookups services yes perform-actual-lookups passwd yes >> perform-actual-lookups group yes >> >> In /etc/nscd.conf you might add the lines above. That would configure >> nscd to do more than cache. It may also give you some sign whether it's >> doing anything at all. > > If I do that, I get messages in the nscd trace such as : > > E2 from write_request: entry 'group' performs lookups by itself: can't > write to it E2 from write_request: entry 'passwd' performs lookups by > itself: can't write to it > > At first I thought it was because of + lines in /etc/group and /etc/passwd, > but even if I take those out I get these messages. > > Lookup speed still slow, cache doesn't seem to be used. > > Lars > I've only been using nscd attempting to cache hosts. Using it again, I'm not having the problems I had before, but the trace does not show any activity either. The issue before was that getting rss messages would lock up the browser or make it segfault. There was a domain that would not resolve at that time because the server for the feed was down for several days. When I stopped running nscd there were no more segfaults or lockups. Cary -- cary@sdf.org SDF Public Access UNIX System - http://sdf.org ------------------------------