From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Fix for slow process output processing (please test). Date: 04 Jan 2004 23:42:33 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <87y8so7kjy.fsf@offby1.atm01.sea.blarg.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073252807 15726 80.91.224.253 (4 Jan 2004 21:46:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 4 Jan 2004 21:46:47 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Jan 04 22:46:44 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AdG56-0001lS-00 for ; Sun, 04 Jan 2004 22:46:44 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AdG55-0005RK-00 for ; Sun, 04 Jan 2004 22:46:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AdH1t-0002t1-54 for emacs-devel@quimby.gnus.org; Sun, 04 Jan 2004 17:47:29 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AdH1Y-0002fr-Dv for emacs-devel@gnu.org; Sun, 04 Jan 2004 17:47:08 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AdH0u-0001r8-0d for emacs-devel@gnu.org; Sun, 04 Jan 2004 17:47:00 -0500 Original-Received: from [193.162.153.9] (helo=pqueuea.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AdH0t-0001px-Go for emacs-devel@gnu.org; Sun, 04 Jan 2004 17:46:27 -0500 Original-Received: from pfepc.post.tele.dk (pfepc.post.tele.dk [195.41.46.237]) by pqueuea.post.tele.dk (Postfix) with ESMTP id CE2853759EE for ; Sun, 4 Jan 2004 22:44:59 +0100 (CET) Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepc.post.tele.dk (Postfix) with SMTP id 1AAFF2629D2; Sun, 4 Jan 2004 22:42:29 +0100 (CET) Original-To: Eric Hanchrow In-Reply-To: <87y8so7kjy.fsf@offby1.atm01.sea.blarg.net> Original-Lines: 32 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:18992 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:18992 Eric Hanchrow writes: > >>>>> "Kim" == Kim F Storm writes: > > Kim> David Kastrup and others have reported very slow processing > Kim> of process output, particularly with the Linux kernel's > Kim> scheduler giving emacs too much attention while starving the > Kim> processing producing the output. > > Kim> Below is a patch > > ... > > I've noticed that shell-mode on very recent (i.e., since after New > Year's) versions of CVS Emacs on Windows is quite slow, and the CPU > usage is high, for a second or two after I hit RET > (comint-send-input). I haven't yet investigated, but if this sounds > like it might be related to your patch (which I think, but cannot > right now confirm, is present on the Emacs in question), let me know > if I can give you any more information. Does the problem go away if you do M-: (setq process-adaptive-read-buffering nil) RET before starting shell-mode ? I suppose that process-adaptive-read-buffering isn't really needed on Windows, so we could just turn it off in lisp/term/w32-win.el. -- Kim F. Storm http://www.cua.dk