delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/02/20/09:23:31

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DC6293858D39
Authentication-Results: sourceware.org;
dmarc=fail (p=none dis=none) header.from=nifty.ne.jp
Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp
DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com 21KEM4t7012826
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp;
s=dec2015msa; t=1645366925;
bh=qJ56KZJXIgo64/ZSUoXd5+Bsa4eKFzGIT0NFAGA0dj4=;
h=Date:From:To:Cc:Subject:In-Reply-To:References:From;
b=RGR8YV0AGqd4q5s0quww3Oc+VwUavzouOeA8xwUcosx3HUhCal4CaIcK/ml6zBBjx
hnhXubGzVkj8Wbv6sDKfPAut/JsYo2G/zKkSf7Yfi6ugOSQ84oDKjl2uixUF5tofbX
7CVrlH46YoS2dNcJ856FXT+fOBeEyW1gmM+opkQ7o/+G4eWSYUp4+iCird4cIXer7K
1ASSmps7BK22vfKlUguRr+qgRwg0HZljNDV+DjHZq2gkJ15w99IQlq8/ZkvlaF+WRK
nt1x0NUx3zy9Avj7Xgu2NJTOEzi7Cvi8k9qejQsPPDEhkhrjEFAab6E/q0QyvCw9nj
3EkFTCA675HRQ==
X-Nifty-SrcIP: [119.150.36.16]
Date: Sun, 20 Feb 2022 23:22:07 +0900
From: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
To: cygwin AT cygwin DOT com
Subject: Re: Console output hangs in the middle of a line
Message-Id: <20220220232207.b7fc5f99b324b3e3be95c686@nifty.ne.jp>
In-Reply-To: <CAGHpTB+firxVjPVjHx9UJ6G4n+fKCXx+z4yt7yqR91WxAGTPgw@mail.gmail.com>
References: <CAGHpTBJ1JHS5=3WBNjkRP3f8i2gqQPRU7Kv6jj9gTj1Nc3BrcQ AT mail DOT gmail DOT com>
<CAGHpTBKXJ0kPugus36m0Mg55y=Ephd7KJNWV-xgyzNxEdAP6zg AT mail DOT gmail DOT com>
<20220220223751 DOT c3434a059a5b54861f54ff1f AT nifty DOT ne DOT jp>
<CAGHpTB+firxVjPVjHx9UJ6G4n+fKCXx+z4yt7yqR91WxAGTPgw AT mail DOT gmail DOT com>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Cc: Orgad Shaneh <orgads AT gmail DOT com>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On Sun, 20 Feb 2022 15:51:11 +0200
Orgad Shaneh wrote:
> Turns out I was using Git for Windows and not the cygwin release.

I have tested using Git-for-windows (git version 2.34.1.vfs.0.0).

With
seq 1 1000 | xargs touch

real    0m1.812s
user    0m0.015s
sys     0m0.031s

With
seq 1 10000 | xargs touch

real    0m3.666s
user    0m0.000s
sys     0m0.000s

It seems that it may hang for about 1 sec at the line
Removing abc/def/ghi/jkl/991
Removing ab<hangs 1sec>
before
Removing def/
line.

With
seq 1 10000 | xargs touch
the short hang is here:
Removing abc/def/ghi/jkl/9878
Removing abc/def/ghi/jkl<hangs 1sec>

If the script

#!/bin/sh
mkdir -p chunked
cd chunked
/cygdrive/c/Program\ Files/Git/mingw64/bin/git init
mkdir -p abc/def/ghi/jkl def
cd abc/def/ghi/jkl
touch foo
/cygdrive/c/Program\ Files/Git/mingw64/bin/git add foo
seq 1 10000 | xargs touch
cd ../../../../def
seq 1 100000 | xargs touch
cd ..
time /cygdrive/c/Program\ Files/Git/mingw64/bin/git clean -dfx

is used, the hang here:
Removing abc/def/ghi/jkl/9878
Removing abc/def/ghi/jkl<hangs 15sec>
is more than 10sec.

It seems that removing def/ takes the time,
and the output stops before displying 
Removing abc/def/ghi/jkl/9879
[...]
Removing abc/def/ghi/jkl/9999

I guess the output is just buffered in somewhere
which is not flushed.

-- 
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>

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

- Raw text -


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