DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 47V4Q3PD4118536
Authentication-Results: delorie.com;
	dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=LgHjarnu
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3B3E5384CB8E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1725078361;
	bh=LY20KLTh+/udgXVrDllKQLmb0TzvbAdwQ4dZtYL7AHE=;
	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=LgHjarnuh5PlEmTRyAqzYuKm57DP3NaL6hW8LO3ODZrPWFHc+atLhEvmvk2EwqQGP
	 Jrs1AD/IhkI1iEQx9FuaHtjoXm8efgDSlb0P44TxzsUhvA7TFlcicW9nl2P7DXei6t
	 6xsmOZj4RMAlbI1tgRfjD28YiKeBigXDYlCPH5Lg=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9B7FB3858420
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9B7FB3858420
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1725078302; cv=none;
 b=vV+HESzbevDwBzjQcAKbxEStzX7rjWsyvbTMOx7Tuu9LS+ahJHzwYaOgJK2jbhfqMKlrhbV2MdR/Lp6Ml4Ut/1IRVbu0Jl4qagtzF2FasC9vtPvEJmBckboAfhqXo9zx5CiBllnxuM5J5HNVPLPWyUWLx80tt/w5TrKisjI/xQk=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1725078302; c=relaxed/simple;
 bh=v25mL/Ha+2/5m/u36jeTXGI3asGo4rqf7vlVGPDgky4=;
 h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
 b=T5hm/pRbT9BQYkP3LvNH4fpT35fT/sjfl6JBliwgJ2G7y8bVVn7tAayEONg70wRZFM2CkyXuPqER2XBCUETfH/WDy6X/jHV9pol8IVRziAy+ahGTahLORCTpJnEc46/OUlRWNk0Okfsh6EMNs6Nh5q25ChxPjJtbhtGzAYWLwho=
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=1725078298; x=1725683098;
 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=MR97LBmhmLv9qxSLGv/1Yf/1c4T1CkCCGLhQaejNaFI=;
 b=NgHBUayYqYz0z/WHR/76ureCPpy1BnmuJwPoDmmcSKeUrYh68Ic3EDcXebWeN7Xz6P
 qjHOxK+ASnIXFgOedIW6NQbFchVQPBLx+uIhwobhKh776eMHXJqwNKEQQkqrGf10afI2
 1CnDk31/SaxCL9GKFAYE7/CI91ukd3VwL3Ed5AhjsDkvKG6ArIQvDkrpO4tJLjpJtNYl
 deF41yZSmb/6bMXhc2Etx+MGofJapHSeWAA9olrM01VQ0j2kt3YZa8C6j4oIGIaKP2ur
 LoC015AwnY9QNYKVBnem7khl2pRGmfeg9IWbLHi8XQCfQ8uSC58RpF3UCqFpyZ81bMxm
 B/Uw==
X-Gm-Message-State: AOJu0YwILq4agSq8BJ73voC0weisFzqOtcOKpZ+GPEwnACBcpO43k3F+
 t1AlKS67LkhpE+UlZ8ke7Edts5/t+TigvQkpt07e6TyqTGjebTP8yud5354wzgXJUTaBVgJMkGn
 YajrsExKJwGwdWidGIGyf5R9q4QSlIFA+
X-Google-Smtp-Source: AGHT+IFdvju9b749YB86s0Hn8NZiMYAsJWfQXCC+1TAl6F1B4DBVFeFKmnsA8gc7oPqR6CoKtr0REcSkInVZyl72NGE=
X-Received: by 2002:a17:907:720a:b0:a86:82e2:8c64 with SMTP id
 a640c23a62f3a-a897f8e2bb0mr682364166b.35.1725078298147; Fri, 30 Aug 2024
 21:24:58 -0700 (PDT)
MIME-Version: 1.0
References: <CAEo=LZ_0BzEDAd7Tb_CgfjX=ZJ2E59pN4a2XOE7wuf=kS_89+w@mail.gmail.com>
 <20240831113303.4e8b51e03796e2fedc3cb79d@nifty.ne.jp>
In-Reply-To: <20240831113303.4e8b51e03796e2fedc3cb79d@nifty.ne.jp>
Date: Sat, 31 Aug 2024 12:24:46 +0800
Message-ID: <CAEo=LZ9aqvmKW+K6YQWMKFePyG5vNvjUqCvfKzkwacbT7prCDA@mail.gmail.com>
Subject: Re: cygwin application on MsTerminal, enabling win32-raw-mode results
 in runway memory/CPU usage.
To: Takashi Yano <takashi.yano@nifty.ne.jp>
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,
 T_SCC_BODY_TEXT_LINE 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: Adamyg Mob via Cygwin <cygwin@cygwin.com>
Reply-To: Adamyg Mob <adamyg.mob@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 47V4Q3PD4118536

 *One suspect is the fhandler_console::cons_master_thread (), which
attempts to mine signals within the input stream; yet it may not handle a
single key being represented by multiple events.*; furthermore one of the
few uses of WriteConsoleInput
Is there any means of disabling the feature for testing?

Interface details can be under:
https://github.com/microsoft/terminal/blob/main/doc/specs/%234999%20-%20Improved%20keyboard%20handling%20in%20Conpty.md

On Sat, Aug 31, 2024 at 10:33 AM Takashi Yano <takashi.yano@nifty.ne.jp>
wrote:

> On Fri, 30 Aug 2024 19:56:34 +0800
> Adamyg Mob wrote:
> >  Cygwin: CYGWIN_NT-10.0-19045 WEED3 3.5.4-1.x86_64 2024-08-25 16:52 UTC
> > x86_64 Cygwin
> > Windows Terminal version:  1.20.11781.0
> > Windows build number: 10.0.19045.4780
> >
> > When running a cygwin64 based terminal application under a MsTerminal
> > session, with win32-raw-mode "\033[?9001h" enabled,
> > after brief input in the application becoming unresponsive and the
> session
> > rapidly consumes all available memory/cpu..
> >
> > Test application attached, plus ticket
> > https://github.com/microsoft/terminal/issues/17824 contains additional
> > information.
>
> Thanks for the report.
>
> Are there any documents for win32-raw-mode "\033[?9001h" ?
>
> I am very puzzled with that WriteConsoleInput() with one event
> generates ~15 input events for ReadConsoleInput() in this mode.
>
> --
> Takashi Yano <takashi.yano@nifty.ne.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

