From: David.Kastrup@t-online.de (David Kastrup)
To: Andrea Arcangeli <andrea@suse.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Scheduling problem with 2.4?
Date: 17 May 2003 21:36:29 +0200 [thread overview]
Message-ID: <x5r86x74ci.fsf@lola.goethe.zz> (raw)
In-Reply-To: <20030517174100.GT1429@dualathlon.random>
[-- Attachment #1: Type: text/plain, Size: 825 bytes --]
Andrea Arcangeli <andrea@suse.de> writes:
> On Sat, May 17, 2003 at 01:22:23PM +0200, David Kastrup wrote:
> >
> > I have a problem with Emacs which crawls when used as a shell. If I
> > call M-x shell RET and then do something like
> > hexdump -v /dev/null|dd count=100k bs=1
>
> this certainly can't be it
>
> andrea@dualathlon:~> hexdump -v /dev/null|dd count=100k bs=1
> 0+0 records in
> 0+0 records out
Argl. Substitute /dev/zero in the obvious place. My stupidity.
Here is a test file for generating further stats from within Emacs.
You can call it interactively from within Emacs with
M-x load-library RET testio.el RET
M-x make-test RET
and you can use it from the command line (if you really must) with
emacs -batch -q -no-site-file -l testio.el -eval "(progn(make-test t
'kill-emacs)(sit-for 100000))"
[-- Attachment #2: testio.el --]
[-- Type: application/emacs-lisp, Size: 1557 bytes --]
[-- Attachment #3: Type: text/plain, Size: 901 bytes --]
It will then output the read stuff from the process followed by
statistics of block sizes over each second it ran.
The interactive session tends to be somewhat worse, but the command
line version is bad enough for a demonstration.
It is obvious that during most of the time, the pipe only receives
single characters.
Again, I am pretty sure that Emacs is at fault too, but I don't
understand the implications of what scheduling behavior causes the
pipes to remain mostly empty, with an occasional full filling. It
would be better if Emacs would not be context-switched into the
moment something appears in the pipe, but if the writer to the pipe
would keep the opportunity to fill'er'up until it is either preempted
or needs to wait. If there was some possibility to force this
behavior from within Emacs, this would be good to know.
Thanks,
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next prev parent reply other threads:[~2003-05-17 19:23 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-17 11:22 David Kastrup
2003-05-17 17:41 ` Andrea Arcangeli
2003-05-17 19:36 ` David Kastrup [this message]
2003-05-17 20:30 ` Andrea Arcangeli
2003-05-17 20:44 ` David Kastrup
2003-05-17 21:53 ` Andrea Arcangeli
2003-05-17 22:37 ` David Kastrup
2003-05-17 23:50 ` Andrea Arcangeli
2003-05-18 0:16 ` David Schwartz
2003-05-18 1:06 ` Andrea Arcangeli
2003-05-18 9:41 ` David Kastrup
2003-05-18 8:55 ` Mike Galbraith
2003-05-18 17:46 ` David Schwartz
2003-05-18 23:18 ` Andrea Arcangeli
2003-05-19 2:59 ` David Schwartz
2003-05-18 23:11 ` Andrea Arcangeli
2003-05-19 7:16 ` Mike Galbraith
2003-05-19 4:02 ` Mike Galbraith
2003-05-18 0:24 ` David Kastrup
2003-05-17 21:54 ` Barry K. Nathan
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=x5r86x74ci.fsf@lola.goethe.zz \
--to=david.kastrup@t-online.de \
--cc=andrea@suse.de \
--cc=dak@gnu.org \
--cc=linux-kernel@vger.kernel.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®