From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Herman, Geza" Newsgroups: gmane.emacs.bugs Subject: bug#44007: 26.3; Strange shell mode performance Date: Thu, 15 Oct 2020 16:34:37 +0200 Message-ID: References: <499ab53f-7c23-b5ed-6105-3072fffb4bfe@gmail.com> <83imbby3yt.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18368"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 Cc: 44007@debbugs.gnu.org To: Eli Zaretskii , Herman@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 15 16:35:13 2020 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 1kT4LZ-0004da-9R for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Oct 2020 16:35:13 +0200 Original-Received: from localhost ([::1]:38002 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kT4LY-0002vT-9J for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Oct 2020 10:35:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38148) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kT4LO-0002sx-1z for bug-gnu-emacs@gnu.org; Thu, 15 Oct 2020 10:35:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44618) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kT4LN-0007qF-Ls for bug-gnu-emacs@gnu.org; Thu, 15 Oct 2020 10:35:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kT4LN-0007vz-JM for bug-gnu-emacs@gnu.org; Thu, 15 Oct 2020 10:35:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Herman, Geza" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Oct 2020 14:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44007 X-GNU-PR-Package: emacs Original-Received: via spool by 44007-submit@debbugs.gnu.org id=B44007.160277248630473 (code B ref 44007); Thu, 15 Oct 2020 14:35:01 +0000 Original-Received: (at 44007) by debbugs.gnu.org; 15 Oct 2020 14:34:46 +0000 Original-Received: from localhost ([127.0.0.1]:56164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kT4L8-0007vQ-FE for submit@debbugs.gnu.org; Thu, 15 Oct 2020 10:34:46 -0400 Original-Received: from mail-ed1-f49.google.com ([209.85.208.49]:42684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kT4L6-0007vE-VT for 44007@debbugs.gnu.org; Thu, 15 Oct 2020 10:34:45 -0400 Original-Received: by mail-ed1-f49.google.com with SMTP id v19so3296272edx.9; Thu, 15 Oct 2020 07:34:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=Poo1n84idQ11kBefxRf1wBYoJmoNugsSxHudK3ImBTU=; b=aw9zfuuf/M6AeqBP+/urd3qmmfNntWs0HrdtARoeyCdwMLHuIuYxqSnGpi4E9gULES UdH1a/SZ/gYPz3kMbmp+bmQLqKUWULDSQfih5lq70zNm2Ys/AgEJM5OuAke9ToNx23o3 mt0f0X9fUG4TtYo4iJZYpqmEGdpdRR3/yD5RqXsZVPdkVizUnVgm1jsFd+lJ5t1yHNAx RfK2CE+exFICLGv+Rpnutxd6lFMIPHfeFGbWFUTOUPA9oHZ/NEx5Ym+psqW9mBQKz0TW QWGa3hye26j8WoaPdGE8Nb1RP11L7ehS2esFQrR0vdSeonc5bjvdhcp6p+sjz8U6IcQJ Kd3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=Poo1n84idQ11kBefxRf1wBYoJmoNugsSxHudK3ImBTU=; b=JeV1yKmyteLaZ9iq20terVQ578yCfldx/YRHYvhX+TCrlOzDyziEYzfFUIqclTx2Cy fmELr8uLRtJvNaJiN9pizbhznweovtciz8DwntcwS7bTGULV1xRM9ditFmJ9fugnjDgA SFaIy+miaDmnelRNGhfO+13GRmEvjCBfipGoRL2/hsZIXGUQZF8D5FspzjQmlcFwJNfb GEfE4QeNl4uTaSMgInTZMwXD46m+/rxn+u8+7ce9l8Hp+cB87v9aJpH5fpLYcz8pzUx3 QXjN41Poyyl0mHqhryeKXtKG8Dtw2JAL+/gsDJtFSK8ZmSIyy4ziQO9d0VycVIj7Q5uK 0vwg== X-Gm-Message-State: AOAM531Cg6y5Px/8hu15S3xjJIr3F7oP7BUKOMlrAbpnHLMRl0x4ymOG NgeLzAunIWMftMFmaCz+UF22BEcDOk0= X-Google-Smtp-Source: ABdhPJwnTi2J5jQDJi3XqEnJxGt+V2/vyp4tvAdyF1gK+bOky3jMbGfsGGExsvBg6JlkisJ0kOzFeQ== X-Received: by 2002:a05:6402:3191:: with SMTP id di17mr4561648edb.376.1602772478833; Thu, 15 Oct 2020 07:34:38 -0700 (PDT) Original-Received: from [192.168.8.108] (netacc-gpn-34-232-185.pool.telenor.hu. [37.234.232.185]) by smtp.gmail.com with ESMTPSA id k11sm1694774eji.72.2020.10.15.07.34.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Oct 2020 07:34:38 -0700 (PDT) In-Reply-To: <83imbby3yt.fsf@gnu.org> Content-Language: en-US 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" Xref: news.gmane.io gmane.emacs.bugs:190589 Archived-At: Sure! 1. execute emacs by "emacs -Q" 2. M-x shell RET 3. in the shell, execute "seq 100000" (or cat a large file) 4. immediately after you hit enter on "seq 100000" press enter again It doesn't reproduce 100% unfortunately. It seems that if it doesn't reproduce, you need to start from step 1., so it has a higher chance to happen. Another strange thing is that enter can have the opposite effect as well: if I press it during "seq 100000" several times (not immediately after "seq 100000", but after ~1 sec), it can make seq slower. Instead of the usual 3-4 sec, it slows down to >10 sec. (I measured by "time seq 100000"). It seems that the more enter I press, the slower it gets. But maybe it's a different issue. On 2020-10-15 16:10, Eli Zaretskii wrote: >> From: Herman@debbugs.gnu.org, Géza >> Date: Thu, 15 Oct 2020 11:53:16 +0200 >> >> I'm experiencing strange shell (comint) mode performance. If I cat a 10 >> MB file, it takes 1:20 to cat it. Emacs uses only 30% cpu. But, if I >> press enter after I send the cat command, it speeds up, and it only >> takes 8 sec (emacs cpu usage goes up to 100%). >> >> Same thing: if I execute "seq 100000" in a small emacs window, it takes >> ~3 seconds. But, if I press enter after executing seq, it takes only 0.4 >> sec (this is not 100% reproducible, sometimes pressing enter doesn't >> make a difference). >> (I executed comint-clear-buffer before measurements) > Can you please describe a detailed reproduction recipe, starting from > "emacs -Q"? It is not exactly clear from the above whether you do > this in a shell-mode buffer or in some other mode, where exactly do > you press Enter, etc. A detailed recipe will resolve all those > unclear aspects. > > Thanks.