X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 015A53857C4F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1712689027;
	bh=vll9sY7nPk64KwxhRL3cAsB80kIA/4JZs7lK8GMqowI=;
	h=References:In-Reply-To:Date:Subject:To:Cc:List-Id:
	 List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
	 From:Reply-To:From;
	b=xuQSJYEpCpIjzP62PdCODeNfTQoM7sCKAuiHoWM7ZfqqM+sAulkaIbvymrsJ06gif
	 lsisDgc8zqxIf4or32mpfJNjuscX4G6vBAA9qDl6NaZ0mOOhylcevzLS7az6jC6n2o
	 POCOfi+oT9jES8u4W+O2CdrFym4D3Trd3m6FjxwE=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 42F593858D39
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 42F593858D39
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712688977; cv=none;
 b=JcyVpv71ZCWTPuiEpcHZiaXInJeORDncxi/toG+JzDVhuwKw8P3f1d6jP/C02hoBTIKBkbTXu9x1buxu+nUhQ+sOu70RfbQPmkmMoMQz5ob2fMEGbchINWwP/+p3g5g/RPoQoUKGzOIYzZbJQG+i6X/1GwXHnEfynypEybgH6tY=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1712688977; c=relaxed/simple;
 bh=Klb1OmAJo60vfPVaKKxiMVI/qb69d4hT4ryhA1wCYYY=;
 h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
 b=vHXGj2nm+WDT0FTADpuP9CAJmf7xUP2nnkOxuYI/4823YDrBWNiCf97qNnmHvDIG488st+DwF80z/zSVPygpYuPFQ57uYKkrEX03Ftto0PjnxonEU/aelGCi3J1edKZeIpn0dwjYb4HVvYi15pZX6ZyRWLEf289yZa/TYD7FiXo=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1712688974; x=1713293774;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=Klb1OmAJo60vfPVaKKxiMVI/qb69d4hT4ryhA1wCYYY=;
 b=H1VMG0nDD58yT9j38nYy9pnP+9FrKuT44YLcmLbgx8x6EerZm5+pNNfkRFveItsP4j
 qsI2BPG51ase+1HLOLfIq6Ptocw+LA10fhPXq9L0mqUnCTxPfLWZ6C29vcZpriuLao6q
 18Ci0/ExJNmJBgEMkvXN3VIs0LiIr5MiDTo2BlB1ApnaLByaYW8vxNJnTRH5ZsgCdXk6
 ZBfmb0imxAmYhnZxOQc1k9unftV31OWk2MmyAhiaNJPJHla8fwsZMTkWcVjCta67HVGr
 S8XQvGv20/nFZj7yMIV761CYvg1g35oFynlKVL7FV2uH+0+qopK38LrbLKiWLLFfbFvX
 TGMw==
X-Gm-Message-State: AOJu0YyjoYA7HhY+7OizW75R/qRWlscc7+a2/XhmkUiPGiQiXn2sdXy6
 TrCimkyXbDI/XLT0fHHto+vWiPj6wIMm+28Kk304EynAFfuPbYagHh91mYqcIwdZ4JJWn9Q6XOV
 tDOZIywW3c/3qijKbEcxtdlQesuCRAA+dFiQX7g==
X-Google-Smtp-Source: AGHT+IGa8/c/bm0q53TiF1tPw9GkYHK9UQkaw3jL4D4FmMEFIuIHaQ+dX8aIWqg7XgdIeWwrKJKpJFPWYOxk58pEeQg=
X-Received: by 2002:a17:90a:c205:b0:2a2:a889:c2d8 with SMTP id
 e5-20020a17090ac20500b002a2a889c2d8mr504141pjt.32.1712688973994; Tue, 09 Apr
 2024 11:56:13 -0700 (PDT)
MIME-Version: 1.0
References: <CAL8MddUVziE5+10=dANw_H8ySJRvhj-wZ857YqkcudmTZbJe+w@mail.gmail.com>
 <CA+kUOakQhTnCLdkhBCtiRn+G+0K4nQ-UCYN65044+D_OMsqfGg@mail.gmail.com>
In-Reply-To: <CA+kUOakQhTnCLdkhBCtiRn+G+0K4nQ-UCYN65044+D_OMsqfGg@mail.gmail.com>
Date: Tue, 9 Apr 2024 20:56:01 +0200
Message-ID: <CAL8MddWSvE8JHMSLzosREvWvzrJGGEEDi0cCQprL05SMGSsPqg@mail.gmail.com>
Subject: Re: Cygwin a bit slow
To: Adam Dinwoodie <adam@dinwoodie.org>
Cc: cygwin@cygwin.com
X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE,
 RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
 TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
 server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.30
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: J M via Cygwin <cygwin@cygwin.com>
Reply-To: J M <cesarjorgemartinez@gmail.com>
Content-Type: text/plain; charset="utf-8"
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 439Iv9d8609012

Hi Adam,

It would be nice to contribute, although my knowledge is not high, I could
review problems and try things.

There are two things that are difficult for me. One is to search the Cygwin
Archives, you could have a way to search for them directly on the Cygwin
website. And another is to have powerful tools to look for problems and a
FAQ where they can explain their use in detail (windows and linux tools).

I think it's not all problems in Cygwin, many times they are conflicts with
other software (antivirus is one).


Specifically for this problem, I have investigated the problem and can be
related to pipes and antivirus.

Specifically
while true
do
echo ABC | grep AAA
done

It makes the cpu of that antivirus go up.

I have seen that the pipes make use of \??\pipe routes which I have seen at
https://cygwin.com/cygwin-ug-net/using.html

I have it configured to exclude c:\cygwin64 and perhaps those paths of
those pipes are having effects in that other software.

By now this...

Regards


El lun., 8 abr. 2024 21:48, Adam Dinwoodie <adam@dinwoodie.org> escribió:

> On Fri, 5 Apr 2024 at 16:19, J M via Cygwin wrote:
> >
> > Hi,
> >
> > I'm seeing that Cygwin is a bit slow, directly and after comparing to
> > simple ubuntu virtual machines by example.
> >
> > Specifically:
> >
> > - Copy and paste texts in vim, I see clearly the slow in paste.
> > - Using sed and/or grep that count approx. between 6x and 8x respect to
> > virtual machine simple ubuntu.
> > - In general multiple bash commands are slower.
> >
> > Can you analyze this?
> >
> > I'm use the last updated Windows 11 and a fresh Cygwin.
>
> This is expected. Cygwin runs as a compatibility layer between Windows
> and the POSIX applications, and that compatibility layer has
> significant performance overheads. Running in a virtual machine –
> including WSL – has far fewer of those overheads, at the expense of
> requiring a complete separate operating system, all the virtualisation
> infrastructure, and poorer access to the Windows OS.
>
> There is clearly a trade-off here, and for a lot of folk who would
> have used Cygwin in the past, WSL is going to be a better choice:
> those disadvantages are much less relevant than they were five or ten
> years ago. Obviously, if you have ideas for how to improve Cygwin
> performance, the project is always looking for volunteers; there's
> more information at https://cygwin.com/contrib.html.
>
> HTH
>
> Adam
>

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

