From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by sourceware.org (Postfix) with ESMTPS id 42F593858D39 for ; Tue, 9 Apr 2024 18:56:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 42F593858D39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 42F593858D39 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::102b 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 Received: by mail-pj1-x102b.google.com with SMTP id 98e67ed59e1d1-2a5215314a4so1646647a91.0 for ; Tue, 09 Apr 2024 11:56:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712688974; x=1713293774; darn=cygwin.com; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Klb1OmAJo60vfPVaKKxiMVI/qb69d4hT4ryhA1wCYYY=; b=F7s/stNSsbw0dl2D+2lVEMRdLWcvYecfUFdboO5ArAhM9EORlj7khQOaBo4+TSsbGo c321nTawOaHPq6KyAx+i8HqWI+zTf3PQKZNNERFg9knvHt7BWGSjngSa419sIF7KmQFQ 62c/75DAUsM+XETxnRXZ77ZZmBQuxIzSlnNgA8RC2A0KXF4rbEgvL3uUqfyqx3k6wvdy mBg+H53EGIXOBEc/nrwSUNNmP7T86ypKn73FxF8/wPc02TcI+LUYcGrzWpz3gbOPRizf +tdpdgZcl8v3m1rL3SdjvurzcHg62ztlxqocV5BE4q5DCkLhT9QsjdD0OhJk84CexX/x yL5A== 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: In-Reply-To: From: J M Date: Tue, 9 Apr 2024 20:56:01 +0200 Message-ID: Subject: Re: Cygwin a bit slow To: Adam Dinwoodie Cc: cygwin@cygwin.com Content-Type: multipart/alternative; boundary="000000000000e7e6930615ae79c4" 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 List-Id: --000000000000e7e6930615ae79c4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 escribi=C3= =B3: > 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 =E2=80=93 > including WSL =E2=80=93 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 > --000000000000e7e6930615ae79c4--