From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Suhail Singh Newsgroups: gmane.emacs.bugs Subject: bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening dired buffer over TRAMP Date: Fri, 13 Sep 2024 19:17:36 -0400 Message-ID: <87cyl7rvn3.fsf@gmail.com> References: <87o75241qh.fsf@gmail.com> <86plpi2ixa.fsf@gnu.org> <87seudke20.fsf@gmail.com> <8634md2vc2.fsf@gnu.org> <87h6asrk42.fsf@gmx.de> <86a5gk28ht.fsf@gnu.org> <87le0450x8.fsf@gmx.de> <865xr8228d.fsf@gnu.org> <87jzfofzcl.fsf@gmail.com> <8634mc1ty0.fsf@gnu.org> <87h6asl3hl.fsf@gmail.com> <86ttesyo1t.fsf@gnu.org> <87bk0zjzt1.fsf@gmx.de> <86a5gjy02i.fsf@gnu.org> <87wmjn2wq5.fsf@gmail.com> <87seuaids7.fsf@gmx.de> <86frqaweo2.fsf@gnu.org> <87a5gigo9b.fsf@gmx.de> <86cylew3tr.fsf@gnu.org> <87r09sexp0.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2748"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , suhailsingh247@gmail.com, 73046@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 14 01:20:10 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1spFaD-0000YQ-GA for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Sep 2024 01:20:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1spFZy-0007Uu-5w; Fri, 13 Sep 2024 19:19:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1spFZw-0007Ug-HS for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2024 19:19:52 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1spFZw-0000nk-7Y for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2024 19:19:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=k8eqoF27XR/Wpkbg4bHsIOKzo/7+VFwMLC537iOwYLE=; b=ScpVedZTN6jp1zDXNYwfPUVslphzOo6eaxPerSVKCfRNfJN/0WsHs43tjnYENugPdejwhb1SYmME9oEQYU9LpWLS8lsVqK8dRa88cKMrP1FwMsPi3YwOOd6FjWFwNBcjU0qDaK47xB9u6TXPlA7YctKKVh3c9Xp6XbQ5ykMR+BkuP+R8mTpwreKT7jL8d9zB4qyYvgA64vL27uDqA7h921teWgMI3mLMx+AtUa/4t5sVaYCg063fLLs5YkBD9MMYBiGmJYMocYytjJS7NQ38xZjOe6jUnft70xPhbCwxSzWIGsJxDwtG/SWi1sQSCTk+rcjOxzW1nkRJ66dhLyuoxA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1spFa5-00007q-Sr for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2024 19:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Suhail Singh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Sep 2024 23:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73046 X-GNU-PR-Package: emacs Original-Received: via spool by 73046-submit@debbugs.gnu.org id=B73046.1726269546387 (code B ref 73046); Fri, 13 Sep 2024 23:20:01 +0000 Original-Received: (at 73046) by debbugs.gnu.org; 13 Sep 2024 23:19:06 +0000 Original-Received: from localhost ([127.0.0.1]:44428 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spFZC-00006B-4W for submit@debbugs.gnu.org; Fri, 13 Sep 2024 19:19:06 -0400 Original-Received: from mail-qk1-f193.google.com ([209.85.222.193]:54472) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spFZ9-00005f-P1 for 73046@debbugs.gnu.org; Fri, 13 Sep 2024 19:19:04 -0400 Original-Received: by mail-qk1-f193.google.com with SMTP id af79cd13be357-7a99a46af10so145783885a.0 for <73046@debbugs.gnu.org>; Fri, 13 Sep 2024 16:18:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726269468; x=1726874268; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=k8eqoF27XR/Wpkbg4bHsIOKzo/7+VFwMLC537iOwYLE=; b=TmUpAbZcQv28BvfnaxlBeLgOXdArhnrb8GIe0Ai4Bz9Sww7WMSf8Zlq4HneKwnZooB OItNUasdQeR3ioXnia2gxw09D5L6GRFnHlkDHG6GnRk3OnPdqvnxBtkAtA5lSAjnDu5+ 8YyfPiUXjuHuPt9/ZbWNsCU+yNugVt0ECqIAvWXhVC221GrM8jb2Ya8vfiB8niUf3pwK fhMovnG8K4WYDHE6ZBwPCcAFdJ8Vx8U/+e5zeGucuqgF1+dF+V861j3Y9Ah+FLHiIeww CpQ2u0g07HbcaP3+BC2GR3wC8lu3BsaTu3XsXfAw5W14tits1VDYqIfVpMhkjeSM33Z8 /mJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726269468; x=1726874268; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=k8eqoF27XR/Wpkbg4bHsIOKzo/7+VFwMLC537iOwYLE=; b=Oznis/mj+rwlCBCSfRYXzM0ZPidTfAVEZ3fR4q6dJS0Zd5zbTmXZCzol0iQ4ch1n+U CWSSpkWXBCaTYaph+WquKRwqDuiQpb6lCG+zctELjIRdy8wwPImRdjKMPg785x/NoX3F bO4atDEWKSLgDOAgNYEQDSI2m9Q7C8e3T6xNggyCdOy9LGaDTUU8BGw1AvmDAZaFMff3 aW0YZQuHUjv2yGys6ppMLdUzwtwLd/xVpgpdv9zYaw3b/Y2SfhS7K/5mCagrioumcKq1 WoqTm5VkeSxdZhf31Lyi9FOCHxFGlXr9XhrecXXOZuvSc0qsZBV7DxX99Ay7LZTM5cUY kXgg== X-Forwarded-Encrypted: i=1; AJvYcCUtQv8zAFpB08hiUtXrS7nRQ5bpQFAOhs4b2hx6GuEruGamp3X04Ea34oTwmYUt4hf3UuLzfA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxSSSd6rAcfJvm0qxaKJn2Q7hcXMJonN2IyznKvg+oQr9e2Y+Ui VFsC88o7E2e6rlu8pSt+jOLjdW8D1TwNcY6qKShZK+EaA+mTP0LhfQAET0UR X-Google-Smtp-Source: AGHT+IEgUV+dsojCRHkEK167LONnvgJb0i+CVhg/TCh6J25eZXadRyhX1f98ImfR/zXee9y5fGiFow== X-Received: by 2002:a05:620a:298a:b0:79f:1eb:d76c with SMTP id af79cd13be357-7ab30da7658mr822211085a.43.1726269467841; Fri, 13 Sep 2024 16:17:47 -0700 (PDT) Original-Received: from gnus ([65.94.70.53]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7ab3eb62910sm11676185a.104.2024.09.13.16.17.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 16:17:47 -0700 (PDT) In-Reply-To: <87r09sexp0.fsf@gmx.de> (Michael Albinus's message of "Tue, 10 Sep 2024 10:10:19 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:291675 Archived-At: Michael Albinus writes: > I've added (sit-for 0.005) in the loop calling > tramp-accept-process-output. It decreases the CPU load from 100% to > something between 45..50%, when waiting for a response from > remote. Pushed to master I tested this patch today atop TRAMP 2.7.1.2. Some findings: 1. If directory with symlinks on remote host with slow connection is opened CPU usage is much less than 100%. That's the good news. However, there are a couple of caveats. 2. If we are in parent directory, and soon after pressing RET we invoke M-x we don't see the minibuffer prompt till after the offending directory has finished font-locking. 3. If after invoking M-x we immediately start typing, the keyboard input is registered, however, it doesn't display in the minibuffer till after the offending directory has finished font-locking. Additionally, doing so invariably results in 100% CPU usage for the duration of the font-locking. Sometimes invoking M-x alone results in CPU usage going back up to 100% (while font-locking is still being done). Thoughts? -- Suhail