DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 47V2ZYBv4087717 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=jwdo14Mr X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 35E113864800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1725071732; bh=IIUXxZCtpd69yrAwG5xWe/nfzXxC/PmU37SQpGIaN54=; h=Date:To:Cc:Subject:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=jwdo14MrW+wFH9yxF4K6O9abYNry2UihctsQatIDb0VpPtTWN2gYvDjUwJswQklx3 5IRG8FJhueD4P6/ygte51koPFIPh2yb8MYzoaCS7INGM/DZ+GR8DSzww529XX3BX74 ewaOG/D2Ysc9Jw7dnWTmiVY0G9DBYU76V7KWQ+R8= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 53E0D384F032 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 53E0D384F032 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1725071596; cv=none; b=eMQg7wM5VB46YkoU6QYA4aS0a4xTi2uUK6TV+swipNUFqPNKLyxbhy3NMfKojGXuYDggIy1ZenRB6DdK0ZLdJ6ebPS50/1vub4GwhUcToOh276c2Bn6UCexBYWHKC2NkLWB/PANfymG7hg/CaaRzQMk2jJcM3vTTj3NFIDn1PC0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1725071596; c=relaxed/simple; bh=R4S1z6wMbThg/c9bFP+cbUsa3Ffhzp5K9c+xz8G94bc=; h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature; b=n213BQ3X6pi4EvsM6szwIFfyYFD0bQ+GyUSODLOhKt6Y8j9I2WyQoK/mn0oteDPHA5E1OhFdLjFun2sPwEClIE0w4L5hpALVY2ocy/NBhGZ/sEogtyyK6WB6QzW+k8mhw/RUTcXAN8QtREv1AvsEcqUCVLEEfzkIioOP26fAAAs= ARC-Authentication-Results: i=1; server2.sourceware.org Date: Sat, 31 Aug 2024 11:33:03 +0900 To: cygwin AT cygwin DOT com Cc: Adamyg Mob Subject: Re: cygwin application on MsTerminal, enabling win32-raw-mode results in runway memory/CPU usage. Message-Id: <20240831113303.4e8b51e03796e2fedc3cb79d@nifty.ne.jp> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, 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-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Takashi Yano via Cygwin Reply-To: Takashi Yano Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" 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 -- 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