public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: cygwin@cygwin.com
Cc: Orgad Shaneh <orgads@gmail.com>
Subject: Re: Console output hangs in the middle of a line
Date: Sun, 20 Feb 2022 23:22:07 +0900	[thread overview]
Message-ID: <20220220232207.b7fc5f99b324b3e3be95c686@nifty.ne.jp> (raw)
In-Reply-To: <CAGHpTB+firxVjPVjHx9UJ6G4n+fKCXx+z4yt7yqR91WxAGTPgw@mail.gmail.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.yano@nifty.ne.jp>

  reply	other threads:[~2022-02-20 14:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-16  9:49 Orgad Shaneh
2022-02-16  9:59 ` Takashi Yano
2022-02-16 10:01   ` Takashi Yano
2022-02-20 11:43 ` Orgad Shaneh
2022-02-20 13:37   ` Takashi Yano
2022-02-20 13:43     ` Takashi Yano
2022-02-20 13:48     ` Takashi Yano
2022-02-20 13:51     ` Orgad Shaneh
2022-02-20 14:22       ` Takashi Yano [this message]
2022-02-20 14:34         ` Takashi Yano
2022-02-20 14:42           ` Orgad Shaneh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220220232207.b7fc5f99b324b3e3be95c686@nifty.ne.jp \
    --to=takashi.yano@nifty.ne.jp \
    --cc=cygwin@cygwin.com \
    --cc=orgads@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).