From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wIwkEbKURGBuOQAA0tVLHw (envelope-from ) for ; Sun, 07 Mar 2021 08:54:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id EELsDLKURGBqfgAAB5/wlQ (envelope-from ) for ; Sun, 07 Mar 2021 08:54:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A287F2A5A0 for ; Sun, 7 Mar 2021 09:54:09 +0100 (CET) Received: from localhost ([::1]:49296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIpAu-0001pG-Em for larch@yhetil.org; Sun, 07 Mar 2021 03:54:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43410) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIpAo-0001p6-BR for bug-guix@gnu.org; Sun, 07 Mar 2021 03:54:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55571) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lIpAo-0000qG-2w for bug-guix@gnu.org; Sun, 07 Mar 2021 03:54:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lIpAo-0005Gf-2M for bug-guix@gnu.org; Sun, 07 Mar 2021 03:54:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#46981: Severe Emacs shell mode performance regression in recent Linux-libre Resent-From: Bengt Richter Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 07 Mar 2021 08:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46981 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Mark H Weaver Received: via spool by 46981-submit@debbugs.gnu.org id=B46981.161510721820215 (code B ref 46981); Sun, 07 Mar 2021 08:54:02 +0000 Received: (at 46981) by debbugs.gnu.org; 7 Mar 2021 08:53:38 +0000 Received: from localhost ([127.0.0.1]:38884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIpAQ-0005Fz-JL for submit@debbugs.gnu.org; Sun, 07 Mar 2021 03:53:38 -0500 Received: from imta-36.everyone.net ([216.200.145.36]:37408 helo=imta-38.everyone.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIpAO-0005Fq-IG for 46981@debbugs.gnu.org; Sun, 07 Mar 2021 03:53:37 -0500 Received: from pps.filterd (omta002.sj2.proofpoint.com [127.0.0.1]) by imta-38.everyone.net (8.16.0.43/8.16.0.43) with SMTP id 1278nLSD000424; Sun, 7 Mar 2021 00:53:35 -0800 X-Eon-Originating-Account: nDU1nzGvAAPIuc4gO4-tcTNqmvHsovDy49Z43mVTbYc X-Eon-Dm: m0116293.ppops.net Received: by m0116293.mta.everyone.net (EON-AUTHRELAY2 - 5a81dc7b) id m0116293.603eb1d3.40916; Sun, 7 Mar 2021 00:53:34 -0800 X-Eon-Sig: AQMHrIJgRJSO9VQfowIAAAAC,c2155a4b734cc51d80aed1a498f8e9bc X-Eip: ERM6OVkjcGo2WmvF6nU59seZD4OPhnqOH3ARrovi-nM Date: Sun, 7 Mar 2021 09:53:25 +0100 From: Bengt Richter Message-ID: <20210307085325.GA4941@LionPure> References: <871rcr23wr.fsf@netris.org> <87czwbisfm.fsf@netris.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87czwbisfm.fsf@netris.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369, 18.0.761 definitions=2021-03-06_08:2021-03-03, 2021-03-06 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 malwarescore=0 lowpriorityscore=0 mlxlogscore=937 suspectscore=0 mlxscore=0 adultscore=0 spamscore=0 priorityscore=1501 bulkscore=0 impostorscore=0 clxscore=1034 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103070047 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Bengt Richter Cc: 46981@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615107249; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=Uepwqdf+HnPekgoju9I37gnR/30PS/V/eTfxjefOiAc=; b=QZz3mCfhSDS5f8UuzkwfZp03Y5jhDqKU95t8xyFdsgNDfsm/Dh71+QiWZLMoyTem/hdax9 tBqkmxP4AbDOt/rSAA0X+UdF01SmUtcFOEuV8JYuS50fcv7nxbgcS8Kmh4GvBm4RVOptEx I+Xo1gj8y4W420Ilrc1gfYicJ/+bjuKNBUi3iJhXkolHhv3a5OZda4ETE6qwBbtBCFsPIG A2kiGgo8H/yGCQ2Vwi5vO1NIExWNN9cML4+rms83zWaD6iR255HrniCH0DwKfIJQi1Prb+ f96I6Nc7N8inNG2QyyaD6JTNToBAbtAC4fzlbY8yl5s1U8q7TS5Dmo6KLgc8Ww== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615107249; a=rsa-sha256; cv=none; b=mdsEKC29gIVyCDRe7pg4Mwr6eNuMOxWChNwip0srz+9vByfHukPhFWZus4PSLYXUOabKuR M5WrJ2CISPy3whhOx5e9HbBTshUfCNrrQt2wtWgB0Z42tmeJ6GMg8FK0wHO7o0Hrlr8JDX C8/15l4+Pz1tPqdeDGBnpUnmqG0XUJYvn71Z6u+ZYBPz5x74Jw5SpZDv2+d44ER5tl/OIA Hw7EUOuBXvEjypQz2tOVAQDU1B/r6tVABoJ58PpopJx2RxJskBKZtjSwn4iOtej2koekNl bO1X/nsn9JJxn+nj6BvOdaa/ws724+Y8LpuZGoc1fxZspeRioI3/UPTeWGTiqw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.87 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: A287F2A5A0 X-Spam-Score: -1.87 X-Migadu-Scanner: scn1.migadu.com X-TUID: bafN3XH3JNeS Hi Mark, et? On +2021-03-06 21:54:42 -0500, Mark H Weaver wrote: > Mark H Weaver writes: > > > FYI, for those who use Emacs shell mode (M-x shell), I wanted to give a > > heads-up about a severe performance regression in Linux-libre 5.10.20, > > and I suspect the same regression exists in 5.11.3. > > > > For details, see the bug report I submitted to the Emacs developers, > > here: . > > I've since confirmed that reverting the two upstream commits mentioned > in fixes the performance regression. I've > attached a preliminary patch for Guix that reverts those upstream > commits for linux-libre@5.10, and which I've tested on my system. > > I guess that the same fix is also needed for linux-libre@5.11, but I've > not checked. I'll leave it to others to try applying the same reverts > to 5.11.3 if they wish, and to decide what (if anything) should be done > in Guix about this issue. > > Mark > > > Is the vt infrastructure that emacs uses to do Mx shell well virtualized so that e.g. a native wayland bash repl displaying tile could be plugged in? (if not, why not? :) Seems like an html-textarea-like wayland tile could be implemented to present the bash-stdout for emacs, and also capture it in a shm-pool for access by emacs as open file or mmap, to do its mode-dependent indenting and highlighting, then sending that to another text-area vt tile. Excuse the handwaving, but I think it could be done, from what I've read about wayland clients and servers. -- Regards, Bengt Richter PS. BTW: anybody thought about defining a wayland server to act as guix daemon? It already has async threadsafe event loop and manages access-isolated pools of memory, and you can define extended protocol for access. And on a wayland-based box, this would be available early. Early enough for hurd initialization to make use of, I think. Daydream? :)