delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/05/29/05:22:47

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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=oqEmqSEwTNXrpEF0jsox9ItZZ1VyGZub5qfBwxV0Rds
Zr/lylUg6h0a/idQ/EhOrNVSdFTj8wp2+uLjkW26WCUEgj42aBJjDKepkkpby0U7
npc/Qb1vG1dUh0trufGI48fd37Mb372159puLPyQL2IB+RvB5OFoAAPG6kGg1yGU
=
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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=opEtDc3P5R13xx9WGg7kT78k39U=; b=UpZW1lYJkEJQOBaXh
liyGhG9B42RzZVFYJBNKqy17f9UEoxZigYJNiZtEyFkW2wFpeJ9vnCaTyAL61/KT
h27u6t2DY4Prtv1SaiJpBzvoIfMlYlpusw2dxbkqFYyhCHQu/yONkmGJforQiiHo
ymcL2fNQLLNfWOTl3rJOiIaRMw=
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-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=traced, networking, Parameters, traffic
X-HELO: Ishtar.sc.tlinx.org
Message-ID: <592BE84A.6040400@tlinx.org>
Date: Mon, 29 May 2017 02:22:18 -0700
From: L A Walsh <cygwin AT tlinx DOT org>
User-Agent: Thunderbird
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: 5 seconds to update link info? (cause found)
References: <9810467454 DOT 20170520003732 AT yandex DOT ru>
In-Reply-To: <9810467454.20170520003732@yandex.ru>
X-IsSubscribed: yes

Andrey Repin wrote:
> When executed this oneliner over Samba 4.3 network share, it takes 5 seconds
> to match the newly created hardlink.
> I'm wondering if this is Cygwin, Samba or Windows networking issue?
>   

====
BTW -- found the cause of this:
   Under:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanWorkstation\Parameters


There are 3 values to control cache lifetime.

FileInfoCacheLifetime (default 10 seconds)
FileNotFoundCacheLifetime (default 5 seconds)
DirectoryCacheLifetime (default 10 seconds)

The FileNotFoundCacheLifetime looks to be the culprit -- since
when I traced the ethernet traffic with wireshark, I would see
multiple responses of 'notfound' before it finally showed up.

I reset my 5-second value to 3, and your script passed over
its value in 3 seconds after that...

You might have to reboot your machine to ensure the value gets
propegated to the LANmanworkstation client.


There are other ways, but none that reliable.






--
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