From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Mike Galbraith <efault@gmx.de>
Cc: Ingo Molnar <mingo@elte.hu>, Robert Swan <swan.r.l@gmail.com>,
Linus Torvalds <torvalds@linux-foundation.org>,
linux-kernel@vger.kernel.org
Subject: Re: [bisected] pty performance problem
Date: Mon, 23 Nov 2009 10:28:44 +0000 [thread overview]
Message-ID: <20091123102844.25757450@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <1258952431.6261.38.camel@marge.simson.net>
> Hm. Looks to me like it's doing what it was told to do.
Yes. I realised this morning too.
>
> diff --git a/drivers/char/tty_buffer.c b/drivers/char/tty_buffer.c
> index 66fa4e1..92a0864 100644
> --- a/drivers/char/tty_buffer.c
> +++ b/drivers/char/tty_buffer.c
> @@ -495,7 +495,7 @@ void tty_flip_buffer_push(struct tty_struct *tty)
> if (tty->low_latency)
> flush_to_ldisc(&tty->buf.work.work);
> else
> - schedule_delayed_work(&tty->buf.work, 1);
> + schedule_delayed_work(&tty->buf.work, 0);
> }
> EXPORT_SYMBOL(tty_flip_buffer_push);
>
> Telling it to execute now made test proggy happy.. and likely broke tons
> of things that need a delay there. So, what's wrong with delaying, when
> that's what the customer asked for? /me must be missing something. It
> could know that no delay is needed?
The old model the tty code used was to queue bytes and process them each
timer tick. The idea is that this avoids thrashing the locks and stuff
gets processed more efficiently.
It's probably completely the wrong model today and removing the delay
will now only hit fine grained locks, and will get better flow control
behaviour at high speeds.
Try it and see - worst case it becomes some kind of per tty property.
Alan
next prev parent reply other threads:[~2009-11-23 10:26 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-21 22:23 Robert Swan
2009-11-21 23:23 ` Alan Cox
2009-11-22 0:27 ` Robert Swan
2009-11-22 12:29 ` Alan Cox
2009-11-22 12:41 ` Mike Galbraith
2009-11-22 21:37 ` Robert Swan
2009-11-22 6:39 ` Ingo Molnar
2009-11-22 7:15 ` Arjan van de Ven
2009-11-22 21:56 ` Robert Swan
2009-11-22 12:23 ` Alan Cox
2009-11-22 12:42 ` Ingo Molnar
2009-11-23 5:00 ` Mike Galbraith
2009-11-23 10:28 ` Alan Cox [this message]
2009-11-23 11:31 ` Alan Cox
2009-11-23 11:48 ` Ingo Molnar
2009-11-23 11:59 ` Alan Cox
2009-11-23 12:04 ` Ingo Molnar
2009-11-23 13:34 ` Alan Cox
2009-11-23 17:48 ` Ingo Molnar
2011-07-09 6:29 ` Robert Swan
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=20091123102844.25757450@lxorguk.ukuu.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=efault@gmx.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=swan.r.l@gmail.com \
--cc=torvalds@linux-foundation.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®