delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/10/28/20:04:18

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=XLsDKCJTOusC7qOn
Xge2AauGwM7mrkyHYTp14wK0/xMxb6qh6V2UwfCaq+3PUl42ZQIFr/zwjRKmI3Vo
rlZluoan0h0HkVElEhpGABTBsYLxCw7TG5/DT7lMNDTsmhMq1ck6dR1/a0m+/+RA
SBmfbO39G0IbOwzC+CkrkZ9kUjo=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=6Vldh2bpgcsNPqotvvdSFY
EjGhU=; b=avoi09nV0JAZ3AV9hyMWZI2VGJxx5UybJooBIz0swiW6VB7L0j5w0V
QpehAAlDT6ol95FF9WTO5abmeWRiJCkg0Hs1pI7wm9a83K8zhI1czo0mDDDw6HFi
kPnDjFsmnbwIuqreaP30XdtGlq92+VSZSNxzHVNUtXEE41wA8XX64=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=Andrey, andrey, Repin, getent
X-HELO: smtp-out-no.shaw.ca
Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca
Subject: Re: getent doesn't work properly
To: cygwin AT cygwin DOT com
References: <AM4PR07MB3473294020CA8F67E79E0217956D0 AT AM4PR07MB3473 DOT eurprd07 DOT prod DOT outlook DOT com> <741266361 DOT 20191018140116 AT yandex DOT ru> <AM4PR07MB34735BAE3859C6770382E2B995680 AT AM4PR07MB3473 DOT eurprd07 DOT prod DOT outlook DOT com> <1185423087 DOT 20191028202914 AT yandex DOT ru>
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Openpgp: preference=signencrypt
Message-ID: <9ac40199-8d4a-206d-4081-a6057e357405@SystematicSw.ab.ca>
Date: Mon, 28 Oct 2019 18:03:20 -0600
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0
MIME-Version: 1.0
In-Reply-To: <1185423087.20191028202914@yandex.ru>
X-IsSubscribed: yes

On 2019-10-28 11:29, Andrey Repin wrote:
>>> You aren't running Cygwin Cygserver and I don't see your nsswitch setup.
>> I have the default nsswitch - This is my configuration:
>> # /etc/nsswitch.conf
>> #
>> #    This file is read once by the first process in a Cygwin process tree.
>> #    To pick up changes, restart all Cygwin processes.  For a description
>> #    see https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch
>> #
>> # Defaults:
>> # passwd:   files db
>> # group:    files db
>> # db_enum:  cache builtin
>> # db_home:  /home/%U
>> # db_shell: /bin/bash
>> # db_gecos: <empty>
> That should be sufficient for most use cases.

>> Why do I need cygserver?
> You don't exactly NEED cygserver. But if you have
> 1. Domain (or even multi-domain) environment.
> 2. and/or remote/slow/flaky connection to the domain server.
> cygserver may provide a smoother experience as it caches some information
> related to names resolution.

Running cygserver will also cache info and speed up processing if you run many:

- service daemons under Cygwin, especially cron jobs or ssh sessions
- concurrent processes, especially deeply nested, forked, or background
  (some cron jobs background subprocesses *heavily* to reduce run time)
- XSI IPC message queues
- semaphores
- shared memory segments

otherwise that has to be managed by either the process itself or the root parent
process, possibly in parallel threads.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019