delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/08/31/04:10:31

DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 47V8ATr84180287
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=LLCPN886
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AF6423865487
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1725091827;
bh=AddK30SQcX/C5ECHrDjb50HnjfY2B6lyPJhwy8JjA9A=;
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=LLCPN886A8exxbVRYlPVbTCoDul+IZzWqItM0m0efdGOICE5F7aq1wMGSxwQqsOho
OS9yfphzjXpzlQQESviU08WLa8DhkRA2OSSTa16r/quzpvN5d7hYcoKI7ppPlhCVUn
R1hfyaIcyCrFQgnu0eWZYsRF4Ok1o8TbeAPPPiaE=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3CC773858420
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3CC773858420
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1725091771; cv=none;
b=G6QKwjuNyMCf9z2NzfaiPrk5hCIH7wrBfPnOWLTeCGwSXyoypAAOiQwLVQA8UWa1hHq3KJu+bozfoym3uKMH3bcRdqURWr+Sw4Q9YnFUIU3C9WKCRJlfqFw0fs5tys/et5FMMbVPb952gbtdrO2/guFgPvzTGXihygSVbDDMsqU=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1725091771; c=relaxed/simple;
bh=2Ixr/i99j2xRgs1ABLJz7h8q58/wzCf8Xa70ssM0KAM=;
h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature;
b=Ov4pWjgiPBbwSKiDJBdnrurxXhNbVppD59/UvVlX2BR8nHpCjRf6rPraHtQHS4q/EX6uGs8vR5jxggSQj23sLIHrDhGzurU1XBqRcvktyIjY4JdQVjN/pBcTPRsaPLsOYHhGs6NKsisCUEhgUTv8CUGke2UQ66QiuRc8cFckikg=
ARC-Authentication-Results: i=1; server2.sourceware.org
Date: Sat, 31 Aug 2024 17:08:21 +0900
To: cygwin AT cygwin DOT com
Cc: Adamyg Mob <adamyg DOT mob AT gmail DOT com>
Subject: Re: cygwin application on MsTerminal, enabling win32-raw-mode
results in runway memory/CPU usage.
Message-Id: <20240831170821.a54029ae89efc8f5d082156d@nifty.ne.jp>
In-Reply-To: <CAEo=LZ8Szmr8e9MU3_CgOWjv0vYVNim-=Zjro6HEfXeTZYYbuw@mail.gmail.com>
References: <CAEo=LZ_0BzEDAd7Tb_CgfjX=ZJ2E59pN4a2XOE7wuf=kS_89+w AT mail DOT gmail DOT com>
<20240831113303 DOT 4e8b51e03796e2fedc3cb79d AT nifty DOT ne DOT jp>
<CAEo=LZ9aqvmKW+K6YQWMKFePyG5vNvjUqCvfKzkwacbT7prCDA AT mail DOT gmail DOT com>
<20240831142004 DOT 2537636bb9f474db1e903604 AT nifty DOT ne DOT jp>
<CAEo=LZ8Szmr8e9MU3_CgOWjv0vYVNim-=Zjro6HEfXeTZYYbuw AT mail DOT gmail DOT com>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, 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
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Takashi Yano via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

On Sat, 31 Aug 2024 14:57:07 +0800
Adamyg Mob wrote:
> I raised the same question under:
> https://github.com/microsoft/terminal/issues/17824

Thanks!

> *cons_master_thread() should *possibly maintain a local key cache and not
> push back events.

This needs much modification for the cygwin console code because
the local key cache should be able to access from other process
running in the same console. This needs inter-process-communication
or shared memory.

> Alternatively, from research these pseudo key events have Vk=0/Sc=0 values
> (only char and down are set);  as such peek the console input queue and
> don't process the input stream if detected.

Another simple solution is disabling cons_master_thread in win32-input-mode.
The signalling keys such as Ctrl-C, Ctrl-Z etc. never comes anyway in that
mode.

Now I'm testing this solution.

-- 
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019