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: 06 Jan 2004 01:09:34 +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 1073345055 28019 80.91.224.253 (5 Jan 2004 23:24:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 5 Jan 2004 23:24:15 +0000 (UTC) Cc: Eric Hanchrow , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Jan 06 00:24:12 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 1Ade4y-00079g-00 for ; Tue, 06 Jan 2004 00:24:12 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ade4x-0007xg-00 for ; Tue, 06 Jan 2004 00:24:11 +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 1Adf0l-0002Jz-F6 for emacs-devel@quimby.gnus.org; Mon, 05 Jan 2004 19:23:55 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Adex7-0001Eq-UW for emacs-devel@gnu.org; Mon, 05 Jan 2004 19:20:09 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Adeou-0006o3-5R for emacs-devel@gnu.org; Mon, 05 Jan 2004 19:12:12 -0500 Original-Received: from [195.41.46.235] (helo=pfepa.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AdeoG-0006ct-BV; Mon, 05 Jan 2004 19:11:00 -0500 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepa.post.tele.dk (Postfix) with SMTP id 13AE6480011; Tue, 6 Jan 2004 00:09:30 +0100 (CET) Original-To: David Kastrup In-Reply-To: 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:19027 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19027 David Kastrup writes: > storm@cua.dk (Kim F. Storm) writes: > > > David Kastrup writes: > > > > > storm@cua.dk (Kim F. Storm) writes: > > > > > > > I suppose that process-adaptive-read-buffering isn't really needed > > > > on Windows, > > > > > > Since Windows is slow, anyway? > > > > Because the purpose of my patch was to fix a problem reported to be > > specific for recent Linux kernels. > > Not just recent ones. They may have parameters acerbating the > problem, but it has always been there. IIRC, the same effect was > reported from FreeBSD; and I think it likely that almost all operating > systems that proud themselves on high throughput and good > interactivity and fast context switches will suffer from the same > phenomenon when running on single processor machines, as long as they > are able to reschedule the moment input arrives in a pipe. You need > pretty wild scheduler strategies (like "anticipative scheduling") in > order to avoid this effect. I see -- and agree. BTW, did you try to increase the buffer size? -- Kim F. Storm http://www.cua.dk