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

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 B620E3858D35
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=Nzc5OVCeTKExo9EPGqqwQwR+0c14X9EUD6/VJcsmSCM=;
b=j26W+qGFzw1tCk72WtxyWKor9gAL0R5Zzdxuv3f7wlu4tGHqbTuSlZJy2S4TefnLFO
ua1UNjOiQF1JD2jJWp4kC+SYCCIuCq83NJ/q6ZMVkclVdmx2WyALzaoCB1tRGpLXu93X
GZ0SWZxPimdqZMYT9In8smcfn4YCb3Ctf5vE9Nc1o7NshQAKBQW26AzLbYrJ2BV07bPQ
ptHloVLqVF3klyNat0YSECD5DWPEFT8TqF4R3EgY/FzXVEybRr4cM9PAW55h2Nc/tUUv
ZswWHxk6iNo/fkUoKvUYZgDG2DtWQ0XWU2sepUjrTxx3uS8tqnwdK6teXG/QMh+j2rKm
pUVw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=Nzc5OVCeTKExo9EPGqqwQwR+0c14X9EUD6/VJcsmSCM=;
b=Fb9fAbsIbSJVhLy4fTJuy15XZQINM7Afj5PLMNcglhqpEtk3lQ2mqJdpLN3yT5RkRL
YD5iu5eqwgamo/rgCrUo49TPV8Zy+0Ptc7ouRIy5NEAWK9nb3kqmnFdW9F8thMt/jL78
wMdDadnUAMjq/jkkQXTVpNQuWAOUlamw+pZ9z7+G6cdlWkI4S2zdA6QF6QsBnslXdVvm
UR6os/Mb1Vb/3dhMNFb3BqF73w23wnt13TbF/W719Y4ybkyoO0/N+g03CV6FhdeBXkdU
Or9ZCtcX2697hA5f6wZEglBE1h8jzmAvADOyBJeneH/S+VwOAKH+IiPOQTKCdvG7nH0u
g9Wg==
X-Gm-Message-State: AOAM533dQsxAl98YwOXkq2qzveQ20arrK01zlnDY8vrqVw7VMpBByqVm
qgX8xz5W01Zmz/HPELCngiOoC9E0OhV88BMz/vudCp+0qGsrUw==
X-Google-Smtp-Source: ABdhPJwXRgo0kQc4EFg44zLJC7D1bCh5zebdsFG/m6hfwyCNDd4eRrTeKEleA5TcsSglC6FQgvy2Dhn2c86zD6UCYWM=
X-Received: by 2002:a05:6e02:2168:b0:2c1:a436:d18c with SMTP id
s8-20020a056e02216800b002c1a436d18cmr9814644ilv.49.1645357423927; Sun, 20 Feb
2022 03:43:43 -0800 (PST)
MIME-Version: 1.0
References: <CAGHpTBJ1JHS5=3WBNjkRP3f8i2gqQPRU7Kv6jj9gTj1Nc3BrcQ AT mail DOT gmail DOT com>
In-Reply-To: <CAGHpTBJ1JHS5=3WBNjkRP3f8i2gqQPRU7Kv6jj9gTj1Nc3BrcQ@mail.gmail.com>
From: Orgad Shaneh <orgads AT gmail DOT com>
Date: Sun, 20 Feb 2022 13:43:33 +0200
Message-ID: <CAGHpTBKXJ0kPugus36m0Mg55y=Ephd7KJNWV-xgyzNxEdAP6zg@mail.gmail.com>
Subject: Re: Console output hangs in the middle of a line
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, 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-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>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

Hi and thanks for replying.

On Wed, 16 Feb 2022 12:01:07 +0200
Takashi Yano wrote:
> On Wed, 16 Feb 2022 18:59:05 +0900
> Takashi Yano wrote:
> > On Wed, 16 Feb 2022 11:49:36 +0200
> > Orgad Shaneh wrote:
> > > I'm using cygwin runtime 3.3.4-2. CYGWIN env variable is empty.
> > > Running in Windows Terminal.
> > >
> > > When I run git clean -dfx on a Node.JS project, which has huge
> > > node_modules directories, that produces a lot of output in high rate,
> > > the console seems to freeze for very long in the middle of a line, and
> > > continues after a while. If I get it correctly, the writes are done in
> > > 4K chunks, freezing for a few seconds after each chunk.
> > >
> > > The output looks more or less like this:
> > >
> > > Removing common/auth.js
> > > Removing common/auth.js.map
> > > ...
> > > Removing common/bar.js
> > > Removing common/bar.js.map
> > > Remo<freeze for about 20s after 4K bytes>
> > > ving common/foo.js  (continued on the same line)
> > > Removing common/foo.js.map
> > > ...
> > > etc.
> > >
> > > No output was lost.
> > >
> > > Is this a known issue?
> >
> > Could you please provide reproducible steps for the issue?

mkdir -p chunked
cd chunked
git init
mkdir -p abc/def/ghi/jkl def
cd abc/def/ghi/jkl
touch foo
git add foo
seq 1 1000 | xargs touch
cd ../../../../def
seq 1 10000 | xargs touch
cd ..
git clean -dfx

Notice that the long operation of cleaning def (that only writes a
single line) is not printed immediately. The output here looks like
this:
Removing abc/def/ghi/jkl/1
Removing abc/def/ghi/jkl/10
Removing abc/def/ghi/jkl/100
Removing abc/def/ghi/jkl/1000
Removing abc/def/ghi/jkl/101
Removing abc/def/ghi/jkl/102
...
Removing abc/def/ghi/jkl/991
Removing ab<hangs>
c/def/ghi/jkl/992
Removing abc/def/ghi/jkl/993
Removing abc/def/ghi/jkl/994
Removing abc/def/ghi/jkl/995
Removing abc/def/ghi/jkl/996
Removing abc/def/ghi/jkl/997
Removing abc/def/ghi/jkl/998
Removing abc/def/ghi/jkl/999
Removing def/

> And, also please check if this issue occurs in command prompt?
> (I mean not in Windows Terminal, but cmd.exe.)

It does.

Please include me when replying. I'm not registered to the mailing list.

- Orgad

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