DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 47V5L6rn4134767 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=qOZDcX43 X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5B9D93865464 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1725081664; bh=BMO7AuJIJdx+yhmOpwYZScNLHs0UeKK6+HJiLECPWKw=; 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=qOZDcX43eyN3+XRhNBpl7gNTgSNAXLEUx9S1/vbLZlDIbrCnmWmOroe1F3V6pkuJl 4qOVLjfOL/GPM9XJoypCaZm8dtN+KWn0syV1M4kVvblGVslV5nUgKBXWz4r7ezRGxG tz/WsL/NHQkhPo86TUNh+tJK4/+j3boDNTw9QjbU= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E6FBD3858420 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E6FBD3858420 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1725081612; cv=none; b=AD0+9XxqDonA7JkD7OUplTCK8VddbNgByLYjp7q1VY/Cgc7MWE18EXoVrapf5glkJTT1fU8NqDKVl0Lu/isYN0OvKsN3Em+8HPT2LebPj+mt8VetoMyTog/pk5g1KXJL/FftP7zWyIC4ZI64I5T+rQm1SxdjlVwH7+TemblR0l8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1725081612; c=relaxed/simple; bh=fNPXr87Mgm2c8+PEb61Q5fRCIBM1MI5ds2KB9WP+7HE=; h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature; b=NW29LnwPOGsozUta/q41W5VlSVyePa9myU8ymdoAxYzrVvieBTzwOOpYY2GDPi6n7YfQtx1uWVT2oJb+2rSw5CEoFhXdm6dlA1u598ZODFYxgzyDxWGxwbzJpEVyqwdGR7C8j4yolXJBbgQMvpo/H2ACs/yavf2DKVVmErwlODc= ARC-Authentication-Results: i=1; server2.sourceware.org Date: Sat, 31 Aug 2024 14:20:04 +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: <20240831142004.2537636bb9f474db1e903604@nifty.ne.jp> In-Reply-To: References: <20240831113303 DOT 4e8b51e03796e2fedc3cb79d AT nifty DOT ne DOT jp> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 X-Spam-Status: No, score=-4.9 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" Thanks for the pointer. Unfortunately, the document does not mention about the behaviour of WriteConsoleInput() in the win32-inpu-mode. I expected that ReadConsoleInput() returns the INPUT_RECORDS which WriteConsoleInput() sends. However, that does not seem true in this mode. On Sat, 31 Aug 2024 12:24:46 +0800 Adamyg Mob wrote: > *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? There is no other means than modifying the source code of cygwin1.dll and rebuild it. I already tried that and the problem disappeard. -- 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