OK.  I have modified checkpc so that it does not
do To_daemon() calls all over the place.

Patrick

Version LPRng-3.8.4 - Thu Dec 13 08:25:17 PST 2001                                     
                         
   checkpc:  I was using 'To_daemon()' calls all through the
     code.  This was not needed and would cause a substantial
     slowdown in operation.  I now do exactly ONE call at the
     start of operations.

> From [EMAIL PROTECTED] Tue Dec 18 08:54:31 2001
> Date: Tue, 18 Dec 2001 10:43:48 -0500
> From: Rick Cochran <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: LPRng: checkpc speed
>
> Patrick Powell wrote:
> > and then calls 'initgroups(user,pw->pw_gid)'
>
> If you are using NIS and have a large 'group' map, then initgroups will
> be slow.
>
> NIS indexes the group map by group, not name.  Therefore, in order to
> find out what groups a particular user is in, initgroups has to go
> through the entire group map.
>
> My experience is that it does it one group at a time (eg. one RPC
> transaction per group).  This is so awesomely brain-dead that it defies
> imagination.
>
> My solution was to distribute /etc/group to each workstation and not use
> the NIS group map.  The entire file gets into file cache and initgroups
> becomes instantaneous.
>
> Perhaps this is not your problem, but I thought I would mention it.
>
> -Rick
>
> -- 
> |Rick Cochran                                   phone: 607-255-7618|
> |Cornell CIT - Systems & Operations - Net-Print   FAX: 607-255-8521|
> |730 Rhodes Hall, Ithaca, N.Y. 14853        email: [EMAIL PROTECTED]|

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to