unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
To: rms@gnu.org
Cc: emacs-pretest-bug@gnu.org, Stephen.Berman@gmx.net,
	michael.albinus@gmx.de, monnier@iro.umontreal.ca,
	emacs-devel@gnu.org
Subject: Re: 22.1.50; insert-file-contents is slow under tramp
Date: Mon, 27 Aug 2007 20:51:39 +0200	[thread overview]
Message-ID: <858x7wak04.fsf@lola.goethe.zz> (raw)
In-Reply-To: <E1IPjAK-0003ge-4r@fencepost.gnu.org> (Richard Stallman's message of "Mon\, 27 Aug 2007 14\:18\:20 -0400")

Richard Stallman <rms@gnu.org> 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

  reply	other threads:[~2007-08-27 18:51 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-23 12:33 22.1.50; insert-file-contents is slow under tramp Stephen Berman
2007-08-23 14:25 ` martin rudalics
2007-08-23 15:02   ` Stephen Berman
2007-08-23 17:49     ` martin rudalics
2007-08-23 18:59       ` Stefan Monnier
2007-08-23 20:25         ` martin rudalics
2007-08-23 20:39           ` Stephen Berman
2007-08-23 21:01             ` martin rudalics
     [not found]             ` <46CDF5B7.2030201@g\x04mx.at>
2007-08-23 21:40               ` Stephen Berman
2007-08-24  5:34                 ` Michael Albinus
2007-08-24  7:18                   ` Stephen Berman
2007-08-24 14:32                   ` Stefan Monnier
2007-08-26 10:36                     ` Michael Albinus
2007-08-26 19:01                       ` David Kastrup
2007-08-26 19:24                         ` Michael Albinus
2007-08-27  4:16                       ` Stefan Monnier
2007-08-27 11:41                         ` Michael Albinus
2007-08-27 13:58                           ` Stefan Monnier
2007-08-27 14:09                             ` Thien-Thi Nguyen
2007-08-27 14:14                             ` David Kastrup
2007-08-27 14:53                             ` Michael Albinus
2007-08-27 20:11                               ` Stefan Monnier
2007-08-27 20:37                                 ` Michael Albinus
2007-08-27 10:52                     ` Michael Albinus
2007-08-27 11:33                       ` David Kastrup
2007-08-27 18:18                         ` Richard Stallman
2007-08-27 18:51                           ` David Kastrup [this message]
2007-08-24  9:28                 ` Eli Zaretskii
2007-08-24  9:35                   ` Stephen Berman
2007-08-24 16:10                 ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=858x7wak04.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --cc=Stephen.Berman@gmx.net \
    --cc=emacs-devel@gnu.org \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=michael.albinus@gmx.de \
    --cc=monnier@iro.umontreal.ca \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).