Skip site navigation (1)Skip section navigation (2)
Date:      2 Oct 2000 22:29:59 -0000
From:      vladimir@math.uic.edu
To:        DougB@gorean.org, freebsd-questions@freebsd.org
Subject:   Re: name service caching
Message-ID:  <20001002222959.13680.qmail@math.uic.edu>

next in thread | raw e-mail | index | archive | help
Hi Doug,

just to follow-up to my question about ypserv and high load on the yp
server.    I finally got annoyed enough to do some testing.

It turns out that ypserv on the master server works very
hard every time anyone logs in, and this is not freebsd-related
at all.   We ran into a problem after adding BSD machines because
the solaris lab was not used by anyone.

A stack trace on the /usr/bin/login (or any other
daemon, ftpd, for example) + network dump show that they call initgroups(),
which reads the whole group database from the yp server.   We recently 
created a separate group for each user to take advantage of file
sharing, and the group database became so huge that initgroups()
takes forever.   I am not sure what could be a good fix, except
making each machine a yp slave server (argh...).

	Vladimir

	>From vladimir Wed Sep 13 14:23:24 2000
	>To: freebsd-questions@freebsd.org
	>Subject: Re: name service caching
	>
	>        >From DougB@gorean.org Wed Sep 13 19:17:24 2000
	>        >Delivered-To: vladimir@math.uic.edu
	>        >Date: Wed, 13 Sep 2000 12:17:16 -0700 (PDT)
	>        >From: Doug Barton <DougB@gorean.org>
	>        >X-Sender: doug@dt051n37.san.rr.com
	>        >To: vladimir@math.uic.edu
	>        >cc: freebsd-questions@freebsd.org
	>        >Subject: Re: name service caching
	>        >MIME-Version: 1.0
	>        >Status: R
	>        >
	>        >On 13 Sep 2000 vladimir@math.uic.edu wrote:
	>        >
	>        >> Dear BSD users,
	>        >>
	>        >> is there an equivalent of Solaris nscd daemon
	>        >> (name service caching daemon):
	>        >
	>        >       No... nor would one be desirable. If you need this kind of servi
	>ce
	>        >run a local copy of named configured as a forwarder to your
	>        >"real" resolvers.
	>
	>nscd on solaris also caches passwd and group databases.
	>I was asking because we've just added a bunch of BSD machines, and the
	>resources consumed by ypserv on a solaris NIS server went up quite a
	>lot.   Before that, adding a lab of solaris boxes didn't make a
	>difference.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001002222959.13680.qmail>