From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Any idea about what makes Emacs slow reading on pipes? Date: Fri, 16 May 2003 23:00:51 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1053118912 1610 80.91.224.249 (16 May 2003 21:01:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 16 May 2003 21:01:52 +0000 (UTC) Cc: "Jan D." Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri May 16 23:01:50 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19GmKY-0000Np-00 for ; Fri, 16 May 2003 23:01:30 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19GmT4-0000cs-00 for ; Fri, 16 May 2003 23:10:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19GmLI-0007B4-05 for emacs-devel@quimby.gnus.org; Fri, 16 May 2003 17:02:16 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19GmKR-0006Ko-00 for emacs-devel@gnu.org; Fri, 16 May 2003 17:01:23 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19GmK8-0005fS-00 for emacs-devel@gnu.org; Fri, 16 May 2003 17:01:05 -0400 Original-Received: from ns.suse.de ([213.95.15.193] helo=Cantor.suse.de) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19GmJx-0005Oj-00; Fri, 16 May 2003 17:00:53 -0400 Original-Received: from Hermes.suse.de (Hermes.suse.de [213.95.15.136]) by Cantor.suse.de (Postfix) with ESMTP id 0B243145E1; Fri, 16 May 2003 23:00:53 +0200 (MEST) Original-To: dak@gnu.org X-Yow: Dizzy, are we "REAL PEOPLE" or "AMAZING ANIMALS"? In-Reply-To: (David Kastrup's message of "16 May 2003 20:38:56 +0200") User-Agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.3.50 (gnu/linux) Original-cc: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13943 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13943 David.Kastrup@t-online.de (David Kastrup) writes: |> "Jan D." writes: |> |> > > |> > > The following exhibits abysmal speed within Emacs: |> > > |> > > (let (process-connection-type) (switch-to-buffer (generate-new-buffer |> > > "*test*"))(erase-buffer)(start-process "test" (current-buffer) "sh" |> > > "-c" "hexdump -v /dev/zero|dd bs=1 count=100k")(erase-buffer)) |> > |> > ... |> > |> > > The system I see this in is |> > > GNU Emacs 21.3.50.3 (i686-pc-linux-gnu) |> > > a RedHat 9 system, but I have seen this in practically every Linux |> > > system up to now. Is this a Linux-specific problem, or do others see |> > > this as well? |> > |> > I could not reproduce this on a slackware (version unknown, but libc 6) |> > or a Mandrake 9.0 system. Maybe running under strace can give some |> > indication of the system call that takes time (if that is the issue)? |> |> Here is a more elaborate test file Tried on ppc-suse-linux, I get constant throughput of 1024 characters at a time. On MacOS X (through MOL) I get varying packet sizes between 97 and 1024. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."