From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 22.1.50; insert-file-contents is slow under tramp Date: Mon, 27 Aug 2007 20:51:39 +0200 Message-ID: <858x7wak04.fsf@lola.goethe.zz> References: <87veb6l9b0.fsf@escher.local.home> <46CD98DC.1050701@gmx.at> <87r6lul2fc.fsf@escher.local.home> <46CDC8B3.7000301@gmx.at> <46CDED2B.3080904@gmx.at> <87k5rmkmu0.fsf@escher.local.home> <46CDF5B7.2030201@gmx.at> <87fy2akjzt.fsf@escher.local.home> <87bqcxzeat.fsf@gmx.de> <86bqcttdoc.fsf@lola.quinscape.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1188240816 31149 80.91.229.12 (27 Aug 2007 18:53:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Aug 2007 18:53:36 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, Stephen.Berman@gmx.net, michael.albinus@gmx.de, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 27 20:53:14 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IPjhr-0005Mo-RI for ged-emacs-devel@m.gmane.org; Mon, 27 Aug 2007 20:53:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IPjho-0002gT-8y for ged-emacs-devel@m.gmane.org; Mon, 27 Aug 2007 14:52:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IPjhS-0002WT-Lk for emacs-devel@gnu.org; Mon, 27 Aug 2007 14:52:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IPjhM-0002Q8-BH for emacs-devel@gnu.org; Mon, 27 Aug 2007 14:52:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IPjhM-0002Pq-6r for emacs-devel@gnu.org; Mon, 27 Aug 2007 14:52:28 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IPjhK-0001Oo-L6 for emacs-devel@gnu.org; Mon, 27 Aug 2007 14:52:27 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IPjh8-0005Ia-Jh for emacs-pretest-bug@gnu.org; Mon, 27 Aug 2007 14:52:15 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1IPjgz-0001L1-S3 for emacs-pretest-bug@gnu.org; Mon, 27 Aug 2007 14:52:18 -0400 Original-Received: from mail-in-06.arcor-online.net ([151.189.21.46]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IPjgx-0001IF-KR; Mon, 27 Aug 2007 14:52:05 -0400 Original-Received: from mail-in-07-z2.arcor-online.net (mail-in-07-z2.arcor-online.net [151.189.8.19]) by mail-in-06.arcor-online.net (Postfix) with ESMTP id C8BF031EA3B; Mon, 27 Aug 2007 20:51:44 +0200 (CEST) Original-Received: from mail-in-08.arcor-online.net (mail-in-08.arcor-online.net [151.189.21.48]) by mail-in-07-z2.arcor-online.net (Postfix) with ESMTP id B14842C6B6E; Mon, 27 Aug 2007 20:51:44 +0200 (CEST) Original-Received: from lola.goethe.zz (dslb-084-061-058-178.pools.arcor-ip.net [84.61.58.178]) by mail-in-08.arcor-online.net (Postfix) with ESMTP id 956432BB625; Mon, 27 Aug 2007 20:51:42 +0200 (CEST) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id C97AA1C3C7A6; Mon, 27 Aug 2007 20:51:39 +0200 (CEST) In-Reply-To: (Richard Stallman's message of "Mon\, 27 Aug 2007 14\:18\:20 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Virus-Scanned: ClamAV 0.91.1/4076/Mon Aug 27 16:15:54 2007 on mail-in-08.arcor-online.net X-Virus-Status: Clean X-Detected-Kernel: Linux 2.4-2.6 X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:77301 gmane.emacs.pretest.bugs:19648 Archived-At: Richard Stallman writes: > > The major bottleneck is `accept-process-output', which returns only > > small chunks when called again and again. With a `sleep-for' between > > two calls, I have improved the performance (but not dramatically). > > Same old scheduler problem that prompted both of > > w32-pipe-read-delay > process-adaptive-read-buffering > > Maybe you should try setting process-adaptive-read-buffering to a > non-nil non-t value? > > Should the defaults for any of these be changed? It is hard to say: basically, they work around deficiencies in the CPU schedulers of the respective operating systems. Linux is supposed to get CFS, "completely fair scheduling" in its next released version, something like 2.6.23. This should quite help with the original problem. Not because of fairness, but because of being different: pretty much _any_ scheduler should behave better here than the previous "context switch whenever possible" scheduling strategy. I was actually surprised to see w32-pipe-read-delay crop up in my apropos-documentation search. From the description, it sounds like it addresses a similar problem, so perhaps it might have been made redundant by process-adaptive-read-buffering _if_ the latter does its job reasonably well under Windows. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum