Date: Mon, 10 Oct 2011 11:55:44 -0700 From: David Brodbeck <brodbd@uw.edu> To: Michael Bushkov <bushman@freebsd.org> Cc: Tom Evans <tevans.uk@googlemail.com>, freebsd-hackers@freebsd.org, perryh@pluto.rain.com Subject: Re: Does anyone use nscd? Message-ID: <CAHHaOuYkhYp_x5ONbRcr_8Zb6ZcyPaZZvG02f6f1%2B8XyQYUe%2Bg@mail.gmail.com> In-Reply-To: <CANkaO_ESdeoSiuwatqaPEY%2BDDN8eGGj_ymPsxOsu9AOtHX6ydQ@mail.gmail.com> References: <20111004160043.GA16034@lpthe.jussieu.fr> <051853CE-03EC-4EEC-A5AC-C380131B28E4@gsoft.com.au> <alpine.BSF.2.00.1110050931310.18373@mail.fig.ol.no> <j6k00t$2tk$1@dough.gmane.org> <4e8f073c.3g2aD/Zz9KdsWOKN%perryh@pluto.rain.com> <CAFHbX1LN5zidePrusaSyD_nE79VwbjNpc4s7TwMszYKBK=n4NQ@mail.gmail.com> <CANkaO_ESdeoSiuwatqaPEY%2BDDN8eGGj_ymPsxOsu9AOtHX6ydQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Oct 7, 2011 at 3:30 AM, Michael Bushkov <bushman@freebsd.org> wrote: > While I agree that nscd negative caching bug should be fixed, it won't > help with the problem that users encounter during ports installation. > When, for example, user "x" is added during port install, the > following steps are involved: > 1. Script checks if "x" is present in the users list. Nscd is queried, > it returns negative and caches negative answer. > 2. Script adds user "x". > 3. Script checks that "x" have indeed been added. Nscd is queried, > cachned negative answer is returned. Script fails as a result. > > So unless negative caching time is less than the time between steps 1) > and 3) the issues during ports installation will persist. Is there any reason to cache negative hits? It seems like you shouldn't see large volumes of them except in some fairly specific circumstances, like extracting a tarball as the root user with invalid UIDs. Maybe I'm missing something, but it seems like turning off negative caching would avoid a lot of potential problems for not much cost. -- David Brodbeck System Administrator, Linguistics University of Washington
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHHaOuYkhYp_x5ONbRcr_8Zb6ZcyPaZZvG02f6f1%2B8XyQYUe%2Bg>